/* ============================================================
   ORIONA SOLUTIONS — Design System v3.0
   100% Mobile-First Architecture · Fully Responsive
   Fluid Typography · Performance & Accessibility Optimized
   ============================================================ */

/* ─── 1. DESIGN TOKENS ───────────────────────────────────── */
:root {
  --cyan: #00FFFF;
  --cyan-dim: rgba(0,255,255,.1);
  --cyan-mid: rgba(0,255,255,.25);
  --cyan-glow: rgba(0,255,255,.35);
  --bg: #090909;
  --bg-alt: #101012;
  --bg-card: #0d0d0f;
  --text: #efefef;
  --text-dim: #94949a;
  --text-muted: #4e4e54;
  --border: #1c1c20;
  --border-soft: rgba(255,255,255,.05);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --w-regular: 400; --w-medium: 500; --w-semibold: 600; --w-bold: 700;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-io: cubic-bezier(.4,0,.2,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --radius-xs: 2px; --radius-sm: 6px; --radius-md: 12px; --radius-full: 100px;
}

/* ─── 2. RESET & BASE (MOBILE DEFAULT: 0px+) ──────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  touch-action: manipulation;
}

/* Fix iOS input zoom */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  font-size: 16px;
}

/* ─── 3. SCROLL PROGRESS BAR ─────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(0,200,200,.6) 100%);
  z-index: 9999;
  will-change: width;
  box-shadow: 0 0 12px var(--cyan-glow), 0 0 4px var(--cyan);
}

/* ─── 4. NAVIGATION (MOBILE-FIRST) ───────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  width: 100%;
  transition: background .4s var(--ease-io), backdrop-filter .4s, padding .4s var(--ease-io), border-color .4s;
}

.nav.scrolled {
  background: rgba(9, 9, 9, .92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: var(--w-bold);
  letter-spacing: -.5px;
  position: relative;
  z-index: 1001;
  transition: transform .3s var(--ease-bounce);
}

.nav-logo-icon {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform .35s var(--ease-bounce), filter .35s;
}

.nav-logo:hover .nav-logo-icon {
  transform: rotate(-10deg) scale(1.1);
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 255, 255, .75));
}

.nav-logo-text {
  display: inline-flex;
  align-items: center;
}

.nav-logo-text span {
  color: var(--cyan);
}

/* Glitch effect on hover */
.nav-logo::before, .nav-logo::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 38px;
  opacity: 0;
  pointer-events: none;
  font-size: 20px;
  font-weight: var(--w-bold);
}

.nav-logo:hover::before {
  animation: glitch-a .35s steps(1) forwards;
  color: var(--cyan);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  transform: translateX(-2px);
}

.nav-logo:hover::after {
  animation: glitch-b .35s steps(1) .1s forwards;
  color: #ff2dff;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  transform: translateX(2px);
}

/* Mobile Navigation Drawer */
.nav-links {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 9, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  z-index: 999;
  padding: 80px 24px 40px;
  overflow-y: auto;
}

.nav-links.open {
  display: flex;
  animation: fade-in-up .3s var(--ease-out) forwards;
}

.nav-links a {
  font-size: 20px;
  font-weight: var(--w-medium);
  color: var(--text-dim);
  transition: color .25s;
  position: relative;
  letter-spacing: .01em;
  padding: 8px 16px;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width .3s var(--ease-io);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 60%;
}

.nav-cta {
  font-size: 15px;
  font-weight: var(--w-semibold);
  padding: 12px 28px;
  border: 1px solid rgba(0, 255, 255, .4);
  color: var(--cyan);
  border-radius: var(--radius-xs);
  margin-top: 12px;
  transition: background .25s, box-shadow .25s, transform .2s var(--ease-bounce);
}

