/* =========================================================
   UniSoft — landing styles
   Black & white base, green as a focused accent.
   Soft geometric type (Outfit). Noticeable but cheap
   animated background. Heavy mobile optimization.
   ========================================================= */

@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --bg:           #060807;
  --bg-2:         #0a0d0b;
  --surface:      rgba(255, 255, 255, 0.03);
  --surface-2:    rgba(255, 255, 255, 0.055);
  --border:       rgba(255, 255, 255, 0.08);
  --border-2:     rgba(255, 255, 255, 0.17);   /* neutral, not green */

  --text:         #EEF2EF;
  --text-muted:   #989E99;
  --text-dim:     #5B625D;

  --green:        #4ADE80;
  --green-bright: #86EFAC;
  --emerald:      #10B981;
  --lime:         #BEF264;
  --green-dim:    #7FB89B;
  --ring:         rgba(74, 222, 128, .5);

  /* gradient kept only for logo + the single hero highlight */
  --grad:         linear-gradient(110deg, #BEF264 0%, #4ADE80 50%, #10B981 100%);

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:  cubic-bezier(0.77, 0, 0.175, 1);

  --radius:       18px;
  --radius-sm:    12px;
  --container:    1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
}

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

h1, h2, h3 { font-family: 'Outfit', sans-serif; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   Animated background — moving grid + sweeping beam + glows.
   All animation is transform/opacity only (GPU-composited).
   ========================================================= */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: radial-gradient(140% 120% at 50% -10%, #0a120d 0%, var(--bg) 55%); }

/* soft drifting glows — one green, one cool/neutral */
.bg__glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; will-change: transform; }
.bg__glow--1 { width: 42vw; height: 42vw; top: -10vw; left: -6vw; background: radial-gradient(50% 50% at 50% 50%, rgba(74,222,128,.34), transparent 70%); animation: glow-1 24s var(--ease-in-out) infinite alternate; }
.bg__glow--2 { width: 38vw; height: 38vw; bottom: -12vw; right: -8vw; background: radial-gradient(50% 50% at 50% 50%, rgba(120,160,200,.16), transparent 70%); animation: glow-2 30s var(--ease-in-out) infinite alternate; }
@keyframes glow-1 { to { transform: translate(8vw, 6vw) scale(1.15); } }
@keyframes glow-2 { to { transform: translate(-7vw, -6vw) scale(1.12); } }

/* moving grid (inner element scrolls under a static fade mask) */
.bg__gridwrap { position: absolute; inset: 0; overflow: hidden; mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%); -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%); }
.bg__grid {
  position: absolute; inset: -70px;
  background-image:
    linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.065) 1px, transparent 1px);
  background-size: 64px 64px;
  will-change: transform;
  animation: grid-move 6s linear infinite;
}
@keyframes grid-move { to { transform: translateY(64px); } }

/* diagonal light beam sweeping across — the clearly-noticeable element */
.bg__beam {
  position: absolute; top: -25%; left: 0; width: 38%; height: 150%;
  background: linear-gradient(90deg, transparent, rgba(120,240,170,.05), rgba(190,242,100,.11), rgba(120,240,170,.05), transparent);
  filter: blur(26px); will-change: transform; pointer-events: none;
  animation: beam 11s ease-in-out infinite;
}
@keyframes beam {
  0%   { transform: translateX(-50vw) rotate(16deg); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(180vw) rotate(16deg); opacity: 0; }
}

/* cursor glow (desktop only) */
.bg__cursor { position: absolute; top: 0; left: 0; width: 500px; height: 500px; margin: -250px 0 0 -250px; border-radius: 50%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(74,222,128,.12), transparent 70%); transform: translate3d(var(--cx, 50vw), var(--cy, 30vh), 0); transition: opacity .4s ease; opacity: 0; will-change: transform; }

.bg__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(130% 110% at 50% 0%, transparent 38%, var(--bg) 82%); }

.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .03; 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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

