/* ============================================================
   ThomasDesk — Premium Design System
   ============================================================ */

/* --- Tokens & Variables --- */
:root {
  /* Backgrounds */
  --bg: #0a0c10;
  --bg-soft: #10131a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-strong: rgba(255, 255, 255, 0.07);

  /* Text */
  --text: #f0f2f8;
  --text-secondary: #b0b8cc;
  --muted: #7a8599;

  /* Accents */
  --accent: #8cf0ff;
  --accent-2: #b7ff8c;
  --accent-rgb: 140, 240, 255;
  --accent-2-rgb: 183, 255, 140;
  --gold: #f7d27b;
  --gold-rgb: 247, 210, 123;

  /* Borders & Lines */
  --line: rgba(255, 255, 255, 0.07);
  --line-hover: rgba(255, 255, 255, 0.14);
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(var(--accent-rgb), 0.08);
  --shadow-glow-strong: 0 0 60px rgba(var(--accent-rgb), 0.15);

  /* Blur */
  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(24px);
  --blur-nav: blur(20px);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  /* Spacing (8px grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 100px;
  --space-3xl: 140px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration: 250ms;
  --duration-slow: 400ms;
}


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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }


/* --- Layout --- */
.container {
  width: min(1180px, 90vw);
  margin: 0 auto;
}


/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  background: rgba(10, 12, 16, 0.75);
  border-bottom: 1px solid var(--line);
  transition: background var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              padding var(--duration) var(--ease);
}

.nav.scrolled {
  background: rgba(10, 12, 16, 0.92);
  border-bottom-color: rgba(var(--accent-rgb), 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 20px;
  position: relative;
  transition: padding var(--duration) var(--ease);
}

.nav.scrolled .nav-inner {
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: opacity var(--duration) var(--ease);
}

.logo span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.nav-links a {
  position: relative;
  transition: color var(--duration) var(--ease);
  padding: 4px 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width var(--duration) var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  border: var(--border-glass);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  backdrop-filter: var(--blur-sm);
  transition: border-color var(--duration) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--line-hover);
}

.nav-cta { white-space: nowrap; }


/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}

.btn:not(.secondary):not(.ghost) {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061015;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.2);
}

.btn:not(.secondary):not(.ghost):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.35);
}

.btn:not(.secondary):not(.ghost):active {
  transform: translateY(0) scale(0.98);
}

.btn.secondary, .btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: var(--blur-sm);
}

.btn.secondary:hover, .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-hover);
  transform: translateY(-2px);
}

.btn.secondary:active, .btn.ghost:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061015;
  border: none;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.2);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.35);
}


/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Ambient glow orb behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -300px;
  left: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.hero p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* --- Hero Visual (image frame) --- */
.hero-visual {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.06) 0%, transparent 50%, rgba(var(--accent-2-rgb), 0.04) 100%);
  pointer-events: none;
}

.hero-visual img {
  border-radius: calc(var(--radius-lg) - 8px);
  width: 100%;
}


/* --- Hero Card (stat card) --- */
.hero-card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.3), transparent);
}

.hero-card .stat {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================================
   Sections
   ============================================================ */
.section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.section p.lead {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 600px;
}


/* ============================================================
   Grids
   ============================================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}


/* ============================================================
   Glass Cards
   ============================================================ */
.card {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

/* Top-edge light highlight */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transition: opacity var(--duration) var(--ease);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(var(--accent-rgb), 0.06);
}

.card:hover::before {
  opacity: 0.6;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.card .btn {
  margin-top: var(--space-sm);
}

/* Pricing featured card */
.card.featured {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: var(--shadow-md), 0 0 50px rgba(var(--accent-rgb), 0.1);
  background: rgba(var(--accent-rgb), 0.03);
}

.card.featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), transparent 40%, transparent 60%, rgba(var(--accent-2-rgb), 0.1));
  z-index: -1;
  pointer-events: none;
}

.card .popular-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #061015;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}


/* ============================================================
   Stats (used in pricing, hero cards, demos)
   ============================================================ */
.stat {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: var(--space-sm) 0 var(--space-xs);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.stat-item {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item div {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}


/* ============================================================
   Banner / CTA
   ============================================================ */
.banner {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05), rgba(var(--accent-2-rgb), 0.04));
  backdrop-filter: var(--blur-sm);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Shimmer border effect */
.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(var(--accent-rgb), 0.25) 50%, transparent 90%);
}


