:root {
  --bg: #07100c; --deep: #0b1712; --panel: #102019; --line: #213a2f; --line-2: rgba(232, 200, 138, .16);
  --text: #efece0; --text-2: #9aa59e; --text-3: #6f7d75; --gold: #c9a56b; --gold-2: #e8c88a; --sea: #a8c4b8; --green: #3fbf8f;
  --serif: "EB Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body { font-family: var(--sans); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; background: var(--bg); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; position: relative; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(7, 16, 12, .6); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7, 16, 12, .82); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand b { display: block; font-family: var(--serif); font-weight: 500; font-size: 16px; letter-spacing: .28em; line-height: 1.1; }
.brand span { white-space: nowrap; display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .3em; color: var(--gold-2); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .hide-sm { display: none; }
.lang { display: inline-flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--text-2); }
.lang[hidden] { display: none; }
.lang span { opacity: .5; }
.lang button { font: inherit; letter-spacing: inherit; color: var(--text-2); background: none; border: 0; padding: 6px 4px; cursor: pointer; border-radius: 6px; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { color: var(--gold-2); }
.lang button:focus-visible { outline: 1px solid var(--gold); outline-offset: 1px; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; font-weight: 500; border-radius: 999px; padding: 11px 20px; transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #0a1410 !important; box-shadow: 0 0 0 1px rgba(232, 200, 138, .35), 0 8px 28px -10px rgba(201, 165, 107, .7); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(232, 200, 138, .5), 0 12px 34px -10px rgba(201, 165, 107, .85); }
.btn-line { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-line:hover { border-color: var(--gold); background: rgba(201, 165, 107, .06); }
.nav .btn { padding: 9px 16px; }

/* labels */
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }
.eyebrow.pill { display: inline-flex; align-items: center; gap: 10px; letter-spacing: .22em; border: 1px solid var(--line-2); background: rgba(201, 165, 107, .05); border-radius: 999px; padding: 7px 14px 7px 12px; }
.eyebrow.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(63, 191, 143, .18), 0 0 12px var(--green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(63, 191, 143, 0), 0 0 6px var(--green); } }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }

/* hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(20px); }
.g1 { width: 900px; height: 700px; right: -260px; top: -180px; background: radial-gradient(closest-side, rgba(52, 140, 105, .42), rgba(30, 90, 68, .16) 55%, transparent); }
.g2 { width: 600px; height: 500px; left: -220px; top: 120px; background: radial-gradient(closest-side, rgba(201, 165, 107, .12), transparent); }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(168, 196, 184, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 196, 184, .06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 65% 35%, #000 20%, transparent 75%); }
.noise { position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 10vw, 92px); line-height: .98; letter-spacing: -.02em; margin: 22px 0 22px; }
.hero h1 em { font-style: italic; background: linear-gradient(100deg, var(--gold-2), var(--gold) 60%, #f3dcae); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero .lead { max-width: 34em; font-size: 16.5px; color: var(--text-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.proof li { position: relative; padding-left: 16px; font-size: 13px; color: var(--sea); }
.proof li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; } .hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* frames */
.frame { position: relative; overflow: hidden; background: #0d1813; }
.frame img { width: 100%; height: auto; }
.browser { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -30px rgba(0, 0, 0, .8), 0 18px 40px -20px rgba(0, 0, 0, .6); }
.bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: linear-gradient(#16261f, #111f19); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.bar b { width: 8px; height: 8px; border-radius: 50%; background: #2c4238; }
.bar b:first-child { background: #b5654f; } .bar b:nth-child(2) { background: #c9a56b; } .bar b:nth-child(3) { background: #4f9b78; }
.bar span { flex: 1; margin: 0 auto 0 10px; max-width: 260px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: var(--text-3); background: rgba(0, 0, 0, .28); border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.phone { border-radius: 26px; border: 5px solid #0b1410; outline: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); }
.phone img { border-radius: 20px; }

/* hero collage */
.collage { position: relative; height: 300px; perspective: 1800px; animation: fadein 1.2s .2s var(--ease) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.stack { --rx: 0deg; --ry: 0deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(10deg + var(--rx))) rotateY(calc(-20deg + var(--ry))) rotateZ(3deg); transition: transform .6s var(--ease); }
.stack .frame { position: absolute; }
.stack .s1 { width: 62%; left: 36%; top: -2%; transform: translateZ(-180px); opacity: .5; }
.stack .s2 { width: 64%; left: 20%; top: 13%; transform: translateZ(-80px); opacity: .78; }
.stack .s3 { width: 70%; left: 0; top: 32%; transform: translateZ(20px); }
.stack .s4 { width: 19%; right: 6%; top: 36%; transform: translateZ(110px); }
.stack .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 40%); pointer-events: none; }

/* sections */
.section { position: relative; padding: 72px 0; }
.section + .section::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1140px, 92%); height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.section-head { margin-bottom: 40px; max-width: 44em; }
.section-head h2 { font-size: clamp(34px, 7vw, 60px); line-height: 1.02; letter-spacing: -.01em; margin-top: 12px; }
.section-head p { max-width: 38em; color: var(--text-2); margin-top: 14px; font-size: 16px; }

/* cases */
.cases { display: flex; flex-direction: column; gap: 72px; }
.case { --acc: var(--gold); display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.case-visual { position: relative; padding: 22px 18px 34px; isolation: isolate; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .06); background: radial-gradient(120% 90% at 30% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 60%), linear-gradient(180deg, rgba(16, 32, 25, .7), rgba(7, 16, 12, .4)); overflow: hidden; }
.case-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(168, 196, 184, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 196, 184, .05) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); }
.case-visual::before { content: ""; position: absolute; inset: 10% 8% -10%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 34%, transparent), transparent); filter: blur(30px); opacity: .7; transition: opacity .5s; }
.case-visual .browser { width: 86%; transform: perspective(1600px) rotateY(var(--tilt, 5deg)) rotateX(2deg); transform-origin: left center; transition: transform .7s var(--ease); }
.case-visual .phone { position: absolute; right: 18px; bottom: -18%; width: 24%; transition: transform .7s var(--ease); }
.case:hover .case-visual .browser { transform: perspective(1600px) rotateY(0deg) translateY(-6px); }
.case:hover .case-visual .phone { transform: translateY(-12px) rotate(-1.5deg); }
.case:hover .case-visual::before { opacity: 1; }
.case-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.seg { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(63, 191, 143, .3); border-radius: 999px; padding: 3px 9px; }
.live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.case-id { display: flex; align-items: center; gap: 16px; }
.case-id img { width: 56px; height: 56px; border-radius: 14px; object-fit: contain; background: #fff; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px -10px color-mix(in srgb, var(--acc) 70%, transparent); }
.case-id h3 { font-weight: 500; font-size: clamp(32px, 6vw, 44px); line-height: 1; letter-spacing: -.01em; }
.case-id .line { font-size: 14.5px; color: var(--sea); margin-top: 6px; }
.case dl { margin-top: 24px; display: grid; gap: 14px; }
.case dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.case dd { font-size: 15px; color: var(--text-2); margin-top: 4px; max-width: 34em; }
.case dt:first-of-type + dd { color: var(--text); font-family: var(--serif); font-size: 20px; line-height: 1.35; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.links a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; color: var(--text); background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s, color .2s; }
.links a::after { content: "↗"; font-size: 12px; color: var(--gold); transition: transform .25s var(--ease); }
.links a:hover { border-color: var(--gold); background: rgba(201, 165, 107, .07); }
.links a:hover::after { transform: translate(2px, -2px); }
.links a:first-child { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }

/* values */
.values { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.value { padding: 28px 24px; background: linear-gradient(180deg, var(--deep), var(--bg)); transition: background .4s; }
.value:hover { background: linear-gradient(180deg, #10221a, var(--deep)); }
.value h3 { font-size: 26px; line-height: 1.15; }
.value h3::before { content: ""; display: block; width: 28px; height: 1px; background: var(--gold); margin-bottom: 18px; }
.value p { font-size: 14.5px; color: var(--text-2); margin-top: 10px; }

/* steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; }
.step { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 28px 24px; background: linear-gradient(180deg, rgba(16, 32, 25, .8), rgba(7, 16, 12, .6)); overflow: hidden; }
.step .n { font-family: var(--serif); font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(232, 200, 138, .5); }
.step h3 { font-size: 28px; margin: 14px 0 8px; }
.step p { font-size: 14.5px; color: var(--text-2); }

/* contact */
.cta { position: relative; text-align: center; padding: 104px 0 112px; overflow: hidden; isolation: isolate; }
.cta-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(52, 140, 105, .3), transparent 70%), radial-gradient(ellipse 30% 40% at 50% 90%, rgba(201, 165, 107, .12), transparent 70%); }
.cta-bg::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1140px, 92%); height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.cta h2 { font-size: clamp(36px, 7.5vw, 68px); line-height: 1.02; letter-spacing: -.01em; margin: 16px auto 16px; max-width: 14em; }
.cta p { color: var(--text-2); max-width: 34em; margin: 0 auto; font-size: 16px; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--text-2); }
footer .wrap { display: flex; flex-direction: column; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.case-copy.reveal { transition-delay: .12s; }
.value.reveal:nth-child(2), .step.reveal:nth-child(2) { transition-delay: .08s; }
.value.reveal:nth-child(3), .step.reveal:nth-child(3) { transition-delay: .16s; }
.value.reveal:nth-child(4) { transition-delay: .24s; }

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

@media (max-width: 639px) {
  .nav .wrap { gap: 10px; }
  .nav-links { gap: 10px; }
  .nav .btn { padding: 8px 14px; }
  .bar { height: 22px; } .bar b { width: 6px; height: 6px; } .bar span { font-size: 8.5px; padding: 2px 8px; }
  .phone { border-width: 3px; border-radius: 16px; } .phone img { border-radius: 13px; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand b { letter-spacing: .2em; }
  .brand span { letter-spacing: .14em; }
  .nav .wrap, .nav-links { gap: 8px; }
  .nav .btn { padding: 8px 12px; font-size: 13px; }
}
@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .nav-links .hide-sm { display: inline; }
  .collage { height: 440px; }
  .values { grid-template-columns: repeat(2, 1fr); }
  footer .wrap { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 640px) and (max-width: 900px) { .nav-links a.hide-sm:nth-child(2) { display: none; } }
@media (min-width: 1024px) {
  .wrap { padding: 0 48px; }
  .hero { padding: 96px 0 88px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; }
  .collage { height: 520px; margin-right: -80px; }
  .section { padding: 120px 0; }
  .cases { gap: 140px; }
  .case { grid-template-columns: 1.4fr 1fr; gap: 72px; }
  .case:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
  .case:nth-child(even) .case-visual { order: 2; }
  .case:nth-child(even) .case-visual .browser { margin-left: auto; --tilt: -5deg; transform-origin: right center; }
  .case:nth-child(even) .case-visual .phone { right: auto; left: 28px; }
  .case-visual { padding: 44px 36px 60px; }
  .values { grid-template-columns: repeat(4, 1fr); }
  .value { padding: 36px 28px 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
