/* =====================================================
   AnchorPoint IT — Design System 3.0
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --black:      #04060b;
  --surface:    #090e18;
  --surface2:   #0d1621;
  --border:     rgba(255,255,255,0.06);
  --border-hi:  rgba(46,143,255,0.22);
  --blue:       #2e8fff;
  --blue-dim:   #1a5fa8;
  --blue-glow:  rgba(46,143,255,0.2);
  --cyan:       #00d4ff;
  --cyan-glow:  rgba(0,212,255,0.15);
  --green:      #00e5a0;
  --silver:     #c8d4e0;
  --white:      #eef2f7;
  --muted:      #5d6d80;
  --mono:       'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --container:  1100px;
  --gutter:     clamp(20px, 5vw, 80px);
  --radius:     8px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
p, li, a { overflow-wrap: anywhere; word-break: break-word; }

.container {
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* Dot grid — replaces line grid */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(46,143,255,0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 10%, transparent 100%);
  pointer-events: none;
}

/* ── HEADER ── */
.ap-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4,6,11,0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.ap-header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 72px;
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.ap-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.ap-mark { height: 42px; width: 42px; object-fit: contain; }
.ap-brand-text { display: flex; flex-direction: column; }

.ap-brand-name {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.04em; color: var(--white); line-height: 1;
}
.ap-brand-name span { color: var(--cyan); }

.ap-brand-tagline {
  font-size: 0.62rem; letter-spacing: 0.1em; color: var(--muted);
  text-transform: uppercase; margin-top: 3px;
  font-family: var(--mono);
}

.ap-nav {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ap-nav::-webkit-scrollbar { display: none; }

.ap-nav a:not(.ap-btn--primary) {
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; padding: 8px 14px; border-radius: 6px;
  white-space: nowrap; min-height: 44px;
  display: inline-flex; align-items: center;
  transition: color 0.2s, background 0.2s;
}
.ap-nav a:not(.ap-btn--primary):hover,
.ap-nav a.active { color: var(--white); background: rgba(46,143,255,0.07); }

/* ── BUTTONS ── */
.ap-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 6px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.25s, border-color 0.2s, color 0.2s;
}

.ap-btn--primary, .btn.primary {
  background: var(--blue); color: #fff; border: 1px solid transparent;
  box-shadow: 0 0 0 0 transparent, 0 2px 20px rgba(46,143,255,0.3);
}
.ap-btn--primary:hover, .btn.primary:hover {
  background: #1e7de8; transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.3), 0 6px 32px rgba(46,143,255,0.5);
}

.ap-btn--ghost, .btn {
  background: transparent; color: var(--silver); border: 1px solid var(--border);
}
.ap-btn--ghost:hover, .btn:hover {
  border-color: var(--border-hi); color: var(--cyan);
  background: rgba(0,212,255,0.05); transform: translateY(-1px);
}

/* ── HERO ── */
.ap-hero-section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px var(--gutter) 80px; overflow: hidden;
}

.hero-glow {
  position: absolute; top: -15%; left: 40%; transform: translateX(-50%);
  width: 1200px; height: 800px;
  background:
    radial-gradient(ellipse at 40% 35%, rgba(46,143,255,0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 65% 25%, rgba(0,212,255,0.07) 0%, transparent 50%);
  pointer-events: none;
}

.ap-hero-content { position: relative; z-index: 2; max-width: 660px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--cyan); margin-bottom: 24px;
}
.hero-eyebrow .prompt { color: var(--blue); margin-right: 4px; }
.hero-eyebrow .cursor {
  display: inline-block; width: 7px; height: 13px;
  background: var(--cyan); opacity: 0.9; border-radius: 1px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:0.9} 50%{opacity:0} }

.ap-h1, h1 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.0; letter-spacing: -0.02em; color: var(--white);
  margin-bottom: 24px; max-width: none;
}

/* Gradient text on italics in headlines */
.ap-h1 em, h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--blue) 20%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ap-hero-sub {
  font-size: 1.05rem; font-weight: 300; color: var(--silver);
  max-width: 500px; margin-bottom: 44px; line-height: 1.75;
}
.ap-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: absolute; right: clamp(0px, 5vw, 60px); top: 50%;
  transform: translateY(-50%); width: clamp(280px, 40vw, 500px);
  opacity: 1; pointer-events: none;
}

/* ── TRUST STRIP ── */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px var(--gutter);
  display: flex; gap: 0; flex-wrap: wrap; align-items: stretch; justify-content: space-around;
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0 28px; text-align: center;
  flex: 1; min-width: 120px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-label {
  font-family: var(--mono); font-weight: 400; font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* ── SECTIONS ── */
.ap-section { padding: 96px var(--gutter); }
.ap-section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono); font-weight: 500; font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.section-label::before {
  content: '//';
  font-family: var(--mono);
  color: var(--blue);
  font-size: 1em;
  letter-spacing: -0.05em;
  font-weight: 700;
}

