/*
Theme Name: GrapphenMail Glass
Theme URI: https://grapphen.com
Author: Grapphen Team
Author URI: https://grapphen.com
Description: Fluid glassmorphism WordPress theme for GrapphenMail — the AI-powered enterprise business email hosting platform. Features a bright fluid glass aesthetic with frosted white panels, soft pastel gradients, and mobile-first responsive design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: grapphen-glass
Tags: email, saas, glassmorphism, light, ai, email-hosting, full-width-template, custom-menu, featured-images
*/

/* ============================================================
   DESIGN TOKENS — BRIGHT MODE
   ============================================================ */
:root {
  /* Glass palette — frosted white on light background */
  --glass-white:       rgba(255, 255, 255, 0.55);
  --glass-white-md:    rgba(255, 255, 255, 0.70);
  --glass-white-lg:    rgba(255, 255, 255, 0.85);
  --glass-border:      rgba(255, 255, 255, 0.75);
  --glass-border-lg:   rgba(255, 255, 255, 0.95);

  /* Brand gradient accent */
  --accent-1: #6366f1;   /* indigo */
  --accent-2: #8b5cf6;   /* violet */
  --accent-3: #06b6d4;   /* cyan */
  --accent-4: #10b981;   /* emerald */
  --accent-5: #f59e0b;   /* amber */

  /* Gradient combos */
  --grad-primary:  linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-warm:     linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --grad-green:    linear-gradient(135deg, #059669 0%, #0891b2 100%);
  --grad-purple:   linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  --grad-text:     linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0891b2 100%);

  /* Background — bright white base */
  --bg-base:       #f5f7ff;
  --bg-layer1:     #eef1ff;
  --bg-layer2:     #ffffff;

  /* Text — dark on light */
  --text-white:    #0f0e2a;
  --text-bright:   #1e1b4b;
  --text-muted:    #4b5563;
  --text-faint:    #9ca3af;

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;
  --sp-28: 112px;--sp-32: 128px;

  /* Radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-2xl:  36px;
  --r-pill: 100px;

  /* Blur */
  --blur-sm:  blur(8px);
  --blur-md:  blur(16px);
  --blur-lg:  blur(28px);
  --blur-xl:  blur(48px);

  /* Shadows — soft on bright background */
  --shadow-glow:    0 0 40px rgba(99, 102, 241, 0.18);
  --shadow-glow-lg: 0 0 80px rgba(99, 102, 241, 0.22);
  --shadow-glass:   0 8px 32px rgba(99, 102, 241, 0.10), inset 0 1px 0 rgba(255,255,255,0.9);
  --shadow-card:    0 20px 60px rgba(99, 102, 241, 0.12);

  /* Layout */
  --max-w: 1260px;
  --pad:   24px;

  /* Transitions */
  --t-fast:   150ms ease;
  --t-normal: 280ms ease;
  --t-slow:   500ms ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-bright);
  background-color: var(--bg-base);
  overflow-x: hidden;
  position: relative;
}

/* Animated pastel gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 10% 10%,  rgba(99,102,241,0.14) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 15%,  rgba(139,92,246,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 55% 95%,  rgba(6,182,212,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 65%,  rgba(236,72,153,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 25% 70%,  rgba(16,185,129,0.07) 0%, transparent 55%),
    #f5f7ff;
  animation: gradientShift 18s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0%   { opacity: 1; }
  50%  { opacity: 0.85; }
  100% { opacity: 1; }
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Hide native scrollbar — scroll still works via wheel/touch/keyboard */
::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
html { scrollbar-width: none; overflow-y: scroll; }
body { -ms-overflow-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--sp-24); }
.section--sm { padding-block: var(--sp-16); }
.section--lg { padding-block: var(--sp-32); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-5); }

