/* ==========================================================================
   Satin Pixel — main stylesheet
   ========================================================================== */
:root {
  --bg: #0a090c;
  --bg-2: #111015;
  --surface: #16141b;
  --surface-2: #1d1a23;
  --line: rgba(243, 236, 228, 0.09);
  --line-strong: rgba(243, 236, 228, 0.18);
  --text: #f3ece4;
  --muted: #a39d98;
  --dim: #6f6a68;
  --silk-1: #f2c6b4;   /* blush */
  --silk-2: #d9b38c;   /* champagne */
  --silk-3: #b8a6e6;   /* lilac */
  --silk-4: #8fd3e8;   /* sheen */
  --accent: #e9c9a6;
  --silk-grad: linear-gradient(110deg, var(--silk-1) 0%, var(--silk-2) 30%, var(--silk-3) 65%, var(--silk-4) 100%);
  --silk-loop: linear-gradient(110deg, var(--silk-1) 0%, var(--silk-2) 20%, var(--silk-3) 45%, var(--silk-4) 60%, var(--silk-3) 75%, var(--silk-2) 88%, var(--silk-1) 100%);
  --radius: 22px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --body: "Archivo", system-ui, -apple-system, Segoe UI, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--silk-2); color: #111; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  font-weight: 600;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; margin: 0; letter-spacing: 0; text-transform: uppercase; }
