/* ==========================================================================
   Midnight Glass Theme - Design System
   ========================================================================== */
:root {
  /* Core Colors */
  --ink: #FFFFFF;          /* Primary text color (pure white) */
  --ink-2: #94A3B8;        /* Secondary text color (soft silver) */
  --ink-3: #475569;        /* Tertiary text color (dark gray) */
  
  /* Background Colors */
  --paper: #0A0D14;        /* Main background (midnight slate) */
  --sand: rgba(255, 255, 255, 0.03); /* Glass panel base */
  --line: rgba(255, 255, 255, 0.08); /* Subtle glass borders */
  
  /* Accent Colors (Gradient base) */
  --accent-1: #FF512F;     /* Vibrant Neon Orange */
  --accent-2: #F09819;     /* Warm Gold/Orange */
  --accent-glow: rgba(255, 81, 47, 0.2); 
  
  /* Dark Mode / Inverted Section Colors */
  --shell: #0F172A;        /* Slate blue background for specific sections */
  
  /* Global Utilities */
  --r: 14px;               /* Modern rounded corners */
}

/* ==========================================================================
   Global Reset & Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--paper); /* Prevent white flash */
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Typography & Gradients
   ========================================================================== */
h1, h2, h3, .num {
  font-family: 'Archivo', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 700;
  color: #F8FAFC;
}

/* Gradient Text Utility */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Accent serif font */
.serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #A78BFA, #F472B6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-right: 5px; /* Prevent italic cutoff */
}

/* ==========================================================================
   Components
   ========================================================================== */

/* --- Navigation (Glassmorphism) --- */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.logo i {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 10px var(--accent-glow);
  display: inline-block;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--r);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  letter-spacing: 0.02em;
}

/* Primary Button (Gradient + Glow) */
.btn-p {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-p:hover {
  box-shadow: 0 8px 25px rgba(255, 81, 47, 0.4);
  transform: translateY(-2px);
}

/* Secondary Button (Glass Outline) */
.btn-s {
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.btn-s:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 4px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  text-align: center;
  padding: 120px 0 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Dark gradient atmospheric background */
.hero:before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(255,81,47,0.15) 0%, rgba(10,13,20,0) 70%);
  z-index: 0;
  pointer-events: none;
}

/* Subtle grid over hero */
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  z-index: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'Archivo', sans-serif;
  backdrop-filter: blur(10px);
}

h1 {
  font-size: clamp(48px, 7vw, 84px);
  margin: 32px 0 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.sub {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 40px 0 0;
  flex-wrap: wrap;
}

.reassure {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-3);
}

/* --- Statistics Block (Glassmorphism) --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 80px 0 -50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: left;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  transition: background 0.3s ease;
}
.stat:hover {
  background: rgba(255, 255, 255, 0.04);
}
.stat:last-child {
  border-right: 0;
}

.num {
  font-size: 42px;
  color: var(--ink);
  display: block;
}
.num small {
  font-size: 18px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  vertical-align: super;
  font-weight: 700;
}

.stat p {
  font-size: 14px;
  color: var(--ink-2);
  margin-top: 10px;
}

/* ==========================================================================
   General Section Layouts
   ========================================================================== */
section {
  padding: 120px 0;
}

.eyebrow {
  display: inline-flex;
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
  max-width: 800px;
}

.lede {
  max-width: 680px;
  color: var(--ink-2);
  margin-top: 20px;
  font-size: 18px;
}

/* ==========================================================================
   Section: How It Works
   ========================================================================== */
.rail {
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Glow behind rail */
.rail:before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.rail h2 { color: #fff; }
.rail .lede { color: var(--ink-2); }

.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.track:before {
  content: "";
  position: absolute;
  top: 11px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1) 0%, var(--accent-2) 60%, rgba(255,255,255,0.1) 100%);
}

.phase {
  position: relative;
  padding-top: 48px;
}

.dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: 4px solid var(--shell);
  box-shadow: 0 0 10px var(--accent-glow);
}
.phase:last-child .dot {
  background: var(--ink-3);
  box-shadow: none;
}