.flex-center   { display:flex; align-items:center; justify-content:center; }
.flex-between  { display:flex; align-items:center; justify-content:space-between; }
.text-center   { text-align: center; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-hero {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-1 {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.display-2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-1 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-text--warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-text--green {
  background: var(--grad-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.body-lg { font-size: 1.1rem; line-height: 1.75; color: var(--text-muted); }
.body-md { font-size: 1rem;   line-height: 1.7;  color: var(--text-muted); }
.body-sm { font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); }

/* ============================================================
   GLASS COMPONENTS
   ============================================================ */

/* Glass Card — core building block */
.glass {
  background: var(--glass-white);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
}

.glass--md {
  background: var(--glass-white-md);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
}

.glass--bright {
  background: var(--glass-white-lg);
  backdrop-filter: var(--blur-xl);
  -webkit-backdrop-filter: var(--blur-xl);
  border: 1px solid var(--glass-border-lg);
  border-radius: var(--r-xl);
}

/* Glass with inner top highlight (liquid effect) */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.22) 0%, transparent 55%);
  pointer-events: none;
}

.glass { position: relative; }

/* Hover glow states */
.glass-card {
  position: relative;
  padding: var(--sp-6);
  background: var(--glass-white);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-normal), box-shadow var(--t-normal), transform var(--t-normal);
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.28) 0%, transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(255,255,255,0.98);
  box-shadow: var(--shadow-glass), var(--shadow-glow);
  transform: translateY(-3px);
}

/* Gradient border card */
.glass-card--gradient {
  position: relative;
}
.glass-card--gradient::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r-lg) + 1px);
  background: var(--grad-primary);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--t-normal);
}
.glass-card--gradient:hover::after { opacity: 1; }
.glass-card--gradient:hover { border-color: transparent; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--grad {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
}
.btn--grad:hover {
  box-shadow: 0 6px 30px rgba(99,102,241,0.6);
  transform: translateY(-2px);
}
.btn--grad::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn--grad:hover::after { background: rgba(255,255,255,0.1); }

.btn--glass {
  background: var(--glass-white-md);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  color: var(--text-bright);
  border: 1px solid rgba(99,102,241,0.18);
}
.btn--glass:hover {
  background: var(--glass-white-lg);
  border-color: rgba(99,102,241,0.35);
  transform: translateY(-2px);
}

.btn--outline {
  background: var(--glass-white-md);
  color: var(--text-bright);
  border: 1px solid rgba(99,102,241,0.2);
}
.btn--outline:hover {
  background: var(--glass-white-lg);
  border-color: rgba(99,102,241,0.4);
}

.btn--sm  { padding: 8px 18px; font-size: 0.8rem; }
.btn--lg  { padding: 16px 36px; font-size: 1rem; }
.btn--xl  { padding: 18px 40px; font-size: 1.05rem; font-weight: 700; }

/* ============================================================
   BADGES & LABELS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--indigo {
  background: rgba(99,102,241,0.12);
  color: #4338ca;
  border: 1px solid rgba(99,102,241,0.25);
}
.badge--cyan {
  background: rgba(6,182,212,0.12);
  color: #0e7490;
  border: 1px solid rgba(6,182,212,0.25);
}
.badge--green {
  background: rgba(16,185,129,0.12);
  color: #065f46;
  border: 1px solid rgba(16,185,129,0.25);
}
.badge--amber {
  background: rgba(245,158,11,0.12);
  color: #92400e;
  border: 1px solid rgba(245,158,11,0.3);
}
.badge--purple {
  background: rgba(139,92,246,0.12);
  color: #5b21b6;
  border: 1px solid rgba(139,92,246,0.25);
}

.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Section eyebrow label */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   GLOWING ORBS (decorative background elements)
   ============================================================ */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.28;
  z-index: 0;
}
.orb--1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(99,102,241,0.7), transparent); }
.orb--2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(139,92,246,0.65), transparent); }
.orb--3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(6,182,212,0.6), transparent); }
.orb--4 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(16,185,129,0.55), transparent); }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding-block: 12px;
  transition: background var(--t-normal), box-shadow var(--t-normal);
}

.site-header.scrolled {
  background: rgba(245, 247, 255, 0.82);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  box-shadow: 0 1px 0 rgba(99,102,241,0.1), 0 4px 24px rgba(99,102,241,0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

/* ── Logo ───────────────────────────────────────────── */
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  max-height: 40px;        /* cap total logo height to header row */
}

/* Gradient icon mark — scales with header height */
.logo-icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: var(--grad-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
  flex-shrink: 0;
}
.logo-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  color: #fff;
  display: block;
}