.nav-cta:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 24px var(--cyan-glow);
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  z-index: 1001;
  cursor: pointer;
  border-radius: var(--radius-xs);
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .35s var(--ease-io), opacity .35s, width .35s;
  display: block;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── 5. HERO (MOBILE-FIRST) ─────────────────────────────── */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 20px 48px;
  position: relative;
  overflow: hidden;
  contain: layout;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .65;
  will-change: transform;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 70% 25%, rgba(0, 255, 255, .08) 0%, transparent 65%),
    radial-gradient(ellipse at 12% 80%, rgba(0, 255, 255, .04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--w-medium);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-label::before {
  content: "";
  width: 28px;
  height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero h1 {
  font-size: clamp(34px, 7.5vw, 92px);
  font-weight: var(--w-bold);
  line-height: 1.1;
  letter-spacing: -1.5px;
  max-width: 1200px;
  word-break: break-word;
  position: relative;
  z-index: 1;
  min-height: 3.3em; /* Fixed 3-line heading box so buttons NEVER move */
}

.hero h1 .highlight {
  color: var(--cyan);
}

.hero h1 .dim {
  color: var(--text-muted);
}

.typewriter-text {
  color: var(--cyan);
  display: inline-block;
  min-width: 12ch;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: .85em;
  background: var(--cyan);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

.hero-sub {
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--text-dim);
  max-width: 580px;
  margin-top: 24px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 36px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ─── 6. BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: var(--w-semibold);
  padding: 14px 28px;
  min-height: 48px;
  background: var(--cyan);
  color: var(--bg);
  border-radius: var(--radius-xs);
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: transform .25s var(--ease-bounce), box-shadow .25s;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .25s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 255, 255, .35);
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-ghost {
  font-size: 14px;
  font-weight: var(--w-medium);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  transition: color .25s, gap .3s var(--ease-bounce);
}

.btn-ghost::after {
  content: "→";
  transition: transform .25s var(--ease-bounce);
}

.btn-ghost:hover {
  color: var(--cyan);
  gap: 12px;
}

/* ─── 7. MARQUEE ─────────────────────────────────────────── */
.marquee-section {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
  width: 100%;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 36s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-size: clamp(20px, 4.5vw, 48px);
  font-weight: var(--w-bold);
  color: #2a2a32;
  padding: 0 20px;
  transition: color .3s;
  cursor: default;
  letter-spacing: -1px;
  user-select: none;
}

.marquee-item:hover {
  color: var(--cyan);
}

.marquee-sep {
  font-size: clamp(20px, 4.5vw, 48px);
  color: #1c1c20;
  padding: 0 10px;
  letter-spacing: -1px;
}

/* ─── 8. STATS (MOBILE: 2x2 GRID) ────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 40px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background .3s;
}

.stat:nth-child(2n) {
  border-right: none;
}

.stat:nth-child(3), .stat:nth-child(4) {
  border-bottom: none;
}

.stat::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width .6s var(--ease-out);
}

.stat:hover::after {
  width: 100%;
}

.stat:hover {
  background: var(--bg-alt);
}

.stat-num {
  font-size: clamp(36px, 7vw, 72px);
  font-weight: var(--w-bold);
  color: var(--cyan);
  letter-spacing: -1.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: var(--w-medium);
}

/* ─── 9. SECTION LAYOUT ──────────────────────────────────── */
.section-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--w-medium);
}

.section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(24px, 5.5vw, 56px);
  font-weight: var(--w-bold);
  line-height: 1.14;
  letter-spacing: -1px;
  margin-bottom: 24px;
  max-width: 900px;
  word-break: break-word;
}

.section-title .highlight {
  color: var(--cyan);
}

.section-body {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-dim);
  max-width: 680px;
  line-height: 1.68;
}

/* ─── 10. ABOUT ──────────────────────────────────────────── */
.about-section {
  border-top: 1px solid var(--border);
}

.about-locations {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.about-location {
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 255, .2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 255, 255, .03);
  font-weight: var(--w-medium);
  transition: background .25s, border-color .25s, transform .25s var(--ease-bounce);
}

.about-location:hover {
  background: rgba(0, 255, 255, .08);
  border-color: rgba(0, 255, 255, .4);
  transform: translateY(-1px);
}

/* ─── 11. SERVICES ───────────────────────────────────────── */
.services-section {
  border-top: 1px solid var(--border);
}

.services-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.services-header {
  padding: 56px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
}

.service-card {
  background: var(--bg);
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
  transition: background .35s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--cyan) 0%, transparent 100%);
  transition: height .45s var(--ease-out);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  background: var(--bg-alt);
}

.service-card-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,255,.07) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .35s;
  will-change: transform, opacity;
}

.service-card:hover .service-card-glow {
  opacity: 1;
}

.service-num {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: var(--w-bold);
  letter-spacing: 2.5px;
}

