/* ============================================================
   WinFlows — Premium redesign stylesheet
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #04060f;
  --bg-2:      #070b18;
  --panel:     rgba(255, 255, 255, 0.025);
  --panel-2:   rgba(255, 255, 255, 0.04);
  --hairline:  rgba(148, 163, 184, 0.14);
  --hairline-strong: rgba(148, 163, 184, 0.28);

  /* Text */
  --text:      #f2f5fb;
  --muted:     #95a1b8;
  --muted-2:   #5f6b85;

  /* Accents */
  --blue:      #4d8bff;
  --blue-soft: #7eacff;
  --cyan:      #2fd9e6;
  --violet:    #9b7bff;

  /* Gradients */
  --grad-brand:  linear-gradient(115deg, #4d8bff 0%, #2fd9e6 55%, #9b7bff 100%);
  --grad-blue:   linear-gradient(120deg, #6aa3ff, #2fd9e6);
  --grad-text:   linear-gradient(110deg, #ffffff 0%, #b9d4ff 35%, #7fe4ee 60%, #c3b0ff 100%);

  --shadow-lg:   0 40px 120px -30px rgba(8, 14, 35, 0.9);
  --shadow-glow: 0 0 80px -10px rgba(77, 139, 255, 0.45);

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ============================================================
   GLOBAL ATMOSPHERE — aurora mesh + grid + grain
   ============================================================ */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora--1 { width: 720px; height: 720px; top: -240px; left: -160px;
  background: radial-gradient(circle, rgba(77,139,255,0.85), transparent 65%);
  animation: drift1 26s ease-in-out infinite; }
.aurora--2 { width: 640px; height: 640px; top: 8%; right: -200px;
  background: radial-gradient(circle, rgba(155,123,255,0.7), transparent 65%);
  animation: drift2 32s ease-in-out infinite; }
.aurora--3 { width: 560px; height: 560px; top: 46%; left: 30%;
  background: radial-gradient(circle, rgba(47,217,230,0.5), transparent 65%);
  animation: drift3 38s ease-in-out infinite; }

@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(120px,80px) scale(1.15)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-100px,120px) scale(0.9)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(80px,-90px) scale(1.1)} }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 35%, transparent 80%);
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.035;
  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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* floating particles */
.particles { position: absolute; inset: 0; overflow: hidden; }
.particles .pt {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(125,172,255,.9); box-shadow: 0 0 8px 1px rgba(125,172,255,.7);
  animation: floatUp var(--dur, 18s) linear infinite; animation-delay: var(--dl, 0s);
  opacity: 0; will-change: transform, opacity;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: var(--op, .7); }
  90% { opacity: var(--op, .7); }
  100% { transform: translateY(-104vh) translateX(var(--dx, 30px)); opacity: 0; }
}

/* cursor spotlight (premium ambient light following the pointer) */
.cursor-spot {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; z-index: 1;
  margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(77,139,255,.10), transparent 62%);
  transform: translate3d(-1000px, -1000px, 0); transition: opacity .4s; opacity: 0;
  mix-blend-mode: screen; will-change: transform;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 9, 20, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 30px; height: 30px; color: var(--blue-soft);
  filter: drop-shadow(0 0 12px rgba(77,139,255,0.5));
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { font-family: "Space Grotesk"; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 6px; }
.nav-link {
  color: var(--muted); font-weight: 500; font-size: 15px;
  padding: 8px 16px; border-radius: 10px; transition: color .25s, background .25s;
}
.nav-link:hover { color: var(--text); background: var(--panel-2); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* mobile burger + dropdown */
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--hairline); padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .3s var(--ease), opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; gap: 2px; padding: 8px 20px 18px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(6, 9, 20, 0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.nav-mobile.open { display: flex; }
.nav-mobile-link { padding: 13px 8px; color: var(--muted); font-weight: 600; font-size: 16px;
  border-bottom: 1px solid var(--hairline); transition: color .2s; }
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:active, .nav-mobile-link:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Manrope"; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s, background .3s;
  white-space: nowrap;
}
.btn-primary {
  position: relative; color: #04060f; background: var(--grad-blue);
  box-shadow: 0 10px 40px -8px rgba(47,160,230,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -8px rgba(47,160,230,0.7); }
.btn-ghost {
  color: var(--text); background: var(--panel); border-color: var(--hairline);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--hairline-strong); background: var(--panel-2); }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ============================================================
   HERO
   ============================================================ */