/* Logo text */
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  gap: 2px;
}
.logo-text-wrap .logo-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.logo-text-wrap .logo-tagline {
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--text-faint);
  white-space: nowrap;
}

/* Custom logo image (uploaded via WP)
   Note: WP the_custom_logo() wraps img in its own <a class="custom-logo-link">.
   Nesting that inside our <a class="site-header__logo"> creates invalid HTML;
   browsers restructure the DOM so the descendant selector breaks.
   We target .site-header instead to stay independent of nesting. */
.site-header .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.site-header .custom-logo {
  height: 36px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
}

/* Nav links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-menu a {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-menu a:hover,
.nav-menu a.current-menu-item {
  color: #4338ca;
  background: rgba(99,102,241,0.08);
}

/* Header actions */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #4338ca;
  border-radius: 2px;
  transition: all var(--t-normal);
}

/* Mobile nav open state */
.site-header.nav-open .nav-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 62px; left: 0; right: 0;
  background: rgba(245, 247, 255, 0.97);
  backdrop-filter: var(--blur-xl);
  -webkit-backdrop-filter: var(--blur-xl);
  border-bottom: 1px solid rgba(99,102,241,0.12);
  padding: var(--sp-4) var(--pad) var(--sp-6);
  gap: var(--sp-1);
}

.site-header.nav-open .nav-menu a {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 1rem;
  width: 100%;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--sp-32) + 20px);
  padding-bottom: var(--sp-24);
  text-align: center;
  overflow: hidden;
}

.hero .orb--1 { top: -200px; left: -150px; }
.hero .orb--2 { top: -100px; right: -100px; }
.hero .orb--3 { bottom: -100px; left: 50%; transform: translateX(-50%); }

.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 18px;
  margin-bottom: var(--sp-6);
  background: rgba(255,255,255,0.7);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: #4338ca;
  box-shadow: 0 2px 12px rgba(99,102,241,0.08);
}

.hero__eyebrow .badge { padding: 3px 10px; font-size: 0.65rem; }

.hero h1 {
  max-width: 840px;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
  flex-wrap: wrap;
}

/* Trust badges row */
.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(99,102,241,0.12);
  margin-top: var(--sp-4);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero__trust-item svg {
  width: 14px; height: 14px;
  fill: var(--accent-4);
  flex-shrink: 0;
  stroke: none;
}

/* Hero glass panel (mockup) */
.hero__mockup {
  position: relative;
  max-width: 1000px;
  margin: var(--sp-16) auto 0;
  z-index: 1;
}

.hero__mockup-window {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(99,102,241,0.16), 0 4px 16px rgba(99,102,241,0.08), inset 0 1px 0 rgba(255,255,255,0.95);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 20px;
  background: rgba(245,247,255,0.8);
  border-bottom: 1px solid rgba(99,102,241,0.08);
}

.mockup-bar__dots { display: flex; gap: 6px; }
.mockup-bar__dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-bar__dot--red    { background: #ff5f57; }
.mockup-bar__dot--yellow { background: #febc2e; }
.mockup-bar__dot--green  { background: #28c840; }

.mockup-bar__url {
  flex: 1; text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: var(--r-sm);
  padding: 4px 12px;
  max-width: 340px;
  margin-inline: auto;
}

.mockup-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 380px;
}

.mockup-sidebar {
  border-right: 1px solid rgba(99,102,241,0.08);
  padding: var(--sp-4);
  background: rgba(245,247,255,0.5);
}

.mockup-sidebar-logo {
  display: flex; align-items: center; gap: 8px;
  padding: var(--sp-3) var(--sp-3);
  margin-bottom: var(--sp-4);
}
.mockup-sidebar-logo span {
  font-weight: 800; font-size: 0.9rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mockup-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
  cursor: default;
}
.mockup-nav-item--active {
  background: rgba(99,102,241,0.1);
  color: #4338ca;
}
.mockup-nav-item svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.mockup-badge {
  margin-left: auto;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: var(--accent-1);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding-inline: 4px;
}

.mockup-main { padding: var(--sp-5); background: rgba(255,255,255,0.4); }

.mockup-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.mockup-toolbar span { font-size: 0.8rem; font-weight: 600; color: var(--text-bright); }

.mockup-email-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 4px;
  border: 1px solid transparent;
  cursor: default;
  transition: background var(--t-fast);
}
.mockup-email-row--unread {
  background: rgba(99,102,241,0.06);
  border-color: rgba(99,102,241,0.12);
}
.mockup-email-row--unread .mockup-email-subject { font-weight: 700; color: var(--text-bright); }

.mockup-email-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

.mockup-email-info { flex: 1; min-width: 0; }
.mockup-email-from { font-size: 0.7rem; font-weight: 600; color: var(--text-bright); margin-bottom: 2px; }
.mockup-email-subject { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mockup-email-time { font-size: 0.65rem; color: var(--text-faint); flex-shrink: 0; }

.mockup-ai-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--r-sm);
  margin-top: var(--sp-4);
  font-size: 0.7rem;
  color: #4338ca;
}
.mockup-ai-bar svg { width: 14px; height: 14px; fill: #4338ca; flex-shrink: 0; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  padding-block: var(--sp-12);
  position: relative;
  overflow: hidden;
}

.stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  background: rgba(255,255,255,0.6);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 24px rgba(99,102,241,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}

.stat-item {
  padding: var(--sp-6) var(--sp-8);
  text-align: center;
  flex: 1;
  min-width: 160px;
}

.stat-item__number {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item__label {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(99,102,241,0.12);
  flex-shrink: 0;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--sp-12);
}

.section-header .display-2,
.section-header .display-1 {
  margin-bottom: var(--sp-4);
}

.section-header .body-lg {
  max-width: 540px;
  margin-inline: auto;
}

/* ============================================================
   FEATURES GRID SECTION
   ============================================================ */
.features-section { position: relative; overflow: hidden; }
.features-section .orb--4 { bottom: -100px; right: -100px; }

.feature-card {
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4);
  position: relative;
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.feature-card__icon--indigo { background: rgba(99,102,241,0.12);  color: #4338ca; box-shadow: 0 2px 10px rgba(99,102,241,0.15); }
.feature-card__icon--cyan   { background: rgba(6,182,212,0.12);   color: #0e7490; box-shadow: 0 2px 10px rgba(6,182,212,0.12); }
.feature-card__icon--green  { background: rgba(16,185,129,0.12);  color: #065f46; box-shadow: 0 2px 10px rgba(16,185,129,0.12); }
.feature-card__icon--amber  { background: rgba(245,158,11,0.12);  color: #92400e; box-shadow: 0 2px 10px rgba(245,158,11,0.12); }
.feature-card__icon--purple { background: rgba(139,92,246,0.12);  color: #5b21b6; box-shadow: 0 2px 10px rgba(139,92,246,0.12); }
.feature-card__icon--rose   { background: rgba(244,63,94,0.12);   color: #9f1239; box-shadow: 0 2px 10px rgba(244,63,94,0.12); }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: var(--sp-2);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Feature tag list inside card */
.feature-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: var(--sp-4);
}

.feature-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  color: var(--text-faint);
}

/* ============================================================
   BENTO-STYLE FEATURE SHOWCASE
   ============================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: var(--sp-5);
}

.bento-card {
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
}

.bento-card--wide  { grid-column: span 7; }
.bento-card--narrow{ grid-column: span 5; }
.bento-card--full  { grid-column: span 12; }
.bento-card--half  { grid-column: span 6; }
.bento-card--third { grid-column: span 4; }

/* ============================================================
   AI SECTION
   ============================================================ */
.ai-section { position: relative; overflow: hidden; }

.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.ai-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  transition: background var(--t-normal), border-color var(--t-normal);
}

.ai-feature-item:hover {
  background: var(--glass-white-lg);
  border-color: rgba(139,92,246,0.25);
}

.ai-feature-item__icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: rgba(139,92,246,0.12);
  color: #7c3aed;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ai-feature-item__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

.ai-feature-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-bright); margin-bottom: 2px; }
.ai-feature-item p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* AI glow visual */
.ai-visual {
  position: relative;
  padding: var(--sp-8);
  text-align: center;
}

.ai-orb-center {
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--grad-purple);
  margin: 0 auto var(--sp-6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 80px rgba(139,92,246,0.5);
  animation: floatOrb 4s ease-in-out infinite;
  position: relative;
}
.ai-orb-center::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--grad-purple);
  filter: blur(8px);
  opacity: 0.6;
  z-index: -1;
}
.ai-orb-center svg { width: 60px; height: 60px; fill: rgba(255,255,255,0.9); }