h2 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08; letter-spacing: -0.015em; color: var(--white); margin-bottom: 16px;
}
.section-sub {
  font-size: 0.96rem; font-weight: 300; color: var(--muted);
  max-width: 520px; margin-bottom: 56px; line-height: 1.75;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.service-card {
  background: var(--surface); padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: background 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  background: var(--surface2);
  box-shadow: inset 0 0 0 1px rgba(0,212,255,0.12);
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover::after { transform: scaleX(1); }

.service-num {
  font-family: var(--mono); font-weight: 400; font-size: 0.72rem;
  color: var(--blue); opacity: 0.5;
  position: absolute; top: 20px; right: 24px;
  letter-spacing: 0.05em;
}
.service-icon {
  width: 44px; height: 44px; background: rgba(46,143,255,0.06);
  border: 1px solid rgba(46,143,255,0.16); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.2rem;
  letter-spacing: 0.02em; color: var(--white); margin-bottom: 10px;
}
.service-card > p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.service-bullets { margin-top: 18px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-bullets li { font-size: 0.83rem; color: var(--silver); display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.service-bullets li::before { content: '→'; color: var(--cyan); flex-shrink: 0; font-size: 0.85em; }

/* ── STEPS ── */
.steps-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px 32px; position: relative; z-index: 1;
}
.steps-row::before {
  content: ''; position: absolute; top: 27px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,143,255,0.3) 20%, rgba(0,212,255,0.2) 80%, transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-num {
  width: 54px; height: 54px; border-radius: 6px;
  background: rgba(46,143,255,0.05);
  border: 1px solid rgba(46,143,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 500; font-size: 1rem;
  color: var(--cyan); margin-bottom: 24px; letter-spacing: 0.05em;
}
.step h3 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.03em; color: var(--white); margin-bottom: 8px; }
.step p { font-size: 0.86rem; color: var(--muted); line-height: 1.65; max-width: 240px; }

/* ── ABOUT ── */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px; position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.about-card .big-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.75rem; color: var(--white); margin-bottom: 2px; }
.about-card .title { font-family: var(--mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin-bottom: 20px; }
.about-card .bio { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tag {
  font-family: var(--mono); font-weight: 400; font-size: 0.68rem;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 11px;
  border-radius: 4px; background: rgba(46,143,255,0.06);
  border: 1px solid rgba(46,143,255,0.18); color: var(--blue);
}
.about-text h2 { margin-bottom: 18px; }
.about-text p { font-size: 0.94rem; color: var(--silver); line-height: 1.75; margin-bottom: 14px; max-width: 54ch; }

/* ── CTA ── */
.cta-section { position: relative; text-align: center; overflow: hidden; }
.cta-inner { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 500px;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(46,143,255,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 65% 50%, rgba(0,212,255,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section .cta-inner > p { font-size: 0.96rem; color: var(--muted); margin-bottom: 40px; max-width: none; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── PAGE HERO ── */
.page-hero {
  padding: clamp(60px, 8vw, 100px) var(--gutter) clamp(40px, 5vw, 60px);
  position: relative; border-bottom: 1px solid var(--border); overflow: hidden;
}
.page-hero .grid-bg { mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 100%); }
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 400;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.page-hero-eyebrow::before { content: '//'; font-family: var(--mono); color: var(--blue); font-weight: 700; letter-spacing: -0.05em; margin-right: 2px; }
.page-hero-title { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; color: var(--white); margin-bottom: 14px; letter-spacing: -0.015em; }
.page-hero-subtitle { font-size: 1rem; font-weight: 300; color: var(--silver); max-width: 560px; line-height: 1.75; }
.page-hero-inner { position: relative; z-index: 2; }

/* ── CONTENT SECTIONS ── */
.content-section { padding: 72px var(--gutter); }
.content-section + .content-section { border-top: 1px solid var(--border); }
.content-section h2 { margin-bottom: 20px; }
.content-section p { font-size: 0.94rem; color: var(--silver); line-height: 1.75; max-width: 62ch; margin-bottom: 14px; }
.content-section ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.content-section ul li { font-size: 0.9rem; color: var(--silver); display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.content-section ul li::before { content: '→'; color: var(--cyan); flex-shrink: 0; font-size: 0.85em; }
.content-section ul li strong { color: var(--white); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 40px; }
.feature-card { background: var(--surface); padding: 32px 28px; transition: background 0.2s, box-shadow 0.2s; }
.feature-card:hover { background: var(--surface2); box-shadow: inset 0 0 0 1px rgba(0,212,255,0.1); }
.feature-card h3 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; color: var(--white); margin-bottom: 10px; }
.feature-card p { font-size: 0.86rem; color: var(--muted); margin-bottom: 0; max-width: none; }
.feature-card ul { margin-top: 14px; margin-bottom: 0; }

/* ── CONSULT FORM ── */
.consult-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.consult-aside h2 { margin-bottom: 16px; }
.consult-aside p { font-size: 0.92rem; color: var(--silver); line-height: 1.7; max-width: none; margin-bottom: 12px; }
.consult-aside-tags { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.consult-aside-tag { display: flex; align-items: flex-start; gap: 10px; font-size: 0.86rem; color: var(--silver); }
.consult-aside-tag strong { color: var(--white); font-weight: 500; display: block; margin-bottom: 1px; }
.consult-aside-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-top: 6px; flex-shrink: 0; }

.ap-form { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 36px; }
.ap-form label { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-family: var(--mono); }
.ap-form input, .ap-form select, .ap-form textarea { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 7px; border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--white); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.ap-form input:focus, .ap-form select:focus, .ap-form textarea:focus { border-color: rgba(0,212,255,0.35); background: rgba(0,212,255,0.03); box-shadow: 0 0 0 3px rgba(0,212,255,0.06); }
.ap-form textarea { min-height: 120px; resize: vertical; }
.ap-form input::placeholder, .ap-form textarea::placeholder { color: var(--muted); }
.ap-form select option { background: var(--surface); color: var(--white); }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ap-span-2 { grid-column: 1 / -1; }
.ap-check { display: flex; gap: 10px; align-items: flex-start; }
.ap-check input { width: auto; min-height: auto; margin-top: 4px; accent-color: var(--cyan); }
.ap-check label { text-transform: none; font-family: 'DM Sans', sans-serif; font-size: 0.86rem; color: var(--silver); letter-spacing: 0; margin-bottom: 0; }
.cf-turnstile { max-width: 100%; }

/* ── FOOTER ── */
.site-footer {
  padding: 36px var(--gutter);
  border-top: 1px solid var(--border);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,143,255,0.3) 30%, rgba(0,212,255,0.2) 70%, transparent);
}
.footer-inner { width: min(var(--container), 100% - (var(--gutter) * 2)); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-logo { height: 30px; width: 30px; object-fit: contain; }
.footer-brand-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--white); letter-spacing: 0.04em; }
.footer-brand-name span { color: var(--cyan); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.78rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { width: 100%; font-size: 0.72rem; color: rgba(93,109,128,0.5); font-family: var(--mono); }

/* ── SUCCESS PAGE ── */
.success-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); }
.success-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 56px 48px; max-width: 520px; text-align: center; position: relative; overflow: hidden; }
.success-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-icon svg { width: 28px; height: 28px; stroke: var(--cyan); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success-card h1 { font-size: 2rem; margin-bottom: 12px; }
.success-card p { font-size: 0.94rem; color: var(--silver); max-width: none; margin-bottom: 32px; }

/* ── LEGAL ── */
.legal-content { padding: 60px var(--gutter); max-width: 800px; margin: 0 auto; }
.legal-content h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal-content .updated { font-size: 0.8rem; color: var(--muted); margin-bottom: 40px; font-family: var(--mono); }
.legal-content h2 { font-size: 1.35rem; margin-top: 36px; margin-bottom: 12px; }
.legal-content p { font-size: 0.9rem; color: var(--silver); line-height: 1.75; margin-bottom: 14px; max-width: none; }
.legal-content ul { list-style: disc; padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { font-size: 0.9rem; color: var(--silver); line-height: 1.65; margin-bottom: 4px; }
.legal-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .consult-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .ap-grid { grid-template-columns: 1fr; }
  .steps-row::before { display: none; }
  .trust-strip { flex-wrap: wrap; gap: 0; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; min-width: 45%; }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }
  .ap-header-inner { height: 64px; }
  .ap-brand-tagline { display: none; }
  .ap-hero-section { padding-top: 100px; }
}
@media (max-width: 480px) {
  .ap-hero-actions, .cta-actions { flex-direction: column; }
  .ap-form { padding: 24px 20px; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.5s; }

:focus-visible { outline: 2px solid rgba(0,212,255,0.6); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── MOBILE NAV ── */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 10px;
  background: none; border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--silver); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .ap-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(4,6,11,0.97); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px var(--gutter) 24px; gap: 4px;
  }
  .ap-nav.is-open { display: flex; }
  .ap-nav a:not(.ap-btn--primary) { padding: 12px 16px; font-size: 1rem; border-radius: 6px; }
  .ap-nav .ap-btn--primary { margin-top: 8px; width: 100%; justify-content: center; padding: 13px 22px; font-size: 0.95rem; }
}

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL SYSTEM
   ══════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(52px);
  transition: opacity 0.95s cubic-bezier(0.16,1,0.3,1),
              transform 0.95s cubic-bezier(0.16,1,0.3,1);
}
.reveal--left  { transform: translateX(-80px); }
.reveal--right { transform: translateX(80px); }
.reveal--scale { transform: scale(0.87); }

