/* ==========================================================================
   MAGICSOFT CORPORATION - DESIGN SYSTEM & STYLESHEET
   (shares its look and feel with itservices.org)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Dark theme (default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #131b2e;
  --bg-tertiary: #1b2640;
  --bg-card: rgba(19, 27, 46, 0.7);
  --bg-card-hover: rgba(27, 38, 64, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;

  --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #6366f1 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15), transparent 70%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);

  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --max-width: 1280px;
  --nav-height: 80px;
}

/* Light theme overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(37, 99, 235, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.15);
}

/* --------------------------------------------------------------------------
   2. RESET & GLOBAL STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 3000; background: var(--accent-blue); color: #fff; padding: 0.5rem 1rem; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY & BADGES
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

p + p { margin-top: 1rem; }

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-tag.amber { background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: var(--accent-amber); }

.section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 650px; margin: 0 auto 3rem auto; }
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }

.prose a, .text-link { color: var(--accent-cyan); }
.prose a:hover, .text-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

.btn-primary { background: var(--gradient-primary); color: #ffffff; box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5); }

.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--accent-cyan); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.btn-outline:hover { background: rgba(56, 189, 248, 0.1); transform: translateY(-2px); }

.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.theme-toggle:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); transform: scale(1.05); }

/* --------------------------------------------------------------------------
   5. HEADER & NAVBAR
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}
.header.scrolled { box-shadow: var(--shadow-md); height: 70px; }

.navbar { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo-container { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: 1.25rem; color: var(--text-primary); }
.logo-img { height: 48px; width: 48px; border-radius: var(--radius-sm); object-fit: cover; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; }

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--accent-cyan); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.mobile-toggle { display: none; background: transparent; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; }

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background: var(--gradient-glow);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3rem; align-items: center; }
.hero-grid > *, .split > *, .cta-grid > *, .contact-grid > *, .glow-card > *, .navbar > * { min-width: 0; }
.hero-eyebrow { color: var(--accent-cyan); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 1rem; text-transform: uppercase; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: 1.25rem; letter-spacing: -0.03em; }
.hero-subtitle { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  position: relative;
}
.hero-card::before, .glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-feature-img { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); margin-bottom: 1rem; }
.hero-feature-img img { width: 100%; height: 220px; object-fit: cover; }
.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.thumb-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-color); }

/* Inner page header */
.page-header-hero {
  padding: 5rem 0 3rem 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}
.page-header-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
  pointer-events: none;
}
.page-header-hero .container { position: relative; }
.page-header-hero h1 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.page-header-hero p { color: var(--text-secondary); max-width: 720px; font-size: 1.1rem; line-height: 1.7; }

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent-cyan); transition: color var(--transition-fast); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.7rem; }

/* --------------------------------------------------------------------------
   7. SECTIONS & CARDS
   -------------------------------------------------------------------------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.split p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 2rem; }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); background: var(--bg-card-hover); }
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.service-card .btn { align-self: flex-start; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(37, 99, 235, 0.2));
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  flex-shrink: 0;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}
.feature-row .service-icon { width: 44px; height: 44px; font-size: 1.15rem; margin: 0; }
.feature-row strong { font-size: 1rem; }

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.media-card img { border-radius: var(--radius-md); margin: 0 auto; }

/* Split card with image + text (about/inner pages) */
.glow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.glow-card-media { position: relative; min-height: 320px; background: var(--bg-tertiary); }
.glow-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.glow-card-media.contain img { object-fit: contain; padding: 1.5rem; }
.glow-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bg-card) 100%); pointer-events: none; }
.glow-card-media.contain::after { display: none; }
.glow-card-body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.glow-card-body p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }

.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-secondary); }
.check-list li i { color: var(--accent-emerald); margin-top: 0.3rem; }