@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ============================================================
   SECURITY SECTION
   ============================================================ */
.security-section { position: relative; }

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
}

.security-item__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.security-item h4 { font-size: 0.9rem; font-weight: 700; color: var(--text-white); margin-bottom: 3px; }
.security-item p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* Compliance badge strip */
.compliance-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding: var(--sp-6);
  margin-top: var(--sp-8);
}

.compliance-badge {
  padding: var(--sp-3) var(--sp-5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-section { position: relative; overflow: hidden; }
.pricing-section .orb--1 { bottom: -200px; left: -150px; }
.pricing-section .orb--2 { top: -150px; right: -100px; }

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}

.pricing-toggle__label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); cursor: pointer; }
.pricing-toggle__label--active { color: var(--text-white); }

.pricing-toggle__switch {
  position: relative;
  width: 48px; height: 26px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-normal);
}
.pricing-toggle__switch.active { background: var(--accent-1); border-color: var(--accent-1); box-shadow: 0 0 16px rgba(99,102,241,0.4); }
.pricing-toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--t-normal);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.pricing-toggle__switch.active::after { transform: translateX(22px); }

.pricing-save {
  font-size: 0.7rem; font-weight: 700;
  color: #6ee7b7;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  align-items: start;
}

.pricing-card {
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
}

.pricing-card--featured {
  background: var(--grad-primary);
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 12px 40px rgba(99,102,241,0.35);
}
.pricing-card--featured .pricing-card__plan  { color: rgba(255,255,255,0.75); }
.pricing-card--featured .pricing-card__amount { color: #fff; }
.pricing-card--featured .pricing-card__symbol,
.pricing-card--featured .pricing-card__period { color: rgba(255,255,255,0.65); }
.pricing-card--featured .pricing-card__desc   { color: rgba(255,255,255,0.8); }
.pricing-card--featured .pricing-card__divider { background: rgba(255,255,255,0.2); }
.pricing-card--featured .pricing-features li   { color: rgba(255,255,255,0.9); }
.pricing-card--featured .pricing-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6.5' stroke='rgba(255,255,255,0.5)' fill='none'/%3E%3Cpath d='M4.5 7l1.8 1.8 3-3.6' stroke='white' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
}
.pricing-card--featured .btn--grad { background: #fff; color: #4338ca; box-shadow: 0 4px 14px rgba(0,0,0,0.15); }
.pricing-card--featured .btn--grad:hover { background: rgba(255,255,255,0.92); }
.pricing-card--featured::after {
  content: 'Most Popular';
  position: absolute;
  top: -1px; right: 24px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  border: 1px solid rgba(255,255,255,0.3);
  border-top: none;
}

.pricing-card__plan {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--sp-3);
}
.pricing-card--featured .pricing-card__plan { color: #a5b4fc; }

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--sp-2);
}

.pricing-card__amount {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
}
.pricing-card__symbol { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); align-self: flex-start; padding-top: 6px; }
.pricing-card__period { font-size: 0.8rem; color: var(--text-faint); }

.pricing-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  line-height: 1.5;
}

.pricing-card__divider {
  height: 1px;
  background: var(--glass-border);
  margin-bottom: var(--sp-5);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pricing-features li::before {
  content: '';
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='6.5' stroke='rgba(99,102,241,0.5)' fill='none'/%3E%3Cpath d='M4.5 7l1.8 1.8 3-3.6' stroke='%23a5b4fc' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-features--featured li { color: rgba(255,255,255,0.8); }

.pricing-card .btn { width: 100%; justify-content: center; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { position: relative; overflow: hidden; }

.testimonial-card {
  padding: var(--sp-6);
  height: 100%;
}

.testimonial-card__quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--sp-5);
  font-style: italic;
}
.testimonial-card__quote::before { content: '\201C'; color: var(--accent-1); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; }

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: #fff;
  flex-shrink: 0;
}

