:root {
  --ink: #15161a;
  --muted: #5d6170;
  --line: #ebecf0;
  --soft: #f7f8fa;
  --white: #ffffff;
  --cyan: #16c8ff;
  --violet: #696cf0;
  --pink: #ff3ac4;
  --orange: #ff7650;
  --radius: 24px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.75); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.grad { color: var(--violet); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 34px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav nav a:hover { color: var(--ink); }
.nav nav .nav-cta { color: var(--white); background: var(--ink); padding: 9px 18px; border-radius: 999px; }
.nav nav .nav-cta:hover { color: var(--white); opacity: 0.85; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--white); box-shadow: 0 10px 30px -10px rgba(21, 22, 26, 0.5); }
.btn-ghost { border: 1px solid var(--line); background: var(--white); }
.btn-ghost:hover { border-color: #d3d5dc; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 110px) 0 clamp(60px, 8vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 6.6rem); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-visual { position: relative; height: 560px; }
.phone { position: absolute; height: 460px; aspect-ratio: 1206 / 2622; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-a { right: 38%; top: 4%; }
.phone-b { right: 4%; top: 14%; }
.framed {
  border-radius: 34px; overflow: hidden;
  border: 7px solid #15161a;
  background: #15161a;
  box-shadow: 0 30px 60px -20px rgba(21, 22, 26, 0.45);
}
.framed img { border-radius: 27px; }


/* Sections */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; margin-bottom: 56px; }

.about { max-width: 980px; }
.big { font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }

.quote-section { padding: 0 0 clamp(40px, 6vw, 80px); }
.quote { margin: 0; text-align: center; }
.quote blockquote {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 5.4rem); letter-spacing: -0.035em; line-height: 1.05;
  color: var(--ink);
}
.quote figcaption { margin-top: 18px; color: var(--muted); font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; background: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(21, 22, 26, 0.3); }
.card-num { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; margin-bottom: 40px; }
.card-num { color: var(--violet); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app {
  display: flex; flex-direction: column; gap: 20px;
  background: var(--white); border-radius: var(--radius);
  padding: 30px; border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.app:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(21, 22, 26, 0.3); }
.app-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 8px 20px -8px rgba(21, 22, 26, 0.35); }
.app h3 { margin-bottom: 8px; }
.app p { color: var(--muted); font-size: 0.97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0 0; }
.tags li { font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.app-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 0.95rem; color: var(--violet); text-decoration: none; }
.app-link:hover { text-decoration: underline; }

.marquee {
  margin-top: 80px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: scroll 60s linear infinite; padding: 20px 0 40px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > .framed { height: 446px; aspect-ratio: 1206 / 2622; flex: none; }
.marquee-track > .framed img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Outlook */
.outlook { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.outlook-img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.outlook h2 { margin-bottom: 18px; }

/* Contact */
.contact {
  color: var(--white);
  background: #1d1b4b;
  padding: clamp(90px, 12vw, 160px) 0;
  text-align: center;
}
.contact h2 { margin-bottom: 16px; }
.contact p { color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; }
.contact-mail {
  display: inline-block; margin-top: 36px;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 3rem); letter-spacing: -0.02em;
  text-decoration: none; color: var(--white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 6px; transition: border-color 0.2s;
  overflow-wrap: anywhere;
}
.contact-mail:hover { border-color: var(--white); }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.footer-inner img { height: 26px; width: auto; }
.footer a { text-decoration: none; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer a:hover { color: var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 460px; max-width: 520px; width: 100%; margin-inline: auto; }
  .phone { height: 400px; }
  .phone-a { right: 44%; }
  .phone-b { right: 6%; }
  .cards, .apps { grid-template-columns: 1fr 1fr; }
  .outlook { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .brand img { height: 28px; }
  .hero-visual { height: 370px; }
  .phone { height: 330px; }
  .phone-a { right: 46%; }
  .phone-b { right: 2%; }
  .cards, .apps { grid-template-columns: 1fr; }
  .marquee-track > .framed { height: 348px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

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

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 120px); }
.legal .wrap { max-width: 820px; }
.legal-doc + .legal-doc { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 10px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: #3a3d48; font-size: 1rem; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal .stand { color: var(--muted); font-size: 0.92rem; }
.legal a { color: var(--violet); }
.legal .legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 56px; padding: 0; list-style: none; }
.legal-toc a { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--soft); text-decoration: none; color: var(--ink); font-size: 0.9rem; font-weight: 500; }
.legal-toc a:hover { background: var(--line); }