.figure { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1rem; transition: all var(--transition-normal); }
.figure:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.figure img { border-radius: var(--radius-md); width: 100%; }
.figure figcaption { color: var(--text-secondary); font-size: 0.92rem; padding: 1rem 0.5rem 0.25rem; line-height: 1.6; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }

/* CTA band */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(56, 189, 248, 0.15));
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
}
.cta-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3rem; align-items: center; }
.cta-grid h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.cta-grid p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-grid img { max-height: 300px; width: auto; margin: 0 auto; }
.confidence-list { display: grid; gap: 1rem; }
.confidence-list li { display: flex; gap: 1rem; padding: 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-card); color: var(--text-secondary); }
.confidence-list i { color: var(--accent-cyan); font-size: 1.25rem; margin-top: 0.2rem; }
.confidence-list strong { display: block; color: var(--text-primary); margin-bottom: 0.2rem; }

/* News */
.news-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glow);
}
.news-card .service-icon { margin: 0; }
.news-card p { font-size: 1.15rem; font-weight: 600; flex: 1; }

/* --------------------------------------------------------------------------
   8. CONTACT & FORMS
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.contact-info-card, .contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-info-card > p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }
.contact-info-card form { margin-top: 1.75rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-color); }

.contact-detail-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact-detail-item { display: flex; align-items: flex-start; gap: 1.25rem; }
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-detail-item h4 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.contact-detail-item p, .contact-detail-item a, .contact-detail-item address { color: var(--text-secondary); font-size: 0.95rem; font-style: normal; }
.contact-detail-item a:hover { color: var(--accent-cyan); }

.contact-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); height: 100%; min-height: 260px; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; }

.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
[data-theme="light"] .form-control { background-color: #f8fafc; box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.08), 0 1px 0 #ffffff; }
.form-control::placeholder { color: var(--text-muted); }
select.form-control {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}
select.form-control option { background-color: var(--bg-secondary); color: var(--text-primary); }
.form-control:focus { border-color: var(--accent-cyan); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(56, 189, 248, 0.18), 0 10px 22px -10px rgba(56, 189, 248, 0.55); transform: translateY(-1px); }
textarea.form-control { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-size: 0.95rem; }
.form-status.error { color: var(--accent-red); }
.form-status.success { color: var(--accent-emerald); }
.form-intro { margin-bottom: 0; }
.required-note { color: var(--text-muted); font-size: 0.85rem; margin: -0.25rem 0 1.25rem; }

/* --------------------------------------------------------------------------
   9. PROSE & DOCUMENTS
   -------------------------------------------------------------------------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-secondary); line-height: 1.8; }

.pdf-frame { width: 100%; height: 80vh; min-height: 500px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: #fff; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   9b. ENTERPRISE AI COMPONENTS (InRag pages)
   -------------------------------------------------------------------------- */
.lead { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; }
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-head p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head.wide { max-width: 920px; }