.hero { position: relative; z-index: 1; padding: 180px 0 80px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--hairline);
  font-size: 13px; color: var(--muted); backdrop-filter: blur(8px);
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(47,217,230,0.6); animation: live 2s infinite;
}
@keyframes live {
  0%   { box-shadow: 0 0 0 0 rgba(47,217,230,0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(47,217,230,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,217,230,0); }
}
.badge .mono { color: var(--text); font-size: 11px; }

.hero h1 {
  font-size: clamp(48px, 8.5vw, 104px);
  margin: 30px 0 0;
  font-weight: 600;
}
.hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero h1 .line2 { display: block; color: var(--text); font-size: 0.46em; font-weight: 500; margin-top: 10px; letter-spacing: -0.01em; }

.hero-sub {
  max-width: 620px; margin: 28px auto 0; color: var(--muted);
  font-size: clamp(17px, 2vw, 21px); line-height: 1.6;
}
.hero-cta { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; justify-content: center;
}
.hstat { text-align: center; }
.hstat-num {
  font-family: "Space Grotesk"; font-size: clamp(30px, 4vw, 44px); font-weight: 600;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hstat-label { color: var(--muted-2); font-size: 13px; margin-top: 4px; }

/* hero dashboard frame */
.hero-stage { perspective: 2200px; margin-top: 72px; width: 100%; }
.hero-frame {
  position: relative; max-width: 1000px; margin: 0 auto;
  border-radius: 22px; padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.015));
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
  transform: rotateX(13deg) scale(0.98); transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  will-change: transform;
}
/* animated rotating gradient halo border */
.hero-frame::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 23px; padding: 1.5px;
  background: conic-gradient(from 0deg, #4d8bff, #2fd9e6, #9b7bff, #4d8bff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
  opacity: .75; animation: spin-border 8s linear infinite;
}
@keyframes spin-border { to { transform: rotate(360deg); } }
.hero-frame img { border-radius: 12px; width: 100%; }
.hero-frame::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -44px; height: 150px;
  background: radial-gradient(ellipse at center, rgba(77,139,255,0.55), transparent 70%);
  filter: blur(40px); z-index: -1;
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee-sec { position: relative; z-index: 1; overflow: hidden; padding: 30px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin-top: 70px;
  -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; gap: 56px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 14px; color: var(--muted); font-family: "Space Grotesk"; font-size: 19px; font-weight: 500; white-space: nowrap; }
.marquee-item svg { width: 18px; height: 18px; color: var(--blue-soft); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */

.section { position: relative; z-index: 1; padding: 130px 0; }
.section-head { max-width: 720px; margin: 0 auto 70px; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--blue-soft);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--blue-soft); opacity: .6; }
.kicker::after  { content: ""; width: 24px; height: 1px; background: var(--blue-soft); opacity: .6; }
.section-title { font-size: clamp(34px, 5vw, 56px); position: relative; }
.section-title::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  background-size: 220% 100%; mix-blend-mode: overlay;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.reveal.in .section-title::after { animation: titleSheen 4.5s ease-in-out 0.4s infinite; }
@keyframes titleSheen { 0% { background-position: 220% 0; } 45%, 100% { background-position: -120% 0; } }
.section-sub { color: var(--muted); font-size: 19px; margin-top: 20px; }

/* ============================================================
   FLOW — signature animated production pipeline
   ============================================================ */

.flow-sec { z-index: 1; }
.flow-track {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 30px;
}
.flow-line {
  position: absolute; top: 44px; left: 9%; right: 9%; height: 2px;
  background: var(--hairline); overflow: visible; border-radius: 2px;
}
.flow-line::after {
  content: ""; position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
  background-size: 35% 100%; background-repeat: no-repeat;
  animation: flow-pulse 3.6s linear infinite;
}
@keyframes flow-pulse { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }

.flow-node { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.flow-dot {
  width: 88px; height: 88px; flex-shrink: 0; border-radius: 24px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--hairline); position: relative;
  color: var(--blue-soft); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.flow-dot svg { width: 34px; height: 34px; }
.flow-node:hover .flow-dot { transform: translateY(-6px); border-color: var(--hairline-strong); box-shadow: var(--shadow-glow); }
.flow-node.active .flow-dot {
  border-color: rgba(77,139,255,.6);
  box-shadow: 0 0 0 6px rgba(77,139,255,.08), 0 0 50px -8px rgba(77,139,255,.6);
}
.flow-step { font-family: "JetBrains Mono"; font-size: 11px; color: var(--muted-2); margin-top: 18px; }
.flow-name { font-family: "Space Grotesk"; font-weight: 600; font-size: 19px; margin-top: 6px; }
.flow-desc { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 180px; }

/* ============================================================
   BENTO MODULES
   ============================================================ */

.bento {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px;
}
.card {
  position: relative; border-radius: 22px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--hairline);
  padding: 28px; transition: transform .4s var(--ease), border-color .4s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--hairline-strong); }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: 22px; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(77,139,255,0.16), transparent 60%);
  transition: opacity .4s; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card-span2 { grid-column: span 2; }
.card-span3 { grid-column: span 3; }

.card-tag {
  font-family: "JetBrains Mono"; font-size: 11px; color: var(--blue-soft);
  letter-spacing: .14em; text-transform: uppercase;
}
.card h3 { font-size: 22px; margin-top: 12px; line-height: 1.2; }
.card p { color: var(--muted); font-size: 15px; margin-top: 12px; }

.card-shot {
  margin-top: 22px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--hairline); background: var(--bg-2);
  position: relative;
}
.card-shot img { width: 100%; transition: transform .6s var(--ease); }
.card:hover .card-shot img { transform: scale(1.03); }

.card--wide .card-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.card--wide .card-shot { margin-top: 0; }
.card--wide .card-shot img { aspect-ratio: 9/12; object-fit: cover; object-position: top; }

/* ============================================================
   METRICS BAND
   ============================================================ */

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--hairline); border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-2), transparent);
}
.metric { padding: 44px 32px; text-align: center; border-right: 1px solid var(--hairline); position: relative; }
.metric:last-child { border-right: none; }
.metric-num {
  font-family: "Space Grotesk"; font-weight: 600; font-size: clamp(38px, 5vw, 54px);
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.metric-num .suffix { font-size: 0.55em; }
.metric-label { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ============================================================
   MOBILE APP SHOWCASE
   ============================================================ */

.mobile-sec { z-index: 1; }
.mobile-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.mobile-copy h2 { font-size: clamp(32px, 4.5vw, 50px); }
.mobile-copy p { color: var(--muted); font-size: 18px; margin-top: 22px; }
.mobile-list { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.mobile-li { display: flex; gap: 14px; align-items: flex-start; }
.mobile-li .ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--hairline); color: var(--cyan); }
.mobile-li .ic svg { width: 18px; height: 18px; }
.mobile-li b { font-family: "Space Grotesk"; font-weight: 600; }
.mobile-li span { color: var(--muted); font-size: 14px; display: block; margin-top: 2px; }

.phones { position: relative; display: flex; justify-content: center; align-items: center; gap: 0; min-height: 540px; }
.phone {
  border-radius: 30px; overflow: hidden; border: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg); background: var(--bg-2); width: 230px;
}
.phone img { width: 100%; }
.phone--back { position: absolute; transform: translate(-78px, 30px) rotate(-7deg) scale(.86); opacity: .8; z-index: 1; }
.phone--front2 { position: absolute; transform: translate(78px, 30px) rotate(7deg) scale(.86); opacity: .8; z-index: 1; }
.phone--main { position: relative; z-index: 2; box-shadow: 0 50px 120px -30px rgba(77,139,255,.4); }
.phones-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(80px);
  background: radial-gradient(circle, rgba(77,139,255,.4), transparent 65%); z-index: 0; }

/* ============================================================
   WHY — pillars
   ============================================================ */

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card {
  position: relative; border-radius: 22px; padding: 36px 32px;
  background: var(--panel); border: 1px solid var(--hairline);
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s;
}
.why-card:hover { transform: translateY(-5px); border-color: var(--hairline-strong); }
.why-card::after {
  content: ""; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px;
  border-radius: 50%; background: var(--grad-brand); opacity: .12; filter: blur(20px);
}
.why-ic {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(77,139,255,.18), rgba(155,123,255,.1));
  border: 1px solid var(--hairline); color: var(--blue-soft); margin-bottom: 24px;
}
.why-ic svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 24px; }
.why-card p { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */

.cta-sec { z-index: 1; }
.cta-wrap {
  position: relative; border-radius: 32px; overflow: hidden;
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, rgba(20,30,60,.6), rgba(8,11,24,.6));
  padding: 70px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.cta-wrap::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(700px circle at 80% 0%, rgba(77,139,255,.22), transparent 60%),
              radial-gradient(600px circle at 0% 100%, rgba(155,123,255,.18), transparent 60%);
}
.cta-left { position: relative; }
.cta-left h2 { font-size: clamp(32px, 4vw, 46px); }
.cta-left p { color: var(--muted); font-size: 18px; margin-top: 20px; }
.cta-contacts { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.cta-contact { display: flex; align-items: center; gap: 14px; color: var(--text); transition: color .25s; }
.cta-contact:hover { color: var(--blue-soft); }
.cta-contact .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--hairline); color: var(--blue-soft); }
.cta-contact .ic svg { width: 18px; height: 18px; }
.cta-contact small { display: block; color: var(--muted-2); font-size: 12px; }

