/* ============================================================
   ORVIYO — GLOBAL DESIGN SYSTEM
   Premium SaaS · Light Theme · 2025
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Core palette — premium warm-white AI SaaS */
  --bg:           #F8FAFF;
  --surface:      #FFFFFF;
  --surface-2:    #F2F4FB;
  --surface-3:    #E8EBF6;
  --border:       #DDE1F0;
  --border-soft:  #E8EBF6;

  /* Brand */
  --blue:         #4361EE;
  --blue-light:   #6B8AFF;
  --blue-dark:    #2F4DD4;
  --purple:       #7C3AED;
  --purple-light: #A78BFA;
  --indigo:       #4338CA;
  --cyan:         #06B6D4;
  --cyan-light:   #67E8F9;

  /* Gradients */
  --grad-brand:      linear-gradient(135deg, #4361EE 0%, #7C3AED 100%);
  --grad-brand-rich: linear-gradient(135deg, #3B5BDB 0%, #6D28D9 60%, #7C3AED 100%);
  --grad-soft:       linear-gradient(135deg, #EEF2FF 0%, #F3EEFF 100%);
  --grad-hero:       linear-gradient(160deg, #EEF2FF 0%, #F5F0FF 45%, #EDF6FF 100%);
  --grad-card:       linear-gradient(145deg, rgba(67,97,238,0.035) 0%, rgba(124,58,237,0.035) 100%);
  --grad-surface:    linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
  --grad-glass:      linear-gradient(135deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.48) 100%);
  --grad-cyan-glow:  radial-gradient(ellipse at center, rgba(6,182,212,0.12) 0%, transparent 70%);

  /* Text */
  --text-primary:   #080818;
  --text-secondary: #374165;
  --text-muted:     #7B82A8;
  --text-white:     #FFFFFF;

  /* Shadows — layered for depth */
  --shadow-xs:    0 1px 2px rgba(8,8,24,0.05);
  --shadow-sm:    0 1px 3px rgba(8,8,24,0.06), 0 1px 2px rgba(8,8,24,0.04);
  --shadow-md:    0 4px 16px rgba(8,8,24,0.07), 0 2px 4px rgba(8,8,24,0.04);
  --shadow-lg:    0 8px 32px rgba(8,8,24,0.09), 0 2px 8px rgba(8,8,24,0.05);
  --shadow-xl:    0 20px 56px rgba(8,8,24,0.10), 0 6px 16px rgba(8,8,24,0.06);
  --shadow-2xl:   0 32px 80px rgba(8,8,24,0.12), 0 10px 24px rgba(8,8,24,0.07);
  --shadow-brand: 0 6px 28px rgba(67,97,238,0.34), 0 2px 6px rgba(67,97,238,0.18);
  --shadow-brand-lg: 0 14px 44px rgba(67,97,238,0.40), 0 4px 12px rgba(67,97,238,0.22);
  --shadow-card:  0 2px 12px rgba(8,8,24,0.06), 0 1px 3px rgba(8,8,24,0.04);
  --shadow-glass: 0 8px 32px rgba(67,97,238,0.10), 0 2px 8px rgba(67,97,238,0.06), inset 0 1px 0 rgba(255,255,255,0.8);

  /* Radii */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-3xl:  44px;
  --r-full: 9999px;

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;

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

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:  120ms;
  --t-base:  220ms;
  --t-slow:  380ms;
  --t-xslow: 600ms;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

body, section, main, header, footer, nav, div { min-width: 0; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.016em;
}

.text-xl   { font-size: 1.25rem;   line-height: 1.52; }
.text-lg   { font-size: 1.125rem;  line-height: 1.58; }
.text-base { font-size: 1rem;      line-height: 1.65; }
.text-sm   { font-size: 0.875rem;  line-height: 1.58; }
.text-xs   { font-size: 0.75rem;   line-height: 1.52; }

.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-gradient  {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Prevent clipping on descenders */
  padding-bottom: 0.05em;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3.4vw, var(--space-8));
}

.container-narrow {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3.4vw, var(--space-8));
}

.container-wide {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3.4vw, var(--space-8));
}

.section       { padding: clamp(var(--space-10), 7.5vw, var(--space-28)) 0; }
.section-lg    { padding: clamp(var(--space-10), 7.5vw, var(--space-28)) 0 clamp(var(--space-8), 6vw, var(--space-20)); }
.section-sm    { padding: clamp(var(--space-8), 6vw, var(--space-16)) 0; }
.section-xs    { padding: clamp(var(--space-6), 4vw, var(--space-10)) 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: linear-gradient(135deg, rgba(67,97,238,0.08) 0%, rgba(124,58,237,0.06) 100%);
  border: 1px solid rgba(67,97,238,0.16);
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-5);
  box-shadow: 0 2px 8px rgba(67,97,238,0.08);
}