/* Home hero: mini flow and key points */
.hero-flow { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; margin-top: 2.75rem; }
.flow-node {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.2rem;
  padding: 1.1rem 0.75rem; border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 60%), var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 28px -18px rgba(0, 0, 0, 0.8);
}
.flow-node strong { font-size: 0.92rem; color: var(--text-primary); }
.flow-node small { font-size: 0.75rem; color: var(--text-muted); }
.flow-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.4rem; font-size: 1.1rem; color: var(--accent-cyan); background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.25); }
.flow-node.core { border-color: var(--border-glow); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(56, 189, 248, 0.15), 0 18px 36px -16px rgba(37, 99, 235, 0.6); }
.flow-node.core .flow-icon { color: #fff; background: linear-gradient(145deg, #38bdf8, #2563eb 55%, #4f46e5); border: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 8px 16px -6px rgba(37, 99, 235, 0.7); }
.flow-node.core strong { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 1.05rem; }
[data-theme="light"] .flow-node { background: #ffffff; box-shadow: 0 14px 28px -20px rgba(15, 23, 42, 0.35); }
.flow-arrow { position: relative; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--accent-cyan) 0 6px, transparent 6px 11px); background-size: 22px 2px; animation: flow-dash 1.2s linear infinite; opacity: 0.8; }
.flow-arrow span { position: absolute; right: -2px; top: -4px; border-left: 7px solid var(--accent-cyan); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
@keyframes flow-dash { to { background-position: 22px 0; } }
@media (prefers-reduced-motion: reduce) { .flow-arrow { animation: none; } }
.hero-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.25rem; margin-top: 1.75rem; }
.hero-points li { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.45; }
.hero-points i { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: var(--accent-cyan); background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.22); }
.hero-points strong { color: var(--text-primary); }
@media (max-width: 576px) {
  .hero-flow { grid-template-columns: 1fr; gap: 0; }
  .flow-arrow { width: 2px; height: 26px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--accent-cyan) 0 6px, transparent 6px 11px); background-size: 2px 22px; animation-name: flow-dash-v; }
  .flow-arrow span { right: -4px; top: auto; bottom: -2px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--accent-cyan); border-bottom: none; }
  .hero-points { grid-template-columns: 1fr; }
}
@keyframes flow-dash-v { to { background-position: 0 22px; } }

/* Home: benefits */
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1.5rem; }
.benefit-card {
  position: relative; padding: 2rem 1.75rem; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.07), transparent 45%), var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px -28px rgba(0, 0, 0, 0.8);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.benefit-card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 28px 50px -26px rgba(37, 99, 235, 0.55); }
[data-theme="light"] .benefit-card { background: linear-gradient(180deg, rgba(56, 189, 248, 0.08), #ffffff 45%); box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.35); }
.benefit-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; background: linear-gradient(145deg, #38bdf8, #2563eb 55%, #4f46e5); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 10px 20px -8px rgba(37, 99, 235, 0.7); margin-bottom: 1.25rem; }
.benefit-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-cyan); margin-bottom: 0.4rem; }
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }
.benefit-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; }

/* Home: savings calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; align-items: stretch; }
.calc-inputs, .calc-results { padding: 2rem; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 48px -30px rgba(0, 0, 0, 0.85); }
.calc-results { border-color: var(--border-glow); display: flex; flex-direction: column; justify-content: center; text-align: center; background: linear-gradient(160deg, rgba(56, 189, 248, 0.1), transparent 55%), var(--bg-card); }
.calc-field + .calc-field { margin-top: 1.6rem; }
.calc-field label { display: block; font-weight: 600; margin-bottom: 0.6rem; }
.calc-row { display: flex; align-items: center; gap: 1rem; }
.calc-row input[type="range"] { flex: 1; accent-color: var(--accent-blue); height: 6px; cursor: pointer; }
.calc-row output { min-width: 76px; text-align: center; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-primary); background: var(--bg-tertiary); border: 1px solid var(--border-color); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25); }
.calc-result { display: flex; flex-direction: column; gap: 0.2rem; }
.calc-label { color: var(--text-secondary); font-weight: 600; }
.calc-value { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-value.small { font-size: 1.9rem; color: var(--text-primary); }
.calc-unit { color: var(--text-muted); font-size: 0.9rem; }
.calc-example { display: block; margin-top: 0.15rem; color: var(--accent-cyan); font-size: 0.9rem; }
.calc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.calc-note { margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
@media (max-width: 992px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 576px) { .calc-inputs, .calc-results { padding: 1.5rem; } }

/* Answer preview card in the home hero */
.answer-card { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; font-size: 0.92rem; }
.answer-card + .answer-card { margin-top: 0.75rem; }
.qa-label { display: flex; align-items: center; gap: 0.45rem; margin: 1rem 0 0.4rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.qa-label:first-child { margin-top: 0; }
.qa-label i { width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.62rem; }
.qa-label.q { color: var(--accent-cyan); }
.qa-label.q i { background: rgba(56, 189, 248, 0.15); }
.qa-label.a { color: #818cf8; }
.qa-label.a i { background: rgba(129, 140, 248, 0.16); }
.qa-label.quote { color: var(--accent-emerald); }
.qa-label.quote i { background: rgba(16, 185, 129, 0.15); }
.qa-label.doc { color: var(--accent-amber); }
.qa-label.doc i { background: rgba(245, 158, 11, 0.15); }
[data-theme="light"] .qa-label.a { color: #4f46e5; }
[data-theme="light"] .qa-label.doc { color: #b45309; }
[data-theme="light"] .qa-label.quote { color: #047857; }
.answer-q { color: var(--text-primary); font-weight: 600; line-height: 1.5; }
.answer-a { color: var(--text-secondary); line-height: 1.6; }
.answer-doc { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm); background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.88rem; }
.answer-doc i { color: var(--accent-amber); font-size: 1rem; }
.answer-doc strong { color: var(--text-primary); }
.answer-quote { padding: 0.6rem 0.85rem; border-left: 3px solid var(--accent-emerald); background: rgba(16, 185, 129, 0.08); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-secondary); font-style: italic; }
.answer-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.85rem; }

.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600; background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary); }
.chip i { font-size: 0.75rem; }
.chip.ok { color: var(--accent-emerald); border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.08); }
.chip.guard { color: var(--accent-amber); border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08); }
.chip.info { color: var(--accent-cyan); border-color: var(--border-glow); background: rgba(56, 189, 248, 0.08); }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Key numbers */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.5rem; }
.stat-tile { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.75rem; }
.stat-value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat-label { color: var(--text-primary); font-weight: 600; margin-top: 0.5rem; }
.stat-note { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.35rem; }
.stat-source { color: var(--text-muted); font-size: 0.875rem; margin-top: 1.5rem; text-align: center; }