.wk {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.phase:last-child .wk {
  color: var(--ink-3);
}

.phase h3 {
  font-size: 28px;
  color: #fff;
  margin: 12px 0;
}
.phase p {
  font-size: 15px;
  color: var(--ink-2);
}

.phase ul {
  list-style: none;
  margin-top: 16px;
}
.phase li {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 6px 0 6px 24px;
  position: relative;
}

.phase li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent-1);
  border-bottom: 2px solid var(--accent-1);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Section: Case Studies (Glass Cards)
   ========================================================================== */
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 60px;
}

.card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.shot {
  height: 180px;
  border-radius: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 13px;
  overflow: hidden;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.card .meta {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-family: 'Archivo';
  letter-spacing: 0.02em;
}
.card > p {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.stack span {
  font-size: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   Section: Pricing Grid
   ========================================================================== */
.price {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.tier {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}
.tier:hover {
  transform: translateY(-4px);
}

.tier.on {
  background: linear-gradient(180deg, rgba(255,81,47,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 81, 47, 0.4);
  position: relative;
  box-shadow: 0 10px 30px rgba(255,81,47,0.1);
}

.tag {
  position: absolute;
  top: -12px;
  left: 24px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'Archivo';
  box-shadow: 0 4px 10px var(--accent-glow);
}

.tier b {
  font-family: 'Archivo';
  font-size: 28px;
  display: block;
  letter-spacing: -0.03em;
  color: #fff;
}
.tier p {
  font-size: 15px;
  color: var(--ink-2);
  margin-top: 12px;
}

/* ==========================================================================
   Section: Lead Magnet / Form
   ========================================================================== */
.magnet {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  backdrop-filter: blur(10px);
}

.magnet ul {
  list-style: none;
  margin-top: 28px;
}
.magnet li {
  font-size: 15px;
  color: var(--ink-2);
  padding: 8px 0 8px 30px;
  position: relative;
}
.magnet li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent-1);
  border-bottom: 2px solid var(--accent-1);
  transform: rotate(-45deg);
}

.formbox {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 36px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 8px;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: 'Inter';
  font-size: 15px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.03);
  color: #fff;
  transition: all 0.3s ease;
}
input:focus {
  outline: none;
  border-color: var(--accent-1);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.formbox .btn { width: 100%; }

.fine {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 16px;
  text-align: center;
}

/* ==========================================================================
   Section: Reviews
   ========================================================================== */
.quote {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(10px);
}
.quote p {
  font-size: 16px;
  color: #E2E8F0;
  line-height: 1.7;
}

.who {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,81,47,0.1);
  border: 1px solid rgba(255,81,47,0.2);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo';
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-1);
}

.who b {
  font-size: 15px;
  display: block;
  font-weight: 600;
  color: #fff;
}
.who small {
  font-size: 13px;
  color: var(--ink-3);
}

.stars {
  color: var(--accent-2);
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Section: FAQ
   ========================================================================== */
details {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
summary {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}
summary::-webkit-details-marker { display: none; }

summary:after {
  content: "+";
  color: var(--accent-1);
  font-size: 26px;
  line-height: 1;
  flex: none;
  transition: transform 0.3s ease;
}
details[open] summary:after {
  content: "–";
}

details p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 800px;
}

/* ==========================================================================
   Pre-footer Call to Action
   ========================================================================== */
.close {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  backdrop-filter: blur(20px);
}
.close h2 { margin: 0 auto; }
.close .lede { color: var(--ink-2); margin: 20px auto 0; }
.close .cta-row { margin-top: 40px; }

.badges {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.badges span {
  font-size: 14px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badges b {
  color: #fff;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 80px 0;
  background: #05060A;
}
.foot {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 20px;
  font-weight: 600;
}
.foot p {
  color: var(--ink-2);
  font-size: 15px;
}
.foot a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.foot a:hover { color: #fff; }

.legal {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-3);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid3, .price, .track, .foot { grid-template-columns: 1fr; }
  .stats, .magnet { grid-template-columns: 1fr; }
  
  /* Layout spacing */
  section { padding: 60px 0; }
  .hero { padding: 80px 0 40px; }
  h1 { font-size: clamp(38px, 10vw, 48px); }
  
  /* Stats adjustments */
  .stats { margin: 40px 0 0; border-radius: 16px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding: 24px; }
  .stat:last-child { border-bottom: none; }
  
  /* How It Works (Timeline) */
  .rail { padding: 40px 24px; }
  .track { gap: 40px; margin-top: 40px; }
  .track:before { 
    /* Vertical line instead of horizontal for mobile */
    height: 100%; width: 2px; 
    left: 11px; top: 0; 
    background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 60%, rgba(255,255,255,0.1) 100%);
  }
  .phase { padding-top: 0; padding-left: 48px; }
  .dot { left: 0; top: 0; }
  
  /* Cards & Forms */
  .magnet { padding: 40px 24px; gap: 40px; }
  .close { padding: 40px 24px; }
  .badges { gap: 16px; flex-direction: column; align-items: center; }
  .foot { gap: 32px; }
  .legal { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
}

/* ==========================================================================
   Blog Styles (Midnight Glass Theme)
   ========================================================================== */

/* --- Main Blog Page --- */
.blog-header {
  text-align: left;
  margin-bottom: 40px;
}
.blog-header h1 {
  margin-bottom: 24px;
}

.category-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.category-pills .pill-link {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.category-pills .pill-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.category-pills .pill-link.active {
  background: var(--shell);
  color: #fff;
  border: 1px solid var(--line);
}

/* Featured Post (Hero) */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease;
  margin-bottom: 60px;
  min-height: 400px;
}
.blog-featured:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}
.featured-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(20px);
}
.featured-content h2 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 16px;
}
.featured-content p {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 32px;
}
.featured-img {
  background-size: cover;
  background-position: center;
  border-left: 1px solid var(--line);
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 600;
  font-family: 'Archivo';
}
.read-more i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  font-style: normal;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: transparent;
  transition: transform 0.3s ease;
}
.post-card:hover {
  transform: translateY(-4px);
}
.post-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 16px;
  background-color: var(--shell);
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.post-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-1);
  background: rgba(255, 81, 47, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}
