/* =========================================
   AANSC DESIGN SYSTEM
   Premium • Privacy-First • Enterprise-Scale
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* --- PALETTE --- */
  --bg-dark: #050812;
  --bg-panel: #0b1124;
  --text-main: #eff2ff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* --- BRAND COLORS --- */
  /* Electric Blue */
  --accent-primary: #3b82f6;
  --accent-primary-glow: rgba(59, 130, 246, 0.4);
  /* Deep Violet */
  --accent-secondary: #8b5cf6;
  --accent-secondary-glow: rgba(139, 92, 246, 0.4);
  /* Gradient preset */
  --grad-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

  /* --- STATUS COLORS --- */
  --status-good: #10b981;
  --status-warn: #f59e0b;
  --status-info: #0ea5e9;

  /* --- GLASS & BORDERS --- */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.06);

  /* --- SPACING & SHAPE --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --container-width: 1200px;
}

/* =========================================
   RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

/* =========================================
   UTILITIES & LAYOUT
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid {
  display: grid;
  gap: 24px;
}

/* Grid columns responsive */
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* =========================================
   BACKGROUND FX
   ========================================= */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-fx::before {
  /* Noise texture */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.bg-fx .glow {
  position: absolute;
  background: radial-gradient(circle, var(--accent-primary-glow), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}

.glow-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-primary-glow), transparent 60%);
}

.glow-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-secondary-glow), transparent 60%);
  animation-delay: -5s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -30px);
  }
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

p.lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: 32px;
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-align: center;
}

.btn-primary {
  background: var(--grad-brand);
  color: white;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
  filter: brightness(1.1);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* --- CARDS --- */
.card {
  background: rgba(11, 17, 36, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-brand);
  opacity: 0;
  transition: 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  margin-bottom: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  flex-grow: 1;
}

/* --- PILLS & TAGS --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.pill.highlight {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* =========================================
   HEADER & NAV
   ========================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav {
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--grad-brand);
  /* Fallback if image fails or for styling */
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.nav-right {
  display: flex;
  gap: 12px;
}

/* Mobile Menu Button */
.burger {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
  }
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
}

.hero-pill {
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero p {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   SECTIONS & FOOTER
   ========================================= */
section {
  padding: 100px 0;
  border-top: 1px solid transparent;
}

.section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.footer {
  border-top: 1px solid var(--border-light);
  background: #02040a;
  padding: 80px 0 40px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1rem;
}

.footer-col a {
  display: block;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent-primary);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   ABOUT PAGE EXTRAS
   ========================================= */

/* --- TIMELINE --- */
.timeline {
  display: grid;
  grid-template-columns: 1fr 6px 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 40px auto;
}

.timeline-line {
  background: var(--border-light);
  position: relative;
  border-radius: 4px;
}

.timeline-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
  opacity: 0.5;
}

.timeline-item {
  margin-bottom: 40px;
}

.timeline-item.right {
  text-align: left;
  grid-column: 3;
}

.timeline-item.left {
  text-align: right;
  grid-column: 1;
}

.timeline-year {
  font-family: monospace;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

/* --- TEAM GRID --- */
.team-card {
  text-align: center;
  padding: 24px;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ccc, #999);
  margin: 0 auto 16px;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.team-role {
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- FOUNDER SECTION --- */
.founder-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1/1.2;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  object-fit: cover;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  background: var(--bg-panel);
}

.founder-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.founder-content strong {
  color: var(--text-main);
  font-weight: 700;
}

/* --- ENHANCED CONTACT PAGE --- */
.contact-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(139, 92, 246, 0.15), transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Modern Inputs with Floating Labels */
.input-group {
  position: relative;
  margin-bottom: 24px;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 1rem;
  transition: 0.3s ease;
  outline: none;
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: 0.3s ease;
  font-size: 1rem;
  background: transparent;
  padding: 0 4px;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown),
.input-group textarea:focus,
.input-group textarea:not(:placeholder-shown),
.input-group select:focus,
.input-group select:valid {
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.06);
}

.input-group input:focus~label,
.input-group input:not(:placeholder-shown)~label,
.input-group textarea:focus~label,
.input-group textarea:not(:placeholder-shown)~label,
.input-group select:focus~label,
.input-group select:valid~label {
  top: -10px;
  left: 12px;
  font-size: 0.8rem;
  color: var(--accent-primary);
  background: #0b1124;
  /* Should match card bg */
}

/* FAQ Accordion (Simple CSS-only or Minimal JS) */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  /* Approximate max height */
  margin-top: 12px;
}

.faq-icon {
  transition: 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-primary);
}