h2 { font-size: clamp(48px, 7.4vw, 108px); }
h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: .01em; }
strong, b { font-weight: 800; }
.silk-text {
  background: var(--silk-loop); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s linear infinite;
  font-style: normal;
}
@keyframes sheen { to { background-position: -200% 0; } }
.lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); max-width: 60ch; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 17px 28px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  will-change: transform; white-space: nowrap;
}
.btn-primary { background: var(--text); color: #0b0a0d; }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 40px -10px rgba(233, 201, 166, .6); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-silk { background: var(--silk-loop); background-size: 200% 100%; color: #120f14; animation: sheen 6s linear infinite; }
.btn-silk:hover { box-shadow: 0 14px 44px -12px rgba(184, 166, 230, .7); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-block { width: 100%; }

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; background: var(--accent); margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(233, 201, 166, .55);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, opacity .3s, border-color .3s;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #111; text-transform: uppercase;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(233, 201, 166, .12); border-color: var(--accent); }
body.cursor-view .cursor-ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--accent); border-color: var(--accent); }
body.cursor-view .cursor-ring::after { content: "View"; }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- Progress + nav ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--silk-grad); z-index: 1001; }
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; padding: 22px 0;
  transition: padding .4s var(--ease), background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { padding: 12px 0; background: rgba(10, 9, 12, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 26px; letter-spacing: .03em; text-transform: uppercase; }
.logo-mark { width: 34px; height: 34px; }
.logo em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { --pad: 12px 20px; font-size: 12px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: rgba(10, 9, 12, .97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.m-link { font-family: var(--display); text-transform: uppercase; font-size: clamp(44px, 13vw, 72px); line-height: 1.1; transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s, color .3s; }
.mobile-menu a.m-link:hover { color: var(--accent); }
.menu-open .mobile-menu a.m-link { transform: none; opacity: 1; }
.menu-open .mobile-menu a.m-link:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a.m-link:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a.m-link:nth-child(4) { transition-delay: .15s; }
.menu-open .mobile-menu a.m-link:nth-child(5) { transition-delay: .2s; }
.menu-open .mobile-menu a.m-link:nth-child(6) { transition-delay: .25s; }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.orb.o1 { width: 620px; height: 620px; right: -160px; top: -120px; background: radial-gradient(circle at 30% 30%, var(--silk-1), var(--silk-2) 45%, transparent 70%); animation: drift1 18s ease-in-out infinite alternate; }
.orb.o2 { width: 520px; height: 520px; right: 12%; bottom: -220px; background: radial-gradient(circle at 50% 50%, var(--silk-3), var(--silk-4) 50%, transparent 72%); opacity: .4; animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-80px, 60px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(90px, -50px) scale(.94); } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(243,236,228,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(243,236,228,.045) 1px, transparent 1px); background-size: 80px 80px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); }
.hero .container { position: relative; z-index: 2; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.03); backdrop-filter: blur(8px); margin-bottom: 30px; }
.hero-tag .pulse { width: 8px; height: 8px; border-radius: 50%; background: #7fe0a8; box-shadow: 0 0 0 0 rgba(127, 224, 168, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(127, 224, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 224, 168, 0); } }
.hero h1 { font-size: clamp(72px, min(14vw, 19vh), 220px); line-height: .86; letter-spacing: -0.005em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.loaded .hero h1 .line > span { transform: none; }
.hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.hero h1 .line:nth-child(3) > span { transition-delay: .24s; }
.hero-sub { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 520px) auto; gap: 40px; align-items: end; justify-content: space-between; }
.hero-sub p { color: #cfc8c1; font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.loaded .fade-up { opacity: 1; transform: none; }
.loaded .fade-up.d1 { transition-delay: .5s; } .loaded .fade-up.d2 { transition-delay: .65s; } .loaded .fade-up.d3 { transition-delay: .8s; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--dim); }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 56px; font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 3.8vw, 54px); color: var(--text); white-space: nowrap; }
.marquee-item::after { content: "✦"; font-size: .5em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; overflow: hidden; transform-style: preserve-3d; transition: border-color .4s, transform .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(233, 201, 166, .13), transparent 45%);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.service-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(233, 201, 166, .08); border: 1px solid rgba(233, 201, 166, .2); margin-bottom: 26px; color: var(--accent); }
.service-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0 0 20px; }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 12px; font-size: 15px; color: #d6cfc8; align-items: flex-start; }
.tick-list li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(233,201,166,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9c9a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.services-grid .card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.mini-browser { border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.mini-browser .bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mini-browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a353f; }
.mini-browser .scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px 16px; }
.score { text-align: center; font-size: 11px; color: var(--muted); }
.score svg { width: 100%; max-width: 70px; margin: 0 auto 8px; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 6; }
.score .track { stroke: rgba(255,255,255,.07); }
.score .val { stroke: #7fe0a8; stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 201; transition: stroke-dashoffset 2s var(--ease); }
.in .score .val { stroke-dashoffset: calc(201 - 201 * var(--p)); }
.score b { display: block; font-size: 20px; color: var(--text); font-weight: 700; margin-top: -58px; margin-bottom: 36px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--display); text-transform: uppercase; font-size: clamp(48px, 6vw, 84px); line-height: 1; }
.stat .num sup { font-size: .4em; color: var(--accent); vertical-align: top; position: relative; top: .3em; margin-left: 4px; }
.stat p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 100px); }
.process-sticky { position: sticky; top: 120px; align-self: start; }
.steps { position: relative; display: grid; gap: 18px; padding-left: 38px; }
.steps::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.steps-fill { position: absolute; left: 11px; top: 10px; width: 1px; height: calc(100% - 20px); background: var(--silk-grad); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.step { position: relative; padding: 28px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color .4s, background .4s; }
.step::before { content: ""; position: absolute; left: -33px; top: 34px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); transition: background .4s, border-color .4s, box-shadow .4s; }
.step.active { border-color: rgba(233, 201, 166, .35); background: var(--surface-2); }
.step.active::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(233,201,166,.15); }
.step-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.step-num { font-size: 12px; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.step-time { font-size: 13px; color: var(--dim); }
.step h3 { font-size: 30px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Templates ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: all .3s var(--ease); }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.active { background: var(--text); color: #0b0a0d; border-color: var(--text); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.tpl { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; transition: transform .6s var(--ease), border-color .4s, opacity .4s; }
.tpl.hide { display: none; }
.tpl:hover { border-color: var(--line-strong); transform: translateY(-6px); }
.tpl-thumb { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-2); cursor: pointer; }
.tpl-thumb iframe { position: absolute; top: 0; left: 0; width: 1280px; max-width: none; height: 880px; border: 0; transform-origin: 0 0; pointer-events: none; }
.tpl-thumb .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,9,12,.85), transparent 55%); opacity: .9; transition: opacity .4s; }
.tpl-thumb .open-pill { position: absolute; right: 16px; bottom: 16px; padding: 9px 16px; border-radius: 999px; background: rgba(243,236,228,.94); color: #111; font-size: 13px; font-weight: 600; transform: translateY(8px); opacity: 0; transition: all .4s var(--ease); }
.tpl:hover .open-pill { transform: none; opacity: 1; }
.tpl-thumb .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 13px; }
.tpl-body { padding: 22px 24px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.tpl-body h3 { font-size: 26px; }
.tpl-body .cat { font-size: 13px; color: var(--muted); margin-top: 4px; }
.tpl-body .from { text-align: right; font-size: 12px; color: var(--dim); white-space: nowrap; }
.tpl-body .from b { display: block; font-size: 18px; color: var(--text); font-weight: 600; }
.tpl-cta { margin-top: 36px; padding: 30px; border: 1px dashed var(--line-strong); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.tpl-cta p { margin: 0; color: var(--muted); max-width: 60ch; }

/* ---------- Preview modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: rgba(6, 5, 8, .92); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.modal-title { font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.modal-title small { font-family: var(--body); font-size: 13px; color: var(--muted); margin-left: 10px; }
.devices { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); }
.devices button { padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: all .3s; }
.devices button svg { width: 16px; height: 16px; }
.devices button.active { background: var(--text); color: #111; }
.modal-actions { display: flex; gap: 8px; align-items: center; }
.modal-actions .btn { --pad: 10px 18px; font-size: 13px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all .3s; }
.icon-btn:hover { border-color: var(--text); transform: rotate(90deg); }
.modal-stage { flex: 1; display: flex; justify-content: center; align-items: stretch; padding: 22px; overflow: auto; }
.device-frame { width: 100%; max-width: 1400px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -30px rgba(0,0,0,.9); transition: max-width .6s var(--ease), border-radius .6s var(--ease); display: flex; flex-direction: column; }
.device-frame.tablet { max-width: 820px; border-radius: 26px; border: 10px solid #222; }
.device-frame.mobile { max-width: 390px; border-radius: 40px; border: 10px solid #222; }
.device-frame iframe { flex: 1; width: 100%; border: 0; min-height: 60vh; background: #fff; }

/* ---------- Pricing ---------- */
.price-tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); position: relative; flex-wrap: wrap; }
.price-tabs button { position: relative; z-index: 1; padding: 12px 22px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.price-tabs button.active { color: #0b0a0d; }
.price-tabs .glider { position: absolute; z-index: 0; top: 5px; height: calc(100% - 10px); border-radius: 999px; background: var(--text); transition: all .5s var(--ease); }
.pricing-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.toggle { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.toggle .sw { width: 50px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); position: relative; transition: background .3s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); transition: transform .4s var(--ease); }
.toggle[aria-checked="true"] .sw { background: rgba(233,201,166,.3); }
.toggle[aria-checked="true"] .sw::after { transform: translateX(22px); background: var(--accent); }
.toggle .save { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(127,224,168,.12); color: #7fe0a8; font-weight: 600; }
.price-panel { display: none; }
.price-panel.active { display: block; animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-grid.three { grid-template-columns: repeat(3, 1fr); }
.plan { display: flex; flex-direction: column; padding: 32px 28px; }
.plan.featured { background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--silk-grad) border-box; border: 1px solid transparent; box-shadow: 0 40px 80px -40px rgba(184, 166, 230, .45); }
.plan { overflow: visible; }
.plan .badge { position: absolute; top: -12px; left: 28px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--silk-grad); color: #111; }
.plan h3 { font-size: 32px; margin-bottom: 6px; }
.plan .desc { font-size: 14px; color: var(--muted); min-height: 46px; margin: 0 0 22px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.plan .price .from { font-size: 13px; color: var(--muted); width: 100%; }
.plan .price .amt { font-family: var(--display); font-size: 58px; line-height: 1; }
.plan .price .per { color: var(--muted); font-size: 14px; }
.plan .sub-price { font-size: 13px; color: var(--dim); min-height: 20px; margin-bottom: 24px; }
.plan .tick-list { margin-bottom: 30px; flex: 1; }
.plan .tick-list li { font-size: 14px; }
.plan .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 20px; }
.addons { margin-top: 40px; display: grid; grid-template-columns: 1fr 2fr; gap: 30px; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.addons h3 { font-size: 34px; }
.addons p { color: var(--muted); margin: 10px 0 0; }
.addon-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; list-style: none; margin: 0; padding: 0; }
.addon-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.addon-list li span:last-child { color: var(--accent); white-space: nowrap; font-weight: 600; }
.price-note { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* ---------- Quote calculator ---------- */
.quote { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.q-block { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin-bottom: 16px; }
.q-block h4 { margin: 0 0 4px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.q-block .hint { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.opts.three { grid-template-columns: repeat(4, 1fr); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { display: block; height: 100%; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); cursor: pointer; transition: all .3s var(--ease); }
.opt label b { display: block; font-size: 15px; margin-bottom: 2px; }
.opt label span { font-size: 13px; color: var(--muted); }
.opt label:hover { border-color: var(--text); }
.opt input:checked + label { border-color: var(--accent); background: rgba(233,201,166,.08); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:focus-visible + label { outline: 2px solid var(--silk-3); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 20px; }
.range-row output { min-width: 110px; text-align: right; font-weight: 600; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--accent) var(--val, 0%), var(--surface-2) var(--val, 0%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--accent); cursor: pointer; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: border-color .3s, background .3s; font-size: 14px; }
.check:hover { border-color: var(--line-strong); }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: all .25s; margin: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible { outline: 2px solid var(--silk-3); outline-offset: 2px; }
.check .lbl { flex: 1; }
.check .p { color: var(--accent); font-weight: 600; white-space: nowrap; }
.check.on { border-color: rgba(233,201,166,.4); background: rgba(233,201,166,.05); }
.summary { position: sticky; top: 100px; padding: 32px; border-radius: var(--radius); background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--silk-grad) border-box; border: 1px solid transparent; }
.summary h3 { font-size: 34px; margin-bottom: 20px; }
.sum-lines { list-style: none; margin: 0 0 20px; padding: 0; font-size: 14px; color: var(--muted); display: grid; gap: 10px; max-height: 260px; overflow: auto; }
.sum-lines li { display: flex; justify-content: space-between; gap: 12px; }
.sum-lines li span:last-child { color: var(--text); white-space: nowrap; }
.totals { border-top: 1px solid var(--line-strong); padding-top: 20px; display: grid; gap: 14px; margin-bottom: 26px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total-row span { color: var(--muted); font-size: 14px; }
.total-row b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.total-row.small b { font-size: 26px; }
.summary .fine { font-size: 12px; color: var(--dim); margin: 14px 0 0; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 7vw, 100px); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 800; }
.faq-q .plus { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; transition: transform .5s var(--ease), background .3s, border-color .3s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq-item.open .plus { background: var(--accent); border-color: var(--accent); transform: rotate(180deg); }
.faq-item.open .plus::before, .faq-item.open .plus::after { background: #111; }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 26px; color: var(--muted); max-width: 64ch; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 80px); padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; right: -200px; top: -260px; background: radial-gradient(circle, rgba(184,166,230,.22), transparent 65%); pointer-events: none; }
.contact h2 { font-size: clamp(44px, 6vw, 80px); margin-bottom: 20px; }
.contact-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.contact-list a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color .3s; }
.contact-list a:hover { border-color: var(--accent); }
.contact-list .ci { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--accent); flex: 0 0 42px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; padding: 24px 18px 10px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-strong); outline: none; transition: border-color .3s, box-shadow .3s; font-size: 15px; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a39d98' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 44px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field label { position: absolute; left: 19px; top: 17px; font-size: 15px; color: var(--dim); pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(233,201,166,.1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.field.error input, .field.error textarea, .field.error select { border-color: #ef8a80; }
.field .err { display: none; font-size: 12px; color: #ef8a80; margin-top: 6px; }
.field.error .err { display: block; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: 12px; color: var(--dim); margin: 0; }
.form-success { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; background: var(--surface); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; z-index: 2; }
.form-success.show { opacity: 1; visibility: visible; }
.form-success .ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--silk-grad); color: #111; }
.form-success h3 { font-size: 40px; }
.form-success p { color: var(--muted); margin: 0; max-width: 46ch; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 70px 0 34px; background: var(--bg-2); }
.foot-big { text-transform: uppercase; font-family: var(--display); font-size: clamp(64px, 16vw, 230px); line-height: .85; letter-spacing: -0.03em; margin-bottom: 60px; background: linear-gradient(180deg, var(--text) 30%, rgba(243,236,228,.08)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.foot-grid h5 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; font-weight: 700; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); transition: color .3s; font-size: 15px; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid p { color: var(--muted); max-width: 36ch; margin: 16px 0 0; font-size: 15px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; font-size: 13px; color: var(--dim); }
.to-top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.to-top:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); padding: 14px 22px; border-radius: 999px; background: var(--text); color: #111; font-weight: 600; font-size: 14px; opacity: 0; visibility: hidden; transition: all .5s var(--ease); z-index: 3000; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .opts, .opts.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .burger { display: inline-block; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .card.wide { grid-column: 1 / -1; }
  .tpl-grid { grid-template-columns: 1fr 1fr; }
  .process, .faq-wrap, .quote, .contact-card, .addons { grid-template-columns: 1fr; }
  .process-sticky, .summary { position: static; }
  .section-head.split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .price-grid.three { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-sub { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  .orb.o1 { width: 380px; height: 380px; right: -180px; top: -60px; opacity: .35; }
  .orb.o2 { width: 320px; height: 320px; opacity: .25; }
  .nav-cta .btn-primary { display: none; }
  .services-grid, .tpl-grid, .price-grid, .price-grid.three, .checks, .addon-list, .form { grid-template-columns: 1fr; }
  .services-grid .card.wide { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .opts, .opts.three { grid-template-columns: 1fr 1fr; }
  .price-tabs { width: 100%; }
  .price-tabs button { flex: 1; padding: 12px 10px; font-size: 13px; }
  .modal-bar { justify-content: center; }
  .modal-title { width: 100%; text-align: center; }
  .modal-stage { padding: 12px; }
  .devices button span { display: none; }
  .range-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .range-row output { text-align: left; }
  .foot-grid { grid-template-columns: 1fr; }
  .steps { padding-left: 30px; }
  .step { padding: 24px; }
  .step::before { left: -25px; }
  .hero-actions .btn { flex: 1; }
  .addons { padding: 24px; }
}
@media (max-width: 400px) {
  .opts, .opts.three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .fade-up, .hero h1 .line > span { opacity: 1; transform: none; }
}