.section-title  { margin-bottom: var(--space-4); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.75;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s var(--ease-in-out),
              box-shadow 0.4s var(--ease-in-out),
              backdrop-filter 0.4s;
}

.navbar-scrolled {
  background: rgba(248,250,255,0.92) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  box-shadow: 0 1px 0 rgba(8,8,24,0.07), 0 4px 24px rgba(67,97,238,0.06) !important;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: var(--space-6);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 15px;
  border-radius: var(--r-full);
  transition: color var(--t-base), background var(--t-base);
  position: relative;
  letter-spacing: -0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 14px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease-spring);
}

.nav-link:hover { color: var(--blue); background: rgba(67,97,238,0.06); }
.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active { color: var(--blue); }

.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  transition: background var(--t-base);
}

.navbar-toggle:hover { background: var(--surface-2); }

.navbar-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease-out);
}

.navbar-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.navbar-mobile {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  padding: var(--space-4) var(--space-5) var(--space-6);
  box-shadow: 0 8px 24px rgba(15,15,26,0.08);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height var(--t-slow) var(--ease-out), opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}

.navbar-mobile ul { margin-bottom: var(--space-5); }

.navbar-mobile .nav-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  border-radius: var(--r-md);
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (max-width: 900px) {
  .navbar-links, .navbar-cta { display: none; }
  .navbar-toggle { display: flex; }
  .navbar-mobile.open {
    max-height: 90vh;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6875rem 1.5rem;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--t-base) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  min-height: 42px;
  max-width: 100%;
}

.btn-primary {
  background: var(--grad-brand-rich);
  color: var(--text-white);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand-lg);
  background: linear-gradient(135deg, #4A6CF7 0%, #7C3AED 100%);
}

.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-brand); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.9);
  border: 1px solid rgba(221, 225, 240, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.9);
  border-color: rgba(67, 97, 238, 0.28);
  color: var(--blue);
  background: rgba(255, 255, 255, 0.96);
}

.btn-secondary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.6875rem 1.25rem;
}

.btn-ghost:hover { color: var(--blue); background: rgba(74,108,247,0.06); }

.btn-sm  { padding: 0.5rem 1.125rem; font-size: 0.875rem; }
.btn-lg  { padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600; }
.btn-xl  { padding: 1.0625rem 2.5rem; font-size: 1.0625rem; font-weight: 600; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(221, 225, 240, 0.7);
  border-radius: var(--r-xl);
  padding: var(--space-8);
  transition: all var(--t-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity var(--t-slow);
  border-radius: inherit;
  pointer-events: none;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glass);
  border-color: rgba(67, 97, 238, 0.18);
  background: rgba(255, 255, 255, 0.94);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.card-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue);
  margin-top: var(--space-4);
  transition: gap var(--t-base);
}

