:root {
  --bg: #f5f7fb;
  --card: rgba(255, 255, 255, 0.92);
  --card-border: rgba(100, 130, 210, 0.16);
  --text: #17305f;
  --muted: #5a6e96;
  --brand: #2745aa;
  --brand-strong: #1f3690;
  --brand-soft: #eaedff;
  --nav-border: #dde3f0;
  --shadow-card: 0 24px 60px rgba(20, 44, 110, 0.09);
  --shadow-sm: 0 2px 12px rgba(20, 44, 110, 0.07);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1060px;
}

* { box-sizing: border-box; }

h1, h2, h3, h4 {
  font-weight: inherit;
  margin: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f5f7fb;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

/* ===== HEADER ===== */

.header {
  background: #fff;
  border-bottom: 1px solid var(--nav-border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
}

.header-identity {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 860;
  letter-spacing: -0.6px;
  line-height: 1;
  color: var(--brand);
  text-transform: lowercase;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-icon-right {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.brand-e {
  background: linear-gradient(
    to right,
    #2d78c7 0%,
    #5b9ad8 20%,
    #9ec0e2 36%,
    #ffffff 54%,
    #ffd7d8 68%,
    #ff8f8b 82%,
    #ff5148 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.header-tagline {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 400;
  border-left: 1px solid var(--nav-border);
  padding-left: 14px;
}


/* ===== NAV BAR ===== */

.nav-bar {
  border-top: 1px solid var(--nav-border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  display: inline-block;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.13s, border-color 0.13s;
}

.nav-link:hover {
  color: var(--brand);
  text-decoration: none;
  border-bottom-color: rgba(39, 69, 170, 0.3);
}

.nav-link.active {
  color: var(--brand);
  font-weight: 600;
  border-bottom-color: var(--brand);
}

/* ===== HERO ===== */

.hero {
  padding: 40px 0 48px;
}

.hero-headline {
  font-size: 48px !important;
  font-weight: 400 !important;
  color: var(--heading);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 0;
  max-width: 560px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(39, 69, 170, 0.07);
  border: 1px solid rgba(39, 69, 170, 0.14);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}

.hero-text h1 {
  margin: 0 0 18px;
  font-size: 48px !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400 !important;
  color: #2a3a5e;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-desc {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* ===== STORE BADGES ===== */

.cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  min-width: 160px;
}

.store-badge:hover {
  transform: translateY(-2px);
  background: #1e293b;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 16px 32px rgba(0, 0, 0, 0.26);
  text-decoration: none;
  color: #fff;
}

.store-badge-secondary {
  background: #0f172a;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.store-badge-text small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== PHONE MOCKUP ===== */

.hero-visual {
  flex-shrink: 0;
}

.phone-mockup {
  width: 260px;
  background: #e8ecf5;
  border-radius: 44px;
  box-shadow:
    0 0 0 10px #1c1c1e,
    0 0 0 11px rgba(255,255,255,0.12),
    0 0 0 12px #1c1c1e,
    0 40px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  line-height: 0;
  max-height: 520px;
}

.phone-screenshot-wrap {
  line-height: 0;
}

.phone-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 34px;
  object-fit: cover;
  object-position: top;
}

/* ===== DETAIL SECTION ===== */

.detail-section {
  margin-top: 8px;
  margin-bottom: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail-block {
  background: var(--brand-soft);
  border: 1px solid rgba(39, 69, 170, 0.10);
  border-radius: var(--radius-lg);
  padding: 28px 28px 32px;
}

.detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
  line-height: 1.35;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ===== ABOUT ===== */

.about-section {
  margin-top: 8px;
  margin-bottom: 40px;
}

.about-card {
  background: var(--brand-soft);
  border: 1px solid rgba(39, 69, 170, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}

.about-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 700px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(39, 69, 170, 0.16);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 600;
}

/* ===== SECTION LABEL ===== */

.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ===== FEATURES GRID ===== */

.features-section {
  margin: 0 auto 52px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  display: block;
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--nav-border);
  transition: box-shadow 0.18s, transform 0.18s;
  text-decoration: none;
  color: inherit;
}

.feature-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 14px;
}

.feature-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-card h2::after {
  content: "→";
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s, transform 0.15s;
}

.feature-card:hover h2::after {
  opacity: 1;
  transform: translateX(0);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== CONTACT ===== */

.contact-section {
  margin-bottom: 60px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--nav-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== FOOTER ===== */

.footer {
  background: #fff;
  border-top: 1px solid var(--nav-border);
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 17px;
  font-weight: 860;
  letter-spacing: -0.4px;
  color: var(--brand);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.footer-links a:hover { color: var(--brand); }

.contact-email {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin: 4px 0;
}

/* ===== CONTENT PAGES (privacy / terms) ===== */

.content-wrap {
  padding: 40px 0 60px;
}

.content-card {
  background: #fff;
  border: 1px solid var(--nav-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.content-card + .content-card {
  margin-top: 16px;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.lead {
  margin: 0;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.content-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.content-card h3 {
  margin: 26px 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.content-card ul {
  padding-left: 20px;
  margin: 8px 0 0;
}

/* ===== FOOTER CTA ===== */

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--nav-border);
  margin-bottom: 16px;
}

.footer-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-cta-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.footer-cta-text span {
  font-size: 13px;
  color: var(--muted);
}

.footer-cta-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== CONTENT META CARD ===== */

.content-card-meta {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 12px 0 0;
}

.content-card-meta p {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== 404 ===== */

.not-found-card {
  text-align: center;
  padding: 60px 36px;
}

.not-found-code {
  font-size: 80px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--brand-soft);
  line-height: 1;
  margin-bottom: 8px;
}

/* ===== HAMBURGER NAV ===== */

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .about-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .header-tagline {
    border-left: none;
    padding-left: 0;
  }
  .header-legal {
    display: none;
  }
  .nav-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--nav-border);
    z-index: 100;
    padding: 8px 0;
  }
  .nav.nav-open {
    display: flex;
  }
  .nav-link {
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: none;
    border-left: 3px solid transparent;
    margin-bottom: 0;
  }
  .nav-link.active {
    border-left-color: var(--brand);
    border-bottom-color: transparent;
  }
  .nav-bar {
    position: relative;
  }
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    padding: 36px 0 32px;
  }
  .content-card {
    padding: 22px;
  }
  .page-title {
    font-size: 30px;
  }
}
