/* ═══════════════════════════════════════════════════════════════════
   DEVORA WEB — BRAND IDENTITY & ANTIGRAVITY DESIGN SYSTEM v3
   Strict adherence to 01_BRAND_IDENTITY.md & antigravity-design-expert
═══════════════════════════════════════════════════════════════════ */

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

/* ─── DESIGN TOKENS (01_BRAND_IDENTITY.md) ───────────────────────── */
:root {
  /* Brand Core Palette */
  --clr-bg:            #080B14; /* Ink Navy */
  --clr-bg-2:          #0E1424; /* Layered Slate Ink */
  --clr-slate-navy:    #3B4A6B; /* Slate Navy */
  --clr-light-slate:   #8894B0; /* Light Slate */
  
  /* Signature Accent (SINGLE ACCENT RULE) */
  --clr-accent-1:      #F5A623; /* Signature Amber */
  --clr-accent-2:      #F7C065; /* Amber Tint */
  --clr-accent-dark:   #D98E18; /* Deep Amber */

  /* Text & Surfaces */
  --clr-text:          #F5F6FA; /* Off-White (18:1 AAA) */
  --clr-text-muted:    #8894B0; /* Light Slate (AAA contrast) */
  --clr-text-dim:      rgba(136, 148, 176, 0.55);
  
  --clr-surface:       rgba(59, 74, 107, 0.14);
  --clr-surface-hov:   rgba(59, 74, 107, 0.25);
  --clr-border:        rgba(136, 148, 176, 0.18);
  --clr-border-hov:    rgba(245, 166, 35, 0.45);

  /* Gradients */
  --grad-brand:        linear-gradient(135deg, #F5A623 0%, #F7C065 60%, #D98E18 100%);
  --grad-glow:         radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245, 166, 35, 0.20) 0%, transparent 75%);
  --grad-card:         linear-gradient(145deg, rgba(245, 166, 35, 0.08) 0%, rgba(59, 74, 107, 0.15) 100%);

  /* Typography Scale (01_BRAND_IDENTITY.md) */
  --font-heading:      'Georgia', serif;
  --font-body:         'Calibri', 'Inter', -apple-system, sans-serif;
  --font-mono:         'JetBrains Mono', monospace;

  --fs-xs:             12px;
  --fs-sm:             14px;
  --fs-base:           16px;
  --fs-lg:             18px;
  --fs-2xl:            22px;
  --fs-3xl:            28px;
  --fs-4xl:            36px;
  --fs-5xl:            48px;
  --fs-hero:           clamp(3rem, 7.5vw, 56px);

  /* Spacing */
  --sp-xs:   0.5rem;
  --sp-sm:   1rem;
  --sp-md:   1.5rem;
  --sp-lg:   2rem;
  --sp-xl:   3rem;
  --sp-2xl:  5rem;
  --sp-3xl:  8rem;

  /* Depth & Shadows */
  --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.6), 0 4px 20px rgba(245, 166, 35, 0.12);
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-glow:  0 0 35px rgba(245, 166, 35, 0.28);

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   0.2s;
  --dur-base:   0.35s;
  --dur-slow:   0.6s;

  /* Layout */
  --max-w:      1280px;
  --max-w-text: 780px;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;
  --radius-pill: 999px;
}

/* ─── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ─── LAYOUT ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.container--narrow {
  max-width: var(--max-w-text);
}
.section {
  padding-block: var(--sp-3xl);
}
.section--sm {
  padding-block: var(--sp-2xl);
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--clr-text);
}

.text-hero {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.1;
}
.text-h1 { font-size: clamp(2.25rem, 5vw, var(--fs-5xl)); font-weight: 700; line-height: 1.15; }
.text-h2 { font-size: clamp(1.75rem, 4vw, var(--fs-4xl)); font-weight: 700; line-height: 1.2; }
.text-h3 { font-size: clamp(1.25rem, 2.5vw, var(--fs-3xl)); font-weight: 600; line-height: 1.3; }
.text-h4 { font-size: clamp(1.1rem, 2vw, var(--fs-2xl)); font-weight: 600; line-height: 1.35; }
.text-lg  { font-size: var(--fs-lg); line-height: 1.6; }
.text-muted { color: var(--clr-text-muted); }
.text-dim   { color: var(--clr-text-dim); }
.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-amber {
  color: var(--clr-accent-1);
}

/* ─── GLASSMORPHISM CARDS ────────────────────────────────────────── */
.glass {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.glass--hover {
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  will-change: transform;
}
.glass--hover:hover {
  background: var(--clr-surface-hov);
  border-color: var(--clr-border-hov);
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  transition: all var(--dur-base) var(--ease-out);
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  border-radius: inherit;
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-brand);
  color: #080B14;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(245,166,35,0.35);
}
.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(245,166,35,0.5);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
}
.btn-ghost:hover {
  border-color: var(--clr-accent-1);
  color: var(--clr-accent-1);
}

.btn-outline-amber {
  background: transparent;
  border: 1px solid var(--clr-accent-1);
  color: var(--clr-accent-1);
}
.btn-outline-amber:hover {
  background: rgba(245, 166, 35, 0.12);
}

/* ─── BADGE ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--accent, .badge--gold {
  background: rgba(245, 166, 35, 0.14);
  border: 1px solid rgba(245, 166, 35, 0.35);
  color: var(--clr-accent-2);
}

/* ─── GRID UTILITIES ─────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-md); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: var(--sp-lg); }

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

/* ─── SECTION LABELS ─────────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent-1);
  margin-bottom: var(--sp-sm);
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-accent-1);
  border-radius: 2px;
}

/* ─── DIVIDER ────────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
  border: none;
  margin-block: var(--sp-xl);
}

/* ─── GLOW ORBS & BACKGROUND PATTERNS ───────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.orb--amber, .orb--purple {
  background: rgba(245, 166, 35, 0.18);
}
.orb--navy, .orb--gold, .orb--teal {
  background: rgba(59, 74, 107, 0.25);
}

/* ─── FAQ COMPONENT ──────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-md) 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  gap: var(--sp-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-question:hover { color: var(--clr-accent-1); }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base) var(--ease-out);
}
.faq-item.open .faq-icon {
  background: var(--clr-accent-1);
  border-color: var(--clr-accent-1);
  color: #080B14;
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.faq-answer-inner {
  padding-bottom: var(--sp-md);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ─── FORM ───────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: var(--sp-md); }
.form-label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
}
.form-input {
  padding: 0.875rem 1.25rem;
  background: rgba(59, 74, 107, 0.15);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  outline: none;
}
.form-input:focus {
  border-color: var(--clr-accent-1);
  background: rgba(245, 166, 35, 0.06);
}
.form-input::placeholder { color: var(--clr-text-dim); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ─── STAT CARD ──────────────────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: var(--sp-lg);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  font-weight: 500;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

/* ─── REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
