/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: #070c14; color: #e2e8f0; line-height: 1.6; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.2; color: #f8fafc; }
a { text-decoration: none; }
img { max-width: 100%; }

:root {
  --bg:       #070c14;
  --surface:  #0c1520;
  --surface2: #101d2f;
  --border:   rgba(59,130,246,0.12);
  --accent:   #3b82f6;
  --green:    #22c55e;
  --yellow:   #f59e0b;
  --red:      #ef4444;
  --muted:    #64748b;
  --text:     #e2e8f0;
  --heading:  #f8fafc;
  --radius:   12px;
  --max-w:    1200px;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* ── Gradient Text ───────────────────────────────────────────── */
.grad { background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #38bdf8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-green { background: linear-gradient(135deg, #22c55e, #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.22s; border: none; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; box-shadow: 0 4px 24px rgba(59,130,246,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(59,130,246,0.55); }
.btn-outline { background: transparent; color: #e2e8f0; border: 1.5px solid rgba(255,255,255,0.12); }
.btn-outline:hover { border-color: #3b82f6; color: #60a5fa; background: rgba(59,130,246,0.08); }
.btn-lg { padding: 14px 36px; font-size: 1rem; border-radius: 10px; }
.btn-green { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; box-shadow: 0 4px 24px rgba(34,197,94,0.3); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(34,197,94,0.5); }
.btn-demo { background: linear-gradient(135deg, #0d9488, #2dd4bf); color: #fff; box-shadow: 0 4px 20px rgba(20,184,166,0.3); }
.btn-demo:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(20,184,166,0.5); }
.download-section { margin-top: 20px; padding: 16px; background: rgba(22,163,74,0.08); border: 1px solid rgba(34,197,94,0.2); border-radius: 10px; text-align: center; }
.download-section p { color: #94a3b8; font-size: 0.88rem; margin-bottom: 12px; }

/* ── Language Toggle Button ──────────────────────────────────── */
.btn-lang {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background .15s, border-color .15s;
  font-family: inherit;
  line-height: 1;
}
.btn-lang:hover { background: rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.5); }

/* ── Navbar ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(7,12,20,0.85); border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark { width: 36px; height: 36px; background: linear-gradient(135deg, #3b82f6, #6366f1); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.nav-logo-mark svg { width: 20px; height: 20px; fill: white; }
.nav-logo-name { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.2rem; color: #f8fafc; letter-spacing: -0.02em; }
.nav-logo-name span { color: #60a5fa; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: #94a3b8; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #f8fafc; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-hamburger { display: none; background: none; border: none; color: #e2e8f0; cursor: pointer; padding: 6px; }
.mobile-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: #0c1520; border-bottom: 1px solid rgba(59,130,246,0.15); padding: 20px 24px; z-index: 190; flex-direction: column; gap: 16px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #94a3b8; font-size: 1rem; font-weight: 500; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }

/* ── Hero ─────────────────────────────────────────────────────── */
#hero { padding: 156px 0 96px; position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; }
.hero-bg-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-bg-glow { position: absolute; top: -30%; left: 30%; width: 900px; height: 700px; background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 65%); pointer-events: none; }
.hero-bg-glow2 { position: absolute; bottom: -20%; right: -10%; width: 600px; height: 500px; background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 65%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 100px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: #60a5fa; font-size: 0.78rem; font-weight: 600; margin-bottom: 24px; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: blink 1.8s ease-in-out infinite; }
.hero-title { font-size: 3.6rem; line-height: 1.12; margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; color: #94a3b8; margin-bottom: 40px; line-height: 1.75; max-width: 510px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); font-size: 0.78rem; color: #64748b; }
.hero-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* Dashboard Mockup */
.dash-wrap { position: relative; animation: floatY 4s ease-in-out infinite; }
.dash-glow-ring { position: absolute; inset: -20px; border-radius: 24px; background: radial-gradient(ellipse, rgba(59,130,246,0.15) 0%, transparent 70%); pointer-events: none; }
.dashboard-mock {
  background: #0c1520; border: 1px solid rgba(59,130,246,0.2);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(59,130,246,0.08);
}
.dm-topbar { background: #0a1018; padding: 10px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(59,130,246,0.1); }
.dm-dots { display: flex; gap: 6px; }
.dm-dot { width: 10px; height: 10px; border-radius: 50%; }
.dm-dot.r { background: #ef4444; } .dm-dot.y { background: #f59e0b; } .dm-dot.g { background: #22c55e; }
.dm-url { flex: 1; background: #111c2e; border-radius: 5px; padding: 4px 10px; font-size: 0.65rem; color: #334155; font-family: monospace; margin: 0 8px; }
.dm-body { display: grid; grid-template-columns: 148px 1fr; height: 300px; }
.dm-sidebar { background: #080e18; border-right: 1px solid rgba(59,130,246,0.08); padding: 12px 0; overflow: hidden; }
.dm-nav { padding: 7px 14px; font-size: 0.65rem; color: #334155; display: flex; align-items: center; gap: 7px; }
.dm-nav.act { color: #60a5fa; background: rgba(59,130,246,0.08); border-right: 2px solid #3b82f6; }
.dm-nav-icon { width: 13px; height: 13px; border-radius: 3px; background: currentColor; opacity: 0.5; flex-shrink: 0; }
.dm-main { padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.dm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dm-kpi { background: #111c2e; border: 1px solid rgba(59,130,246,0.1); border-radius: 8px; padding: 9px 11px; }
.dm-kpi-lbl { font-size: 0.58rem; color: #334155; margin-bottom: 3px; }
.dm-kpi-val { font-size: 1rem; font-weight: 700; font-family: monospace; }
.dm-kpi-val.g { color: #22c55e; } .dm-kpi-val.b { color: #60a5fa; } .dm-kpi-val.y { color: #f59e0b; }
.dm-chart-box { flex: 1; background: #111c2e; border: 1px solid rgba(59,130,246,0.1); border-radius: 8px; padding: 10px; }
.dm-chart-hd { font-size: 0.6rem; color: #334155; margin-bottom: 6px; display: flex; justify-content: space-between; }
.dm-chart-hd span { color: #22c55e; }
canvas#dmChart { width: 100%; height: 100%; }

/* ── Stats Band ──────────────────────────────────────────────── */
#stats { padding: 56px 0; background: #060a10; border-top: 1px solid rgba(59,130,246,0.08); border-bottom: 1px solid rgba(59,130,246,0.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,0.05); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2.6rem; font-weight: 800; font-family: 'Poppins', sans-serif; color: #f8fafc; line-height: 1; }
.stat-unit { font-size: 1.2rem; }
.stat-label { font-size: 0.85rem; color: #475569; margin-top: 6px; }

/* ── Section Shared ──────────────────────────────────────────── */
.sec-tag { display: inline-block; padding: 4px 14px; border-radius: 100px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: #60a5fa; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.sec-title { font-size: 2.2rem; margin-bottom: 14px; }
.sec-sub { color: #64748b; font-size: 0.95rem; line-height: 1.75; }

/* ── Features ────────────────────────────────────────────────── */
#features .sec-center { text-align: center; margin-bottom: 60px; }
#features .sec-center .sec-sub { max-width: 580px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-card {
  background: #0c1520; border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 28px 22px;
  transition: all 0.28s; position: relative; overflow: hidden;
}
.feat-card::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); background: linear-gradient(135deg, rgba(59,130,246,0.05), transparent); opacity: 0; transition: opacity 0.3s; }
.feat-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,0.4); }
.feat-card:hover::after { opacity: 1; }
.feat-icon { width: 48px; height: 48px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.feat-icon.blue   { background: rgba(59,130,246,0.1); }
.feat-icon.green  { background: rgba(34,197,94,0.1); }
.feat-icon.purple { background: rgba(139,92,246,0.1); }
.feat-icon.orange { background: rgba(249,115,22,0.1); }
.feat-icon.cyan   { background: rgba(6,182,212,0.1); }
.feat-icon.rose   { background: rgba(244,63,94,0.1); }
.feat-icon.indigo { background: rgba(99,102,241,0.1); }
.feat-icon.teal   { background: rgba(20,184,166,0.1); }
.feat-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.feat-card p { font-size: 0.82rem; color: #64748b; line-height: 1.65; }

/* ── Protocols ───────────────────────────────────────────────── */
#protocols { background: #060a10; }
#protocols .sec-center { text-align: center; margin-bottom: 56px; }
#protocols .sec-center .sec-sub { max-width: 580px; margin: 0 auto; }
.proto-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.proto-card { background: #0c1520; border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius); padding: 24px 18px; text-align: center; transition: all 0.28s; }
.proto-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); }
.proto-icon { font-size: 2rem; margin-bottom: 10px; }
.proto-badge { display: inline-block; padding: 3px 10px; border-radius: 5px; font-size: 0.7rem; font-weight: 700; font-family: monospace; letter-spacing: 0.04em; margin-bottom: 10px; }
.pb-modbus  { background: rgba(30,58,95,0.6);  color: #60a5fa; }
.pb-opcua   { background: rgba(67,20,7,0.6);   color: #fb923c; }
.pb-bacnet  { background: rgba(15,45,42,0.6);  color: #2dd4bf; }
.pb-mqtt    { background: rgba(12,35,56,0.6);  color: #38bdf8; }
.pb-script  { background: rgba(45,27,94,0.6);  color: #a78bfa; }
.proto-card h3 { font-size: 0.85rem; margin-bottom: 6px; }
.proto-card p { font-size: 0.75rem; color: #475569; line-height: 1.5; }
.proto-devices { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.proto-dev { font-size: 0.62rem; padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,0.04); color: #334155; }

/* ── How It Works ────────────────────────────────────────────── */
#how { }
#how .sec-center { text-align: center; margin-bottom: 64px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; }
.how-grid::before { content: ''; position: absolute; top: 28px; left: calc(33.33% - 24px); right: calc(33.33% - 24px); height: 2px; background: linear-gradient(90deg, #3b82f640, #6366f140, #3b82f640); }
.how-step { text-align: center; position: relative; }
.how-num { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #6366f1); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 800; font-family: 'Poppins', sans-serif; color: white; margin: 0 auto 20px; box-shadow: 0 0 0 8px rgba(59,130,246,0.1); }
.how-step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.how-step p { font-size: 0.85rem; color: #64748b; line-height: 1.7; }
.how-code { display: inline-block; background: #0c1520; border: 1px solid rgba(59,130,246,0.15); border-radius: 6px; padding: 6px 12px; font-size: 0.72rem; font-family: monospace; color: #60a5fa; margin-top: 10px; }

/* ── Platform ────────────────────────────────────────────────── */
#platform { background: #060a10; }
#platform .sec-center { text-align: center; margin-bottom: 56px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plat-card { background: #0c1520; border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius); padding: 32px 28px; transition: all 0.28s; }
.plat-card:hover { border-color: rgba(59,130,246,0.25); transform: translateY(-4px); }
.plat-icon { font-size: 3rem; margin-bottom: 14px; }
.plat-badge { display: inline-block; padding: 3px 10px; border-radius: 5px; font-size: 0.7rem; font-weight: 700; font-family: monospace; background: rgba(30,58,95,0.5); color: #60a5fa; margin-bottom: 12px; }
.plat-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.plat-card p { font-size: 0.83rem; color: #64748b; line-height: 1.65; margin-bottom: 16px; }
.plat-specs { display: flex; flex-direction: column; gap: 5px; }
.plat-spec { font-size: 0.78rem; color: #475569; display: flex; align-items: center; gap: 8px; }
.plat-spec::before { content: '✓'; color: #22c55e; font-weight: 700; flex-shrink: 0; }

/* ── Pricing ─────────────────────────────────────────────────── */
#pricing { }
#pricing .sec-center { text-align: center; margin-bottom: 56px; }
#pricing .sec-center .sec-sub { max-width: 560px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: start; }
.price-card { background: #0c1520; border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 26px 20px; display: flex; flex-direction: column; transition: all 0.28s; position: relative; }
.price-card:hover:not(.feat-price) { border-color: rgba(59,130,246,0.25); }
.price-card.feat-price { border-color: rgba(99,102,241,0.4); background: linear-gradient(160deg, #0e1a32, #0c1520); box-shadow: 0 0 40px rgba(99,102,241,0.1); }
.price-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; font-size: 0.62rem; font-weight: 700; padding: 3px 12px; border-radius: 100px; letter-spacing: 0.1em; white-space: nowrap; }
.price-tier { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; margin-bottom: 6px; }
.price-tags-max { font-size: 1.6rem; font-weight: 800; font-family: 'Poppins', sans-serif; color: #f8fafc; margin-bottom: 2px; }
.price-tags-label { font-size: 0.75rem; color: #475569; margin-bottom: 14px; }
.price-divider { height: 1px; background: rgba(59,130,246,0.08); margin: 14px 0; }
.price-features { flex: 1; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.price-feat { font-size: 0.78rem; color: #64748b; display: flex; align-items: flex-start; gap: 7px; line-height: 1.4; }
.price-feat::before { content: '✓'; color: #22c55e; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.price-feat.no { color: #1e293b; }
.price-feat.no::before { content: '—'; color: #1e293b; }
.price-card .btn { width: 100%; justify-content: center; padding: 10px 20px; font-size: 0.82rem; border-radius: 7px; }
.price-note { text-align: center; margin-top: 28px; font-size: 0.82rem; color: #475569; }
.price-note strong { color: #60a5fa; }

/* ── FAQ ─────────────────────────────────────────────────────── */
#faq { background: #060a10; }
#faq .sec-center { text-align: center; margin-bottom: 56px; }
.faq-wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #0c1520; border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: none; border: none; color: #e2e8f0; font-size: 0.9rem; font-weight: 600; text-align: left; cursor: pointer; transition: color 0.2s; font-family: inherit; gap: 16px; }
.faq-q:hover { color: #60a5fa; }
.faq-arr { font-size: 0.7rem; color: #475569; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arr { transform: rotate(180deg); color: #60a5fa; }
.faq-item.open .faq-q { color: #60a5fa; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 24px 20px; color: #64748b; font-size: 0.875rem; line-height: 1.75; }
.faq-a-inner code { background: rgba(59,130,246,0.1); color: #60a5fa; padding: 1px 6px; border-radius: 4px; font-size: 0.85em; font-family: monospace; }

/* ── CTA ─────────────────────────────────────────────────────── */
#cta { background: #0c1520; border-top: 1px solid rgba(59,130,246,0.12); border-bottom: 1px solid rgba(59,130,246,0.12); text-align: center; position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%); pointer-events: none; }
#cta h2 { font-size: 2.4rem; margin-bottom: 14px; position: relative; }
#cta p { color: #64748b; font-size: 1rem; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; position: relative; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-email { margin-top: 20px; font-size: 0.85rem; color: #475569; position: relative; }
.cta-email a { color: #60a5fa; }

/* ── Footer ──────────────────────────────────────────────────── */
footer { background: #040810; padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-text { color: #334155; font-size: 0.85rem; line-height: 1.65; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #334155; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: #475569; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul a:hover { color: #e2e8f0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.78rem; color: #1e293b; }
.footer-made { font-size: 0.78rem; color: #334155; }
.footer-contact a { color: #60a5fa; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
@keyframes floatY { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .proto-grid     { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid   { grid-template-columns: repeat(3, 1fr); }
  .footer-top     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-title     { font-size: 2.8rem; }
}
@media (max-width: 860px) {
  .hero-inner     { grid-template-columns: 1fr; }
  .dash-wrap      { display: none; }
  .how-grid       { grid-template-columns: 1fr; gap: 32px; }
  .how-grid::before { display: none; }
  .platform-grid  { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: repeat(2, 1fr); }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .stat-item      { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 24px; }
  .nav-links      { display: none; }
  .nav-actions .btn-outline { display: none; }
  .nav-hamburger  { display: block; }
  section         { padding: 72px 0; }
}
@media (max-width: 600px) {
  .hero-title     { font-size: 2.1rem; }
  .features-grid  { grid-template-columns: 1fr; }
  .proto-grid     { grid-template-columns: 1fr 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; }
  .footer-top     { grid-template-columns: 1fr; }
  .sec-title      { font-size: 1.8rem; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  #cta h2         { font-size: 1.8rem; }
}
@media (max-width: 420px) {
  .proto-grid     { grid-template-columns: 1fr; }
}

/* ── Contact Modal ───────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(4, 8, 16, 0.85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 20px;
  animation: modalFadeIn 0.22s ease;
}
.modal-overlay.open { display: flex; }

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-box {
  background: #0c1520;
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 18px;
  width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  padding: 32px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(59,130,246,0.06);
  animation: modalSlideUp 0.28s ease;
  position: relative;
}
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.modal-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.modal-title { font-size: 1.3rem; color: #f8fafc; margin-bottom: 4px; }
.modal-sub { font-size: 0.82rem; color: #64748b; }
.modal-close {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: #64748b; border-radius: 8px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.modal-close:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #ef4444; }

/* Type pills */
.modal-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.mtype-pill { cursor: pointer; }
.mtype-pill input { display: none; }
.mtype-pill span {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  font-size: 0.78rem; font-weight: 500; color: #64748b;
  transition: all 0.18s; cursor: pointer;
}
.mtype-pill input:checked + span {
  background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.4);
  color: #60a5fa; font-weight: 600;
}
.mtype-pill:hover span { border-color: rgba(59,130,246,0.25); color: #94a3b8; }

/* Form grid */
.mform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.mfield { display: flex; flex-direction: column; gap: 5px; }
.mfield-full { grid-column: 1 / -1; }
.mlabel { font-size: 0.78rem; font-weight: 600; color: #94a3b8; }
.mreq { color: #ef4444; }
.mhint { font-size: 0.72rem; color: #475569; margin-top: 4px; }
.minput {
  background: #070c14; border: 1.5px solid rgba(59,130,246,0.12);
  border-radius: 8px; padding: 10px 13px;
  font-size: 0.875rem; color: #e2e8f0; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%; outline: none;
}
.minput::placeholder { color: #334155; }
.minput:focus { border-color: rgba(59,130,246,0.45); box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }
.minput.error { border-color: rgba(239,68,68,0.5); }
textarea.minput { resize: vertical; min-height: 80px; }

/* Submit button */
.msubmit-btn { width: 100%; justify-content: center; padding: 13px 24px; font-size: 0.9rem; border-radius: 9px; gap: 8px; }

/* Feedback messages */
.form-msg {
  padding: 12px 16px; border-radius: 8px; font-size: 0.85rem;
  margin-bottom: 14px; font-weight: 500;
}
.form-msg.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
.form-msg.info  { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); color: #93c5fd; }

/* Success state */
.form-success { text-align: center; padding: 24px 16px; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(34,197,94,0.15); border: 2px solid rgba(34,197,94,0.4);
  color: #22c55e; font-size: 2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  animation: successPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes successPop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success h3 { font-size: 1.2rem; margin-bottom: 10px; color: #f8fafc; }
.form-success p { font-size: 0.875rem; color: #64748b; line-height: 1.7; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spin-icon { animation: spin 0.8s linear infinite; }

@media (max-width: 520px) {
  .modal-box { padding: 24px 20px; }
  .mform-grid { grid-template-columns: 1fr; }
  .modal-types { gap: 6px; }
}
