/* ==========================================================
   Avennex — theme
   Deep purple surface with amber marks, sans headings.
   Loaded last so it sets the look for every page.
   ========================================================== */

:root {
  --paper:      #0D0B18;
  --paper-2:    #151226;
  --paper-3:    #1E1A36;
  --ink:        #F4F1FB;
  --ink-2:      #CFC9E2;
  --ink-3:      #A69FC2;
  --rule:       rgba(207, 201, 226, 0.2);
  --hair:       rgba(207, 201, 226, 0.085);

  --mark:       #F6B84B;
  --mark-lit:   #FFCB6B;
  --mark-soft:  rgba(246, 184, 75, 0.14);
  --mark-ink:   #1A1204;
  --royal:      #7C3AED;
  --royal-lit:  #B69CFF;
  --royal-deep: #3B1782;
  --royal-soft: rgba(124, 58, 237, 0.2);

  --ok:         #5CCB8F;
  --dash-series: #F6B84B, #B69CFF, #5CCB8F, #6FA8FF, #F2766B, #C9D46B;

  --display: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --serif:   'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --brand:   'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --surface:   linear-gradient(180deg, var(--paper-2), rgba(21, 18, 38, 0.6));
  --radius:    14px;
  --radius-sm: 10px;
}

body { background: var(--paper); font-feature-settings: 'cv11', 'ss01', 'ss03'; }

/* purple and amber haze */
body::before {
  background:
    radial-gradient(52vmax 42vmax at 10% 4%, rgba(124, 58, 237, 0.38), transparent 64%),
    radial-gradient(40vmax 34vmax at 96% 22%, rgba(246, 184, 75, 0.15), transparent 62%),
    radial-gradient(60vmax 46vmax at 74% 104%, rgba(91, 33, 214, 0.32), transparent 64%),
    radial-gradient(34vmax 30vmax at 4% 78%, rgba(246, 184, 75, 0.08), transparent 62%);
  filter: blur(8px);
}
body::after { opacity: 0.12; }

.panel { background: transparent; border-block-color: var(--hair); }
.rules > span { border-color: rgba(207, 201, 226, 0.035); }

/* ---------- headings ---------- */

.display, .h-hero, .h-sect, .h-block,
.section-heading, .cta-heading, .page-hero h1, .hero-headline {
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1.04;
}
h3, h4, .h-small { font-weight: 600; letter-spacing: -0.022em; }

/* the marked word is amber, hero headings carry the purple to amber gradient */
.hl { color: var(--mark); -webkit-text-fill-color: var(--mark); }
:is(h1, h2, h3, .section-heading, .cta-heading, .h-sect, .h-block):has(.hl) { color: var(--ink); }
.grad, .grad-warm { --grad: linear-gradient(90deg, #B69CFF 0%, #E58FC4 55%, #F6B84B 100%); }
.hero-headline-sub { color: var(--ink-3); font-weight: 600; }

/* italic serif quotes become plain emphasis */
[class*="fit"], [class*="tag"], .pull, .callout, blockquote { font-style: normal; }

/* ---------- eyebrows and labels ---------- */

.section-eyebrow, .hero-eyebrow, .cap {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.section-eyebrow::before, .hero-eyebrow::before {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--mark);
}

/* ---------- buttons: one set for the whole site ---------- */

.hero-btn-primary, .hero-btn-secondary, .form-submit, .error-actions a,
.text-link, .back-link, .academy-playlist-view {
  font-family: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
}
.hero-btn-primary, .hero-btn-secondary, .form-submit, .error-actions a {
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
}
.hero-btn-primary, .form-submit, .error-actions a:first-child {
  background: var(--mark);
  color: var(--mark-ink);
  border: 1px solid var(--mark);
  background-image: none;
}
.hero-btn-primary:hover, .form-submit:hover, .error-actions a:first-child:hover {
  background: var(--mark-lit);
  color: var(--mark-ink);
  box-shadow: 0 0 0 4px rgba(246, 184, 75, 0.15);
}
.hero-btn-primary::after, .form-submit::after, .error-actions a:first-child::after { display: none; }
.hero-btn-secondary, .error-actions a + a {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border: 1px solid var(--rule);
}
.hero-btn-secondary:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
.hero-btn-secondary::before { display: none; }

.text-link, .back-link { color: var(--ink); border-bottom-color: var(--rule); }
.text-link:hover, .back-link:hover { color: var(--mark-lit); border-color: var(--mark); }
.text-link::after, .back-link::after { background: var(--mark); }

/* ---------- header ---------- */

.site-header.is-solid { background: rgba(13, 11, 24, 0.72); }
.nav-links { background: rgba(255, 255, 255, 0.03); border-color: var(--hair); }
.nav-top.is-current, .nav-trigger.is-current { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.site-header .nav-glide { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.nav-panel { background: var(--paper-2); border-color: var(--hair); }
.nav-item-link:hover, .nav-item-link:focus-visible { background: rgba(255, 255, 255, 0.04); }
.nav-item-link:hover .nav-item-title, .nav-item-link[aria-current="page"] .nav-item-title,
.nav-col-more a:hover, .nav-col-more a[aria-current="page"] { color: var(--mark-lit); }
.nav-col-more a:hover { background: rgba(255, 255, 255, 0.04); }
.nav-cta {
  background: var(--mark);
  border-color: var(--mark);
  color: var(--mark-ink) !important;
  border-radius: 9px;
  font-weight: 500;
  padding: 8px 16px !important;
}
.nav-cta:hover { background: var(--mark-lit); border-color: var(--mark-lit); box-shadow: 0 0 0 4px rgba(246, 184, 75, 0.15); }
.nav-cta::after { display: none; }
.logo::after { background: var(--mark); }
.site-header::after { background: var(--mark) !important; box-shadow: none !important; }

/* ---------- footer ---------- */

.site-footer { background: var(--paper); border-top-color: var(--hair); }

/* footer wordmark fills white into grey */
.site-footer::after {
  font-weight: 700;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.225), rgba(255, 255, 255, 0.14) 70%) 0 0 / 0% 100% no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04));
  -webkit-background-clip: text;
  background-clip: text;
}