.post-date {
  font-size: 13px;
  color: var(--ink-3);
  font-family: 'Inter';
}
.post-card h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}
.author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--shell);
  background-size: cover;
  background-position: center;
}
.author-name {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}

/* --- Individual Post Page --- */
.post-hero {
  padding: 80px 0 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.post-hero .post-tag {
  display: inline-block;
  margin-bottom: 24px;
}
.post-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 32px;
}
.post-hero .author-row {
  justify-content: center;
  margin-bottom: 60px;
}

.post-feature-wrapper {
  max-width: 1000px;
  margin: 0 auto 60px;
}
.post-feature-img {
  width: 100%;
  aspect-ratio: 21/9;
  border-radius: 24px;
  background-color: var(--shell);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.post-content {
  max-width: 680px; /* Optimal reading width */
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-2);
}
.post-content h2 {
  font-size: 32px;
  color: #fff;
  margin: 60px 0 24px;
}
.post-content p {
  margin-bottom: 24px;
}
.post-content a {
  color: var(--accent-1);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .featured-img {
    height: 300px;
    border-left: none;
    border-top: 1px solid var(--line);
    order: -1;
  }
  .featured-content {
    padding: 32px;
  }
  .post-feature-img {
    aspect-ratio: 16/9;
    border-radius: 16px;
  }
}

/* ==========================================================================
   Minimal Redesign & Interactive Estimator
   ========================================================================== */