.service-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: var(--w-bold);
  margin-bottom: 14px;
  transition: color .3s;
  letter-spacing: -.5px;
  line-height: 1.25;
}

.service-card:hover .service-title {
  color: var(--cyan);
}

.service-desc {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.68;
  max-width: 480px;
  margin-bottom: 24px;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.service-tag {
  font-size: 11px;
  font-weight: var(--w-semibold);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: .3px;
  transition: border-color .3s, color .3s, background .3s;
}

.service-card:hover .service-tag {
  border-color: rgba(0, 255, 255, .3);
  color: rgba(0, 255, 255, .9);
  background: rgba(0, 255, 255, .04);
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: var(--w-medium);
  transition: color .25s, gap .3s var(--ease-bounce);
  margin-top: auto;
}

.service-card:hover .service-arrow {
  color: var(--cyan);
  gap: 10px;
}

/* ─── 12. PROCESS (MOBILE-FIRST) ─────────────────────────── */
.process-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.process-step {
  padding: 24px 0 24px 20px;
  position: relative;
  border-left: 1px solid var(--border);
}

.process-step-line {
  position: absolute;
  top: 0;
  left: -1px;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--cyan), transparent);
  transition: height .8s var(--ease-out);
}

.process-step.visible .process-step-line {
  height: 100%;
}

.process-step-num {
  font-size: 11px;
  color: var(--cyan);
  font-weight: var(--w-bold);
  margin-bottom: 10px;
  letter-spacing: 2.5px;
}

.process-step h3 {
  font-size: 18px;
  font-weight: var(--w-bold);
  margin-bottom: 10px;
  letter-spacing: -.2px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ─── 13. FAQ ────────────────────────────────────────────── */
.faq-section {
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 820px;
  margin-top: 36px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-item summary {
  font-size: clamp(15px, 2vw, 19px);
  font-weight: var(--w-semibold);
  padding: 20px 0;
  list-style: none;
  position: relative;
  padding-right: 40px;
  cursor: pointer;
  transition: color .25s;
  letter-spacing: -.2px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 20px;
  color: var(--cyan);
  transition: transform .35s var(--ease-bounce);
  font-weight: var(--w-regular);
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
  color: var(--cyan);
}

.faq-item .faq-body {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.68;
  padding-bottom: 20px;
  max-width: 700px;
}

/* ─── 14. PRICING (MOBILE-FIRST) ─────────────────────────── */
.pricing-section {
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
  width: 100%;
}

.pricing-card {
  background: var(--bg);
  padding: 32px 24px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  transition: background .35s, border-color .35s;
}

.pricing-card:hover {
  background: var(--bg-alt);
  border-color: rgba(0, 255, 255, .25);
}

.pricing-card.featured {
  background: var(--bg-alt);
  border-color: rgba(0, 255, 255, .35);
}

.pricing-card.featured::before {
  content: "POPULAR";
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 9px;
  font-weight: var(--w-bold);
  letter-spacing: 2px;
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 255, .3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.pricing-card h3 {
  font-size: 18px;
  font-weight: var(--w-bold);
  margin-bottom: 8px;
  letter-spacing: -.3px;
}

.pricing-card .price {
  font-size: 36px;
  font-weight: var(--w-bold);
  color: var(--cyan);
  margin: 12px 0 4px;
  letter-spacing: -1.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pricing-card .price span {
  font-size: 14px;
  font-weight: var(--w-medium);
  letter-spacing: 0;
  color: var(--text-dim);
}

.pricing-card .price-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-card ul {
  margin-bottom: 28px;
}

.pricing-card li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: color .2s;
}

.pricing-card li:last-child {
  border-bottom: none;
}

.pricing-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

.pricing-card:hover li {
  color: var(--text);
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: var(--w-semibold);
  color: var(--text-dim);
  border-radius: var(--radius-xs);
  transition: border-color .25s, color .25s, background .25s;
}

.pricing-cta:hover, .pricing-card.featured .pricing-cta {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 255, 255, .05);
}

/* ─── 15. BLOG & ARTICLES (MOBILE-FIRST) ─────────────────── */
.blog-section {
  border-top: 1px solid var(--border);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}

.blog-card {
  background: var(--bg);
  padding: 28px 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  transition: background .35s, border-color .35s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  background: var(--bg-alt);
  border-color: rgba(0, 255, 255, .25);
}

.blog-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width .55s var(--ease-out);
}

.blog-card:hover::after {
  width: 100%;
}

.blog-card-category {
  font-size: 10px;
  font-weight: var(--w-bold);
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: var(--w-bold);
  letter-spacing: -.3px;
  line-height: 1.35;
  margin-bottom: 12px;
  transition: color .25s;
  flex: 1;
}

.blog-card:hover .blog-card-title {
  color: var(--cyan);
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.blog-card-read {
  font-weight: var(--w-semibold);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .25s, gap .25s var(--ease-bounce);
  font-size: 12px;
}

.blog-card:hover .blog-card-read {
  color: var(--cyan);
  gap: 8px;
}

.blog-card-read::after {
  content: "→";
}

/* Blog Listing Page */
.blog-page-header {
  padding: 100px 20px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.filter-btn {
  font-size: 12px;
  font-weight: var(--w-semibold);
  padding: 8px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all .25s;
  letter-spacing: .3px;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 255, 255, .06);
}

.blog-full-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.blog-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  font-size: 14px;
  font-weight: var(--w-semibold);
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius-xs);
  transition: color .25s, border-color .25s, background .25s;
}

