:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --canvas: #f4f6f5;
  --canvas-wash: #eaf0ec;
  --ink: #202823;
  --muted: #54625b;
  --line: #dbe2de;
  --surface: #fff;
  --accent: #345649;
  --accent-soft: #e8f0eb;
  --operations-accent: #40596a;
  --operations-soft: #eaf0f4;
  --focus: #527965;
  --hover: #f9fbfa;
  --shadow: 0 10px 30px -20px #192d2252;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --canvas: #101513;
  --canvas-wash: #1a2721;
  --ink: #eef4f0;
  --muted: #acbbb3;
  --line: #36443d;
  --surface: #1b2420;
  --accent: #b8dac8;
  --accent-soft: #2b4036;
  --operations-accent: #bbd1e0;
  --operations-soft: #2b3b45;
  --focus: #a5cdb8;
  --hover: #222f28;
  --shadow: 0 10px 30px -20px #000a;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: radial-gradient(ellipse at 20% 0, var(--canvas-wash), transparent 45rem), var(--canvas);
  color: var(--ink);
  line-height: 1.5;
}

.layout {
  width: min(100%, 64rem);
  margin-inline: auto;
  padding-inline: max(clamp(20px, 4vw, 36px), env(safe-area-inset-left))
    max(clamp(20px, 4vw, 36px), env(safe-area-inset-right));
}

.site-header {
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.header-inner,
.brand {
  display: flex;
  align-items: center;
}

.header-inner {
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
}

.brand img { display: block; width: 92px; height: auto; }
.brand span {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 550;
}
:root[data-theme='dark'] .brand img { filter: invert(1); }

.appearance:not([hidden]) { display: grid; }
.appearance {
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.appearance svg { width: 20px; height: 20px; }
.appearance [data-theme-icon='sun'],
:root[data-theme='dark'] .appearance [data-theme-icon='moon'] { display: none; }
:root[data-theme='dark'] .appearance [data-theme-icon='sun'] { display: block; }
.appearance:active {
  background: var(--accent-soft);
}

.start {
  padding-top: clamp(42px, 8vw, 96px);
  padding-bottom: clamp(48px, 9vw, 104px);
}

.intro { margin-bottom: clamp(23px, 4vw, 36px); }
.intro h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3.125rem);
  font-weight: 675;
  letter-spacing: -.05em;
  line-height: 1.1;
}
.intro p { margin: 12px 0 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.125rem); }

.applications { display: grid; gap: 16px; }
.application {
  --card-accent: var(--accent);
  --card-tint: var(--accent-soft);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.application-operations {
  --card-accent: var(--operations-accent);
  --card-tint: var(--operations-soft);
}

:where(a, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.application:active { background: var(--card-tint); }
@media (hover: hover) {
  .application:hover { background: var(--hover); border-color: var(--focus); }
  .appearance:hover { background: var(--canvas); color: var(--ink); }
  .company-website:hover { text-decoration: underline; }
}

.application-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--card-tint);
  color: var(--card-accent);
}

svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.application-icon svg { width: 24px; height: 24px; }

.application-copy { display: grid; gap: 5px; }
.application-copy strong { font-size: 1.25rem; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.application-copy span { color: var(--muted); line-height: 1.45; }

.application-go {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--card-accent);
  font-size: .9375rem;
  font-weight: 650;
}

footer.layout { margin-top: auto; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.company {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.company-location { display: flex; gap: 10px; align-items: flex-start; }
.company-location svg { flex: none; margin-top: 2px; color: var(--accent); }
.company-location strong { color: var(--ink); font-weight: 600; }
.company address { font-style: normal; }
.company-website {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.company-website svg { width: 15px; height: 15px; }

@media (min-width: 600px) {
  .applications { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 20px; }
  .application {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 17px;
    padding: 24px;
  }
  .application-icon { width: 50px; height: 50px; }
  .application-copy { flex: 1; }
  .application-copy strong { font-size: 1.375rem; }
}

@media (max-width: 420px) {
  .header-inner { min-height: 73px; }
  .brand img { width: 82px; }
  .brand span { margin-left: 12px; padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .application { transition: none; }
}
