/* ════════════════════════════════════════════════════════════════════
   TECHCLICK · HOME — "EMBER ON OBSIDIAN" PREMIUM LAYER
   Loaded LAST, on index.html only. Refines the homepage to a crore-tier
   feel: warm living ambient (ember + fireflies), one disciplined energy
   accent, premium depth, real motion. Reversible — remove the <link>.
   Built 2026-05-30. Scope: hero → footer. Course-card engine untouched.
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* — Ember energy accent (the "fiery / lively" theme) — */
  --em-1: #ffd27a;          /* light spark   */
  --em-2: #ff9d3c;          /* amber         */
  --em-3: #ff6a3d;          /* coral         */
  --em-4: #ff4d4d;          /* deep ember    */
  --em-grad:  linear-gradient(135deg, #ffb14a 0%, #ff7a3c 48%, #ff5145 100%);
  --em-grad-text: linear-gradient(115deg, #ffd98a 0%, #ff9d3c 42%, #ff6a52 100%);
  --em-soft-08: rgba(255,138,61,0.08);
  --em-soft-14: rgba(255,138,61,0.14);
  --em-soft-22: rgba(255,138,61,0.22);
  --em-line:    rgba(255,160,90,0.22);

  /* — Cool tech secondary (kept, used sparingly) — */
  --cool: #36d6ff;

  /* — Warm obsidian surfaces — */
  --pm-ink:       #08070a;
  --pm-surface:   rgba(26,22,24,0.62);
  --pm-surface-2: rgba(32,27,30,0.78);
  --pm-hair:      rgba(255,236,222,0.085);
  --pm-hair-2:    rgba(255,236,222,0.14);
  --pm-text:      #f6f1ee;
  --pm-text-2:    #c4bcc0;
  --pm-text-3:    #9b949a;   /* lifted to ≥5:1 on obsidian — clears WCAG AA */

  /* — Premium multi-layer depth — */
  --pz-sm:  0 1px 2px rgba(0,0,0,.42), 0 1px 1px rgba(0,0,0,.30);
  --pz-md:  0 4px 14px rgba(0,0,0,.40), 0 2px 5px rgba(0,0,0,.30);
  --pz-lg:  0 14px 38px rgba(0,0,0,.52), 0 5px 12px rgba(0,0,0,.36);
  --pz-em:  0 6px 18px rgba(255,107,53,.30), 0 16px 44px rgba(255,80,60,.18);
  --pz-hi:  inset 0 1px 0 rgba(255,255,255,.09);

  /* — Spring motion — */
  --spring: cubic-bezier(.32,.72,0,1);
  --soft:   cubic-bezier(.16,1,.3,1);
}

/* ───────────────────────────────────────────────────────────
   1 · BASE WARMTH — a living, warm-dark canvas (not flat black)
   ─────────────────────────────────────────────────────────── */
body {
  background-color: var(--pm-ink);
  color: var(--pm-text);
}
/* Faint warm vignette + cool counter-tone so the page feels lit, not painted.
   z-index:-1 keeps it above the base bg but behind ALL content — no need to
   touch children, so injected nav / chatbot / modals keep their stacking. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 12% -8%,  rgba(255,128,60,0.12) 0%, transparent 46%),
    radial-gradient(110% 75% at 92% 4%,   rgba(54,214,255,0.07) 0%, transparent 50%),
    radial-gradient(140% 90% at 50% 120%, rgba(255,90,70,0.08) 0%, transparent 55%);
}

/* ───────────────────────────────────────────────────────────
   2 · TYPOGRAPHY — premium rhythm
   ─────────────────────────────────────────────────────────── */
.hero-text h1,
.section-header h2,
.about-stats .stat-card h3,
.hs-num {
  letter-spacing: -0.028em;
  font-weight: 800;
}
.hs-num, .stat-card h3, .testi-stars { font-variant-numeric: tabular-nums; }
.section-header p, .hero-text p { letter-spacing: -0.006em; }

/* ───────────────────────────────────────────────────────────
   3 · BUTTONS — ember primary, refined ghost
   ─────────────────────────────────────────────────────────── */
.btn { transition: transform var(--spring) .2s, box-shadow var(--spring) .2s, background var(--spring) .2s; }

.btn-primary {
  background: var(--em-grad) !important;
  color: #2a0f04 !important;
  font-weight: 700;
  border: 1px solid rgba(255,180,120,.55) !important;
  box-shadow: var(--pz-hi), var(--pz-em) !important;
}
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--pz-hi), 0 10px 26px rgba(255,107,53,.42), 0 22px 54px rgba(255,80,60,.26) !important;
}
.btn-primary:active { transform: translateY(0) !important; }