.testimonial-card__info strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--text-white); }
.testimonial-card__info span   { font-size: 0.75rem; color: var(--text-faint); }

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-3);
}
.testimonial-stars svg { width: 14px; height: 14px; fill: var(--accent-5); }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section .orb--1 { top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.25; width: 700px; height: 700px; }

.cta-glass {
  max-width: 760px;
  margin-inline: auto;
  padding: var(--sp-16) var(--sp-12);
  position: relative;
  z-index: 1;
}

.cta-section h2 { margin-bottom: var(--sp-4); }
.cta-section .body-lg { max-width: 480px; margin-inline: auto; margin-bottom: var(--sp-8); }

.cta-form {
  display: flex;
  gap: var(--sp-3);
  max-width: 460px;
  margin-inline: auto;
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(99,102,241,0.2);
  background: rgba(255,255,255,0.7);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  color: var(--text-bright);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cta-form input::placeholder { color: var(--text-faint); }
.cta-form input:focus {
  border-color: rgba(99,102,241,0.55);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
  background: rgba(255,255,255,0.9);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-8);
  border-top: 1px solid rgba(99,102,241,0.12);
  background: rgba(238, 241, 255, 0.6);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid rgba(99,102,241,0.1);
}

.footer-brand .logo-wrap {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: var(--sp-4);
}
.footer-brand .logo-wrap .logo-icon {
  width: 32px; height: 32px; border-radius: 9px;
}
.footer-brand .logo-wrap .custom-logo-link img,
.footer-brand .logo-wrap .custom-logo {
  height: 40px; width: auto; display: block; object-fit: contain;
}
.footer-brand .logo-wrap .logo-name-text {
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p { font-size: 0.875rem; color: var(--text-faint); line-height: 1.65; max-width: 280px; }

.footer-brand__social {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-4);
}
.footer-brand__social a {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--glass-white-md);
  border: 1px solid rgba(99,102,241,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.footer-brand__social a:hover {
  background: var(--glass-white-lg);
  color: #4338ca;
  border-color: rgba(99,102,241,0.35);
}
.footer-brand__social a svg { width: 14px; height: 14px; fill: currentColor; }

.footer-col h4 {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-bright);
  margin-bottom: var(--sp-4);
}
.footer-col ul li { margin-bottom: var(--sp-2); }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-faint); transition: color var(--t-fast); }
.footer-col ul li a:hover { color: #4338ca; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-6);
  font-size: 0.8rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.site-footer__bottom a { color: var(--text-faint); transition: color var(--t-fast); }
.site-footer__bottom a:hover { color: #4338ca; }

/* ============================================================
   BLOG TEMPLATES
   ============================================================ */
.blog-archive { padding-block: var(--sp-24); padding-top: calc(var(--sp-24) + 62px); }
.blog-archive__header { text-align: center; max-width: 600px; margin-inline: auto; margin-bottom: var(--sp-12); }
.blog-archive__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-6); }

.blog-card { overflow: hidden; transition: transform var(--t-normal), box-shadow var(--t-normal); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glass), var(--shadow-glow); }

.blog-card__image { height: 200px; overflow: hidden; position: relative; border-radius: var(--r-md) var(--r-md) 0 0; background: rgba(99,102,241,0.1); }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.blog-card:hover .blog-card__image img { transform: scale(1.06); }
.blog-card__image-placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(99,102,241,0.15),rgba(139,92,246,0.1)); }

.blog-card__content { padding: var(--sp-5); }
.blog-card__cat { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #a5b4fc; margin-bottom: var(--sp-2); }
.blog-card__title { font-size: 0.95rem; font-weight: 700; line-height: 1.4; color: var(--text-bright); margin-bottom: var(--sp-3); transition: color var(--t-fast); }
.blog-card:hover .blog-card__title { color: #4338ca; }
.blog-card__meta { display: flex; align-items: center; gap: var(--sp-3); font-size: 0.75rem; color: var(--text-faint); }

/* Single post */
.single-post { padding-top: calc(var(--sp-24) + 62px); padding-bottom: var(--sp-16); }
.single-post__header { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: var(--sp-10); }
.single-post__meta { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); font-size: 0.8rem; color: var(--text-faint); margin-top: var(--sp-4); }
.single-post__content { max-width: 760px; margin-inline: auto; font-size: 1.05rem; line-height: 1.8; color: var(--text-muted); }
.single-post__content h2, .single-post__content h3 { color: var(--text-white); margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.single-post__content p { margin-bottom: var(--sp-5); }
.single-post__content a { color: #4338ca; text-decoration: underline; text-underline-offset: 3px; }
.single-post__featured-image { max-width: 900px; margin-inline: auto; margin-bottom: var(--sp-10); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--glass-border); }

/* Single-post two-column layout: main content + right sidebar */
.single-post__body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-10);
  align-items: start;
}
.single-post__main { min-width: 0; }
.single-post__main .single-post__featured-image { max-width: 100%; }
.single-post__main .single-post__content { max-width: 100%; margin-inline: 0; }