.blog-all-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 255, 255, .04);
}

.blog-all-link::after {
  content: "→";
  transition: transform .3s var(--ease-bounce);
}

.blog-all-link:hover::after {
  transform: translateX(4px);
}

/* Single Post Page */
.post-header-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 90px 20px 40px;
}

.post-category-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--w-bold);
  letter-spacing: 2px;
  color: var(--cyan);
  border: 1px solid rgba(0, 255, 255, .3);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.post-title {
  font-size: clamp(28px, 5.5vw, 64px);
  font-weight: var(--w-bold);
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin-bottom: 20px;
  word-break: break-word;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  width: 100%;
}

.post-body h2 {
  font-size: clamp(20px, 3.5vw, 32px);
  font-weight: var(--w-bold);
  letter-spacing: -.5px;
  margin: 40px 0 16px;
  color: var(--text);
}

.post-body h3 {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: var(--w-bold);
  margin: 28px 0 14px;
  color: var(--text);
}

.post-body p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 20px;
}

.post-body strong {
  color: var(--text);
  font-weight: var(--w-semibold);
}

.post-body ul, .post-body ol {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

.post-body li {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.68;
  margin-bottom: 8px;
}

.post-body ul li::marker {
  color: var(--cyan);
}

.post-body blockquote {
  border-left: 3px solid var(--cyan);
  padding: 14px 20px;
  margin: 24px 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-body blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

.post-body code {
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
  font-size: 13px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--cyan);
  word-break: break-word;
}

.post-body pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
}

.post-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* Post TOC (Table of Contents) */
.post-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-toc-title {
  font-size: 12px;
  font-weight: var(--w-bold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.post-toc a {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  transition: color .2s;
}

.post-toc a:hover, .post-toc a.active {
  color: var(--cyan);
}

/* ─── 16. CTA SECTION (MOBILE-FIRST) ─────────────────────── */
.cta-section {
  padding: 80px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,255,255,.05) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse-glow 5s ease-in-out infinite;
}

.cta-section h2 {
  font-size: clamp(32px, 7vw, 84px);
  font-weight: var(--w-bold);
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  position: relative;
  line-height: 1.05;
  word-break: break-word;
}

.cta-section h2 .highlight {
  color: var(--cyan);
}

.cta-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 36px;
  position: relative;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.cta-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.cta-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
}

.cta-links a:hover {
  color: var(--cyan);
}

/* ─── 17. FOOTER (MOBILE-FIRST) ──────────────────────────── */
.footer {
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  width: 100%;
}

.footer-logo {
  font-size: 20px;
  font-weight: var(--w-bold);
  letter-spacing: -.5px;
}