.logo-wall {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  margin: 60px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-wall span {
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
}
.logo-wall span:hover {
  color: var(--ink-2);
}

/* Estimator section styles */
.estimator-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  margin-top: 48px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.estimator-options {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.estimator-group-title {
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 16px;
  font-weight: 600;
}

.estimator-selector {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.estimator-pill-btn {
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 12px 24px;
  border-radius: 100px;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.estimator-pill-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.estimator-pill-btn.active {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 15px var(--accent-glow);
}

.estimator-grid-select {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.estimator-card-btn {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.estimator-card-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.estimator-card-btn.active {
  border-color: var(--accent-1);
  background: rgba(255, 81, 47, 0.05);
}
.estimator-card-btn h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.estimator-card-btn h4::after {
  content: "+";
  color: var(--accent-1);
  font-size: 18px;
  font-weight: 400;
}
.estimator-card-btn.active h4::after {
  content: "✓";
  color: #10B981;
}
.estimator-card-btn p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}

/* Estimator results card styles */
.estimator-result {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 3px solid var(--accent-1);
}

.est-val-box {
  margin-bottom: 32px;
}

.est-val-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 8px;
  font-weight: 600;
}

.est-val-number {
  font-family: 'Archivo', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.est-timeline {
  font-family: 'Archivo', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 8px;
}

.est-form-wrapper {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.est-form-title {
  font-family: 'Archivo', sans-serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}

.est-form-desc {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 20px;
  line-height: 1.5;
}

.est-input-group {
  display: flex;
  gap: 12px;
}
.est-input-group input {
  margin-bottom: 0;
  flex: 1;
}
.est-input-group button {
  flex: none;
}

.est-form-success {
  display: none;
  font-size: 14px;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 16px;
  border-radius: var(--r);
  text-align: center;
}

/* Minimal styling tweaks */
.section-header-minimal {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-header-minimal h2 {
  margin: 0 auto;
}
.section-header-minimal .lede {
  margin: 16px auto 0;
}

.minimal-lead-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--line);
  padding: 48px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
}
.minimal-lead-box h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.minimal-lead-box p {
  color: var(--ink-2);
  font-size: 16px;
  margin-bottom: 32px;
}
.single-field-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
}
.single-field-form input {
  margin-bottom: 0;
}
.single-field-form .btn {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .estimator-container {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .estimator-grid-select {
    grid-template-columns: 1fr;
  }
  .est-input-group {
    flex-direction: column;
  }
  .single-field-form {
    flex-direction: column;
  }
}

/* ==========================================================================
   Case Study Redesign & UX Optimization
   ========================================================================== */
.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px auto;
  max-width: 900px;
}
.case-meta-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
}
.case-meta-card label {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.case-meta-card span {
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: block;
}
.case-meta-card .highlight-val {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.case-narrative {
  max-width: 800px;
  margin: 60px auto;
}

.case-editorial-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 48px;
  backdrop-filter: blur(10px);
}
.case-editorial-card h2 {
  font-size: clamp(24px, 4vw, 36px);
  color: #fff;
  margin-bottom: 20px;
}
.case-editorial-card p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}
.case-editorial-card p:last-child {
  margin-bottom: 0;
}
.case-editorial-card ul {
  list-style: none;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.case-editorial-card li {
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
}
.case-editorial-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

/* Feature grid for pages */
.case-image-block {
  margin: 48px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.case-image-block img {
  width: 100%;
  display: block;
}

/* Editorial quote wrapper */
.case-testimonial {
  border-left: 3px solid var(--accent-1);
  background: rgba(255, 81, 47, 0.02);
  border-radius: 0 20px 20px 0;
  padding: 40px;
  margin: 64px 0;
}
.case-testimonial blockquote {
  font-size: 20px;
  line-height: 1.6;
  color: #fff;
  font-style: italic;
  margin-bottom: 24px;
}
.case-testimonial cite {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 16px;
}
.case-testimonial cite b {
  font-size: 16px;
  color: #fff;
  display: block;
}
.case-testimonial cite span {
  font-size: 14px;
  color: var(--ink-3);
}

@media(max-width: 800px) {
  .case-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-editorial-card {
    padding: 24px;
  }
  .case-editorial-card ul {
    grid-template-columns: 1fr;
  }
  .case-testimonial {
    padding: 24px;
  }
}

/* ==========================================================================
   Premium Cost Calculator Styling
   ========================================================================== */
.est-stack-badge {
  display: inline-block;
  background: rgba(240, 152, 25, 0.08);
  border: 1px solid rgba(240, 152, 25, 0.2);
  color: var(--accent-2);
  padding: 8px 16px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Archivo', sans-serif;
  margin-top: 16px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 10px rgba(240, 152, 25, 0.05);
}

.est-breakdown-bar {
  display: flex;
  height: 10px;
  border-radius: 100px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  margin: 20px 0 16px;
}

.est-bar-segment {
  height: 100%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.segment-design {
  background: linear-gradient(90deg, #A78BFA, #F472B6);
}
.segment-backend {
  background: linear-gradient(90deg, #3B82F6, #10B981);
}
.segment-frontend {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}
.segment-qa {
  background: linear-gradient(90deg, #475569, #64748B);
}

.est-breakdown-labels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  margin-bottom: 24px;
}

.est-label-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
  font-family: 'Inter', sans-serif;
}

.est-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.dot-design { background: #F472B6; }
.dot-backend { background: #10B981; }
.dot-frontend { background: var(--accent-1); }
.dot-qa { background: #64748B; }

/* Subtle card active scaling & animations */
.estimator-card-btn {
  transform: scale(1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.estimator-card-btn:active {
  transform: scale(0.97);
}
.estimator-card-btn.active {
  box-shadow: 0 0 15px rgba(255, 81, 47, 0.08);
}
.estimator-pill-btn {
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   Global Sticky Lead Capture Banner
   ========================================================================== */
.sticky-lead-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 13, 20, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
  padding: 14px 0;
  z-index: 100;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.sticky-lead-bar.visible {
  transform: translateY(0);
}
.sticky-lead-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.sticky-lead-text {
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.sticky-lead-text span {
  color: var(--ink-2);
  font-weight: 400;
  margin-left: 8px;
}
.sticky-lead-form {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sticky-lead-form input {
  margin-bottom: 0;
  width: 240px;
  height: 46px;
  background: rgba(255, 255, 255, 0.05);
}
.sticky-lead-form .btn {
  height: 46px;
  padding: 0 24px;
  white-space: nowrap;
  font-size: 14px;
}

/* ==========================================================================
   Responsive & Touch Target Auditing (Fitts's Law)
   ========================================================================== */
@media (max-width: 900px) {
  .sticky-lead-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0;
  }
  .sticky-lead-text span {
    display: none;
  }
  .sticky-lead-form input {
    display: none;
  }
  .sticky-lead-form {
    gap: 0;
  }
  .sticky-lead-form .btn {
    height: 42px;
    padding: 0 16px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  /* Touch target expansions for forms */
  input, button, .btn {
    height: 52px !important;
  }
  
  .single-field-form {
    gap: 8px;
  }
  
  .wrap {
    padding: 0 20px;
  }
  
  .logo-wall {
    justify-content: center;
    gap: 16px 24px;
  }
  .logo-wall span {
    font-size: 12px;
  }
  
  .estimator-container {
    padding: 20px;
  }
  
  .case-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .case-meta-card {
    padding: 16px;
  }
  .case-meta-card span {
    font-size: 14px;
  }
  .case-meta-card .highlight-val {
    font-size: 18px;
  }
  
  .case-narrative {
    margin: 32px auto;
  }
  
  .case-editorial-card {
    padding: 24px 16px;
    margin-bottom: 24px;
  }
  .case-testimonial {
    padding: 24px 16px;
    margin: 32px 0;
  }
  .case-testimonial blockquote {
    font-size: 17px;
  }
  
  .minimal-lead-box {
    padding: 24px 16px;
  }
  .minimal-lead-box h2 {
    font-size: 24px;
  }
  
  .est-val-number {
    font-size: 36px;
  }
}

/* App Mobile Mockups Grid */
.phone-mockups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0;
}

@media (max-width: 900px) {
  .phone-mockups-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .phone-mockups-grid {
    grid-template-columns: 1fr;
  }
}

.phone-mockup {
  background: #111622;
  border: 4px solid #1E293B;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 9 / 19.5; /* iPhone aspect ratio */
  display: flex;
  flex-direction: column;
}

.phone-mockup:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  border-color: var(--accent);
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