/* read links match the text link */
.blog-card-read { font: 500 14px var(--text); letter-spacing: -0.01em; text-transform: none; color: var(--ink-2); }
.blog-card:hover .blog-card-read { color: var(--mark-lit); }

/* ---------- hero cube: coloured faces in a purple light ---------- */

.hero-cube-stage::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.24), rgba(124, 58, 237, 0.08) 55%, transparent);
  filter: blur(30px);
  pointer-events: none;
}
.hero-cube-stage canvas:not(.hero-cube-glow) { filter: brightness(1.15) drop-shadow(0 0 28px rgba(124, 58, 237, 0.45)) drop-shadow(0 0 6px rgba(182, 156, 255, 0.3)); }

/* cube and brain sit in a purple and amber light */
.hero {
  background:
    radial-gradient(48vw 40vw at 82% 34%, rgba(124, 58, 237, 0.3), transparent 66%),
    radial-gradient(34vw 26vw at 62% 70%, rgba(246, 184, 75, 0.12), transparent 64%);
}
.brain-section { background: radial-gradient(46vw 38vw at 78% 50%, rgba(124, 58, 237, 0.22), transparent 70%); }
.hero-cube-glow { filter: blur(16px); opacity: 0.9; }

/* ---------- cards: one lit style for the whole site ---------- */

:is(.value-card, .team-card, .academy-card, .work-card, .blog-card, .lp-card, .doc-card, .prod-card) {
  position: relative;
  border: 1px solid rgba(182, 156, 255, 0.28);
  border-radius: var(--radius);
  background-color: rgba(124, 58, 237, 0.12);
  background-image: linear-gradient(105deg, transparent 38%, rgba(182, 156, 255, 0.18) 50%, transparent 62%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: 105% 0;
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.7s ease,
    border-color 0.7s ease,
    box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
:is(.value-card, .team-card, .academy-card) { padding: 22px 22px 24px; }
.lp-card { padding: 34px 32px; }
.lp-card + .lp-card { margin-top: 14px; }
:is(.value-card, .team-card, .academy-card, .work-card, .blog-card, .lp-card, .doc-card, .prod-card):hover {
  transform: translateY(-5px);
  border-color: rgba(182, 156, 255, 0.5);
  background-color: rgba(124, 58, 237, 0.2);
  background-position: -5% 0;
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.7s ease,
    border-color 0.7s ease,
    box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    background-position 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- hover tint for buttons and menu links ---------- */

.hero-btn-secondary, .nav-top, .nav-trigger { transition: background-color 0.5s ease, border-color 0.5s ease, color 0.3s ease; }
.hero-btn-secondary:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.16); }
.nav-top:hover, .nav-trigger:hover { background: rgba(255, 255, 255, 0.14); color: var(--ink); }

/* ---------- a soft light that follows the pointer ---------- */

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(closest-side, rgba(150, 110, 255, 0.12), rgba(124, 58, 237, 0.04) 55%, transparent);
  transition: opacity 0.5s ease;
  will-change: transform;
}
.cursor-glow.is-off { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  :is(.value-card, .team-card, .academy-card, .work-card, .blog-card, .lp-card, .doc-card, .prod-card):hover { transform: none; background-position: 105% 0; }
}
@media (max-width: 720px) { .values-grid { gap: 14px; } }
