:root {
  color-scheme: light dark;
  --bg: #f2f6fa;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-soft: #e9eff6;
  --ink: #111827;
  --muted: #667085;
  --line: rgba(27, 61, 94, 0.14);
  --navy: #173b63;
  --navy-2: #294f78;
  --accent: #5f7fa8;
  --accent-2: #8ea8c8;
  --accent-soft: rgba(95, 127, 168, 0.13);
  --shadow: 0 24px 70px rgba(23, 59, 99, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, rgba(104, 139, 181, 0.17), transparent 33rem),
    radial-gradient(circle at 96% 12%, rgba(84, 126, 169, 0.13), transparent 30rem),
    var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, var(--navy), var(--accent));
  box-shadow: 0 8px 22px rgba(44, 82, 122, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-soft);
}

.page-shell { padding: 64px 0 72px; }

.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(110deg, var(--navy), var(--accent) 72%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  margin: 24px 0 0;
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions,
.app-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: white;
  background: linear-gradient(120deg, var(--navy), var(--accent));
  box-shadow: 0 13px 28px rgba(41, 78, 117, 0.22);
}
.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.hero-art {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}
.hero-art::before {
  inset: 12% 3% 8% 12%;
  background: linear-gradient(145deg, rgba(104, 139, 181, .22), rgba(23, 59, 99, .08));
  transform: rotate(-8deg);
}
.hero-art::after {
  width: 130px;
  height: 130px;
  right: 2%;
  top: 8%;
  border: 1px solid rgba(104, 139, 181, .3);
  background: rgba(255, 255, 255, .24);
}

.product-orbit {
  position: relative;
  z-index: 1;
  width: min(360px, 84vw);
  padding: 24px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(235,242,249,.78));
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}
.product-orbit img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 22px 50px rgba(11, 37, 69, .22);
}

