/* ===== Design tokens ===== */
:root {
  --bg:        #0f1115;       /* deep slate (footer / dark accents) */
  --surface:   #ffffff;
  --surface-2: #f5f7fa;
  --text:      #1a1d24;
  --text-soft: #565d6b;
  --border:    #e6e9ef;
  --accent:    #5b6cff;       /* subtle cool indigo */
  --accent-2:  #6f7cff;
  --accent-soft: #eef0ff;
  --ring: rgba(91, 108, 255, 0.28);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 8px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .12);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
section { padding: 96px 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 8px 16px; font-size: .88rem; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.nav .btn--sm { background: var(--accent); color: #fff; }
.nav .btn--sm:hover { background: var(--accent-2); }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark { width: 30px; height: 30px; object-fit: contain; display: inline-block; }
.brand__name { font-size: 1.08rem; letter-spacing: -.01em; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: .95rem; font-weight: 500; color: var(--text-soft); transition: color .15s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a.btn { color: #fff; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 120px 0 110px; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero__title { font-size: clamp(2.3rem, 5.5vw, 3.9rem); font-weight: 800; margin-bottom: 22px; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--text-soft); max-width: 580px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__glow {
  position: absolute; top: -180px; right: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle at center, rgba(91,108,255,.16), rgba(91,108,255,0) 65%);
  z-index: 1; pointer-events: none;
}

/* ===== Featured App ===== */
.app { background: var(--surface-2); }
.app__inner { display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: center; }
.app__media { display: flex; justify-content: center; }
.app__icon {
  width: 200px; height: 200px; border-radius: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.app__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app__body h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.app__body > p { color: var(--text-soft); font-size: 1.08rem; max-width: 520px; margin-bottom: 26px; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg); color: #fff;
  padding: 10px 18px; border-radius: 12px; font-weight: 600;
  transition: transform .15s ease, opacity .2s ease;
}
.badge:hover { transform: translateY(-2px); }
.badge span { display: flex; flex-direction: column; line-height: 1.15; font-size: 1.05rem; }
.badge small { font-size: .68rem; font-weight: 500; opacity: .8; }
.badge--soon { background: var(--surface); color: var(--text-soft); border: 1px solid var(--border); cursor: default; }
.badge--soon:hover { transform: none; }

.app__link { color: var(--text-soft); font-size: .98rem; }
.app__link a { color: var(--accent); font-weight: 600; }
.app__link a:hover { text-decoration: underline; }

/* ===== About ===== */
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 16px; }
.section-head__sub { color: var(--text-soft); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ring); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); }

/* ===== Contact ===== */
.contact__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 24px; padding: 56px;
}
.contact__text h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.contact__text p { color: var(--text-soft); font-size: 1.08rem; }
.contact__row { padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact__row:last-child { border-bottom: 0; }
.contact__label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); margin-bottom: 6px; }
.contact__row a { font-weight: 600; font-size: 1.1rem; color: var(--text); transition: color .15s ease; }
.contact__row a:hover { color: var(--accent); }

/* ===== Footer ===== */
.footer { background: var(--bg); color: #c7ccd6; padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__brand .brand__name { color: #fff; font-size: 1.15rem; }
.footer__brand p { color: #8b93a3; margin-top: 6px; font-size: .95rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { color: #c7ccd6; font-size: .95rem; transition: color .15s ease; }
.footer__links a:hover { color: #fff; }
.footer__bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.footer__bottom p { color: #8b93a3; font-size: .88rem; }

/* ===== Legal pages ===== */
.legal { padding: 80px 0; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--text-soft); margin-bottom: 36px; font-size: .92rem; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--text-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); font-weight: 600; }
.legal .back { display: inline-block; margin-bottom: 28px; color: var(--accent); font-weight: 600; }
.legal .note { background: var(--accent-soft); border: 1px solid var(--ring); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--text); font-size: .9rem; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 10px 4px; }
  .nav__links a.btn { justify-content: center; margin-top: 8px; }

  .app__inner { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .app__body > p, .badges { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  * { animation: none !important; }
}