.card-link:hover { gap: 9px; }

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.badge-blue   { background: rgba(74,108,247,0.10);  color: var(--blue); }
.badge-purple { background: rgba(139,92,246,0.10);  color: var(--purple); }
.badge-green  { background: rgba(16,185,129,0.10);  color: #059669; }
.badge-orange { background: rgba(245,158,11,0.10);  color: #D97706; }

/* ── Form elements ───────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 0.8125rem 1.125rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--t-base);
  appearance: none;
}

.input::placeholder { color: var(--text-muted); font-weight: 300; }

.input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,108,247,0.12);
  background: var(--surface);
}

textarea.input { resize: vertical; min-height: 130px; line-height: 1.6; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-group { margin-bottom: var(--space-5); }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Page Transition ─────────────────────────────────────────── */
.page-fade-in {
  animation: pageFadeIn 0.45s var(--ease-out) both;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Grid helpers ────────────────────────────────────────────── */
.grid   { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }

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

/* ── Noise texture overlay ───────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.016;
  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)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Scroll progress ─────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  background: var(--grad-brand);
  z-index: 10001;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Page transition overlay ─────────────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}

#page-transition.active { opacity: 1; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────────── */
.cta-banner {
  background: var(--grad-brand);
  border-radius: var(--r-2xl);
  padding: var(--space-20) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-brand-lg);
}

.cta-banner-content { position: relative; z-index: 1; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 780px) {
  .cta-banner { padding: var(--space-12) var(--space-8); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container-narrow, .container-wide { padding: 0 14px; }
  .section, .section-lg { padding: var(--space-12) 0; }
  .section-sm { padding: var(--space-8) 0; }
  .section-header { margin-bottom: var(--space-7); }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: var(--space-8) var(--space-5); border-radius: 18px; }
  .display-xl { font-size: clamp(1.7rem, 8vw, 2.1rem); line-height: 1.14; letter-spacing: -0.02em; }
  .display-lg { font-size: clamp(1.4rem, 6.6vw, 1.8rem); line-height: 1.16; letter-spacing: -0.02em; }
  .display-md { font-size: clamp(1.16rem, 5.2vw, 1.42rem); line-height: 1.22; letter-spacing: -0.015em; }
  .display-sm { font-size: clamp(1rem, 4vw, 1.14rem); line-height: 1.24; }
  .section-subtitle, .text-lg, .text-base { font-size: 0.9rem; line-height: 1.58; max-width: 100%; }
  .btn, .btn-lg, .btn-xl {
    min-height: 38px;
    padding: 0.52rem 0.82rem;
    font-size: 0.84rem;
    border-radius: 12px;
    white-space: nowrap;
    text-align: center;
  }
  .btn-sm { min-height: 34px; padding: 0.42rem 0.72rem; font-size: 0.78rem; border-radius: 10px; }
  .card { padding: var(--space-4); border-radius: 16px; }
  .card-icon { width: 40px; height: 40px; margin-bottom: var(--space-3); font-size: 1.2rem; }
  .card-title { font-size: 0.95rem; margin-bottom: var(--space-2); }
  .card-body { font-size: 0.84rem; line-height: 1.5; }
  .card-link { font-size: 0.8rem; margin-top: var(--space-3); }
  .navbar-inner { height: 58px; }
  .logo-text { font-size: 1.05rem; }
  .navbar-mobile { padding: 10px 12px 12px; }
  .navbar-mobile .nav-link { padding: 10px 12px; font-size: 0.92rem; border-radius: 10px; }
  .mobile-cta .btn { border-radius: 10px; }
}

@media (max-width: 420px) {
  .footer-nav { grid-template-columns: 1fr; }
  .btn-sm, .btn { width: 100%; max-width: 100%; }
  .section-subtitle { font-size: 0.86rem; line-height: 1.54; }
  .section-label { font-size: 0.62rem; padding: 4px 10px; margin-bottom: var(--space-3); }
}

/* Shared demo layout classes (used by simple industry demos) */
.hd-body { padding: clamp(var(--space-6), 6vw, var(--space-12)) 0 clamp(var(--space-14), 10vw, var(--space-24)); }
.hd-layout { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.hd-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: var(--space-4); }
.hd-info-card, .hd-lang-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl); padding: var(--space-5); }
.hd-info-badge { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-3); }
.hd-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.hd-info-desc { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.65; }
.hd-divider { height: 1px; background: var(--border-soft); margin: var(--space-4) 0; }
.hd-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: var(--space-3); }
.hd-suggestions { display: flex; flex-direction: column; gap: 6px; }
.hd-sugg, .hd-chip { font-family: inherit; cursor: pointer; }
.hd-sugg { padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--r-md); font-size: 0.8125rem; color: var(--text-secondary); text-align: left; }
.hd-chat { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-xl); display: flex; flex-direction: column; height: min(700px, 80vh); overflow: hidden; }
.hd-chat-header { display: flex; align-items: center; gap: var(--space-3); padding: 14px 20px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap; }
.hd-chat-info { flex: 1; min-width: 0; }
.hd-chat-name { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700; color: var(--text-primary); word-break: break-word; }
.hd-chat-status { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.hd-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #10B981; flex-shrink: 0; }
.hd-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #FAFBFF; }
.hd-msg { display: flex; }
.hd-msg-user { justify-content: flex-end; }
.hd-bubble-wrap { max-width: min(88%, 720px); }
.hd-bubble { padding: 11px 14px; border-radius: 16px; font-size: 0.9375rem; line-height: 1.62; word-break: break-word; }
.hd-msg-ai .hd-bubble { background: #FFF; border: 1px solid var(--border-soft); border-bottom-left-radius: 4px; }
.hd-msg-user .hd-bubble { background: var(--grad-brand); color: #FFF; border-bottom-right-radius: 4px; }
.hd-input-area { padding: 12px 14px; border-top: 1px solid var(--border-soft); background: var(--surface); }
.hd-input-wrap { display: flex; gap: 8px; align-items: center; border: 1.5px solid var(--border); border-radius: var(--r-full); padding: 6px 6px 6px 14px; background: #F8FAFF; }
.hd-input { flex: 1; border: none; background: transparent; outline: none; font-size: 0.9375rem; min-width: 0; }
.hd-send { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-brand); color: #FFF; border: none; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.hd-disclaimer { font-size: 0.6875rem; color: var(--text-muted); text-align: center; margin-top: 8px; line-height: 1.45; }

@media (max-width: 960px) {
  .hd-layout { grid-template-columns: 1fr; }
  .hd-sidebar { position: static; }
}

@media (max-width: 640px) {
  .hd-body { padding: var(--space-4) 0 var(--space-10); }
  .hd-layout { gap: var(--space-4); }
  .hd-sidebar { gap: var(--space-3); }
  .hd-info-card, .hd-lang-card { padding: var(--space-4); border-radius: 14px; }
  .hd-chat { height: min(560px, 70vh); border-radius: 14px; }
  .hd-chat-header { padding: 10px 12px; gap: 6px; }
  .hd-chat-actions { width: 100%; justify-content: flex-start; }
  .hd-messages { padding: 10px; gap: 8px; }
  .hd-bubble-wrap { max-width: 92%; }
  .hd-bubble { font-size: 0.82rem; padding: 8px 10px; border-radius: 12px; }
  .hd-chip { font-size: 0.72rem; padding: 5px 8px; border-radius: 999px; }
  .hd-sugg { font-size: 0.76rem; padding: 7px 9px; }
  .hd-input-area { padding: 9px 10px; }
  .hd-input-wrap { padding: 5px 5px 5px 10px; gap: 6px; }
  .hd-input { font-size: 0.84rem; }
  .hd-send { width: 34px; height: 34px; }
  .hd-disclaimer { font-size: 0.62rem; margin-top: 6px; }
}

/* ── Reduce motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   CEO & FOUNDER SECTION
   ============================================================ */
.founder-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.founder-card {
  background: var(--grad-glass);
  border: 1px solid rgba(221, 225, 240, 0.7);
  border-radius: var(--r-2xl);
  padding: clamp(var(--space-6), 5vw, var(--space-12));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out), border-color var(--t-slow);
}

.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(67, 97, 238, 0.25);
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
}

/* Background blob decorations inside card */
.founder-card-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
}

.founder-card-blob-1 {
  background: var(--blue);
  top: -100px;
  right: -100px;
}

.founder-card-blob-2 {
  background: var(--purple);
  bottom: -100px;
  left: -100px;
}

.founder-grid-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(var(--space-6), 5vw, var(--space-12));
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Founder Image Styling */
.founder-image-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-image-bg-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--grad-brand);
  opacity: 0.15;
  filter: blur(8px);
  transition: opacity var(--t-base), transform var(--t-base) var(--ease-spring);
}