/* ============================================================
   Badge
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--gold-rgb), 0.15);
}


/* ============================================================
   Tags
   ============================================================ */
.tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}

.tag:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  transform: translateY(-2px);
}


/* ============================================================
   Lists (checkmarks, links)
   ============================================================ */
.list {
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 15px;
}

.list a {
  transition: color var(--duration) var(--ease);
}

.list a:hover {
  color: var(--accent);
}

.check-list {
  display: grid;
  gap: 14px;
}

.check-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

.check-list div::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(var(--accent-2-rgb), 0.1);
  border: 1px solid rgba(var(--accent-2-rgb), 0.2);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7ff8c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}


/* ============================================================
   Table
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table th, .table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

.table tr {
  transition: background var(--duration) var(--ease);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}


/* ============================================================
   Quote
   ============================================================ */
.quote {
  font-size: 20px;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  padding-left: var(--space-md);
  border-left: 2px solid rgba(var(--accent-rgb), 0.3);
}


/* ============================================================
   Form
   ============================================================ */
.form {
  display: grid;
  gap: var(--space-md);
  max-width: 560px;
}

.form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
  letter-spacing: 0.3px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--blur-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
  outline: none;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.08), 0 0 20px rgba(var(--accent-rgb), 0.06);
  background: rgba(255, 255, 255, 0.05);
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--muted);
}

.form select option {
  background: var(--bg);
  color: var(--text);
}

.form button[type="submit"] {
  justify-self: start;
}

.notice {
  font-size: 13px;
  color: var(--muted);
}


/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-item {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
  border-color: rgba(var(--accent-rgb), 0.15);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.04);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-md);
  cursor: pointer;
  user-select: none;
  gap: var(--space-sm);
}

.faq-question h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease), background var(--duration) var(--ease);
}

.faq-icon::before {
  content: '+';
  font-size: 16px;
  color: var(--accent);
  font-weight: 300;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: rgba(var(--accent-rgb), 0.1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease),
              padding var(--duration-slow) var(--ease);
}

.faq-answer-inner {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}


/* ============================================================
   Image Frames (for demo pages)
   ============================================================ */
.image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
}


/* ============================================================
   Demo page stat row
   ============================================================ */
.demo-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-md);
}


/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.15), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.footer .logo {
  margin-bottom: var(--space-sm);
}

.footer p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}


/* ============================================================
   Scroll Reveal Animations
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.40s; }

.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in scale */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.08); }
  50%      { box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.18); }
}

.animate-float {
  animation: float 6s var(--ease) infinite;
}

.animate-glow-pulse {
  animation: pulseGlow 4s var(--ease) infinite;
}


/* ============================================================
   Vertical Accent Overrides (Demo Pages)
   ============================================================ */
.theme-realtor {
  --accent: #4eeaaf;
  --accent-rgb: 78, 234, 175;
  --accent-2: #8cf0ff;
  --accent-2-rgb: 140, 240, 255;
}

.theme-restaurant {
  --accent: #ff8c5a;
  --accent-rgb: 255, 140, 90;
  --accent-2: #f7d27b;
  --accent-2-rgb: 247, 210, 123;
}

.theme-service {
  --accent: #5a9eff;
  --accent-rgb: 90, 158, 255;
  --accent-2: #8cf0ff;
  --accent-2-rgb: 140, 240, 255;
}


/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 3px;
  transition: color var(--duration) var(--ease);
}

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


/* ============================================================
   Inline CTA card (demo pages)
   ============================================================ */
.cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}


/* ============================================================
   Numbered Steps
   ============================================================ */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  flex-shrink: 0;
}


/* ============================================================
   ul/li in demo/solution pages
   ============================================================ */
.content-list {
  margin-top: var(--space-sm);
  line-height: 1.9;
  color: var(--text-secondary);
  padding-left: var(--space-md);
  list-style: none;
}

.content-list li {
  position: relative;
  padding-left: var(--space-md);
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}


/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: var(--space-sm) 0;
    gap: var(--space-sm);
  }
  .nav-toggle-input:checked ~ .nav-links { display: flex; }
  .nav-cta { display: none; }
  .nav-inner { flex-wrap: wrap; align-items: center; }

  .stat-row,
  .demo-stat-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --space-2xl: 64px;
    --space-3xl: 80px;
  }
  .hero { padding-top: 80px; }
  .hero h1 { font-size: 2rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* Form success state */
.form-success {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.form-success h3 {
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.form-success p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 1; transform: none; }
}