.reveal.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.22s; }
.stagger-3 { transition-delay: 0.36s; }
.stagger-4 { transition-delay: 0.52s; }
.stagger-5 { transition-delay: 0.7s; }

/* ══════════════════════════════════════════════════════
   HERO — SCAN LINE
   ══════════════════════════════════════════════════════ */

.scan-line {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,212,255,0.0) 10%,
    rgba(0,212,255,0.95) 50%,
    rgba(0,212,255,0.0) 90%,
    transparent 100%);
  box-shadow: 0 0 18px 2px rgba(0,212,255,0.45), 0 0 60px rgba(0,212,255,0.15);
  pointer-events: none;
  z-index: 3;
  animation: scanDown 7s linear infinite;
}
@keyframes scanDown {
  0%   { top: 0;    opacity: 0; }
  3%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ══════════════════════════════════════════════════════
   HERO — BREATHING GLOW + GRID PULSE
   ══════════════════════════════════════════════════════ */

.hero-glow {
  animation: glowBreathe 6s ease-in-out infinite;
}
@keyframes glowBreathe {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;    transform: translateX(-50%) scale(1.1); }
}

.grid-bg {
  animation: gridPulse 9s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

/* ══════════════════════════════════════════════════════
   HEADLINE — NEON PULSE + GLITCH
   ══════════════════════════════════════════════════════ */

.ap-h1 em, h1 em {
  animation: neonPulse 4s ease-in-out infinite;
}
@keyframes neonPulse {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(0,212,255,0.35)) drop-shadow(0 0 40px rgba(46,143,255,0.18)); }
  50%       { filter: drop-shadow(0 0 26px rgba(0,212,255,0.65)) drop-shadow(0 0 70px rgba(46,143,255,0.32)); }
}

