/* ==========================================================================
   Keyburst — UI/UX Pro Max Design System
   Style: Claymorphism + Vibrant Block-Based (Educational Platform Style)
   Palette: Energizing Teal / Cyan Gradient from Keyburst Hero Photo
   ========================================================================== */

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

:root {
  /* Core Hero Colors (Sampled directly from Hero photo) */
  --teal-bright: #00d2b4;
  --teal-primary: #00cba9;
  --teal-deep: #089d89;
  --teal-dark: #046357;
  --teal-darker: #02433b;
  --teal-glow: #5ff2d6;
  --teal-bg-soft: #eafbf7;
  --teal-bg-subtle: #f2fcf9;
  --teal-surface: #d8f7ef;

  /* Accent & Neo-Brutalist Pop Colors */
  --accent-amber: #ffb703;
  --accent-amber-light: #fff3cc;
  --accent-yellow: #ffd166;
  --accent-coral: #ff7675;
  --accent-coral-light: #ffe5e5;
  --accent-mint: #70e4c8;
  --accent-purple: #e0d4fc;
  --accent-sky: #bfe3ff;

  /* Canvas, Cards & Text */
  --bg-page: #f4faf8;
  --bg-card: #ffffff;
  --bg-card-secondary: #f0f7f5;
  --text: #092c35;              /* Deep oceanic charcoal, 12:1 contrast */
  --text-muted: #3d5f69;
  --text-subtle: #6c8a93;
  --text-white: #ffffff;

  /* Signature 3px Borders & Block Shadows */
  --border-width: 3px;
  --border-color: #092c35;
  --shadow-color: #092c35;

  --shadow-block: 6px 6px 0px var(--shadow-color);
  --shadow-block-sm: 4px 4px 0px var(--shadow-color);
  --shadow-block-xs: 2px 2px 0px var(--shadow-color);
  --shadow-block-lg: 8px 8px 0px var(--shadow-color);
  --shadow-clay: 6px 6px 0px var(--shadow-color), inset 0 -4px 0px rgba(0, 0, 0, 0.08);
  --shadow-clay-hover: 4px 4px 0px var(--shadow-color), inset 0 -4px 0px rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-display: 'Fredoka', 'Nunito', -apple-system, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Radii */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-pop: all 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-smooth: all 0.22s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Selection */
::selection {
  background: var(--teal-primary);
  color: var(--text);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img, svg {
  vertical-align: middle;
}

code, kbd {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Signature Clay & Neo-Brutalist Components
   ========================================================================== */

/* Clay Card */
.clay-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  transition: var(--transition-pop);
  position: relative;
}

.clay-card:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-clay-hover);
}

/* Soft Clay (without heavy translate) */
.soft-clay {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-block), 0 8px 30px rgba(9, 44, 53, 0.05);
  transition: var(--transition-pop);
}

.soft-clay:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-block-lg), 0 12px 36px rgba(9, 44, 53, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-block-sm);
  cursor: pointer;
  transition: var(--transition-pop);
  text-align: center;
  user-select: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-block-xs);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0px 0px 0px var(--border-color);
}

.btn-primary {
  background: var(--teal-primary);
  color: var(--text-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #00baa0;
  color: var(--text-white);
}

.btn-secondary {
  background: var(--accent-yellow);
  color: var(--text);
}

.btn-secondary:hover {
  background: #f7c752;
}

.btn-emerald, .btn-pro {
  background: var(--accent-amber);
  color: var(--text);
}

.btn-emerald:hover, .btn-pro:hover {
  background: #f5ab00;
}

.btn-white {
  background: #ffffff;
  color: var(--text);
}

.btn-white:hover {
  background: #f1f8f6;
}

.btn-sm {
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: var(--radius-xs);
  box-shadow: 3px 3px 0px var(--border-color);
}

.btn-sm:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px var(--border-color);
}

.btn-lg {
  font-size: 1.12rem;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0px var(--border-color);
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--accent-yellow);
  color: var(--text);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: 3px 3px 0px var(--border-color);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.badge-mint {
  background: var(--accent-mint);
}