@media (prefers-reduced-motion: reduce) {
  .bg__glow, .bg__grid, .bg__beam { animation: none; }
  .bg__beam { display: none; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; position: relative; isolation: isolate;
  transition: transform .25s var(--ease-out), box-shadow .35s var(--ease-out), background .3s ease, border-color .3s ease;
}
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--block { width: 100%; padding: 16px 26px; }

.btn--primary {
  color: #04130b; font-weight: 700;
  background: linear-gradient(180deg, #BEF264, #4ADE80 60%, #22C55E);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 28px -10px rgba(74,222,128,.6);
}
.btn--ghost { color: var(--text); background: var(--surface-2); border-color: var(--border-2); backdrop-filter: blur(8px); }
.btn:not([data-magnetic]):active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 16px 40px -12px rgba(74,222,128,.85); }
  .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--border-2); }
}

/* =========================================================
   Glow card — rotating conic border (desktop only)
   ========================================================= */
.glow-card { position: relative; }
.glow-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle), transparent 55%, var(--green), var(--lime), transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; animation: spin-border 7s linear infinite; pointer-events: none;
}
@keyframes spin-border { to { --angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .glow-card::before { animation: none; opacity: .3; } }

/* =========================================================
   Nav
   ========================================================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(6, 8, 7, .7); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { display: grid; place-items: center; filter: drop-shadow(0 0 10px rgba(74,222,128,.5)); }
.logo__text { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; }
.logo__text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo--sm .logo__text { font-size: 1.1rem; }

.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: .94rem; color: var(--text-muted); position: relative; padding: 6px 0; transition: color .2s ease; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--green); transition: right .25s var(--ease-out); }
@media (hover: hover) { .nav__links a:hover { color: var(--text); } .nav__links a:hover::after { right: 0; } }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.lang { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; }
.lang__btn { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .8rem; padding: 6px 11px; border-radius: 999px; transition: color .16s ease, background .16s ease; }
.lang__btn.is-active { color: #04130b; background: linear-gradient(180deg, #BEF264, #4ADE80); }
@media (hover: hover) { .lang__btn:not(.is-active):hover { color: var(--text); } }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .24s var(--ease-out), opacity .2s ease; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 150px 0 70px; text-align: center; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); font-weight: 500; padding: 7px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,.5); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); } 70%,100% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } }

.hero__title { font-size: clamp(2.5rem, 6.2vw, 4.6rem); margin: 26px 0 0; max-width: 15ch; letter-spacing: -0.03em; }
.grad-text { filter: drop-shadow(0 0 26px rgba(74,222,128,.32)); }
.hero__subtitle { margin-top: 24px; max-width: 54ch; color: var(--text-muted); font-size: clamp(1.02rem, 2vw, 1.2rem); }
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }

.hero__stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; margin-top: 52px; }
.stat { display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 9px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); transition: border-color .3s ease, background .3s ease; }
.stat__ic { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: var(--green); background: rgba(74,222,128,.09); border: 1px solid var(--border); }
.stat__ic svg { width: 21px; height: 21px; }
.stat__label { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .98rem; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .stat:hover { border-color: var(--border-2); background: var(--surface-2); } }

/* ---- product mockup ---- */
.hero__stage { position: relative; width: 100%; max-width: 940px; margin: 80px auto 0; perspective: 1600px; }
.window { border-radius: 16px; background: linear-gradient(180deg, rgba(16,22,18,.94), rgba(8,11,9,.96)); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 50px 110px -42px rgba(20,110,65,.45), 0 20px 60px -30px rgba(0,0,0,.85); backdrop-filter: blur(10px); transform-style: preserve-3d; transition: transform .25s var(--ease-out); }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #29322c; }
.dot:nth-child(1) { background: #ff5f57; } .dot:nth-child(2) { background: #febc2e; } .dot:nth-child(3) { background: #28c840; }
.window__url { margin-left: 12px; font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--text-dim); background: rgba(0,0,0,.35); padding: 4px 12px; border-radius: 6px; border: 1px solid var(--border); }
.window__body { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 280px; }

.preview { padding: 22px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; background: radial-gradient(120% 80% at 20% 0%, rgba(74,222,128,.08), transparent 60%); }
.preview__nav { display: flex; align-items: center; justify-content: space-between; }
.preview__logo { width: 60px; height: 12px; border-radius: 6px; background: var(--grad); }
.preview__links { display: flex; gap: 8px; }
.preview__links i { width: 26px; height: 8px; border-radius: 4px; background: var(--surface-2); }
.preview__hero { display: flex; flex-direction: column; gap: 11px; margin-top: 8px; }
.preview__line { height: 14px; border-radius: 6px; background: rgba(255,255,255,.14); }
.preview__line--lg { width: 88%; height: 20px; background: linear-gradient(90deg, rgba(190,242,100,.85), rgba(16,185,129,.55)); }
.preview__line--md { width: 62%; }
.preview__btn { width: 92px; height: 26px; border-radius: 999px; background: linear-gradient(180deg, #BEF264, #4ADE80); margin-top: 4px; }
.preview__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.preview__cards span { height: 50px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); }

.terminal { background: rgba(0,0,0,.4); display: flex; flex-direction: column; }
.terminal__bar { font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--text-dim); padding: 10px 16px; border-bottom: 1px solid var(--border); }
.terminal__log { font-family: 'JetBrains Mono', monospace; font-size: .78rem; line-height: 1.85; color: #b6c2ba; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; margin: 0; }
.terminal__log .ok { color: var(--green); }
.terminal__log .mut { color: var(--text-dim); }
.terminal__log .vio { color: var(--lime); }
.terminal__cursor { display: inline-block; width: 8px; height: 1em; background: var(--green); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.phone { position: absolute; right: -14px; bottom: -40px; width: 132px; aspect-ratio: 132/270; border-radius: 26px; background: linear-gradient(180deg, #141c17, #0a120d); border: 1px solid var(--border-2); padding: 9px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.85); animation: bob 6s var(--ease-in-out) infinite alternate; }
.phone__notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 42px; height: 5px; border-radius: 999px; background: #000; z-index: 2; }
.phone__screen { height: 100%; border-radius: 18px; background: radial-gradient(120% 60% at 50% 0%, rgba(74,222,128,.28), transparent 55%), #0a120d; padding: 22px 13px 14px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.phone__bar { width: 40%; height: 7px; border-radius: 4px; background: var(--surface-2); }
.phone__pill { width: 100%; height: 46px; border-radius: 12px; background: linear-gradient(120deg, rgba(74,222,128,.45), rgba(16,185,129,.3)); }
.phone__row { width: 100%; height: 12px; border-radius: 6px; background: var(--surface-2); }
.phone__row--sm { width: 70%; }
.phone__cta { margin-top: auto; width: 100%; height: 30px; border-radius: 999px; background: linear-gradient(180deg, #BEF264, #4ADE80); }
@keyframes bob { to { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }

/* =========================================================
   Marquee
   ========================================================= */
.stack { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee { display: flex; }
.marquee__track { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; animation: scroll 36s linear infinite; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: 9px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.04rem; letter-spacing: .01em; color: var(--text-muted); opacity: .6; transition: opacity .3s ease, color .3s ease; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } .marquee__item:hover { opacity: 1; color: var(--green); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 104px 0; position: relative; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { display: inline-block; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-dim); margin-bottom: 14px; }
.section__title { font-size: clamp(2rem, 4.6vw, 3rem); }
.section__sub { margin-top: 16px; color: var(--text-muted); font-size: 1.08rem; }

/* Service cards (spotlight) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .35s var(--ease-out), border-color .35s ease, background .35s ease; }
.spotlight::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(74,222,128,.14), transparent 60%); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--green); background: rgba(74,222,128,.09); border: 1px solid var(--border); margin-bottom: 20px; transition: transform .32s var(--ease-out), color .3s ease, background .3s ease; }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-family: 'Outfit', sans-serif; font-size: 1.16rem; font-weight: 600; margin-bottom: 9px; letter-spacing: -0.01em; }
.card__desc { color: var(--text-muted); font-size: .95rem; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-5px); background: var(--surface-2); border-color: var(--border-2); }
  .card:hover.spotlight::after { opacity: 1; }
  .card:hover .card__icon { transform: translateY(-2px) scale(1.06); color: var(--lime); background: rgba(190,242,100,.13); }
}

/* Process steps — ghost numbers */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; padding: 28px 24px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease-out), border-color .35s ease; }
.step__num { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 2.4rem; line-height: 1; color: rgba(255,255,255,.13); display: block; margin-bottom: 16px; transition: color .3s ease; }
.step__title { font-family: 'Outfit', sans-serif; font-size: 1.12rem; font-weight: 600; margin-bottom: 8px; }
.step__desc { color: var(--text-muted); font-size: .94rem; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 44px; right: -10px; width: 20px; height: 1px; background: linear-gradient(90deg, var(--border-2), transparent); }
@media (hover: hover) and (pointer: fine) { .step:hover { transform: translateY(-4px); border-color: var(--border-2); } .step:hover .step__num { color: var(--green); } }

/* Work grid (tilt) — dark/neutral thumbs with subtle green */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }
.work { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transform-style: preserve-3d; transition: transform .3s var(--ease-out), border-color .3s ease, box-shadow .35s ease; }
.work__thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.work__thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(6,8,7,.72)); }
.work__thumb--a { background: radial-gradient(120% 120% at 20% 8%, rgba(74,222,128,.4), #0c130f 58%); }
.work__thumb--b { background: radial-gradient(120% 120% at 80% 8%, rgba(45,212,191,.34), #0b1312 58%); }
.work__thumb--c { background: radial-gradient(120% 120% at 50% 0%, rgba(190,242,100,.32), #101510 58%); }
.work__shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); transform: translateX(-100%); transition: transform .7s var(--ease-out); z-index: 1; }
.work__body { padding: 20px 22px 24px; }
.work__tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--green); background: rgba(74,222,128,.09); border: 1px solid rgba(74,222,128,.24); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.work__title { font-family: 'Outfit', sans-serif; font-size: 1.18rem; font-weight: 600; margin-bottom: 6px; }
.work__desc { color: var(--text-muted); font-size: .94rem; }
@media (hover: hover) and (pointer: fine) {
  .work:hover { border-color: var(--border-2); box-shadow: 0 30px 60px -30px rgba(74,222,128,.45); }
  .work:hover .work__shine { transform: translateX(100%); }
}

/* =========================================================
   Contact cards
   ========================================================= */
.section--contact { padding-bottom: 130px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.contact-card {
  position: relative; display: flex; align-items: center; gap: 18px; overflow: hidden;
  padding: 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .3s var(--ease-out), border-color .3s ease, background .3s ease, box-shadow .35s ease;
}
.contact-card__icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; border: 1px solid var(--border); transition: transform .3s var(--ease-out); }
.contact-card__icon--tg { color: #2dd4bf; background: rgba(45,212,191,.1); }
.contact-card__icon--mail { color: var(--green); background: rgba(74,222,128,.1); }
.contact-card__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-card__label { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.18rem; }
.contact-card__value { font-family: 'JetBrains Mono', monospace; font-size: .9rem; color: var(--green-dim); overflow: hidden; text-overflow: ellipsis; }
.contact-card__desc { color: var(--text-muted); font-size: .9rem; margin-top: 3px; }
.contact-card__arrow { position: absolute; top: 20px; right: 20px; color: var(--text-dim); transition: transform .3s var(--ease-out), color .3s ease; }
.contact-card:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  .contact-card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--surface-2); box-shadow: 0 26px 54px -30px rgba(74,222,128,.4); }
  .contact-card:hover.spotlight::after { opacity: 1; }
  .contact-card:hover .contact-card__icon { transform: scale(1.07); }
  .contact-card:hover .contact-card__arrow { transform: translate(3px, -3px); color: var(--green); }
}

/* ---- contact form ---- */
.form { position: relative; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--border); overflow: hidden; backdrop-filter: blur(12px); }
.form__heading { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.06rem; color: var(--text); margin-bottom: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.req { color: var(--green); margin-left: 3px; }
.field input, .field textarea { font-family: inherit; font-size: 1rem; color: var(--text); background: rgba(0,0,0,.34); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; resize: vertical; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.field textarea { min-height: 128px; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(74,222,128,.6); box-shadow: 0 0 0 4px rgba(74,222,128,.14); background: rgba(0,0,0,.5); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form .btn[disabled] { opacity: .6; cursor: default; }

/* toast (copy / form feedback) */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); background: rgba(10,16,12,.97); border: 1px solid var(--border-2); color: var(--text); padding: 13px 20px; border-radius: 14px; font-size: .94rem; z-index: 100; box-shadow: 0 18px 44px -16px rgba(74,222,128,.6); opacity: 0; transition: transform .32s var(--ease-out), opacity .32s var(--ease-out); pointer-events: none; }
.toast::before { content: '✓'; color: var(--green); font-weight: 700; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast--err { border-color: rgba(248,113,113,.5); box-shadow: 0 18px 44px -16px rgba(248,113,113,.55); }
.toast.toast--err::before { content: '!'; color: #f87171; }

.contact-socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.contact-soc { width: 72px; height: 72px; display: grid; place-items: center; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; transition: color .25s ease, border-color .25s ease, background .25s ease, transform .2s var(--ease-out), box-shadow .3s ease; }
.contact-soc svg { width: 30px; height: 30px; }
.contact-soc:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) {
  .contact-soc:hover { color: var(--green); border-color: var(--border-2); background: rgba(74,222,128,.08); transform: translateY(-5px); box-shadow: 0 20px 38px -18px rgba(74,222,128,.55); }
}
@media (max-width: 480px) {
  .contact-soc { width: 60px; height: 60px; border-radius: 17px; }
  .contact-soc svg { width: 26px; height: 26px; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer__copy { color: var(--text-muted); font-size: .9rem; }
.footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; transition: color .25s ease, border-color .25s ease, background .25s ease, transform .18s var(--ease-out); }
.footer__social a:active { transform: scale(.95); }
@media (hover: hover) { .footer__social a:hover { color: var(--green); border-color: var(--border-2); background: rgba(74,222,128,.08); transform: translateY(-3px); } }

/* =========================================================
   Scroll reveal — blur-up
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); filter: blur(8px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 4px; padding: 16px 24px 24px; background: rgba(6,8,7,.98); border-bottom: 1px solid var(--border); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .26s var(--ease-out), opacity .22s ease; }
  .nav.is-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 0; font-size: 1.05rem; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--primary { display: none; }

  .contact-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .section { padding: 78px 0; content-visibility: auto; contain-intrinsic-size: auto 720px; }
  .window__body { grid-template-columns: 1fr; }
  .preview { border-right: 0; border-bottom: 1px solid var(--border); }
  .phone { width: 108px; right: -6px; bottom: -30px; }
  .hero__stage { margin-top: 56px; }

  /* ---- mobile performance: drop expensive effects ---- */
  .nav.is-scrolled { background: rgba(6,8,7,.96); backdrop-filter: none; }
  .badge, .btn--ghost, .window, .form { backdrop-filter: none; }
  .form { background: rgba(16,22,18,.85); }
  .window { background: #0c120e; }
  .glow-card::before { animation: none; opacity: .28; }
  .bg__beam, .bg__cursor, .bg__glow--2 { display: none; }
  .bg__glow { filter: blur(56px); }
  .grain { display: none; }
}

@media (max-width: 620px) {
  /* stack the three equal pills into one centered column */
  .hero__stats { grid-auto-flow: row; grid-auto-columns: auto; width: 100%; max-width: 300px; margin-inline: auto; gap: 12px; }
  .stat { justify-content: flex-start; }
}

@media (max-width: 540px) {
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .nav__inner { gap: 10px; }
  .nav__actions { gap: 10px; }
  .lang { padding: 2px; }
  .lang__btn { padding: 5px 7px; font-size: .72rem; }
  .phone { display: none; }
}
