/* --- START OF FILE style.css --- */

:root {
    /* THEME COLORS */
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --heading-color: #ffffff;
    --text-color: #e0e0e0;
    --primary-color: #2f6dff; 
    --border-color: #333;

    /* SWITCH COLORS */
    --switch-on: var(--primary-color);
    --switch-off: #525252;

    /* MASTER ANIMATION CURVE (easeInOutQuad) */
    --easing-curve: cubic-bezier(0.45, 0, 0.55, 1);
    
    /* Underline Variables */
    --underline-color: #fff;
    --underline-height: 3px;
    --underline-radius: 999px;
    --underline-duration: 220ms;

    /* Theme variables */
    --ue-badge-color: rgba(255,255,255,0.12);  /* default (dark) = white-ish */
    --nav-icon: #fff;                          /* hamburger/X default */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
    scrollbar-color: #444 var(--bg-color);
    scrollbar-width: thin;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.4s var(--easing-curve), color 0.4s var(--easing-curve);
    overflow-x: hidden;
}

body.light-theme {
    --bg-color: #f0f2f5;
    --surface-color: #ffffff;
    --heading-color: #1c1c1c;
    --text-color: #333333;
    --border-color: #dddddd;
    --underline-color: #0f1116; /* Light theme underline color */
    
    /* light theme = dark-ish */
    --ue-badge-color: rgba(0,0,0,0.16);
    --nav-icon: #121212;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; border: 2px solid var(--bg-color); }
body.light-theme::-webkit-scrollbar-thumb { background: #ccc; border-color: var(--bg-color); }
::-webkit-scrollbar-thumb:hover { background: #555; }
body.light-theme::-webkit-scrollbar-thumb:hover { background: #bbb; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- Preloader & Loader --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background-color: var(--bg-color); display: flex; justify-content: center; align-items: center; transition: opacity 0.5s var(--easing-curve), visibility 0.5s var(--easing-curve); }
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader { height: 30px; aspect-ratio: 2.5; --_g: no-repeat radial-gradient(farthest-side,var(--primary-color) 90%,#0000); background: var(--_g), var(--_g), var(--_g), var(--_g); background-size: 20% 50%; animation: l44 1s infinite linear alternate; }
@keyframes l44 { 0%,5% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% } 12.5% {background-position: calc(0*100%/3) 0   ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% } 25% {background-position: calc(0*100%/3) 0   ,calc(1*100%/3) 0   ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% } 37.5% {background-position: calc(0*100%/3) 100%,calc(1*100%/3) 0   ,calc(2*100%/3) 0   ,calc(3*100%/3) 50% } 50% {background-position: calc(0*100%/3) 100%,calc(1*100%/3) 100%,calc(2*100%/3) 0   ,calc(3*100%/3) 0   } 62.5% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 100%,calc(2*100%/3) 100%,calc(3*100%/3) 0   } 75% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 100%,calc(3*100%/3) 100%} 87.5% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 100%} 95%,100% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% } }

/* --- Hero Section --- */
.hero { position:relative; text-align:center; padding: 30px 20px; overflow:hidden; display: flex; align-items: center; min-height: 90vh; }
.hero-content { position: relative; z-index: 1; width: 100%; }

.glass.hero-card{
  background: rgba(18,18,18,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  padding: clamp(24px, 4vw, 48px);
  max-width: 1100px;
  margin: 64px auto;
}
.light-theme .glass.hero-card{
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(0,0,0,0.06);
}

.brand-mark{
  width: clamp(80px, 12vw, 120px);
  height: auto;
  display:block;
  margin: 0 auto 16px auto;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
}

.brand-title{
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  margin: 8px auto 12px;
  text-align:center;
  background: linear-gradient(90deg,#4ea7ff 0%, #47e29a 50%, #4ea7ff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hue-sweep 8s linear infinite;
}
@keyframes hue-sweep{
  0%   { background-position: 200% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-sub{ 
  text-align:center; opacity:.9; margin: 16px auto 24px; max-width: 800px; 
  font-size: 1.1rem; line-height: 1.7;
}

.hero-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn{ display:inline-flex; align-items:center; justify-content:center; border-radius:14px; text-decoration: none;
  padding:14px 22px; font-weight:700; transition: transform .18s ease, box-shadow .18s ease; cursor: pointer; border: none; font-family: 'Poppins', sans-serif; font-size: 1rem; }
.btn.primary{ background:var(--primary-color); color:#fff; box-shadow:0 6px 24px rgba(47,109,255,.35);}
.btn.primary:hover{ transform: translateY(-1px); box-shadow:0 10px 30px rgba(47,109,255,.45);}
.btn.outline{ border:1.5px solid rgba(255,255,255,.18); color:#cfd5ff; background: transparent; }
.light-theme .btn.outline{ border-color: rgba(0,0,0,.18); color:#1b1b1b; }

.trial-button.is-coming-soon { opacity: 0.9; cursor: not-allowed; }
.trial-button.is-coming-soon:hover { transform: none; box-shadow: none; }
.soon-badge{ margin-left:8px; font-size:12px; padding:2px 8px; border-radius:999px; 
  background: rgba(147,197,253,.15); border: 1px solid rgba(147,197,253,.35); }

/* Mini cards INSIDE hero */
.hero-mini-cards{
  display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin-top: 32px;
}
.mini-card{
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px; padding:18px 18px 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; text-align: left;
}
.mini-card h4 { margin: 0 0 8px; color: var(--heading-color); }
.mini-card p { margin: 0; opacity: .9; line-height: 1.7; color: var(--text-color); font-size: 0.95rem; }
.mini-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
  border-color: rgba(255,255,255,.12);
}
.light-theme .mini-card{ background: rgba(255,255,255,.7); border-color: rgba(0,0,0,.06); }
.light-theme .mini-card:hover{ border-color: rgba(0,0,0,.12); }

@media (max-width: 900px){
  .hero-mini-cards{ grid-template-columns: 1fr; }
}

/* --- THEME TOGGLE (Corrected) --- */
.toggle-input { 
  position: absolute; 
  opacity: 0; 
  pointer-events: none; 
}

.toggleSwitch {
    position: relative; 
    width: 56px; 
    height: 32px; 
    border-radius: 999px;
    background: var(--switch-off); 
    cursor: pointer; 
    display: inline-block;
    transition: background-color .2s ease; 
    box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
}

.toggleSwitch::after {
    content: ""; 
    position: absolute; 
    left: 6px; 
    top: 50%; 
    transform: translateY(-50%);
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    background: #fff; 
    border: 6px solid #fff;
    box-shadow: 5px 2px 7px rgba(8,8,8,.26); 
    transition: transform .2s ease;
}

#theme-toggle:checked + .toggleSwitch { 
  background: var(--switch-on); 
}

#theme-toggle:checked + .toggleSwitch::after { 
  transform: translate(20px,-50%); 
}

.toggleSwitch:focus-visible { 
  outline: 2px solid var(--switch-on); 
  outline-offset: 3px; 
}

/* --- General Section Styling --- */
section { padding: 90px 20px; transition: background-color 0.4s var(--easing-curve); }
.section-title { text-align: center; font-size: 2.5rem; color: var(--heading-color); margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }

#why { margin-top: 36px; }
.roadmap { background-color: var(--surface-color); }
.about-us { background-color: #1a1a1a; }
body.light-theme .about-us { background: #e9ecef; }
.our-story { background-color: var(--bg-color); padding-bottom: 90px; }

/* --- Glow Card (Reusable Component with Static + Hover Effects) --- */
.glow-card {
    position: relative;
    border-radius: 22px;
    z-index: 1;
    padding: 2px;
    box-shadow: 0 0 16px rgba(47, 109, 255, 0.1);
    background: transparent;
    transition: transform 0.3s var(--easing-curve), box-shadow 0.3s var(--easing-curve);
    overflow: hidden;
    height: 100%;
    cursor: pointer;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #00c2ff, #00ff75, #3700ff, #00c2ff);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s var(--easing-curve);
    animation: spin 6s linear infinite;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.glow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(47, 109, 255, 0.25);
}
.glow-card:hover::before {
    opacity: 1;
}

/* --- Advantage Section (Why) --- */
.advantage-card {
    background-color: var(--bg-color);
    border-radius: 20px;
    text-align: center;
    padding: 35px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    position: relative;
}
#why-carousel { min-height: 300px; padding: 50px; }
#why-carousel .card-content p { margin-bottom: 15px; line-height: 1.8; }
.card-content { opacity: 1; transition: opacity 0.4s var(--easing-curve); }
.card-content.fading { opacity: 0; }
.advantage-card svg { stroke: var(--primary-color); margin-bottom: 15px; }
.advantage-card h4 { color: var(--heading-color); font-size: 1.4rem; margin: 0 0 10px; }
.advantage-card p { font-size: 1rem; line-height: 1.7; color: var(--text-color); }

.why-arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  display:grid; place-items:center; font-size: 1.5rem;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
  cursor:pointer; z-index: 2; transition: background .18s ease, transform .18s ease;
  color: var(--text-color); -webkit-appearance: none; appearance: none;
}
.why-arrow.prev{ left: 18px; }
.why-arrow.next{ right: 18px; }
.why-arrow:hover{ background: rgba(255,255,255,.14); transform: translateY(-50%) scale(1.04); }

.slideshow-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 10px; }
.dot { width: 10px; height: 10px; background-color: #444; border-radius: 50%; cursor: pointer; transition: all 0.3s var(--easing-curve); }
.dot.active { background-color: var(--primary-color); transform: scale(1.25); opacity: 1; }
.dot:hover { background-color: #777; }

.visual { text-align: center; }
.screenshot { max-width: 90%; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); border: 2px solid var(--border-color); }

/* --- Supported AI Section --- */
.supported-wrap{ max-width: 1100px; margin: 0 auto; }
.supported-chips{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin: 12px 0 8px; }
.chip{
  padding:8px 14px; border-radius:999px; font-weight:600; font-size:14px;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
}
.light-theme .chip{ background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.08); }
.supported-chips .chip{ font-weight:700; }
.supported-note{ text-align:center; margin-top:16px; opacity:.7; font-style:italic; font-size: 0.9rem; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* --- Mission Section --- */
.mission-cards{
  display:grid; grid-template-columns: repeat(3,1fr); gap:18px; max-width:1100px; margin: 18px auto 8px;
}
.mission-card{
    background: var(--surface-color);
    border-radius: 20px;
    padding: 24px;
    height: 100%;
    box-sizing: border-box;
}
.mission-card h4 { margin-top: 0; color: var(--heading-color); font-size: 1.2rem; }
.mission-card p { margin-bottom: 0; opacity: 0.9; }

@media (max-width: 900px){
  .mission-cards{ grid-template-columns: 1fr; }
}

/* --- Profile & Story Sections --- */
.profile-card {
    background-color: var(--surface-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.profile-role { color: var(--primary-color); font-weight: 600; margin-bottom: 15px; }
.profile-bio { font-size: 0.95rem; color: var(--text-color); opacity: 0.9; }

.social-row, .profile-socials {
  margin-top: 12px; display: flex; gap: 14px;
  justify-content: center; align-items: center;
}
.social-row a, .profile-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; color: var(--text-color);
  background: transparent; border: 1px solid var(--border-color);
  transition: transform .18s var(--easing-curve), border-color .18s, background .18s, color .18s;
}
.social-row a:hover, .profile-socials a:hover { transform: translateY(-2px); border-color: var(--primary-color); }
a[aria-label="GitHub"]:hover { color: #24292f; background: rgba(36,41,47,.06); }
a[aria-label="LinkedIn"]:hover { color: #0077B5; background: rgba(0,119,181,.06); }
a[aria-label="YouTube"]:hover { color: #ff0000; background: rgba(255,0,0,.06); }
a[aria-label="X (Twitter)"]:hover { color: #000000; background: rgba(0,0,0,.06); }
a[aria-label="Discord"]:hover { color: #5865F2; background: rgba(88,101,242,.08); }
.social-row svg, .profile-socials svg { width: 18px; height: 18px; }

.story-content { max-width:800px; margin:0 auto; background-color:var(--surface-color); padding:40px; border-radius:20px; border:1px solid var(--border-color);}
.story-content p { font-size:1.1rem; line-height:1.8; margin-bottom:25px; }
.story-content p:last-child { margin-bottom:0; }
.story-content strong { color:var(--primary-color); font-weight:600; }
.story-content h4 { font-size:1.5rem; color:var(--heading-color); margin:35px 0 15px; }
.story-content .styled-list { list-style:none; padding-left:20px; margin-bottom:25px; }
.story-content .styled-list li { padding-left:25px; position:relative; margin-bottom:12px; font-size:1.1rem; line-height:1.7; }
.story-content .styled-list li::before { content:'✓'; position:absolute; left:0; color:var(--primary-color); font-weight:bold; }

/* --- FAQ Section --- */
.faq-section .container { max-width: 900px; }
.faq-category-title {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin: 40px 0 20px 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: border-color 0.3s var(--easing-curve);
}
.faq-item:hover {
    border-color: var(--primary-color);
}
.faq-item summary {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px 20px;
    cursor: pointer;
    position: relative;
    list-style: none; /* Hide default marker */
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '›';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.2s var(--easing-curve);
}
.faq-item[open] > summary::after {
    transform: translateY(-50%) rotate(-90deg);
}
.faq-answer {
    padding: 0 20px 20px;
    line-height: 1.8;
}
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }


/* --- Contact Section --- */
.contact-glass{
  background: rgba(18,18,18,0.55);
  border:1px solid rgba(255,255,255,.06);
  border-radius:20px;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  max-width:900px; margin: 16px auto 0; padding: clamp(24px, 4vw, 48px);
}
.light-theme .contact-glass { background: rgba(255,255,255,0.6); border-color: rgba(0,0,0,0.08); }
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-grid .full{ grid-column: 1 / -1; }
.contact-grid label { display: block; font-weight: 600; margin-bottom: 8px; text-align: left; }
.contact-grid input, .contact-grid textarea {
    width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border-color);
    background-color: var(--surface-color); color: var(--text-color); font-family: 'Poppins', sans-serif;
    box-sizing: border-box; font-size: 1rem;
}
.contact-grid textarea {
    resize: vertical;
}
.light-theme .contact-grid input, .light-theme .contact-grid textarea { background-color: var(--bg-color); }
.muted { opacity: 0.7; font-size: 0.9rem; }
.muted a { color: var(--text-color); }

@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }

/* --- Footer --- */
footer { text-align:center; padding:40px 20px; border-top:1px solid var(--border-color); color:#888; }
.footer-contact { margin-top:10px; font-size:.9rem; }
.footer-contact a { color:var(--primary-color); text-decoration:none; font-weight:600; }
.footer-contact a:hover { text-decoration:underline; }
.footer-links { margin-bottom: 16px; }
.footer-links a { color: #aaa; text-decoration: none; margin: 0 8px; }
.footer-links a:hover { color: var(--primary-color); }

/* --- Animations --- */
.fade-in { opacity:0; transform:translateY(30px); transition: opacity 0.6s var(--easing-curve), transform 0.6s var(--easing-curve); }
.fade-in.visible { opacity:1; transform:translateY(0); }

/* --- Scroll Progress Bar (Bottom) --- */
.scroll-progress-bar {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 4px;
    background-color: transparent; z-index: 9999; pointer-events: none;
}
.scroll-progress-bar::after {
    content: ""; position: absolute; left: 0; top: 0; height: 100%;
    width: calc(var(--scroll-progress, 0) * 100%);
    background: linear-gradient(90deg, #3700ff, #00c2ff, #00ff75);
    transition: width 0.1s linear;
}

/* --- Navigation --- */
.sticky-nav{
  position: sticky; top:0; z-index: 1000;
  display:grid; grid-template-columns: 1fr auto 1fr; align-items:center;
  gap: 16px; padding: 10px 24px;
  background: rgba(10,10,10,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.light-theme .sticky-nav {
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-left{ justify-self:start; }
.nav-center{ justify-self:center; }
.nav-right{ justify-self:end; display:flex; align-items:center; gap:12px; }
.nav-links { list-style:none; margin:0; padding:0; display:flex; gap:36px; } /* INCREASED SPACING */
.nav-links a{
  text-decoration:none; color:var(--text-color);
  font-weight:600; padding:8px 2px; position:relative;
}
.logo-link{display:flex;align-items:center;position:relative}

/* === Animated underline for nav + logo (current-page only) === */
.underline-grow { position: relative; }
.underline-grow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: var(--underline-height);
  background: var(--underline-color);
  border-radius: var(--underline-radius);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--underline-duration) ease;
  pointer-events: none;
}

/* Show underline when active/current page */
.underline-grow.active::after,
.underline-grow[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Hover animation (doesn't “stick”) */
.underline-grow:hover::after,
.underline-grow:focus-visible::after {
  transform: scaleX(1);
}

/* Logo sits a bit lower */
.logo-link.underline-grow::after { bottom: -10px; }

/* Light theme color for the line */
body.light-theme .underline-grow::after { background: var(--underline-color); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .underline-grow::after { transition: none; }
}


/* --- Aurora --- */
.aurora-bg { position:absolute; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; overflow:hidden; }
.aurora-bg .aurora__item { position:absolute; width:60vw; height:60vw; background-color:#333; border-radius:37% 29% 27% 27% / 28% 25% 41% 37%; filter:blur(4rem); mix-blend-mode:overlay; opacity:.25; }
body.light-theme .aurora-bg .aurora__item { background-color:#ddd; mix-blend-mode:multiply; opacity:.7; }
.aurora-bg .aurora__item:nth-of-type(1){top:-50%; animation:aurora-border 6s ease-in-out infinite, aurora-1 12s ease-in-out infinite alternate;}
.aurora-bg .aurora__item:nth-of-type(2){background-color:#555; right:0; top:0; animation:aurora-border 6s ease-in-out infinite, aurora-2 12s ease-in-out infinite alternate;}
body.light-theme .aurora-bg .aurora__item:nth-of-type(2){background-color:#c7c7c7;}
.aurora-bg .aurora__item:nth-of-type(3){background-color:#222; left:0; bottom:0; animation:aurora-border 6s ease-in-out infinite, aurora-3 8s ease-in-out infinite alternate;}
body.light-theme .aurora-bg .aurora__item:nth-of-type(3){background-color:#e0e0e0;}
.aurora-bg .aurora__item:nth-of-type(4){background-color:#444; right:0; bottom:-50%; animation:aurora-border 6s ease-in-out infinite, aurora-4 24s ease-in-out infinite alternate;}
body.light-theme .aurora-bg .aurora__item:nth-of-type(4){background-color:#d6d6d6;}
@keyframes aurora-1 {0%{top:0;right:0;}50%{top:100%;right:75%;}75%{top:100%;right:25%;}100%{top:0;right:0;}}
@keyframes aurora-2 {0%{top:-50%;left:0;}60%{top:100%;left:75%;}85%{top:100%;left:25%;}100%{top:-50%;left:0;}}
@keyframes aurora-3 {0%{bottom:0;left:0;}40%{bottom:100%;left:75%;}65%{bottom:40%;left:50%;}100%{bottom:0;left:0;}}
@keyframes aurora-4 {0%{bottom:-50%;right:0;}50%{bottom:0;right:40%;}90%{bottom:50%;right:25%;}100%{bottom:-50%;right:0;}}
@keyframes aurora-border {0%{border-radius:37% 29% 27% 27% / 28% 25% 41% 37%;}25%{border-radius:47% 29% 39% 49% / 61% 19% 66% 26%;}50%{border-radius:57% 23% 47% 72% / 63% 17% 66% 33%;}75%{border-radius:28% 49% 29% 100% / 93% 20% 64% 25%;}100%{border-radius:37% 29% 27% 27% / 28% 25% 41% 37%;}}

/* --- Responsive --- */
@media (max-width:992px){
    .nav-center { display: none; }
}
@media (max-width:768px){
  section{padding:60px 20px;}
  .section-title{font-size:2rem;margin-bottom:40px;}
  .story-content{padding:30px 25px;}
  .our-story{padding-bottom:60px;}
}

/* --- Pricing Modal --- */
.modal-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--easing-curve);
}
.modal-container.visible {
    opacity: 1;
    pointer-events: auto;
}
.modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.modal-content {
    position: relative;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 90%;
    width: 980px; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s var(--easing-curve);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-container.visible .modal-content {
    transform: scale(1);
}
.modal-close, .modal-back {
    position: absolute;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}
.modal-close { top: 15px; right: 20px; font-size: 2rem; }
.modal-back { top: 25px; left: 25px; font-weight: 600; font-size: 1rem; }
.modal-title { text-align: center; margin-top: 0; margin-bottom: 30px; }
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.plan-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: border-color .2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box; /* FIX: Added this */
}
.light-theme .plan-card { background: var(--bg-color); }

.glow-card:hover .plan-card {
    border-color: var(--primary-color);
}
.modal-content .plan-card .btn {
    color: #fff;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
}
.plan-card.popular {
    border-color: var(--primary-color);
}
.plan-card h3 { 
    margin-top: 0;
    font-size: 1.6rem;
}
.plan-card .price-soon {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 15px 0;
    color: var(--heading-color);
    opacity: 0.9;
}
.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px 0;
    text-align: left;
    font-size: 0.9rem;
}
.plan-card ul li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.plan-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary-color); }
.plan-card .btn {
    width: 100%;
}
#duration-selection.hidden,
#tier-selection.hidden { display: none; }

.duration-options { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
    margin: 30px 0; 
}
.duration-options .glow-card {
    border-radius: 14px;
}
.duration-option {
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--surface-color);
    height: 100%;
    justify-content: center;
    box-sizing: border-box; /* FIX: Added this */
}
.duration-option span { font-weight: 400; opacity: 0.8; }

.glow-card:hover .duration-option {
    border-color: var(--primary-color);
    background-color: #2a2a2a;
}
.duration-option.selected {
    border-color: var(--primary-color);
    background: #2a2a2a;
    color: var(--heading-color);
}
.cta-final { display: block; width: 50%; margin: 30px auto 0; }
@media (max-width: 992px) { .plans-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .duration-options { grid-template-columns: 1fr; } 
}

/* === Newsletter (subscribe.html) === */
.subscribe-form {
  display:flex; gap:.75rem; justify-content:center; flex-wrap:wrap; margin-top:1rem;
}

.subscribe-input {
  flex:1 1 320px;
  padding:.9rem 1rem;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-color, #e8e9ef);
  border-radius: 12px;
}
.light-theme .subscribe-input {
  border-color: rgba(17,24,39,.12);
  background:#fff;
  color:#0f1116;
}
.subscribe-input::placeholder { opacity:.6; }

.subscribe-btn {
  padding:.9rem 1.15rem;
  border-radius:12px;
}

.subscribe-note {
  display:block; margin-top:.75rem; opacity:.7; font-size:.9rem;
}

.sr-only {
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Bigger hero face logo */
.brand-mark {
  width: 120px;
  height: auto;
}

@media (min-width: 900px) {
  .brand-mark { width: 140px; }
}

/* === Fix: Modal Layout for Plan & Duration Cards === */
.plans-grid, .duration-options {
  grid-auto-rows: 1fr;
}

.plans-grid .glow-card, .duration-options .glow-card {
  display: flex;
  flex-direction: column;
}

.plan-card, .duration-option {
  flex-grow: 1;
  width: 100%;
}

.plan-card {
  padding-bottom: 40px;
}

.plan-card .btn {
  margin-top: auto;
}

.nav-left { display:flex; align-items:center; }
.nav-center { display:flex; gap: 16px; justify-content:center; }
.nav-right { display:flex; justify-content:flex-end; align-items:center; gap: 10px; }

.nav-links a {
  color: var(--text-color);
  opacity: .9;
  text-decoration: none;
  font-weight: 600;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active {
  opacity: 1;
  border: none;
}

/* ===== Mobile nav ===== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text-color);
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}
.nav-toggle:focus-visible { 
  outline: 2px solid #93c5fd; 
  outline-offset: 2px; 
}
.light-theme .nav-toggle { 
  border-color: rgba(0,0,0,.12); 
}
.light-theme .nav-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}
.mobile-menu {
  position: absolute; 
  top: 56px;
  right: 16px; 
  width: auto; 
  min-width: 180px;
  background: rgba(18,18,18,.96); 
  backdrop-filter: blur(8px);
  border-radius: 12px; 
  border: 1px solid rgba(255,255,255,.08);
  padding: 12px 0;
  transform: translateY(-8px); 
  opacity: 0; 
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 100;
}

/* Light theme: mobile menu container + link colors */
.light-theme .mobile-menu {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
}

.light-theme .mobile-menu a {
  color: #111;
}

.light-theme .mobile-menu a:hover {
  background: rgba(0,0,0,.06); /* you already had this — keep it */
}
.mobile-menu.open {
  transform: translateY(0); 
  opacity: 1; 
  pointer-events: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px;
}
.mobile-menu a {
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color); 
  font-weight: 600;
}
.mobile-menu a:hover {
  background: rgba(255,255,255,.06);
}
.light-theme .mobile-menu a:hover {
  background: rgba(0,0,0,.06);
}

@media (max-width: 1200px) {
  .nav-center { display: none; }
  .nav-right { gap: 8px; }
  .nav-toggle { display: inline-flex; }
  .sticky-nav { grid-template-columns: auto 1fr auto; }
}

/* === Consistent Logo Sizes Across Pages === */
.sticky-nav .brand-mark {
  height: 48px;
  width: auto;
  margin: 0;
}
.hero-card .brand-mark {
  height: 130px;
  width: auto;
}

/* Hover polish for footer icons */
.social-row a:hover .theme-icon { opacity: .85; }

/* Right-align the form submit button */
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-actions .btn {
  margin: 0;
}

/* === Team grid === */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 820px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}
.team-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.team-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.team-card .card-footer {
  margin-top: auto;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.avatar {
  width: 84px; height: 84px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  margin: 0 auto 20px auto;
}
@media (min-width: 820px) {
  .avatar { width: 96px; height: 96px; }
}

/* === Theme-Aware Icons (Corrected) === */
.theme-icon {
  color: #fff; /* dark mode = white */
  transition: color 0.4s var(--easing-curve);
}
.light-theme .theme-icon {
  color: #0f1116; /* near-black for light theme */
}

/* UE Watermark */
.hero-card {
  position: relative;
}
/* UE watermark placement + theming */
.ue-badge{
  position:absolute;
  left:28px;
  top:28px;
  color: var(--ue-badge-color);
  opacity:.9;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  pointer-events:none;
}
@media (max-width: 560px) {
  .ue-badge svg { width: 48px; height: 48px; }
}

/* --- Global Nav Trim --- */
.nav-links a[href*="#why"],
.nav-links a[href="how.html"],
.nav-links a[href*="#supported"] {
  display: none;
}
.mobile-menu a[href*="#why"],
.mobile-menu a[href="how.html"],
.mobile-menu a[href*="#supported"] {
  display: none;
}
.nav-links.nav-center {
    justify-content: center;
}
/* Navbar icons adopt theme variable */
.nav-toggle svg,
.social-link svg { color: var(--nav-icon); fill: currentColor; }

/* Force UE badge to inherit theme color */
.ue-badge { color: #fff; }                /* dark mode default */
.light-theme .ue-badge { color: #0f1116; }/* light mode default */

/* Override any inline fill/stroke inside the SVG */
.ue-badge svg,
.ue-badge svg * {
  fill: currentColor !important;
  stroke: currentColor !important;
}


/* ===== Nav & Logo size overrides (place at end of style.css) ===== */

/* Bigger, more spaced menu links */
.nav-links {
  gap: clamp(36px, 5vw, 72px);  /* was 28–56px */
}
.nav-links a {
  font-size: clamp(0.95rem, 1.1vw, 1.15rem); /* bump up font size responsively */
  letter-spacing: 0.2px;                     /* tiny polish so larger text feels balanced */
  padding: 10px 2px;                          /* slightly taller hit area */
}

/* Logo sizes */
.sticky-nav .brand-mark {                     /* top-left logo in the navbar */
  height: 48px;                               /* was 48px; shrink a bit */
  width: auto;
}

.hero-card .brand-mark {                      /* big logo inside the hero card */
  height: clamp(96px, 12vw, 120px);           /* was ~130–140px; a touch smaller and responsive */
  width: auto;
}

/* UE watermark badge size (top-left of hero card on home page) */
.ue-badge svg {
  width: auto;            /* was hard-coded (index used 64px); scale down + responsive */
  height: clamp(10px, 4vw, 50px);
}

/* Optional: give the bar a tad more vertical space on desktop so the bigger text doesn't feel cramped */
@media (min-width: 1200px) {
  .sticky-nav { padding-block: 14px; }        /* was 10px; subtle breathing room */
}


/* --- UE watermark: size, layout, and no clipping --- */
.hero-card { overflow: visible; } /* make sure shadows/icons aren't clipped by the card radius */

.ue-badge {          /* keep it off the rounded edge a bit more */
  left: 36px;
  top: 36px;
}

.ue-badge svg {
  display: block;           /* remove inline SVG baseline that can cut the bottom */
  width: clamp(30px, 5vw, 40px);
  height: auto;
  overflow: visible;        /* ensure strokes/shadows don't get clipped */
}

/* optional: slightly smaller on phones */
@media (max-width: 560px) {
  .ue-badge { left: 20px; top: 20px; }
  .ue-badge svg { width: 44px; }
}


/* --- Underline Grow from Center --- */
.underline-grow {
  position: relative;
  overflow: hidden;
}

.underline-grow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;                   /* underline thickness */
  background-color: currentColor; /* matches text color */
  transition: transform 0.3s ease;
}

.underline-grow:hover::after,
.underline-grow.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* === CSS-Only Carousel (Context Nexus) === */
.cnx-carousel {
  position: relative;
  padding-top: min(56.25%, 520px); /* 16:9 aspect */
  filter: drop-shadow(0 12px 40px rgba(0,0,0,.35));
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-color, #111);
}

.cnx-carousel__viewport {
  position: absolute; inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cnx-carousel__slide {
  position: relative; flex: 0 0 100%; width: 100%;
  background-color: #1a1a1a;
  background-image: url('Context_Nexus_Logo_Face.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 140px;
}
.cnx-carousel__snapper { position: absolute; inset: 0; scroll-snap-align: center; }

.cnx-media {
  position: absolute; 
  inset: 0;
  width: 100%; 
  height: 100%;
  object-fit: cover; /* This makes the image cover the area without stretching */
  display: block;
}

/* arrows */
.cnx-carousel__prev,
.cnx-carousel__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 0; outline: 0;
  z-index: 2;
  background: rgba(0,0,0,.45);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}
body.light-theme .cnx-carousel__prev,
body.light-theme .cnx-carousel__next { background-color: rgba(0,0,0,.65); }

.cnx-carousel__prev {
  left: 10px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='35,50 60,75 60,25' fill='%23fff'/%3E%3C/svg%3E");
}
.cnx-carousel__next {
  right: 10px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='65,50 40,75 40,25' fill='%23fff'/%3E%3C/svg%3E");
}

/* dots */
.cnx-carousel__navigation {
  position: absolute; left: 0; right: 0; bottom: 12px;
  text-align: center; z-index: 3;
}
.cnx-carousel__navigation-list,
.cnx-carousel__navigation-item { display: inline-block; list-style: none; margin: 0; padding: 0;}
.cnx-carousel__navigation-button {
  display: inline-block;
  width: 12px; height: 12px;
  background-color: rgba(255,255,255,.7);
  border-radius: 50%;
  margin: 0 6px;
  border: 2px solid rgba(0,0,0,.2);
  font-size: 0;
  transition: transform .12s ease, opacity .12s ease;
  opacity: .9;
}
body.light-theme .cnx-carousel__navigation-button {
  background-color: rgba(0,0,0,.6);
  border-color: rgba(0,0,0,.2);
}
.cnx-carousel__navigation-button:hover { transform: scale(1.1); }

/* auto-advance */
@media (hover: hover) {
  .cnx-carousel__snapper {
    animation-name: cnx-tonext, cnx-snap;
    animation-timing-function: ease;
    animation-duration: 5s;
    animation-iteration-count: infinite;
  }
  .cnx-carousel__slide:last-child .cnx-carousel__snapper {
    animation-name: cnx-tostart, cnx-snap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cnx-carousel__snapper { animation-name: none !important; }
}

/* keyframes */
@keyframes cnx-tonext {
  75% { left: 0; }
  95% { left: 100%; }
  98% { left: 100%; }
  99% { left: 0; }
}
@keyframes cnx-tostart {
  75% { left: 0; }
  95% { left: -400%; } /* UPDATED for 5 slides */
  98% { left: -400%; }
  99% { left: 0; }
}
@keyframes cnx-snap {
  96% { scroll-snap-align: center; }
  97% { scroll-snap-align: none; }
  99% { scroll-snap-align: none; }
  100% { scroll-snap-align: center; }
}

/* hidden helper when assets are missing */
.cnx-hidden { display: none !important; }

/* Let clicks reach dots/links under the decorative bubbles */
.cnx-carousel::before,
.cnx-carousel::after { pointer-events: none; }

/* JS toggles this to fully stop CSS auto-advance */
.cnx-no-auto .cnx-carousel__snapper { animation-name: none !important; }

/* Tighten the WHY section card only */
#why .glow-card { 
  height: auto;              /* don't force full height */
  cursor: default;           /* no “clickable” cursor here */
}

#why .advantage-card {
  height: auto;              /* size to content */
  justify-content: initial;  /* stop vertical spacing */
  padding: 28px;             /* slightly tighter padding */
}

#why #why-carousel {
  padding: 24px;             /* smaller inner padding */
  min-height: unset;         /* no fixed min height */
}

/* Optional: slightly smaller arrows so they don't feel oversized */
#why .why-arrow { 
  transform: translateY(-50%) scale(.9);
}
#why .why-arrow:hover { 
  transform: translateY(-50%) scale(.96);
}

/* Remove shadow only in navbar */
.sticky-nav .brand-mark {
  filter: none !important;
  background: transparent !important;
}

/* --- Simple page mode: no hero, tighter top spacing --- */
body.simple-page .hero { display: none !important; }
body.simple-page main .section,
body.simple-page main section { padding-top: 60px; }