.badge-pulse {
  width: 10px;
  height: 10px;
  background: var(--teal-primary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 203, 169, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 203, 169, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 203, 169, 0); }
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 16px;
  margin-bottom: 24px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--teal-bright) 0%, var(--teal-deep) 100%);
  border: var(--border-width) solid var(--border-color);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  box-shadow: 3px 3px 0px var(--border-color);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--text);
  background: var(--teal-bg-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle */
.nav-toggle-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background: var(--teal-bg-soft);
  border: var(--border-width) solid var(--border-color);
  box-shadow: 3px 3px 0px var(--border-color);
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* ==========================================================================
   Hero Section (Lush Teal Gradient + Floating Elements)
   ========================================================================== */

.hero-wrapper {
  padding: 0 16px;
  margin-bottom: 50px;
}

.hero {
  position: relative;
  border-radius: var(--radius-xl);
  border: var(--border-width) solid var(--border-color);
  background:
    radial-gradient(ellipse at 85% 15%, rgba(95, 242, 214, 0.8) 0%, transparent 45%),
    radial-gradient(ellipse at 15% 85%, rgba(4, 99, 87, 0.7) 0%, transparent 50%),
    linear-gradient(135deg, #00d2b4 0%, #08a692 45%, #045c52 100%);
  box-shadow: var(--shadow-block-lg);
  padding: 60px 40px 70px;
  overflow: hidden;
}

/* Decorative 3D Spheres & Angled Shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #a2faea 0%, rgba(0, 210, 180, 0.2) 70%);
  opacity: 0.6;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #5ff2d6 0%, rgba(4, 99, 87, 0.1) 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #affcee 0%, rgba(0, 180, 150, 0.4) 75%);
  box-shadow: inset -4px -4px 8px rgba(0, 60, 50, 0.3), 0 8px 24px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.hero-bubble-1 {
  width: 70px;
  height: 70px;
  top: 15%;
  right: 48%;
  opacity: 0.75;
  animation: float-slow 7s ease-in-out infinite;
}

.hero-bubble-2 {
  width: 44px;
  height: 44px;
  bottom: 25%;
  left: 3%;
  opacity: 0.65;
  animation: float-slow 9s ease-in-out infinite reverse;
}

.hero-bubble-3 {
  width: 55px;
  height: 55px;
  bottom: 12%;
  right: 5%;
  opacity: 0.7;
  animation: float-slow 6s ease-in-out infinite 1s;
}

.hero-pill-shape {
  position: absolute;
  width: 140px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  transform: rotate(-35deg);
  pointer-events: none;
}

.hero-pill-1 { top: 22px; right: 12%; }
.hero-pill-2 { bottom: 40px; left: 10%; width: 90px; }

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

/* Hero Content Grid */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-left .badge {
  align-self: flex-start;
}

.hero-title {
  font-size: 3.5rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(4, 45, 38, 0.35);
  line-height: 1.12;
  letter-spacing: -1px;
}

.hero-title .highlight-box {
  display: inline-block;
  background: var(--accent-yellow);
  color: var(--text);
  border: var(--border-width) solid var(--border-color);
  box-shadow: 4px 4px 0px var(--border-color);
  padding: 0 16px;
  border-radius: var(--radius-sm);
  transform: rotate(-1.5deg);
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #e5fbf5;
  line-height: 1.55;
  font-weight: 600;
  max-width: 540px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero-subtitle code {
  background: #ffffff;
  color: var(--text);
  border: 2px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 2px 2px 0px var(--border-color);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 4px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 6px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.meta-item svg {
  color: var(--accent-yellow);
  stroke-width: 3;
}

/* Hero Right (Visual Showcase) */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 8px 8px 0px var(--border-color);
  overflow: hidden;
  transition: var(--transition-pop);
}

.hero-photo-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 5px 5px 0px var(--border-color);
}

.hero-photo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Floating Badges around Hero Card */
.float-sticker {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 4px 4px 0px var(--border-color);
  animation: float-gentle 4s ease-in-out infinite;
}

.float-sticker-1 {
  top: -18px;
  right: -12px;
  background: var(--accent-amber);
  color: var(--text);
  transform: rotate(4deg);
}

.float-sticker-2 {
  bottom: -16px;
  left: -12px;
  background: var(--accent-mint);
  color: var(--text);
  transform: rotate(-3deg);
  animation-delay: 1.5s;
}

.float-sticker-3 {
  top: 48%;
  left: -24px;
  background: #ffffff;
  color: var(--text);
  transform: rotate(-5deg);
  animation-delay: 2.2s;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--rot, 0deg) + 2deg)); }
}

.float-sticker-1 { --rot: 4deg; }
.float-sticker-2 { --rot: -3deg; }
.float-sticker-3 { --rot: -5deg; }

/* Tagline Banner below Hero */
.tagline-banner {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px dashed rgba(255, 255, 255, 0.35);
  text-align: center;
}

.tagline-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 2px 4px rgba(4, 45, 38, 0.3);
}

.tagline-spark {
  display: inline-block;
  font-size: 1.8rem;
  animation: pulse-glow 1.5s infinite;
}

/* ==========================================================================
   Live Interactive Playground (Test Chamber)
   ========================================================================== */

.demo-section {
  padding: 40px 0 60px;
}

.interactive-demo {
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-block-lg);
  overflow: hidden;
  transition: var(--transition-pop);
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--teal-bg-soft);
  border-bottom: var(--border-width) solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.window-dot.red { background: var(--accent-coral); }