/* Sidebar panel */
.blog-sidebar-area {
  position: sticky;
  top: 84px;
}
.blog-sidebar-area .glass-card {
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.blog-sidebar-area .glass-card:last-child { margin-bottom: 0; }
.blog-sidebar-area .widgettitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-bright);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(99,102,241,0.1);
}
.blog-sidebar-area ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.blog-sidebar-area ul li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.blog-sidebar-area ul li a:hover { color: #4338ca; }

/* Contact page */
.contact-page { padding-top: calc(var(--sp-24) + 62px); padding-bottom: var(--sp-16); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); max-width: 960px; margin-inline: auto; }
.contact-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: var(--sp-2); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(99,102,241,0.18);
  background: rgba(255,255,255,0.7);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  color: var(--text-bright);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); background: rgba(255,255,255,0.9); }
.contact-form .form-group { margin-bottom: var(--sp-4); }
.contact-form textarea { min-height: 140px; resize: vertical; font-family: inherit; }

/* 404 */
.page-404 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px; }
.page-404__code { font-size: clamp(6rem, 18vw, 14rem); font-weight: 900; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: var(--sp-4); }

/* Generic page */
.generic-page { padding-top: calc(var(--sp-24) + 62px); padding-bottom: var(--sp-16); }
.generic-page__header { text-align: center; max-width: 600px; margin-inline: auto; margin-bottom: var(--sp-12); }
.generic-page__content { max-width: 760px; margin-inline: auto; font-size: 1rem; line-height: 1.8; color: var(--text-muted); }
.generic-page__content h2, .generic-page__content h3 { color: var(--text-white); margin-top: var(--sp-8); margin-bottom: var(--sp-3); }
.generic-page__content p { margin-bottom: var(--sp-4); }
.generic-page__content ul, .generic-page__content ol { list-style: revert; margin-left: var(--sp-6); margin-bottom: var(--sp-5); color: var(--text-muted); }
.generic-page__content a { color: #a5b4fc; text-decoration: underline; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-12); }
.pagination .page-numbers {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted);
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  transition: all var(--t-fast);
}
.pagination .page-numbers:hover, .pagination .page-numbers.current { color: var(--text-white); background: var(--glass-white-md); border-color: rgba(99,102,241,0.4); }
.pagination .page-numbers.dots { background: none; border-color: transparent; width: auto; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide, .bento-card--narrow { grid-column: span 6; }
  .bento-card--third { grid-column: span 6; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .blog-archive__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root { --pad: 18px; }

  .nav-menu { display: none; }
  .site-header__actions .btn--outline { display: none; }
  .nav-toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; gap: var(--sp-8); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--wide, .bento-card--narrow, .bento-card--half, .bento-card--third, .bento-card--full { grid-column: span 1; }

  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__trust { gap: var(--sp-4); }
  .hero__mockup-window { border-radius: var(--r-lg); }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }

  .stats-bar__inner { flex-direction: column; gap: 0; }
  .stat-divider { width: 80%; height: 1px; }
  .stat-item { min-width: auto; width: 100%; }

  .security-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-archive__grid { grid-template-columns: 1fr; }
  .single-post__body { grid-template-columns: 1fr; }
  .blog-sidebar-area { position: static; }
  .single-post__main .single-post__content { max-width: 760px; margin-inline: auto; }

  .site-footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .site-footer__bottom { flex-direction: column; text-align: center; }

  .cta-glass { padding: var(--sp-10) var(--sp-6); }
  .cta-form { flex-direction: column; }

  .compliance-strip { gap: var(--sp-2); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}