@keyframes glitch {
  0%, 87%, 100% { transform: none; }
  88%           { transform: translateX(-3px) skewX(-0.5deg); }
  89%           { transform: translateX(3px)  skewX(0.5deg); }
  90%           { transform: translateX(-1px); }
  91%           { transform: none; }
}
.ap-h1.do-glitch { animation: glitch 9s ease-in-out infinite; }

/* ══════════════════════════════════════════════════════
   HEADER — SCROLLED STATE
   ══════════════════════════════════════════════════════ */

.ap-header { transition: background 0.35s, box-shadow 0.35s; }
.ap-header.is-scrolled {
  background: rgba(4,6,11,0.98);
  box-shadow: 0 1px 0 var(--border), 0 4px 40px rgba(0,0,0,0.75);
}

/* ══════════════════════════════════════════════════════
   SECTION ACCENT LINES
   ══════════════════════════════════════════════════════ */

.ap-section--alt { position: relative; }
.ap-section--alt::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(46,143,255,0.5) 20%,
    rgba(0,212,255,0.4) 50%,
    rgba(46,143,255,0.5) 80%,
    transparent 100%);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   ENHANCED CARD HOVERS
   ══════════════════════════════════════════════════════ */

.service-card {
  transition: background 0.25s, box-shadow 0.35s, transform 0.32s;
}
.service-card:hover {
  background: var(--surface2);
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 1px rgba(0,212,255,0.18),
    0 14px 56px rgba(0,0,0,0.55),
    0 0 80px rgba(46,143,255,0.07);
}

/* ══════════════════════════════════════════════════════
   STORY — LEFT BORDER SWEEP ON HOVER
   ══════════════════════════════════════════════════════ */

.story { position: relative; }
.story::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.story:hover::before   { transform: scaleY(1); }
.story:hover           { background: rgba(46,143,255,0.03); }
.story:hover .story-body h3 { color: var(--cyan); }

/* ══════════════════════════════════════════════════════
   DOWNLOAD CARDS — LIFT ON HOVER
   ══════════════════════════════════════════════════════ */

.download-card { transition: background 0.22s, box-shadow 0.3s, transform 0.3s; }
.download-card:hover {
  background: var(--surface2);
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(0,212,255,0.15),
    0 10px 44px rgba(0,0,0,0.45);
}