.window-dot.yellow { background: var(--accent-yellow); }
.window-dot.green { background: var(--accent-mint); }

.demo-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.demo-badge-live {
  background: var(--teal-primary);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-color);
}

/* Preset Chips Bar */
.demo-presets-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 2px dashed var(--border-subtle);
}

.presets-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.preset-chip {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 14px;
  background: var(--teal-bg-soft);
  color: var(--text);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0px var(--border-color);
  cursor: pointer;
  transition: var(--transition-pop);
}

.preset-chip:hover {
  background: var(--teal-primary);
  color: #ffffff;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px var(--border-color);
}

.preset-chip:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px 0px var(--border-color);
}

/* Demo Body & Box */
.demo-body {
  padding: 24px;
}

.demo-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.expansion-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-amber-light);
  color: var(--text);
  border: 2px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 2px 2px 0px var(--border-color);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.expansion-stat.visible {
  opacity: 1;
}

.demo-box {
  width: 100%;
  min-height: 160px;
  padding: 20px;
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  resize: vertical;
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.demo-box:focus {
  border-color: var(--teal-primary);
  box-shadow: inset 2px 2px 6px rgba(0, 0, 0, 0.05), 0 0 0 4px var(--teal-surface);
}

.demo-box.expanded-flash {
  animation: flash-border 0.4s ease;
}

@keyframes flash-border {
  0% { background: #dffbf4; }
  100% { background: #ffffff; }
}

.demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.demo-hint {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.demo-hint kbd {
  background: var(--teal-bg-soft);
  color: var(--text);
  border: 2px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: 2px 2px 0px var(--border-color);
}

/* ==========================================================================
   Trust / App Pills Bar
   ========================================================================== */

.trust-section {
  padding: 20px 0 60px;
  text-align: center;
}

.trust-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 20px;
}

.app-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-block-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  transition: var(--transition-pop);
}

.app-pill:hover {
  background: var(--teal-bg-soft);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-block-xs);
}

/* ==========================================================================
   Sections Standard Layout
   ========================================================================== */

.section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--accent-mint);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  box-shadow: 3px 3px 0px var(--border-color);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Comparison Grid (Why Pay Once)
   ========================================================================== */

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.comp-card {
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-pop);
}

.comp-card:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-clay-hover);
}

.comp-card.highlight {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 8px 8px 0px var(--border-color);
  position: relative;
}

.comp-card.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--teal-primary), var(--accent-yellow));
  border-radius: 20px 20px 0 0;
}

.comp-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-yellow);
  color: var(--text);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  box-shadow: 2px 2px 0px var(--border-color);
  white-space: nowrap;
}

.comp-name {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.comp-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.comp-price span {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.comp-five-year {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 2px dashed var(--border-subtle);
}

.comp-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.comp-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-surface);
  color: var(--teal-deep);
  font-weight: 900;
  font-size: 0.8rem;
  border: 2px solid var(--border-color);
}

.icon-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-coral-light);
  color: var(--accent-coral);
  font-weight: 900;
  font-size: 0.8rem;
  border: 2px solid var(--border-color);
}

/* ==========================================================================
   ROI Calculator
   ========================================================================== */

.roi-card {
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-block-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-top: 30px;
}

.slider-group {
  margin-bottom: 24px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

.slider-val {
  background: var(--teal-bg-soft);
  color: var(--text);
  border: 2px solid var(--border-color);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 2px 2px 0px var(--border-color);
  font-size: 0.9rem;
}

.range-slider {
  width: 100%;
  height: 12px;
  -webkit-appearance: none;
  background: var(--teal-surface);
  border: 2px solid var(--border-color);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-yellow);
  border: 3px solid var(--border-color);
  box-shadow: 2px 2px 0px var(--border-color);
  cursor: grab;
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-yellow);
  border: 3px solid var(--border-color);
  box-shadow: 2px 2px 0px var(--border-color);
  cursor: grab;
}

.roi-result {
  background: linear-gradient(135deg, var(--teal-bg-soft) 0%, var(--teal-surface) 100%);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  padding: 32px;
  text-align: center;
}

.roi-stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--teal-deep);
  line-height: 1;
  margin-bottom: 6px;
}

.roi-stat-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 24px;
}

.roi-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 18px;
  border-top: 2px dashed var(--border-color);
  font-size: 0.9rem;
}

.roi-detail-item strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  padding: 32px 26px;
  transition: var(--transition-pop);
}

.feature-card:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-clay-hover);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  background: var(--teal-surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0px var(--border-color);
  margin-bottom: 20px;
}