.form { position: relative; display: flex; flex-direction: column; gap: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(4,6,15,.6); border: 1px solid var(--hairline);
  color: var(--text); font-family: inherit; font-size: 15px; transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: rgba(77,139,255,.6);
  box-shadow: 0 0 0 3px rgba(77,139,255,.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form .btn-primary { margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer { position: relative; z-index: 1; border-top: 1px solid var(--hairline); padding: 50px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-legal { color: var(--muted-2); font-size: 13px; margin-top: 10px; }
.footer-legal .dot { margin: 0 8px; opacity: .5; }
.footer-social { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--panel); border: 1px solid var(--hairline); color: var(--muted); transition: all .25s; }
.footer-social:hover { color: var(--text); border-color: var(--hairline-strong); transform: translateY(-2px); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* fallback when the animation clock is frozen / unavailable: show everything statically */
body.no-anim *, body.no-anim *::before, body.no-anim *::after { animation: none !important; transition: none !important; }
body.no-anim .reveal { opacity: 1 !important; transform: none !important; }
body.no-anim .hero-frame { transform: rotateX(10deg) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-span2 { grid-column: span 2; }
  .card-span3 { grid-column: span 2; }
  .card--wide .card-inner { grid-template-columns: 1fr; }
  .mobile-grid { grid-template-columns: 1fr; gap: 50px; }
  .cta-wrap { grid-template-columns: 1fr; padding: 48px 36px; }
  .why-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--hairline); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { padding: 14px 20px; }
  .hero { padding: 130px 0 60px; }
  .hero-stats { gap: 28px; }
  .flow-track { grid-template-columns: 1fr; gap: 30px; }
  .flow-line { display: none; }
  /* dot in a fixed left column; step/name/desc stacked in a flexible right column */
  .flow-node { display: grid; grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "dot step" "dot name" "dot desc";
    column-gap: 18px; row-gap: 3px; text-align: left; align-items: center; }
  .flow-node .flow-dot { grid-area: dot; align-self: center; width: 72px; height: 72px; }
  .flow-node .flow-dot svg { width: 28px; height: 28px; }
  .flow-node .flow-step { grid-area: step; margin-top: 0; }
  .flow-node .flow-name { grid-area: name; margin-top: 0; }
  .flow-node .flow-desc { grid-area: desc; margin-top: 2px; max-width: none; min-width: 0;
    overflow-wrap: break-word; word-break: break-word; }
  .bento { grid-template-columns: 1fr; }
  .card-span2, .card-span3 { grid-column: span 1; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--hairline); }
  .metric:last-child { border-bottom: none; }
  .hero-frame { transform: none; }
  .cta-wrap { padding: 36px 24px; }
  .nav-actions .btn-ghost { display: none; }
  .phones { transform: scale(.85); }
}

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

/* ============================================================
   ENHANCEMENTS — scroll progress, magnetic CTA
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: var(--grad-brand); box-shadow: 0 0 12px rgba(77,139,255,.7);
  transition: width .1s linear;
}
.magnetic { transition: transform .25s var(--ease), box-shadow .3s, background .3s; will-change: transform; }
@keyframes glowpulse {
  0%, 100% { box-shadow: 0 10px 40px -8px rgba(47,160,230,.5); }
  50%      { box-shadow: 0 12px 56px -6px rgba(47,160,230,.9); }
}
.glow-pulse { animation: glowpulse 2.8s ease-in-out infinite; }
@media (max-width: 760px) {
  .hero-stage { perspective: none; }
  .dash-main { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(3, 1fr); }
}