.footer-logo span {
  color: var(--cyan);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color .2s;
  font-weight: var(--w-medium);
  padding: 4px 8px;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── 18. BREADCRUMB ─────────────────────────────────────── */
.breadcrumb {
  padding: 90px 20px 16px;
  font-size: 12px;
  color: var(--text-dim);
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb .sep {
  margin: 0 6px;
  color: var(--text-muted);
}

/* ─── 19. REVEAL ANIMATIONS ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: .04s; }
.stagger-children.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: .08s; }
.stagger-children.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: .12s; }
.stagger-children.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: .16s; }
.stagger-children.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: .2s; }
.stagger-children.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: .24s; }

/* ─── 20. KEYFRAMES ──────────────────────────────────────── */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes glitch-a {
  0% { opacity: 0; transform: translateX(-2px); }
  20% { opacity: .8; transform: translateX(2px); }
  40% { opacity: 0; }
  60% { opacity: .5; transform: translateX(-1px); }
  80%, 100% { opacity: 0; }
}

@keyframes glitch-b {
  0% { opacity: 0; transform: translateX(2px); }
  20% { opacity: .5; transform: translateX(-2px); }
  40% { opacity: 0; }
  60% { opacity: .3; transform: translateX(1px); }
  80%, 100% { opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: .5; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── 21. VIEW TRANSITIONS ───────────────────────────────── */
@supports (view-transition-name: none) {
  @view-transition { navigation: auto; }
  @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes vt-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-6px); } }
  ::view-transition-new(root) { animation: .3s var(--ease-out) both vt-in; }
  ::view-transition-old(root) { animation: .2s var(--ease-io) both vt-out; }
}


/* ============================================================
   PROGRESSIVE ENHANCEMENT MEDIA QUERIES (MOBILE-FIRST BREAKPOINTS)
   ============================================================ */

/* ─── BREAKPOINT: SMALL TABLETS / LARGE PHONES (>= 480px) ───── */
@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
    width: auto;
  }

  .btn-primary {
    width: auto;
  }

  .cta-actions {
    flex-direction: row;
    justify-content: center;
    width: auto;
    max-width: none;
  }
}

/* ─── BREAKPOINT: TABLETS (>= 640px) ───────────────────────── */
@media (min-width: 640px) {
  .section-wrap {
    padding: 72px 32px;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding-top: 0;
  }

  .process-step {
    border-left: none;
    border-right: 1px solid var(--border);
    padding: 32px 24px;
  }

  .process-step:nth-child(2n) {
    border-right: none;
  }

  .process-step-line {
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent);
    transition: width .8s var(--ease-out);
  }

  .process-step.visible .process-step-line {
    width: 100%;
    height: 2px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid, .blog-full-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-page-header {
    padding: 120px 32px 50px;
  }

  .post-header-wrap {
    padding: 120px 32px 50px;
  }

  .post-body {
    padding: 40px 32px 100px;
  }

  .breadcrumb {
    padding: 100px 32px 20px;
  }
}

/* ─── BREAKPOINT: DESKTOPS (>= 768px) ──────────────────────── */
@media (min-width: 768px) {
  .nav {
    padding: 24px 40px;
  }

  .nav.scrolled {
    padding: 14px 40px;
  }

  .burger {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    flex-direction: row;
    gap: 28px;
    padding: 0;
    inset: auto;
    overflow-y: visible;
  }

  .nav-links a {
    font-size: 14px;
    padding: 0;
  }

  .nav-cta {
    font-size: 13px;
    padding: 8px 20px;
    margin-top: 0;
  }

  .hero {
    min-height: 92vh;
    padding: 140px 40px 60px;
  }

  .hero-sub {
    margin-top: 32px;
  }

  .services-header {
    padding: 72px 32px 48px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    padding: 48px 40px;
  }

  .footer {
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    gap: 24px;
  }

  .footer-copy {
    text-align: right;
  }

  .cta-section {
    padding: 120px 40px;
  }
}

/* ─── BREAKPOINT: LARGE DESKTOPS (>= 1024px) ───────────────── */
@media (min-width: 1024px) {
  .nav {
    padding: 28px 52px;
  }

  .nav.scrolled {
    padding: 16px 52px;
  }

  .hero {
    padding: 140px 52px 80px;
  }

  .section-wrap {
    padding: 120px 52px;
  }

  .stats {
    display: flex;
  }

  .stat {
    flex: 1;
    padding: 56px 32px;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .stat:last-child {
    border-right: none;
  }

  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-step {
    border-right: 1px solid var(--border);
  }

  .process-step:last-child {
    border-right: none;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-grid, .blog-full-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── ACCESSIBILITY: REDUCED MOTION ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal, .reveal-left, .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