/* Request a Demo page */
.demo-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: start; }
.demo-steps { display: flex; flex-direction: column; gap: 1.1rem; counter-reset: dstep; }
.demo-steps li { counter-increment: dstep; display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.demo-steps li::before { content: counter(dstep); grid-row: span 2; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--gradient-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(37, 99, 235, 0.45); }
.demo-steps strong { display: block; color: var(--text-primary); }
.demo-form-card {
  position: relative;
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.08), transparent 40%), var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 18px 36px -18px rgba(37, 99, 235, 0.35);
  overflow: hidden;
}
.demo-form-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient-primary); }
.demo-form-card .form-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.demo-form-card .form-head h2 { font-size: 1.5rem; margin-bottom: 0.15rem; }
.demo-form-card .form-head .required-note { margin: 0; }
.icon-3d {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff;
  background: linear-gradient(145deg, #38bdf8, #2563eb 55%, #4f46e5);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 10px 20px -6px rgba(37, 99, 235, 0.6);
}
.form-section {
  position: relative;
  min-width: 0;
  margin: 0 0 1.5rem;
  padding: 1.5rem 1.5rem 0.4rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 55%), var(--bg-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.25), 0 14px 28px -16px rgba(0, 0, 0, 0.7);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.form-section:focus-within {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 8px rgba(0, 0, 0, 0.25), 0 22px 40px -18px rgba(37, 99, 235, 0.55);
}
[data-theme="light"] .form-section { background: linear-gradient(180deg, #ffffff, #f8fafc); box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(15, 23, 42, 0.06), 0 14px 28px -18px rgba(15, 23, 42, 0.3); }
[data-theme="light"] .form-section:focus-within { box-shadow: inset 0 1px 0 #ffffff, 0 2px 6px rgba(15, 23, 42, 0.08), 0 22px 40px -20px rgba(37, 99, 235, 0.45); }
[data-theme="light"] .demo-form-card { box-shadow: 0 30px 60px -32px rgba(15, 23, 42, 0.35), 0 18px 36px -20px rgba(37, 99, 235, 0.25); }
.form-section legend {
  float: left; width: 100%; padding: 0; margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-cyan);
}
.form-section legend + * { clear: both; }
.step-num {
  width: 28px; height: 28px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient-primary); color: #fff; font-size: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(37, 99, 235, 0.45);
}
.checkbox-row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.25rem; border-radius: var(--radius-md); background: var(--bg-tertiary); border: 1px solid var(--border-color); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.25); }
[data-theme="light"] .checkbox-row { background: #f8fafc; box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.06); }
.checkbox-row input { width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--accent-blue); flex-shrink: 0; cursor: pointer; }
.checkbox-row label { font-weight: 500; margin: 0; color: var(--text-secondary); cursor: pointer; }
.btn-3d {
  width: 100%;
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 0 #1e3a8a, 0 14px 28px -6px rgba(37, 99, 235, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-3d:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 0 #1e3a8a, 0 18px 32px -6px rgba(56, 189, 248, 0.55); }
.btn-3d:active { transform: translateY(5px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 0 #1e3a8a, 0 6px 12px -4px rgba(37, 99, 235, 0.5); }
.demo-side {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.1), transparent 45%), var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 48px -28px rgba(0, 0, 0, 0.8);
}
[data-theme="light"] .demo-side { box-shadow: 0 24px 48px -30px rgba(15, 23, 42, 0.3); }
.demo-aside .confidence-list li { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px -12px rgba(0, 0, 0, 0.6); }
@media (max-width: 992px) { .demo-grid { grid-template-columns: 1fr; } }
@media (max-width: 576px) { .demo-form-card { padding: 1.5rem; } .form-section { padding: 1.25rem 1rem 0.25rem; } }

/* Email verification on the demo form */
.input-action { display: flex; gap: 0.6rem; align-items: stretch; }
.input-action .form-control { flex: 1; min-width: 0; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; white-space: nowrap; }
.btn-sm:disabled { cursor: not-allowed; }
.btn-send {
  padding: 0.6rem 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #6366f1 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #1e3a8a, 0 10px 22px -6px rgba(56, 189, 248, 0.65);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s ease;
}
.btn-send:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 0 #1e3a8a, 0 14px 28px -6px rgba(56, 189, 248, 0.75); }
.btn-send:active:not(:disabled) { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 0 #1e3a8a, 0 4px 10px -4px rgba(56, 189, 248, 0.6); }
.btn-send:disabled { opacity: 1; filter: saturate(0.35) brightness(0.85); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 0 #1e3a8a; }
.btn-send.ready { animation: send-pulse 1.8s ease-in-out infinite; }
@keyframes send-pulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #1e3a8a, 0 10px 22px -6px rgba(56, 189, 248, 0.65), 0 0 0 0 rgba(56, 189, 248, 0.55); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #1e3a8a, 0 10px 22px -6px rgba(56, 189, 248, 0.65), 0 0 0 8px rgba(56, 189, 248, 0); }
}
@media (prefers-reduced-motion: reduce) { .btn-send.ready { animation: none; } }
.label-hint { margin-left: 0.6rem; font-weight: 500; font-size: 0.82rem; color: var(--accent-cyan); }
.label-hint i { margin-right: 0.25rem; }
.label-hint strong { color: inherit; font-weight: 700; }
@media (max-width: 576px) { .label-hint { display: block; margin: 0.25rem 0 0; } }
.field-hint { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.field-hint.ok { color: var(--accent-emerald); }
.field-hint.error { color: var(--accent-red); }
.verified-chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0 1rem; border-radius: var(--radius-md); font-weight: 600; font-size: 0.9rem; white-space: nowrap; color: var(--accent-emerald); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.45); }
.verified-chip[hidden], .link-btn[hidden], .code-group[hidden], .input-action .btn[hidden] { display: none; }
.form-control[readonly] { opacity: 0.85; cursor: default; }
.link-btn { background: none; border: none; padding: 0; margin-top: 0.4rem; color: var(--accent-cyan); font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.code-group { padding: 1rem 1.1rem 0.25rem; border-radius: var(--radius-md); border: 1px dashed var(--border-glow); background: rgba(56, 189, 248, 0.05); }
.code-input { max-width: 220px; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.35rem; letter-spacing: 0.45em; padding-left: 1.4rem; }
@media (max-width: 576px) { .input-action { flex-wrap: wrap; } .input-action .btn { flex: 1; } .code-input { max-width: none; } }

/* Example update-run report */
.sync-log { background: var(--bg-card); border: 1px solid var(--border-glow); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-glow); }
.sync-log-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.sync-log-head strong { display: flex; align-items: center; gap: 0.5rem; }
.sync-log-head strong i { color: var(--accent-cyan); }
.sync-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); }
.sync-row span:last-child { font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.sync-row.muted span:last-child { color: var(--text-muted); }
.sync-row.changed span:last-child { color: var(--accent-emerald); }
.sync-log-foot { margin-top: 1.1rem; color: var(--text-secondary); font-size: 0.92rem; display: flex; gap: 0.6rem; }
.sync-log-foot i { color: var(--accent-emerald); margin-top: 0.25rem; }

/* Home: ready on day one */
.day-one-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.5rem; }
.day-one-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.day-one-stats .stat-tile { padding: 1.4rem; }
@media (max-width: 576px) { .day-one-list { grid-template-columns: 1fr; } .day-one-stats .stat-tile { padding: 1.1rem; } .day-one-stats .stat-value { font-size: 1.8rem; } }

