/* YY Digital AI — design system
   Light, airy, Apple-inspired. One accent gradient for the "AI" feel. */
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500&display=swap");

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #fbfbfd;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #e5e5ea;
  --accent: #0a66ff;
  --accent-2: #7b5cff;
  --accent-3: #00b8ff;
  --ok: #1f9d55;
  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 24px 60px -24px rgba(16, 24, 64, .18);
  --shadow-sm: 0 8px 24px -12px rgba(16, 24, 64, .14);
  --max: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; color: var(--ink-3); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -18px rgba(16, 24, 64, .35); }
.nav { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: -0.04em;
}
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Logo: YY mark + "YY Digital" wordmark with superscript AI */
.mark { fill: var(--ink); height: 28px; width: auto; flex: none; overflow: visible; }
.mark g { transform-box: fill-box; }
.wordmark { font-family: "Lexend", var(--font); font-weight: 400; letter-spacing: .01em; color: var(--ink); white-space: nowrap; }
.wordmark sup {
  /* AI in a thin circle, like the ® mark */
  display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%;
  border: max(1px, .085em) solid currentColor;
  font-size: .27em; font-weight: 500; line-height: 1; letter-spacing: 0;
  margin-left: .25em; vertical-align: top; position: relative; top: .05em; color: currentColor;
}
.brand .wordmark { font-size: 19px; }
.brand:hover .mark .m2 { transform: translate(6px, 4px); }
.mark .m1, .mark .m2 { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.ai-head .mark { height: 26px; }
.vcard-logo { background: #fff !important; box-shadow: var(--shadow-sm); }
.vcard-logo .mark { height: 46px; }

/* Intro: the two Y's fly in and lock together, then the wordmark types in letter by letter */
.intro {
  position: fixed; inset: 0; z-index: 100; background: #fff; display: grid; place-items: center;
  transition: opacity .7s ease, transform .9s cubic-bezier(.7, 0, .2, 1);
}
.intro-on .word { animation-play-state: paused; }

/* Home hero logo: Y's assemble on load, scatter on scroll, re-assemble on the way back */
.hero-brand { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 0 auto 56px; min-height: 230px; }
.hero-brand .mark { height: clamp(110px, 19vw, 190px); }
.hero-brand .mark g { will-change: transform, opacity; }
.hero-brand .wordmark { font-size: clamp(28px, 4vw, 46px); }
.hero-brand .wordmark span { display: inline-block; will-change: transform, opacity; }
.has-hero-brand .site-header .brand { opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; }
.has-hero-brand.brand-docked .site-header .brand { opacity: 1; transform: none; }

/* Mini website mockups on package cards */
.plan-art { height: 150px; margin: -6px -8px 22px; border-radius: 18px; background: var(--bg-2); position: relative; overflow: hidden; }
.section-alt .plan-art { background: #f0f0f4; }
.mini {
  position: absolute; left: 50%; top: 22px; width: 64%; height: 150px; transform: translateX(-50%);
  background: #fff; border-radius: 10px 10px 0 0; box-shadow: 0 10px 30px -12px rgba(16, 24, 64, .25); padding: 14px 14px 0;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.plan:hover .mini { transform: translateX(-50%) translateY(-6px); }
.mini.back { width: 56%; top: 12px; opacity: .55; }
.mini.back2 { width: 48%; top: 4px; opacity: .3; }
.mini i { display: block; border-radius: 4px; background: #e7e7ed; height: 6px; margin-bottom: 6px; }
.mini .mh { height: 10px; width: 60%; background: var(--ink); }
.mini .mh.g { background: var(--grad); width: 44%; }
.mini .nav { display: flex; gap: 5px; justify-content: flex-end; margin-bottom: 10px; }
.mini .nav i { width: 16px; height: 4px; margin: 0; }
.mini .nav i:first-child { margin-right: auto; width: 22px; background: var(--ink); }
.mini .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.mini .tiles i { height: 30px; margin: 0; border-radius: 6px; }
.mini .tiles i:nth-child(1) { background: #ffd9b8; } .mini .tiles i:nth-child(2) { background: #cfe3ff; } .mini .tiles i:nth-child(3) { background: #d9f2e3; }
.mini .pin { width: 34px; height: 22px; border-radius: 6px; background: #e3f0e6; margin-top: 10px; position: relative; }
.mini .pin::after { content: ""; position: absolute; left: 12px; top: 4px; width: 9px; height: 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #ff5a5f; }
.mini .wa { width: 46px; height: 12px; border-radius: 999px; background: #25d366; margin-top: 8px; }
.mini .hero-g { height: 44px; border-radius: 7px; background: linear-gradient(120deg, #0a66ff, #7b5cff, #00b8ff); background-size: 200% 200%; animation: gradmove 5s ease infinite; margin-bottom: 8px; }
@keyframes gradmove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.mini .langs { position: absolute; right: 10px; top: 10px; font-size: 8px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; background: var(--bg-2); padding: 3px 6px; border-radius: 6px; }
.mini .chatb { position: absolute; right: -14px; bottom: 26px; background: var(--ink); color: #fff; font-size: 9px; padding: 6px 9px; border-radius: 10px 10px 2px 10px; animation: bob 4s ease-in-out infinite; }

/* Case screenshots */
.case-shot { position: relative; width: 100%; }
.case-shot .shot { width: 100%; border-radius: 14px; box-shadow: var(--shadow); display: block; }
.case-shot .phone {
  position: absolute; right: -10px; bottom: -26px; width: 26%; border-radius: 18px; border: 5px solid #1d1d1f;
  box-shadow: var(--shadow); background: #1d1d1f; overflow: hidden;
}
.case-shot .phone img { width: 100%; display: block; }
.case-art.teal { background: linear-gradient(135deg, #e9efe9, #cfe0dc 55%, #a9c7c1); }
.intro.out { opacity: 0; transform: translateY(-4%); pointer-events: none; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 4vh; }
.intro .mark { height: min(30vh, 44vw); }
.intro .m1 { animation: flyL 1s cubic-bezier(.16, 1, .3, 1) both; }
.intro .m2 { animation: flyR 1s cubic-bezier(.16, 1, .3, 1) .12s both; }
@keyframes flyL { from { opacity: 0; transform: translate(-70%, -30%) scale(1.9) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes flyR { from { opacity: 0; transform: translate(70%, 30%) scale(1.9) rotate(8deg); } to { opacity: 1; transform: none; } }
.intro .wordmark { font-size: min(6.4vw, 46px); }
.intro .wordmark span { display: inline-block; animation: tick .42s cubic-bezier(.3, 1.6, .5, 1) both; }
.intro .wordmark sup { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes tick { from { opacity: 0; transform: translateY(-.9em) scale(1.4); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink); font-size: 14px; opacity: .82; }
.nav-links a:hover, .nav-links a.active { opacity: 1; text-decoration: none; }
.nav-links a.active { font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.lang {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 10px; font-size: 13px; color: var(--ink);
}
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; margin-right: -8px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(10, 102, 255, .6); }
.btn-primary:hover { background: #0057e0; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); border-color: rgba(10, 102, 255, .35); }
.btn-ghost:hover { background: rgba(10, 102, 255, .06); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " ›"; }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-alt { background: var(--bg-2); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-bottom: 14px; }
.h-xl { font-size: clamp(44px, 7.4vw, 92px); letter-spacing: -0.045em; }
.h-lg { font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -0.04em; }
.h-md { font-size: clamp(26px, 3.2vw, 40px); }
.h-sm { font-size: 22px; letter-spacing: -0.02em; }
.lead { font-size: clamp(19px, 2vw, 23px); color: var(--ink-2); line-height: 1.45; max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 56px; }
.section-head .lead { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 90px; overflow: hidden; text-align: center; }
.hero .lead { margin: 26px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; pointer-events: none; z-index: -1;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: #9fc3ff; top: -160px; left: -140px; }
.orb-2 { width: 460px; height: 460px; background: #c9b8ff; top: -80px; right: -160px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #a6ecff; bottom: -220px; left: 35%; animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(.96); }
}

/* Hero product stage: floating UI cards */
.stage { position: relative; max-width: 980px; height: 470px; margin: 72px auto 0; }
.device {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(720px, 92%); height: 420px; border-radius: 22px; background: #fff;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, .05); overflow: hidden; text-align: left;
}
.device-bar { height: 36px; background: var(--bg-2); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d8d8de; }
.device-bar .url { margin-left: 14px; background: #fff; border-radius: 8px; padding: 3px 14px; font-size: 12px; color: var(--ink-3); }
.device-body { padding: 34px 38px; }
.mock-h { height: 16px; border-radius: 6px; background: var(--ink); width: 54%; margin-bottom: 12px; }
.mock-h.grad { background: var(--grad); width: 38%; }
.mock-p { height: 9px; border-radius: 5px; background: #e6e6ec; margin: 9px 0; }
.mock-row { display: flex; gap: 14px; margin-top: 26px; }
.mock-card { flex: 1; height: 120px; border-radius: 14px; background: var(--bg-2); position: relative; overflow: hidden; }
.mock-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .8) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 3.6s ease-in-out infinite;
}
.mock-card:nth-child(2)::after { animation-delay: .4s; }
.mock-card:nth-child(3)::after { animation-delay: .8s; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.mock-btn { display: inline-block; margin-top: 22px; width: 120px; height: 30px; border-radius: 999px; background: var(--accent); }

.float {
  position: absolute; background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px);
  border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; text-align: left;
  animation: bob 6s ease-in-out infinite; font-size: 14px;
}
.float-chat { left: 0; top: 150px; width: 250px; }
.float-ads { right: 0; top: 60px; width: 220px; animation-delay: -2s; }
.float-auto { right: 4%; bottom: 0; width: 230px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .45); } 70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }
.bubble { padding: 8px 12px; border-radius: 14px; margin: 6px 0; font-size: 13px; line-height: 1.35; }
.bubble.in { background: var(--bg-2); border-bottom-left-radius: 4px; }
.bubble.out { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; margin-left: 26px; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); margin-right: 3px; animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: var(--grad); transform-origin: bottom; animation: grow 2.4s ease-out both; }
@keyframes grow { from { transform: scaleY(.1); } }
.flow { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.flow b { background: var(--bg-2); padding: 5px 9px; border-radius: 8px; font-weight: 600; color: var(--ink); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: var(--bg-3); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: 20px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; white-space: nowrap; }
.marquee-track span::before { content: "✦"; margin-right: 56px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--bg-2); border-radius: var(--radius); padding: 36px;
  position: relative; overflow: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.section-alt .card { background: #fff; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 26px; margin: 18px 0 10px; }
.card p { color: var(--ink-2); }
.card .link-arrow { display: inline-block; margin-top: 18px; }
.icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-sm);
}
.section-alt .icon { background: var(--bg-2); box-shadow: none; }
.icon svg { width: 26px; height: 26px; stroke: url(#g); }
.icon svg * { stroke: var(--accent); }
.card-big { min-height: 340px; display: flex; flex-direction: column; }
.card-big .art { margin-top: auto; padding-top: 30px; }

/* Feature: "site forever" */
.forever {
  border-radius: 36px; padding: 72px 56px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(1200px 400px at 10% 0%, #2f7bff 0%, transparent 60%),
              radial-gradient(900px 500px at 100% 100%, #8a6bff 0%, transparent 60%), #0b1530;
}
.forever h2 { color: #fff; }
.forever .lead { color: rgba(255, 255, 255, .78); }
.forever-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.ledger { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 26px; }
.ledger-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row s { opacity: .55; }
.ledger-row b { color: #7ff0b4; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin: 0 auto; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  display: flex; flex-direction: column; position: relative; transition: transform .35s, box-shadow .35s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--grad); color: #fff;
}
.plan .badge { position: absolute; top: -13px; left: 30px; }
.plan h3 { font-size: 24px; }
.plan .for { color: var(--ink-2); font-size: 15px; margin-top: 6px; min-height: 46px; }
.price { font-size: 46px; font-weight: 700; letter-spacing: -0.04em; margin: 22px 0 4px; }
.price small { font-size: 16px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.price-note { font-size: 13px; color: var(--ink-3); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 11px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: rgba(10, 102, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a66ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan li.no { color: var(--ink-3); }
.plan li.no::before { background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center/11px no-repeat; }
.plan .btn { margin-top: auto; }
.plan .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 18px; }

.tabs { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 5px; gap: 4px; flex-wrap: wrap; justify-content: center; }
.tab { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.tab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.panel { display: none; }
.panel.on { display: block; animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

table.list { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
table.list th, table.list td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; background: var(--bg-3); }
table.list tr:last-child td { border-bottom: 0; }
table.list td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.cmp { min-width: 640px; }
table.cmp td:last-child { font-weight: 400; white-space: normal; }
table.cmp td:not(:first-child), table.cmp th:not(:first-child) { text-align: center; }
table.cmp th:nth-child(3), table.cmp td:nth-child(3) { background: rgba(10, 102, 255, .045); }

.callout { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; font-size: 14.5px; color: var(--ink-2); }
.callout b { color: var(--ink); }
.callout-icon { flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.compare > div { padding: 28px; background: #fff; }
.compare > div + div { background: linear-gradient(135deg, rgba(10, 102, 255, .06), rgba(123, 92, 255, .08)); }
.compare .num { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; margin: 8px 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.step { padding: 30px; border-radius: 24px; background: #fff; position: relative; }
.step::before {
  counter-increment: s; content: "0" counter(s);
  font-size: 15px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 21px; margin: 14px 0 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-size: 19px; font-weight: 600; position: relative; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { padding: 0 0 26px; color: var(--ink-2); max-width: 760px; }
.faq .ans p + p { margin-top: 10px; }
.faq-group { margin-top: 56px; }
.faq-group:first-child { margin-top: 0; }
.faq-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: 4px; }

/* ---------- Portfolio ---------- */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 32px; overflow: hidden; background: var(--bg-2); }
.case-art { min-height: 380px; background: linear-gradient(135deg, #ffd9a8, #ff9f6e 60%, #ff7a59); display: grid; place-items: center; padding: 40px; }
.case-art .device { position: relative; left: auto; top: auto; transform: none; width: 100%; height: 280px; }
.case-body { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { font-size: 13px; font-weight: 600; padding: 6px 12px; background: #fff; border-radius: 999px; color: var(--ink-2); }
.slot { border: 2px dashed var(--line); border-radius: 28px; padding: 40px; text-align: center; color: var(--ink-3); background: transparent; }

/* ---------- About ---------- */
.quote { font-size: clamp(26px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; max-width: 980px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.showcase {
  border-radius: 36px; padding: 64px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 102, 255, .08), rgba(123, 92, 255, .1), rgba(0, 184, 255, .08));
}
.showcase .h-lg { margin: 16px 0; }

/* ---------- Contact ---------- */
.channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.channel {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: var(--bg-2); color: var(--ink);
  transition: transform .3s, box-shadow .3s;
}
.channel:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); }
.channel b { font-size: 19px; }
.channel span { color: var(--ink-2); font-size: 14.5px; }
.ch-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 700; }
form.brief { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 102, 255, .12); }
.field textarea { min-height: 140px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Digital card ---------- */
.vcard {
  max-width: 420px; margin: 0 auto; border-radius: 34px; background: #fff; box-shadow: var(--shadow); overflow: hidden; text-align: center;
}
.vcard-top { padding: 46px 30px 34px; background: radial-gradient(500px 220px at 50% 0%, rgba(10, 102, 255, .16), transparent 70%); }
.vcard-logo { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 18px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 28px; font-weight: 800; letter-spacing: -0.05em; }
.vcard-links { display: grid; gap: 10px; padding: 0 26px 26px; }
.vcard-links a { display: flex; justify-content: space-between; align-items: center; padding: 15px 18px; border-radius: 16px; background: var(--bg-2); color: var(--ink); font-weight: 600; }
.vcard-links a:hover { text-decoration: none; background: #ececf1; }
#qr { display: inline-block; padding: 16px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-sm); margin-top: 8px; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 24px; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.cta-band .hero-cta { margin-top: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); padding: 64px 0 34px; font-size: 14px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-grid h4 { font-size: 13px; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; }
.foot-grid a { display: block; color: var(--ink-2); margin: 8px 0; }
.foot-grid a:hover { color: var(--ink); text-decoration: none; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Assistant widget ---------- */
.ai-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; height: 56px; padding: 0 22px 0 16px; border-radius: 999px; border: 0;
  background: var(--ink); color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); transition: transform .25s;
}
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab .spark { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 13px; }
.ai-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 61; width: 370px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(16, 24, 64, .35), 0 0 0 1px rgba(0, 0, 0, .05);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .25s, transform .25s;
}
.ai-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.ai-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.ai-head b { display: block; font-size: 15px; }
.ai-head small { color: var(--ink-3); font-size: 12.5px; }
.ai-close { margin-left: auto; background: var(--bg-2); border: 0; width: 30px; height: 30px; border-radius: 50%; font-size: 16px; color: var(--ink-2); }
.ai-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.ai-log .bubble { max-width: 86%; font-size: 14.5px; }
.ai-log .bubble.out { align-self: flex-end; margin-left: 0; }
.ai-log .bubble.in { align-self: flex-start; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 10px; }
.ai-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 12.5px; color: var(--ink-2); }
.ai-chips button:hover { border-color: var(--accent); color: var(--accent); }
.ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ai-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 15px; }
.ai-form input:focus { outline: 0; border-color: var(--accent); }
.ai-form button { border: 0; border-radius: 50%; width: 42px; height: 42px; background: var(--accent); color: #fff; font-size: 17px; }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); z-index: 70; background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }
.word { display: inline-block; opacity: 0; transform: translateY(.45em); animation: word .9s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes word { to { opacity: 1; transform: none; } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .g-4, .steps, .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .forever-grid, .case { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; gap: 0; background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(20px); padding: 8px 24px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(calc(-100% - 80px)); visibility: hidden; transition: transform .35s ease, visibility .35s; z-index: -1;
  }
  body.menu-open .nav-links { visibility: visible; }
  .nav-links a { font-size: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  body.menu-open .nav-links { transform: none; }
  body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .burger { display: block; }
  .nav-tools .btn { display: none; }
  .nav-tools { margin-left: auto; }
  .g-2, .g-3, .values { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .hero { padding: 80px 0 60px; }
  .stage { height: 400px; }
  .float-chat { left: -6px; top: 210px; width: 210px; }
  .float-ads { right: -6px; top: 30px; width: 180px; }
  .float-auto { display: none; }
  .forever, .showcase { padding: 48px 26px; border-radius: 28px; }
  .case-body { padding: 34px 26px; }
  .compare { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .g-4, .steps, .channels, .foot-grid { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .device { height: 340px; }
  .device-body { padding: 24px; }
  .mock-row .mock-card:nth-child(3) { display: none; }
  .ai-fab .label { display: none; }
  .ai-fab { padding: 0 15px; }
  .ai-panel { right: 16px; bottom: 88px; }
  table.list th, table.list td { padding: 14px 14px; }
}

/* ---------- Sample agreement (watermarked document) ---------- */
.doc-wrap { background: var(--bg-2); padding: 60px 0 100px; }
.doc-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 860px; margin: 0 auto 22px; }
.doc-paper {
  position: relative; max-width: 860px; margin: 0 auto; background: #fff; border-radius: 6px;
  box-shadow: var(--shadow); padding: 72px 76px; overflow: hidden; font-size: 15.5px; line-height: 1.65;
}
.doc-paper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: url("../img/watermark.svg") center top / 340px auto repeat; opacity: .07;
}
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 2px solid var(--ink); padding-bottom: 22px; margin-bottom: 30px; }
.doc-head .mark { height: 46px; }
.doc-paper h1 { font-size: 30px; letter-spacing: -0.02em; }
.doc-paper h2 { font-size: 17px; margin: 28px 0 8px; letter-spacing: 0; }
.doc-paper p, .doc-paper li { color: #333; }
.doc-paper p + p { margin-top: 8px; }
.doc-paper ul { padding-left: 20px; margin: 6px 0; }
.blank { display: inline-block; min-width: 150px; border-bottom: 1px solid #999; color: #999; font-size: 13px; padding: 0 4px; }
.sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; }
.sign div { border-top: 1px solid #999; padding-top: 10px; font-size: 13.5px; color: #555; }
.sample-badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b54708; background: #fff4e5; border-radius: 6px; padding: 4px 9px; }
@media (max-width: 640px) { .doc-paper { padding: 40px 22px; } .sign { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .ai-fab, .ai-panel, .doc-tools { display: none !important; }
  .doc-wrap { background: #fff; padding: 0; }
  .doc-paper { box-shadow: none; padding: 0; max-width: none; overflow: visible; }
  .doc-paper::after { position: fixed; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
