/* ===================================================
   ACESMIND — SHARED STYLESHEET
   =================================================== */

:root {
  --bg:       #08080F;
  --bg2:      #0D0D18;
  --surface:  #12121F;
  --surface2: #1A1A2E;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.13);
  --purple:   #A855F7;
  --pink:     #EC4899;
  --orange:   #F97316;
  --green:    #10B981;
  --grad:     linear-gradient(135deg, #A855F7, #EC4899, #F97316);
  --grad2:    linear-gradient(90deg, #A855F7, #EC4899);
  --text:     #F1F5F9;
  --text-mid: rgba(241,245,249,0.6);
  --text-low: rgba(241,245,249,0.32);
  --r:        10px;
  --r-lg:     18px;
  --r-xl:     24px;
  --max-w:    1200px;
}

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; }

body {
  font-family: 'Cabinet Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 2px; }

/* ── SKIP LINK ─────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--purple); color: #fff;
  padding: 0.5rem 1rem; border-radius: 4px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ── NAV ───────────────────────────────────────────── */
nav.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3.5rem; height: 64px;
  background: rgba(8,8,15,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-name {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  display: block; padding: 0.4rem 1rem;
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.04em;
  color: var(--text-mid); text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 1rem; right: 1rem;
  height: 1.5px; background: var(--grad2);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  padding: 8px 20px; border-radius: 7px;
  background: var(--grad); border: none;
  font-size: 0.8rem; font-weight: 600; color: #fff;
  text-decoration: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 0 20px rgba(168,85,247,0.3);
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.nav-hamburger {
  display: none; background: none; border: none;
  flex-direction: column; gap: 5px; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(8,8,15,0.97); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  z-index: 998; flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block; padding: 0.75rem 0;
  font-size: 1rem; font-weight: 400;
  color: var(--text-mid); text-decoration: none;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--text); }

/* ── SECTION BASE ──────────────────────────────────── */
section { position: relative; }
.sec { padding: 7rem 3.5rem; }
.sec-alt { background: var(--bg2); }
.sec-center { text-align: center; }
.sec-center .sec-sub { margin-left: auto; margin-right: auto; }

.container { max-width: var(--max-w); margin: 0 auto; }

/* ── TYPOGRAPHY ────────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--purple);
  margin-bottom: 0.85rem;
}
.eyebrow-line { width: 28px; height: 1.5px; background: var(--grad2); flex-shrink: 0; }

.sec-title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); line-height: 1.15; margin-bottom: 0.75rem;
}
.sec-sub {
  font-size: 0.97rem; font-weight: 300; line-height: 1.85;
  color: var(--text-mid); max-width: 500px; margin-bottom: 3.5rem;
}

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

/* ── PAGE HERO (non-home) ──────────────────────────── */
.page-hero {
  padding: 10rem 3.5rem 5rem;
  position: relative; overflow: hidden;
  min-height: 44vh; display: flex; align-items: center;
}
.page-hero-content { position: relative; z-index: 2; max-width: 760px; }
.page-hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 1.25rem;
  animation: fadeUp 0.7s ease both;
}
.page-hero-sub {
  font-size: 1.05rem; font-weight: 300; line-height: 1.85;
  color: var(--text-mid); max-width: 540px;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s ease 0.12s both;
}
.page-hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.22s both;
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 28px; border-radius: 8px;
  background: var(--grad); border: none;
  font-size: 0.85rem; font-weight: 600; color: #fff;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(168,85,247,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(168,85,247,0.45); }
.btn-primary:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 28px; border-radius: 8px;
  background: transparent; border: 1px solid var(--border2);
  font-size: 0.85rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-outline:hover { border-color: var(--purple); color: var(--text); transform: translateY(-2px); }
.btn-outline:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--purple); text-decoration: none;
  cursor: pointer; transition: gap 0.2s, color 0.2s;
}
.btn-ghost:hover { gap: 10px; color: var(--pink); }