.founder-card:hover .founder-image-bg-glow {
  opacity: 0.25;
  transform: scale(1.04);
}

.founder-image-border {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(221,225,240,0.6) 100%);
  box-shadow: var(--shadow-lg), inset 0 2px 4px rgba(255,255,255,0.8);
  border: 1px solid rgba(67, 97, 238, 0.15);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-spring);
}

.founder-card:hover .founder-image-border {
  transform: scale(1.02);
}

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: saturate(1.02) contrast(1.01);
  transition: transform var(--t-slow) var(--ease-out);
}

.founder-card:hover .founder-image {
  transform: scale(1.05);
}

/* Founder Content Styling */
.founder-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.founder-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(67,97,238,0.08) 100%);
  color: var(--purple);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: var(--space-4);
  box-shadow: 0 2px 10px rgba(124,58,237,0.05);
}

.founder-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.15;
}

.founder-tagline {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: var(--space-5);
}

.founder-bio {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.founder-bio p {
  margin-bottom: var(--space-4);
}

.founder-bio p:last-child {
  margin-bottom: 0;
}

/* Social links */
.founder-socials {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.founder-social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base) var(--ease-spring);
}

.founder-social-btn:hover {
  background: var(--blue);
  color: var(--text-white);
  border-color: var(--blue);
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-brand);
}

.founder-social-btn.founder-wa-btn:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37,211,102,0.4);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .founder-grid-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .founder-image-wrapper {
    width: 210px;
    height: 210px;
  }

  .founder-content {
    align-items: center;
    text-align: center;
  }

  .founder-socials {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .founder-card {
    padding: var(--space-5) var(--space-4);
    border-radius: 20px;
  }

  .founder-image-wrapper {
    width: 170px;
    height: 170px;
  }

  .founder-name {
    font-size: 1.6rem;
  }

  .founder-tagline {
    font-size: 0.95rem;
    margin-bottom: var(--space-4);
  }

  .founder-bio {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: var(--space-5);
  }

  .founder-social-btn {
    width: 38px;
    height: 38px;
  }

  .founder-social-btn svg {
    width: 16px;
    height: 16px;
  }
}