.feature-icon-wrapper.emerald { background: var(--accent-mint); }
.feature-icon-wrapper.cyan { background: var(--accent-sky); }
.feature-icon-wrapper.amber { background: var(--accent-yellow); }

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.feature-desc code {
  background: var(--teal-bg-soft);
  color: var(--text);
  border: 1px solid var(--border-color);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
}

/* ==========================================================================
   Snippet Templates Showcase
   ========================================================================== */

.snippet-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.snippet-tab-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  background: #ffffff;
  color: var(--text);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-block-sm);
  cursor: pointer;
  transition: var(--transition-pop);
}

.snippet-tab-btn:hover {
  background: var(--teal-bg-soft);
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-block-xs);
}

.snippet-tab-btn.active {
  background: var(--teal-primary);
  color: #ffffff;
  box-shadow: var(--shadow-block-xs);
  transform: translate(2px, 2px);
}

.snippets-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.snippet-card {
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-pop);
}

.snippet-card:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-clay-hover);
}

.snippet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.snippet-trigger {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  padding: 4px 12px;
  background: var(--accent-yellow);
  color: var(--text);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0px var(--border-color);
}

.snippet-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.snippet-text {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text-muted);
  background: var(--teal-bg-subtle);
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.snippet-copy-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  background: var(--teal-bg-soft);
  color: var(--text);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0px var(--border-color);
  cursor: pointer;
  transition: var(--transition-pop);
}

.snippet-copy-btn:hover {
  background: var(--teal-primary);
  color: #ffffff;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px var(--border-color);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 880px;
  margin: 0 auto;
}

.pricing-card {
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-clay);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-pop);
}

.pricing-card:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-clay-hover);
}

.pricing-card.pro {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 8px 8px 0px var(--border-color);
}

.pricing-card.pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--teal-bright), var(--accent-yellow));
  border-radius: 28px 28px 0 0;
}

.pricing-badge-popular {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-amber);
  color: var(--text);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 3px 3px 0px var(--border-color);
  white-space: nowrap;
}

.pricing-tier {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 2px dashed var(--border-subtle);
}

.pricing-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.pricing-cadence {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  font-weight: 600;
  font-size: 1rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-clay);
  overflow: hidden;
  transition: var(--transition-pop);
}

.faq-item:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-clay-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: none;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--teal-deep);
  stroke-width: 2.5;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 28px 24px;
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 2px dashed var(--border-subtle);
  padding-top: 18px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Bottom CTA Banner
   ========================================================================== */

.cta-banner-wrapper {
  padding: 0 16px;
  margin: 40px 0 60px;
}

.cta-banner {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(95, 242, 214, 0.7) 0%, transparent 40%),
    linear-gradient(135deg, #00d2b4 0%, #08a692 50%, #045c52 100%);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-block-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-title {
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(4, 45, 38, 0.3);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-banner-desc {
  font-size: 1.25rem;
  color: #e5fbf5;
  font-weight: 600;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-banner .hero-cta-group {
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: #ffffff;
  border-top: var(--border-width) solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 320px;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--teal-deep);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 2px dashed var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-subtle);
  font-weight: 600;
}

/* ==========================================================================
   Privacy Page
   ========================================================================== */

.privacy-page {
  padding: 40px 0 80px;
}

.privacy-card {
  background: #ffffff;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-block-lg);
  padding: 50px 40px;
}

.privacy-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px dashed var(--border-subtle);
}

.privacy-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 16px;
  background: var(--teal-bg-soft);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0px var(--border-color);
  margin-bottom: 20px;
  transition: var(--transition-pop);
}

.privacy-back-link:hover {
  background: var(--teal-primary);
  color: #ffffff;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px var(--border-color);
}

.privacy-title {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.privacy-updated {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.privacy-body {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.privacy-body h2 {
  font-size: 1.6rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.privacy-body p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.privacy-body ul {
  margin: 12px 0 20px 24px;
  color: var(--text-muted);
}

.privacy-body li {
  margin-bottom: 8px;
}

.privacy-badge-highlight {
  display: inline-block;
  background: var(--accent-mint);
  border: 2px solid var(--border-color);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--accent-yellow);
  color: var(--text);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-block);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-left {
    text-align: center;
    align-items: center;
  }

  .hero-left .badge {
    align-self: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-cta-group, .hero-meta {
    justify-content: center;
  }

  .hero-right {
    margin-top: 20px;
  }

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

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

  .roi-card {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }

  .nav-toggle-btn {
    display: flex;
  }

  .nav-container.expanded {
    flex-wrap: wrap;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px 0 8px;
    border-top: 2px dashed var(--border-subtle);
    margin-top: 12px;
    gap: 8px;
  }

  .nav-links.mobile-open .nav-link {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
  }

  .hero {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .cta-banner-title {
    font-size: 2.2rem;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .snippets-list {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .float-sticker-3 {
    display: none;
  }
}
