:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --ink: #151719;
  --muted: #66706b;
  --line: #d9ded8;
  --panel: #ffffff;
  --panel-soft: #eef3ef;
  --accent: #087f8c;
  --accent-2: #c4492d;
  --accent-3: #5b7d3a;
  --shadow: 0 24px 80px rgba(21, 23, 25, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 10%, rgba(8, 127, 140, 0.10), transparent 28rem),
    linear-gradient(180deg, #fbfcf9 0%, var(--bg) 48%, #eef2ed 100%);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; }

.site-header, .site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header { padding: 22px 0; }

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

nav, .site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a, .site-footer a {
  border-radius: 999px;
  color: #4f5a55;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 8px 10px;
  text-decoration: none;
}

nav a.active, nav a:hover, .site-footer a:hover {
  background: var(--panel-soft);
  color: var(--ink);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.hero {
  min-height: 56vh;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.62fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  padding: clamp(22px, 4vw, 54px) 0 clamp(20px, 4vw, 44px);
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  justify-self: center;
  width: min(100%, 430px);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.app-icon {
  width: 104px;
  height: 104px;
  border-radius: 23px;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(21, 23, 25, 0.16);
}

.app-icon.generated {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 2.4rem;
  font-weight: 900;
}

.eyebrow {
  margin: 18px 0 0;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 7.3vw, 6rem);
  letter-spacing: 0;
  line-height: 0.98;
}

.tagline {
  max-width: 700px;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 760;
  line-height: 1.22;
}

.description, .lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid, .link-grid, .support-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature-card, .link-card, .support-card, .contact-panel, .legal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, var(--panel-soft));
  padding: 22px;
}

.feature-card:nth-child(2), .support-card:nth-child(2) { background: #fbf7f2; }
.feature-card:nth-child(3), .support-card:nth-child(3) { background: #f3f8f8; }
.feature-card:nth-child(4), .support-card:nth-child(4) { background: #f4f7ef; }

.feature-card h3, .support-card h2, .contact-panel h2, .legal-section h2 {
  margin: 0 0 8px;
  line-height: 1.2;
}

.feature-card p, .support-card p, .contact-panel p, .legal-section p {
  margin: 0 0 10px;
  color: var(--muted);
}

.material-symbol {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.material-symbol::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #f9fbf8;
  border-radius: 50%;
}

.feature-card:nth-child(2) .material-symbol,
.feature-card:nth-child(4) .material-symbol,
.link-card .material-symbol { background: var(--accent); }

.feature-card:nth-child(3) .material-symbol { background: var(--accent-2); }

.link-card {
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.link-card strong { font-size: 1.1rem; }
.link-card span:last-child { color: var(--muted); }

.legal-page, .support-page {
  max-width: 880px;
}

.legal-page h1, .support-page h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
}

.legal-section { margin-top: 14px; }

.legal-section ul {
  margin: 8px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.contact-panel { margin-top: 14px; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  justify-content: center;
  padding: 24px 0 34px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 18px;
  }

  .hero-visual {
    width: min(76vw, 360px);
    order: -1;
  }

  .feature-grid, .link-grid, .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav a {
    padding-left: 0;
  }

  nav a.active, nav a:hover {
    background: transparent;
    color: var(--accent);
  }
}