.btn-secondary {
  background: rgba(255,255,255,.045) !important;
  border: 1px solid var(--pm-hair-2) !important;
  color: var(--pm-text) !important;
  backdrop-filter: blur(12px) saturate(1.3);
}
.btn-secondary:hover {
  background: var(--em-soft-14) !important;
  border-color: var(--em-line) !important;
  color: #fff !important;
  transform: translateY(-2px) !important;
}

/* ───────────────────────────────────────────────────────────
   4 · HERO — warm ambient + living embers
   ─────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(130% 120% at 18% 0%, #140d0a 0%, transparent 55%),
    linear-gradient(180deg, #0b0809 0%, #08070a 60%, #08070a 100%) !important;
}
/* Warm ember glow replaces the cyan-only radial */
.hero::before {
  background:
    radial-gradient(46% 60% at 16% 12%,  rgba(255,120,55,0.20) 0%, transparent 60%),
    radial-gradient(50% 65% at 86% 22%,  rgba(255,77,77,0.13) 0%, transparent 62%),
    radial-gradient(60% 70% at 60% 102%, rgba(54,214,255,0.08) 0%, transparent 60%) !important;
  filter: saturate(1.05);
}
/* Grid overlay → warmer + softer so it reads as fine texture, not graph paper */
.hero-grid {
  background-image:
    linear-gradient(rgba(255,170,110,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,170,110,0.035) 1px, transparent 1px) !important;
  background-size: 56px 56px !important;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(70% 60% at 30% 30%, #000 0%, transparent 75%);
}

/* Eyebrow → premium ember pill */
.hero-eyebrow {
  background: var(--em-soft-08) !important;
  border: 1px solid var(--em-line) !important;
  color: var(--em-1) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}
.hero-eyebrow .tc-icon { color: var(--em-2) !important; }

/* H1 accent → ember gradient instead of cyan/purple */
.hero .gradient-text {
  background: var(--em-grad-text) !important;
  /* clip MUST be !important — the `background:…!important` shorthand above
     resets background-clip to border-box, which would fill the whole box
     and hide the text. */
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent; color: transparent !important;
  padding-bottom: .08em;   /* descenders of "engineer." weren't clipping */
}
.hero-text p strong { color: var(--em-1); font-weight: 700; }

/* Stats bar → premium glass slab with tabular numerals */
.hero-stats-bar {
  background: var(--pm-surface);
  border: 1px solid var(--pm-hair);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--pz-hi), var(--pz-md);
  backdrop-filter: blur(10px);
}
.hs-num {
  background: var(--em-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hs-divider { background: var(--pm-hair-2) !important; }

/* — Living ember fireflies (injected element .ember-field) — */
.ember-field {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.ember-field i {
  position: absolute; bottom: -8%;
  width: 3px; height: 3px; border-radius: 50%;
  background: radial-gradient(circle, #ffd9a0 0%, #ff8a3d 55%, transparent 72%);
  box-shadow: 0 0 6px 1px rgba(255,150,70,.65);
  opacity: 0; will-change: transform, opacity;
  animation: ember-rise var(--d,11s) var(--t,0s) ease-in infinite;
}
.ember-field i:nth-child(odd)  { background: radial-gradient(circle, #fff0c4 0%, #ff6a3d 60%, transparent 74%); }
.ember-field i:nth-child(1){left:6%;  --d:12s;--t:0s;   width:4px;height:4px}
.ember-field i:nth-child(2){left:14%; --d:9s; --t:1.4s}
.ember-field i:nth-child(3){left:22%; --d:14s;--t:3s}
.ember-field i:nth-child(4){left:31%; --d:10s;--t:.6s;  width:2px;height:2px}
.ember-field i:nth-child(5){left:39%; --d:13s;--t:2.2s}
.ember-field i:nth-child(6){left:47%; --d:8.5s;--t:4s;  width:4px;height:4px}
.ember-field i:nth-child(7){left:55%; --d:12.5s;--t:1s}
.ember-field i:nth-child(8){left:63%; --d:10.5s;--t:3.4s; width:2px;height:2px}
.ember-field i:nth-child(9){left:71%; --d:15s;--t:.3s}
.ember-field i:nth-child(10){left:79%;--d:9.5s;--t:2.7s; width:4px;height:4px}
.ember-field i:nth-child(11){left:87%;--d:13.5s;--t:1.8s}
.ember-field i:nth-child(12){left:93%;--d:11s;--t:4.4s; width:2px;height:2px}
.ember-field i:nth-child(13){left:18%;--d:16s;--t:5s}
.ember-field i:nth-child(14){left:67%;--d:14.5s;--t:5.6s;width:3px;height:3px}
@keyframes ember-rise {
  0%   { transform: translateY(0) translateX(0) scale(.6); opacity: 0; }
  12%  { opacity: .9; }
  50%  { transform: translateY(-46vh) translateX(14px) scale(1); opacity: .8; }
  80%  { opacity: .5; }
  100% { transform: translateY(-92vh) translateX(-10px) scale(.5); opacity: 0; }
}

/* Hero console — deepen the chrome so it reads as real product */
.hero-console {
  box-shadow: var(--pz-hi), var(--pz-lg) !important;
  border-color: var(--pm-hair-2) !important;
}

/* ───────────────────────────────────────────────────────────
   5 · PARTNERS STRIP — quiet, premium proof
   ─────────────────────────────────────────────────────────── */
.partners-strip { border-top: 1px solid var(--pm-hair); border-bottom: 1px solid var(--pm-hair); }
.ps-label { color: var(--pm-text-3) !important; letter-spacing: .14em !important; }
.ps-mark {
  color: var(--pm-text-2) !important;
  opacity: .72;
  filter: grayscale(1);
  transition: opacity .25s var(--spring), color .25s var(--spring), filter .25s var(--spring);
}
.ps-mark:hover { opacity: 1; filter: grayscale(0); color: #fff !important; }

/* ───────────────────────────────────────────────────────────
   6 · SECTION HEADERS — premium eyebrow + ember rule
   ─────────────────────────────────────────────────────────── */
.section-header h2 { color: var(--pm-text) !important; }
.section-header p  { color: var(--pm-text-2) !important; }
/* a centered ember hairline under each section title */
.about-section .section-header h2::after,
.courses-section .section-header h2::after,
.testimonials-section .section-header h2::after,
.internship-section .section-header h2::after,
.job-section .section-header h2::after {
  content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0;
  border-radius: 3px; background: var(--em-grad);
  box-shadow: 0 0 14px rgba(255,120,60,.5);
}

/* ───────────────────────────────────────────────────────────
   7 · ABOUT — glass content + ember stat cards
   ─────────────────────────────────────────────────────────── */
.about-content p { color: var(--pm-text-2); }
.about-content strong { color: var(--em-1); }
.about-feature {
  background: var(--pm-surface);
  border: 1px solid var(--pm-hair);
  border-radius: 12px;
  transition: transform .2s var(--spring), border-color .2s var(--spring), background .2s var(--spring);
}
.about-feature:hover { transform: translateY(-2px); border-color: var(--em-line); background: var(--em-soft-08); }
.af-icon { color: var(--em-2) !important; }

.about-stats .stat-card {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-hair) !important;
  border-radius: 16px;
  box-shadow: var(--pz-hi), var(--pz-md);
  transition: transform .22s var(--spring), box-shadow .22s var(--spring), border-color .22s var(--spring);
}
.about-stats .stat-card:hover { transform: translateY(-3px); border-color: var(--em-line) !important; box-shadow: var(--pz-hi), var(--pz-lg); }
.about-stats .stat-card h3 {
  background: var(--em-grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.about-stats .stat-card p { color: var(--pm-text-3) !important; }

/* ───────────────────────────────────────────────────────────
   8 · PLATFORM GRID — tame the rainbow into one premium system
       16 cards were 16 neon borders + loud gradient tiles.
       Now: one warm-glass surface, one hairline, a uniform tile,
       a refined "NEW" pill. Reads as a polished app launcher.
   ─────────────────────────────────────────────────────────── */
.platform-section {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255,120,60,0.05) 0%, transparent 60%),
    transparent !important;
}
.platform-section .section-header > div:first-child {        /* eyebrow chip */
  background: var(--em-soft-08) !important;
  border: 1px solid var(--em-line) !important;
  color: var(--em-1) !important;
}
.platform-section .section-header p { color: var(--pm-text-2) !important; }

.platform-grid .platform-card,
a.platform-card {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-hair) !important;
  border-radius: 16px !important;
  box-shadow: var(--pz-hi), var(--pz-sm) !important;
  transition: transform .22s var(--spring), box-shadow .22s var(--spring),
              border-color .22s var(--spring), background .22s var(--spring) !important;
}
.platform-grid .platform-card:hover,
a.platform-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--em-line) !important;
  background: var(--pm-surface-2) !important;
  box-shadow: var(--pz-hi), var(--pz-lg) !important;
}
/* "YOU ARE HERE" card — give it the ember signature */
.platform-grid > a.platform-card[href="#courses"] {
  background: linear-gradient(135deg, var(--em-soft-14), rgba(255,90,70,0.05)) !important;
  border-color: var(--em-line) !important;
}
/* Unify the 48px icon tiles — keep each app's hue, but as a quiet tinted
   chip with a hairline, not a loud full-saturation gradient block */
.platform-card div[style*="width:48px"] {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--pm-hair-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  filter: saturate(.9);
}
/* Refined corner badges — both "NEW" (span) and "YOU ARE HERE" (div) → ember pill */
.platform-card [style*="position:absolute"] {
  background: var(--em-grad) !important;
  color: #2a0f04 !important;
  box-shadow: 0 2px 8px rgba(255,107,53,.4) !important;
  letter-spacing: .08em !important;
}
.platform-card p { color: var(--pm-text-2) !important; }
/* SSO note under the grid */
.platform-section .container > div:last-child {
  background: var(--em-soft-08) !important;
  border: 1px dashed var(--em-line) !important;
  color: var(--pm-text-2) !important;
}

/* ───────────────────────────────────────────────────────────
   9 · TESTIMONIALS — premium quote cards, ember stars
   ─────────────────────────────────────────────────────────── */
.testi-card {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-hair) !important;
  border-radius: 18px !important;
  box-shadow: var(--pz-hi), var(--pz-md) !important;
  position: relative;
  transition: transform .22s var(--spring), box-shadow .22s var(--spring), border-color .22s var(--spring) !important;
}
.testi-card::before {                       /* big quotation glyph */
  content: "\201C";
  position: absolute; top: 6px; right: 18px;
  font: 800 56px/1 Georgia, serif;
  color: var(--em-soft-22); pointer-events: none;
}
.testi-card:hover { transform: translateY(-4px); border-color: var(--em-line) !important; box-shadow: var(--pz-hi), var(--pz-lg) !important; }
.testi-card.featured {
  background: linear-gradient(150deg, var(--em-soft-14), var(--pm-surface-2)) !important;
  border-color: var(--em-line) !important;
}
.testi-stars { color: var(--em-2) !important; letter-spacing: 2px; }
.testi-text { color: var(--pm-text) !important; }
.testi-name { color: #fff !important; }
.testi-role { color: var(--pm-text-3) !important; }
.testi-avatar { box-shadow: var(--pz-hi), 0 4px 12px rgba(0,0,0,.4); }

/* ───────────────────────────────────────────────────────────
   10 · CONSULTATION + FORMS — premium inputs with focus glow
   ─────────────────────────────────────────────────────────── */
.consultation-card {
  background: linear-gradient(150deg, var(--em-soft-14), var(--pm-surface-2)) !important;
  border: 1px solid var(--em-line) !important;
  border-radius: 22px !important;
  box-shadow: var(--pz-hi), var(--pz-lg) !important;
}
.application-form, .form-info {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-hair) !important;
  border-radius: 18px !important;
  box-shadow: var(--pz-hi), var(--pz-md);
}
.application-form input,
.application-form select,
.application-form textarea {
  background: rgba(0,0,0,.28) !important;
  border: 1px solid var(--pm-hair-2) !important;
  color: var(--pm-text) !important;
  transition: border-color .18s var(--spring), box-shadow .18s var(--spring) !important;
}
.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  outline: none !important;
  border-color: var(--em-3) !important;
  box-shadow: 0 0 0 3px var(--em-soft-22) !important;
}
.form-info li svg { color: var(--em-2) !important; }

/* ───────────────────────────────────────────────────────────
   11 · FOOTER — quiet, refined
   ─────────────────────────────────────────────────────────── */
.footer-tech-band { border-top: 1px solid var(--pm-hair); }
.footer-tech-eyebrow { color: var(--pm-text-3) !important; letter-spacing: .16em !important; }
.footer { border-top: 1px solid var(--pm-hair); }
.footer .footer-links a { color: var(--pm-text-2) !important; transition: color .18s var(--spring); }
.footer .footer-links a:hover { color: var(--em-1) !important; }
.footer-title { color: #fff !important; }

/* ───────────────────────────────────────────────────────────
   12 · MOTION — page-mount rise (reuses the existing `.rise` hook)
   ─────────────────────────────────────────────────────────── */
.hero-text > * { animation: hp-rise .8s var(--soft) both; }
.hero-text .hero-eyebrow { animation-delay: .04s; }
.hero-text h1            { animation-delay: .10s; }
.hero-text p             { animation-delay: .18s; }
.hero-buttons            { animation-delay: .26s; }
.hero-stats-bar          { animation-delay: .34s; }
.hero-visual             { animation: hp-rise 1s var(--soft) both; animation-delay: .22s; }
@keyframes hp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ───────────────────────────────────────────────────────────
   13 · ACCESSIBILITY — flatten all motion on request
   ─────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ember-field i { animation: none !important; opacity: .5; }
  .hero-text > *, .hero-visual { animation: none !important; }
  .btn, .platform-card, .testi-card, .about-feature, .stat-card { transition: none !important; }
}

/* ───────────────────────────────────────────────────────────
   14 · RESPONSIVE — keep the ambient calm + cheap on phones
   ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ember-field i:nth-child(n+9) { display: none; }   /* fewer particles */
  .hero-stats-bar { padding: 12px 14px; }
  body::before { background:
    radial-gradient(130% 70% at 50% -6%, rgba(255,128,60,0.10) 0%, transparent 50%); }
}