/* ── CARDS ─────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 2rem; position: relative; overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
}
.card:hover { background: var(--surface2); border-color: rgba(168,85,247,0.25); transform: translateY(-3px); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.card:hover::before { transform: scaleX(1); }

/* ── TAGS ──────────────────────────────────────────── */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tag-purple { background: rgba(168,85,247,0.15); color: #C084FC; border: 1px solid rgba(168,85,247,0.25); }
.tag-pink   { background: rgba(236,72,153,0.12);  color: #F472B6; border: 1px solid rgba(236,72,153,0.2); }
.tag-orange { background: rgba(249,115,22,0.1);   color: #FB923C; border: 1px solid rgba(249,115,22,0.2); }
.tag-green  { background: rgba(16,185,129,0.1);   color: #34D399; border: 1px solid rgba(16,185,129,0.2); }
.tag-blue   { background: rgba(59,130,246,0.1);   color: #60A5FA; border: 1px solid rgba(59,130,246,0.2); }

.tech-pill {
  font-size: 0.68rem; padding: 3px 9px; border-radius: 5px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text-low); font-weight: 400;
}
.tech-pills { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── FORM ELEMENTS ─────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-low);
}
.form-input, .form-select, .form-textarea {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 7px; padding: 11px 14px;
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 0.88rem; font-weight: 300; color: var(--text);
  outline: none; transition: border-color 0.2s;
  appearance: none; width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-low); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.1);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-select option { background: var(--surface2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── VIDEO PLACEHOLDER ─────────────────────────────── */
.video-placeholder {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  cursor: pointer; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #12121F 0%, #1A1A2E 50%, #0D0D18 100%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem;
  transition: border-color 0.3s, transform 0.25s;
}
.video-placeholder:hover { border-color: rgba(168,85,247,0.4); transform: scale(1.01); }
.video-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,0.06), rgba(236,72,153,0.04), rgba(249,115,22,0.03));
  animation: gradShift 6s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}
.vp-play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(168,85,247,0.2); border: 2px solid rgba(168,85,247,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; position: relative; z-index: 1;
  transition: background 0.2s, transform 0.2s;
}
.video-placeholder:hover .vp-play { background: rgba(168,85,247,0.35); transform: scale(1.1); }
.vp-label {
  font-size: 0.78rem; color: var(--text-mid); font-weight: 400;
  position: relative; z-index: 1; letter-spacing: 0.05em;
}

/* ── TABS ──────────────────────────────────────────── */
.tabs-nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.tab-btn {
  padding: 8px 18px; border-radius: 6px 6px 0 0;
  background: none; border: none;
  font-size: 0.82rem; font-weight: 400;
  color: var(--text-mid); cursor: pointer;
  transition: color 0.2s, background 0.2s;
  position: relative; bottom: -1px;
  border: 1px solid transparent;
}
.tab-btn:hover { color: var(--text); }
.tab-btn[aria-selected="true"] {
  color: var(--text); background: var(--bg);
  border-color: var(--border) var(--border) var(--bg) var(--border);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── ORBs + GRID BG ────────────────────────────────── */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
  animation: drift 12s ease-in-out infinite;
}
.orb-1 { width:500px; height:500px; top:-10%; left:-5%; background:rgba(168,85,247,0.12); animation-delay:0s; }
.orb-2 { width:400px; height:400px; top:30%; right:-5%; background:rgba(236,72,153,0.1); animation-delay:-4s; }
.orb-3 { width:350px; height:350px; bottom:-5%; left:40%; background:rgba(249,115,22,0.08); animation-delay:-8s; }

.grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(168,85,247,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
}

/* ── STATS / COUNTER ───────────────────────────────── */
.stat-val {
  font-size: 2.4rem; font-weight: 800;
  background: var(--grad2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.stat-lbl { font-size: 0.68rem; color: var(--text-low); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }

/* ── HOME BADGE ────────────────────────────────────── */
.home-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px;
  border: 1px solid rgba(168,85,247,0.3);
  background: rgba(168,85,247,0.08);
  font-size: 0.73rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: #C084FC;
  margin-bottom: 2rem;
}
.badge-pulse { width:7px; height:7px; border-radius:50%; background:#A855F7; animation:pulse 2.2s ease-in-out infinite; flex-shrink:0; }

/* ── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 4rem 3.5rem 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--border);
}
.footer-brand-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700; color: var(--text);
  text-decoration: none; margin-bottom: 0.85rem;
}
.footer-tagline {
  font-size: 0.82rem; color: var(--text-low); line-height: 1.7;
  font-weight: 300; max-width: 240px; margin-bottom: 1.25rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.footer-social a:hover { border-color: rgba(168,85,247,0.4); background: var(--surface2); }
.footer-col-title {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text); margin-bottom: 1rem;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-list a {
  font-size: 0.82rem; color: var(--text-low); text-decoration: none;
  transition: color 0.2s;
}
.footer-list a:hover { color: var(--purple); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.73rem; color: var(--text-low); font-weight: 300; }
.footer-legal { display: flex; gap: 1.5rem; list-style: none; }
.footer-legal a {
  font-size: 0.73rem; color: var(--text-low); text-decoration: none;
  letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s;
}
.footer-legal a:hover { color: var(--purple); }

/* ── SCROLL REVEAL ─────────────────────────────────── */
.reveal { opacity:0; transform:translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-left { opacity:0; transform:translateX(-24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity:1; transform:translateX(0); }

/* ── ANIMATIONS ────────────────────────────────────── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeLeft { from{opacity:0;transform:translateX(28px)} to{opacity:1;transform:translateX(0)} }
@keyframes pulse    { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.75)} }
@keyframes drift    { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(30px,-20px) scale(1.05)} 66%{transform:translate(-20px,30px) scale(0.95)} }
@keyframes blink    { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes lineIn   { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideRight { from{width:0} to{width:100%} }

/* ── REDUCED MOTION ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
  .reveal, .reveal-left { opacity:1 !important; transform:none !important; transition:none !important; }
  .badge-pulse { animation: none !important; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media(max-width:1024px) {
  .sec { padding: 5.5rem 2.5rem; }
  .page-hero { padding: 9rem 2.5rem 4rem; }
}
@media(max-width:900px) {
  nav.main-nav { padding: 0 1.25rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .sec, .page-hero { padding: 5rem 1.25rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}