/* Technology: innovations overview */
.innov-grid { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 1.5rem; }
.innov-card { padding: 1.75rem; }
.innov-card h3 { font-size: 1.15rem; }
.innov-card p { margin-bottom: 1rem; }
.innov-link { font-weight: 600; font-size: 0.92rem; }
.innov-link i { font-size: 0.8rem; margin-left: 0.2rem; }

/* Numbered pipeline */
.pipeline { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1.25rem; counter-reset: step; }
.pipeline li { counter-increment: step; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; }
.pipeline li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--gradient-primary); color: #fff; font-weight: 700; margin-bottom: 1rem; }
.pipeline h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pipeline p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

/* Architecture diagram (inline SVG, themed by the tokens above) */
.diagram { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2.5rem; }
.diagram-scroll { overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 820px; height: auto; }
.diagram figcaption { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--text-secondary); font-size: 0.9rem; margin-top: 1rem; }
.diagram .key-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 0.4rem; }
.dg-zone { fill: rgba(56, 189, 248, 0.03); stroke: var(--accent-cyan); stroke-width: 1.5; stroke-dasharray: 7 6; }
.dg-zone-label, .dg-lane { fill: var(--accent-cyan); font: 700 11.5px var(--font-family); letter-spacing: 0.08em; }
.dg-box { fill: var(--bg-tertiary); stroke: var(--border-color); stroke-width: 1.25; }
.dg-box.key { fill: rgba(56, 189, 248, 0.12); stroke: var(--accent-cyan); stroke-width: 1.5; }
.dg-box.cloud { fill: rgba(245, 158, 11, 0.08); stroke: var(--accent-amber); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dg-title { fill: var(--text-primary); font: 600 15px var(--font-family); }
.dg-sub { fill: var(--text-secondary); font: 400 12.5px var(--font-family); }
.dg-note { fill: var(--accent-amber); font: 600 12px var(--font-family); }
.dg-flow-label { fill: var(--text-muted); font: 500 12px var(--font-family); }
.dg-flow { fill: none; stroke: var(--text-muted); stroke-width: 1.75; }
.dg-flow.out { stroke: var(--accent-amber); stroke-dasharray: 6 5; }
.dg-head { fill: var(--text-muted); }
.dg-head.out { fill: var(--accent-amber); }

/* Chunking example: the same text cut two ways */
.chunk-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.chunk-col { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; }
.chunk-col h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; margin-bottom: 1rem; }
.chunk-col h4 i { color: var(--accent-cyan); }
.chunk { position: relative; border: 1.5px dashed var(--accent-red); border-radius: var(--radius-sm); padding: 1.6rem 1rem 0.9rem; margin-bottom: 0.75rem; color: var(--text-secondary); line-height: 1.6; background: rgba(239, 68, 68, 0.05); }
.chunk.good { border-color: var(--accent-emerald); background: rgba(16, 185, 129, 0.06); }
.chunk strong { color: var(--text-primary); }
.chunk-label { position: absolute; top: 0.35rem; left: 0.75rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.cut { color: var(--accent-red); font-weight: 700; margin-left: 0.35rem; }
.chunk-notes { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 1rem; font-size: 0.92rem; color: var(--text-secondary); }
.chunk-notes li { display: flex; gap: 0.6rem; }
.chunk-notes.bad i { color: var(--accent-red); margin-top: 0.3rem; }
.chunk-notes.good i { color: var(--accent-emerald); margin-top: 0.3rem; }
@media (max-width: 992px) { .chunk-demo { grid-template-columns: 1fr; } }

/* Home: "your data stays inside" illustration */
.secure-ill { padding: 1.25rem; }
.secure-ill svg { display: block; width: 100%; height: auto; }
.ill-lock rect { fill: var(--accent-cyan); }
.ill-lock path { stroke: var(--accent-cyan); stroke-width: 2; }
.ill-core { filter: drop-shadow(0 12px 18px rgba(37, 99, 235, 0.45)); }
.ill-core-title { fill: #ffffff; font: 800 18px var(--font-family); }
.ill-core-sub { fill: rgba(255, 255, 255, 0.85); font: 500 11.5px var(--font-family); }
.ill-check { fill: var(--accent-emerald); }
.ill-bar { fill: var(--border-color); }
[data-theme="dark"] .ill-bar, :root:not([data-theme="light"]) .ill-bar { fill: rgba(148, 163, 184, 0.28); }
.ill-chip rect { fill: rgba(56, 189, 248, 0.15); stroke: var(--accent-cyan); stroke-width: 1.75; }
.ill-chip path { stroke: var(--accent-cyan); stroke-width: 1.75; fill: none; stroke-linecap: round; }
.ill-out { fill: none; stroke: var(--accent-red); stroke-width: 2; stroke-dasharray: 5 5; opacity: 0.75; }
.ill-block { fill: none; stroke: var(--accent-red); stroke-width: 3; stroke-linecap: round; }
.ill-cloud { fill: var(--bg-tertiary); stroke: var(--text-muted); stroke-width: 1.5; }
.ill-note { fill: var(--accent-red); font: 700 12px var(--font-family); letter-spacing: 0.02em; }

/* Before / after privacy example */
.token-demo { display: grid; gap: 1rem; }
.token-step { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.25rem; }
.token-step h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 0.6rem; }
.token-step p { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; color: var(--text-primary); line-height: 1.7; overflow-wrap: anywhere; }
.tok { color: var(--accent-amber); background: rgba(245, 158, 11, 0.12); border-radius: 4px; padding: 0 0.25rem; }
.pii { color: var(--accent-emerald); background: rgba(16, 185, 129, 0.12); border-radius: 4px; padding: 0 0.25rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: var(--bg-card); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.data-table th, .data-table td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border-color); vertical-align: top; }
.data-table thead th { color: var(--text-primary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; background: var(--bg-tertiary); }
.data-table td { color: var(--text-secondary); }
.data-table td.win { color: var(--accent-emerald); font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }

/* Build vs buy comparison */
.compare .data-table { font-size: 0.98rem; }
.compare .data-table { table-layout: fixed; }
.compare .data-table td:first-child, .compare .data-table th:first-child { width: 26%; }
.compare .data-table td:first-child { color: var(--text-primary); font-weight: 600; }
.compare .data-table th:nth-child(2), .compare .data-table th:nth-child(3) { width: 37%; }
.compare .data-table th.us, .compare .data-table td.us { background: rgba(56, 189, 248, 0.07); }
.compare .data-table th.us { color: var(--accent-cyan); }
.compare .data-table td.us { color: var(--text-primary); font-weight: 600; }
.compare i.no { color: var(--accent-red); margin-right: 0.45rem; }
.compare i.yes { color: var(--accent-emerald); margin-right: 0.45rem; }
.compare.four .data-table { min-width: 720px; }
.compare.four .data-table td:first-child, .compare.four .data-table th:first-child { width: 19%; }
.compare.four .data-table th:nth-child(2), .compare.four .data-table th:nth-child(3), .compare.four .data-table th:nth-child(4) { width: 27%; }
.service-card .benefit-kicker { margin-bottom: 0.3rem; }

.outcome { display: flex; gap: 0.5rem; align-items: baseline; margin: -0.5rem 0 0 !important; padding-top: 0.85rem; border-top: 1px dashed var(--border-color); color: var(--accent-emerald) !important; font-weight: 600; font-size: 0.9rem !important; flex-grow: 0 !important; }
.reasons .stat-value { font-size: 2.1rem; }
@media (min-width: 993px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.75rem; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 1.1rem 1.35rem; }
.faq details[open] { border-color: var(--border-glow); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text-primary); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-cyan); font-weight: 700; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--text-secondary); margin-top: 0.75rem; line-height: 1.7; }