/* ════════════════════════════════════════════════════════════════════
   v2 — fixes from the 5-agent UI/theme audit (2026-05-30)
   ════════════════════════════════════════════════════════════════════ */

/* mobile Safari: svh keeps the stats bar / console above the fold on load */
.hero { min-height: 100svh; }

/* 3rd hero CTA ".btn-ghost" was an un-themed cyan/grey island — into the system */
.btn-ghost {
  color: var(--pm-text-2) !important;
  border: 1px solid var(--pm-hair-2) !important;
  background: transparent !important;
  transition: color .18s var(--spring), border-color .18s var(--spring), background .18s var(--spring) !important;
}
.btn-ghost:hover { color: #fff !important; border-color: var(--em-line) !important; background: var(--em-soft-08) !important; }
.btn-ghost .tc-icon { color: var(--em-2) !important; }

/* Keyboard focus — a real, visible ember ring (was missing entirely).
   :focus-visible only, so it never flashes on a mouse click. */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.platform-card:focus-visible, .testi-card a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--em-1) !important;
  outline-offset: 3px !important;
  border-radius: 8px;
}

/* H1 / stat accents stay visible if background-clip:text is unsupported */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero .gradient-text, .hs-num, .about-stats .stat-card h3 {
    color: var(--em-1) !important; -webkit-text-fill-color: var(--em-1) !important;
  }
}

/* SSO-note key icon was cyan */
.platform-section .container > div:last-child .tc-icon { color: var(--em-2) !important; }

/* Homepage-scoped nav + chat FAB accents → ember so the shared cyan chrome
   doesn't sit over the ember body. (Full nav retheme = site-wide phase 2.) */
.nav-link::after { background: var(--em-grad) !important; box-shadow: 0 0 10px rgba(255,120,60,.45) !important; }
.chatbot-fab { background: var(--em-grad) !important; box-shadow: var(--pz-hi), 0 8px 22px rgba(255,107,53,.40) !important; }

/* firefly glow via drop-shadow — cheaper than an animated box-shadow ×14 */
.ember-field i { box-shadow: none; filter: drop-shadow(0 0 5px rgba(255,150,70,.6)); }