.section { margin-top: 92px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.section-heading p { margin: 0; color: var(--muted); }

.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.app-card,
.content-card,
.legal-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.app-card {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(95, 127, 168, .48); }
.app-card img { width: 106px; border-radius: 24px; box-shadow: 0 14px 34px rgba(11,37,69,.2); }
.app-card h3 { margin: 0; font-size: 25px; letter-spacing: -0.03em; }
.app-card p { margin: 8px 0 0; color: var(--muted); }
.app-card .arrow { margin-top: 14px; color: var(--accent); font-weight: 850; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.value-card .number { color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.value-card h3 { margin: 10px 0 6px; }
.value-card p { margin: 0; color: var(--muted); }

.page-hero { padding: 28px 0 34px; }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 18px; }

.app-detail {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}
.app-icon-large { width: 190px; border-radius: 32px; box-shadow: var(--shadow); }
.app-meta h1 { margin: 0; font-size: clamp(40px, 7vw, 66px); letter-spacing: -0.05em; }
.app-tagline { margin: 8px 0 0; color: var(--muted); font-size: 19px; }
.badges { margin-top: 18px; display: flex; gap: 9px; flex-wrap: wrap; }
.badge { padding: 7px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; }

.feature-grid { margin-top: 42px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.feature h3 { margin: 0 0 7px; }
.feature p { margin: 0; color: var(--muted); }

.content-card,
.legal-card { padding: clamp(22px, 4vw, 42px); border-radius: var(--radius-xl); }
.content-card h1,
.legal-card h1 { margin-top: 0; letter-spacing: -0.035em; }
.content-card h2,
.legal-card h2 { margin-top: 34px; padding-bottom: 9px; border-bottom: 1px solid var(--line); color: var(--navy); }
.content-card p,
.legal-card p { white-space: pre-wrap; }
.content-card a,
.legal-card a { color: var(--accent); font-weight: 700; }
.contact-box { padding: 18px 20px; border-radius: var(--radius-md); background: var(--accent-soft); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08111d;
    --surface: rgba(17, 29, 43, .84);
    --surface-solid: #111d2b;
    --surface-soft: #18283a;
    --ink: #f6f7fb;
    --muted: #a9b3c6;
    --line: rgba(214, 222, 240, .13);
    --navy: #b9cee5;
    --navy-2: #8eadd0;
    --accent: #9bb8d8;
    --accent-2: #bed0e4;
    --accent-soft: rgba(155, 184, 216, .15);
    --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  }
  body {
    background:
      radial-gradient(circle at 8% -10%, rgba(99, 139, 181, 0.2), transparent 33rem),
      radial-gradient(circle at 96% 12%, rgba(83, 126, 168, 0.17), transparent 30rem),
      var(--bg);
  }
  .product-orbit {
    border-color: rgba(255,255,255,.11);
    background: linear-gradient(145deg, rgba(29,40,67,.9), rgba(15,23,41,.82));
  }
  .gradient-text { background-image: linear-gradient(110deg, #e5eff8, var(--accent)); }
  .content-card h2,
  .legal-card h2 { color: #c4d7e9; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { min-height: 350px; }
  .values-grid { grid-template-columns: 1fr; }
  .app-detail { grid-template-columns: 1fr; }
  .app-icon-large { width: min(180px, 54vw); }
}

@media (max-width: 640px) {
  .header-inner,
  .page-shell,
  .footer-inner { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 66px; align-items: flex-start; padding: 14px 0; flex-direction: column; gap: 10px; }
  .site-nav { gap: 3px; }
  .site-nav a { padding: 6px 9px; font-size: 13px; }
  .page-shell { padding: 42px 0 54px; }
  .hero h1 { font-size: 45px; }
  .hero-art { min-height: 300px; }
  .product-orbit { width: min(290px, 82vw); padding: 18px; border-radius: 32px; }
  .app-card { grid-template-columns: 82px minmax(0, 1fr); gap: 17px; padding: 20px; }
  .app-card img { width: 82px; border-radius: 19px; }
  .section { margin-top: 68px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 25px 0; align-items: flex-start; flex-direction: column; }
}

/* Developer home */
.developer-home {
  padding-top: 0;
}

.developer-intro {
  min-height: 210px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.developer-intro h1 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1;
  letter-spacing: -0.065em;
  font-weight: 850;
}

.developer-intro p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 800;
  letter-spacing: .22em;
}

.apps-showcase {
  padding: 54px 0 20px;
}

.showcase-heading {
  margin-bottom: 26px;
}

.showcase-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.app-showcase-card {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-showcase-visual {
  min-height: 370px;
  display: grid;
  place-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at 26% 18%, rgba(151, 181, 213, .28), transparent 18rem),
    linear-gradient(145deg, rgba(27, 62, 96, .96), rgba(76, 108, 143, .94));
}

.app-showcase-visual img {
  width: min(230px, 70vw);
  border-radius: 48px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .34);
}

.app-showcase-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 58px);
}

.app-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.app-category {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-title-row h3 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.status-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 800;
}

.app-summary {
  margin: 22px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
}

.app-checks {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.app-checks li {
  position: relative;
  padding-left: 30px;
}

.app-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 950;
}

.compact-actions {
  margin-top: 28px;
}

@media (prefers-color-scheme: dark) {
  .app-showcase-visual {
    background:
      radial-gradient(circle at 26% 18%, rgba(155, 184, 216, .24), transparent 18rem),
      linear-gradient(145deg, #102236, #29445f);
  }
}

@media (max-width: 820px) {
  .developer-intro { min-height: 190px; }
  .app-showcase-card { grid-template-columns: 1fr; }
  .app-showcase-visual { min-height: 300px; }
}

@media (max-width: 640px) {
  .developer-intro { min-height: 170px; }
  .developer-intro h1 { font-size: clamp(31px, 9vw, 40px); }
  .developer-intro p { font-size: 15px; letter-spacing: .15em; }
  .apps-showcase { padding-top: 42px; }
  .app-showcase-visual { min-height: 250px; padding: 32px; }
  .app-showcase-visual img { width: min(170px, 54vw); border-radius: 36px; }
  .app-title-row { flex-direction: column; gap: 12px; }
  .app-showcase-body { padding: 28px 22px 30px; }
}