/* Resource card */
.doc-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: start; }
.doc-cover { width: 120px; aspect-ratio: 8.5 / 11; border-radius: var(--radius-sm); background: var(--gradient-primary); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 0.9rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: var(--shadow-md); }
.doc-cover i { font-size: 1.75rem; }
.doc-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.doc-card .byline { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.doc-card p { color: var(--text-secondary); line-height: 1.7; }
.doc-card .hero-actions { margin-top: 1.5rem; }

@media (max-width: 576px) {
  .doc-card { grid-template-columns: 1fr; }
  .stat-value { font-size: 2.1rem; }
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-logo img { height: 36px; width: 36px; border-radius: 4px; object-fit: cover; }
.footer-desc { margin-bottom: 1rem; max-width: 380px; }
.footer-col h4 { color: var(--text-primary); font-size: 1.05rem; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-links i { color: var(--accent-cyan); width: 18px; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a:hover { color: var(--accent-cyan); }

/* --------------------------------------------------------------------------
   11. MODAL
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}
.modal-backdrop.active .modal-card { transform: scale(1); }
.modal-card h3 { margin-bottom: 0.75rem; }
.modal-card p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.modal-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid, .contact-grid, .split, .glow-card, .cta-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .glow-card-media::after { display: none; }
  .glow-card-body { padding: 2rem; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .mobile-toggle { display: block; }
}

@media (max-width: 576px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .hero { padding: 3.5rem 0; }
  .hero-content h1 { font-size: clamp(2.15rem, 11vw, 3rem); overflow-wrap: anywhere; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .section, .cta-section { padding: 3.5rem 0; }
  .service-card { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .navbar { gap: 0.75rem; }
  .nav-actions { gap: 0.5rem; flex-shrink: 0; }
  .logo-img { width: 42px; height: 42px; }
  .footer-grid, .gallery { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card { flex-direction: column; align-items: flex-start; }
  .contact-info-card, .contact-form-card { padding: 1.75rem; }
  .logo-container { font-size: 1.05rem; }
}

@media (max-width: 420px) {
  .logo-container > span > .gradient-text { display: none; }
  .theme-toggle { width: 38px; height: 38px; }
  .hero-card { padding: 1rem; }
}
