/* ===== Q-Star AI v3 — "Precision Cosmos" ===== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #06060e;
  --bg2: #0a0a16;
  --bg3: #10102a;
  --surface: rgba(18, 18, 42, 0.7);
  --surface-solid: #12122a;
  --border: rgba(120, 100, 255, 0.18);
  --border-subtle: rgba(255,255,255,0.05);
  --border-hover: rgba(120, 100, 255, 0.35);
  --accent: #7c6aff;
  --accent2: #b4a0ff;
  --accent-warm: #f0c060;
  --accent-warm-dim: rgba(240, 192, 96, 0.15);
  --accent-glow: rgba(120, 100, 255, 0.25);
  --text: #dcdce8;
  --text2: #8e8ea8;
  --text3: #55556e;
  --white: #f0f0f8;
  --green: #34d399;
  --yellow: #fbbf24;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 60px rgba(120, 100, 255, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-display); }
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--white);
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-body); }
p { color: var(--text2); }

/* ===== LAYOUT ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.section-sm { padding: 72px 0; }
.section-title { text-align: center; margin-bottom: 14px; }
.section-sub {
  text-align: center; color: var(--text2); max-width: 620px;
  margin: 0 auto 60px; font-size: 1.08rem; line-height: 1.7;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 6, 14, 0.8);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(6, 6, 14, 0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: 1180px; margin: 0 auto; padding: 0 28px;
}
.nav-logo {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.nav-logo .nav-icon { height: 36px; display: block; }
.nav-logo .nav-wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 800; color: var(--white);
  letter-spacing: 0.06em;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text2); font-size: 0.88rem; font-weight: 500;
  padding: 7px 14px; border-radius: var(--radius-sm); transition: all var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 1px;
  background: var(--accent);
}
.nav-cta {
  background: var(--accent) !important; color: var(--white) !important;
  padding: 9px 20px !important; border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #6a58f0 !important; transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text2); border-radius: 2px; transition: all var(--transition); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; border: none;
  transition: all var(--transition); text-decoration: none;
  font-family: var(--font-body);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #9580ff 100%);
  color: var(--white);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(120, 100, 255, 0.35);
}
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text); background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--white);
  background: rgba(120,100,255,0.06);
  transform: translateY(-1px);
}
.btn-ghost { color: var(--text2); background: transparent; padding: 10px 20px; }
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* ===== BADGE / TAG ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
}
.badge-live { background: rgba(52,211,153,0.1); color: var(--green); border: 1px solid rgba(52,211,153,0.2); }
.badge-review { background: rgba(251,191,36,0.1); color: var(--yellow); border: 1px solid rgba(251,191,36,0.2); }
.badge-accent { background: rgba(120,100,255,0.1); color: var(--accent2); border: 1px solid var(--border); }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent-warm-dim); color: var(--accent-warm);
  border: 1px solid rgba(240, 192, 96, 0.2);
  margin-bottom: 14px;
  font-family: var(--font-body);
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(120,100,255,0.15), rgba(180,160,255,0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
  border: 1px solid var(--border-subtle);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 130px 0 80px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(120,100,255,0.2) 0%, transparent 65%),
    radial-gradient(ellipse 30% 35% at 75% 55%, rgba(240,192,96,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(120,100,255,0.06) 0%, transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle 1px at var(--x, 50%) var(--y, 30%), rgba(255,255,255,0.12) 0%, transparent 100%),
              radial-gradient(circle 1px at calc(var(--x, 50%) + 20%) calc(var(--y, 30%) + 15%), rgba(255,255,255,0.08) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0.4;
}
.hero-content {
  text-align: center; max-width: 880px; margin: 0 auto;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(120,100,255,0.08);
  border: 1px solid var(--border);
  border-radius: 24px; padding: 7px 18px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent2); margin-bottom: 32px;
  letter-spacing: 0.05em; text-transform: uppercase;
  animation: fadeIn 0.6s 0.2s both;
}
.hero-eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-warm); display: block;
  animation: pulseGlow 2s ease-in-out infinite;
}
.hero h1 { margin-bottom: 24px; animation: fadeInUp 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent2) 0%, #d4c4ff 40%, var(--accent-warm) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-lead {
  font-size: 1.15rem; color: var(--text2); max-width: 660px;
  margin: 0 auto 40px; line-height: 1.75;
  animation: fadeInUp 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px;
  animation: fadeInUp 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-stats {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
  padding-top: 48px; border-top: 1px solid var(--border-subtle);
  animation: fadeInUp 0.8s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; color: var(--white);
  letter-spacing: -0.03em;
}
.hero-stat .label { font-size: 0.8rem; color: var(--text3); margin-top: 4px; letter-spacing: 0.02em; }

/* Hero video */
.hero-video {
  margin-top: 48px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  max-width: 820px; margin-left: auto; margin-right: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 80px rgba(120,100,255,0.08);
  animation: fadeInUp 0.9s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
}
.hero-video::before {
  content: ''; position: absolute; inset: -1px; border-radius: 17px;
  background: linear-gradient(135deg, var(--accent), transparent 40%, transparent 60%, var(--accent-warm));
  opacity: 0.3; z-index: -1;
  padding: 1px;
}
.hero-video video { width: 100%; display: block; border-radius: 15px; }

/* ===== PRODUCT CARDS ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.product-card {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 0;
  transition: all var(--transition-slow);
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.product-card:hover::before { opacity: 1; }
.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 48px rgba(0,0,0,0.3), var(--shadow-accent);
  transform: translateY(-4px);
}
.product-card .product-img {
  width: 100%; border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.product-card .product-img img {
  width: 100%; display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-img img { transform: scale(1.03); }
.product-card .product-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { color: var(--white); margin-bottom: 8px; }
.product-card > .tag,
.product-card .product-body > .tag { margin: 0 0 10px 0; }
.product-card p { font-size: 0.9rem; margin-bottom: 18px; }
.product-card ul { list-style: none; margin-bottom: 24px; }
.product-card ul li {
  font-size: 0.84rem; color: var(--text2); padding: 4px 0;
  padding-left: 18px; position: relative;
}
.product-card ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.product-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent2);
  margin-top: auto; transition: all var(--transition);
}
.product-card .card-link:hover { color: var(--accent-warm); gap: 10px; }

/* ===== PIPELINE ===== */
.pipeline { max-width: 700px; margin: 0 auto; }
.pipeline-step { display: flex; align-items: flex-start; gap: 24px; }
.pipeline-line {
  display: flex; flex-direction: column; align-items: center; flex-shrink: 0;
}
.pipeline-dot {
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700; color: var(--white); flex-shrink: 0;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.pipeline-connector {
  width: 2px; height: 36px;
  background: linear-gradient(to bottom, rgba(120,100,255,0.4), transparent);
  margin: 4px 0;
}
.pipeline-body { padding-bottom: 36px; }
.pipeline-body h4 { color: var(--white); margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; }
.pipeline-body p { font-size: 0.9rem; }

/* ===== TRACTION TABLE ===== */
.traction-wrap { overflow-x: auto; }
.traction-table { width: 100%; border-collapse: collapse; max-width: 740px; margin: 0 auto; }
.traction-table th, .traction-table td {
  padding: 16px 22px; text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.traction-table th {
  font-size: 0.75rem; font-weight: 600; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-family: var(--font-body);
}
.traction-table td { font-size: 0.95rem; color: var(--text); }
.traction-table tr:last-child td { border-bottom: none; }
.traction-table tr { transition: background var(--transition); }
.traction-table tbody tr:hover { background: rgba(120,100,255,0.04); }

/* ===== INFRA GRID ===== */
.infra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.infra-card {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); padding: 26px; text-align: center;
  transition: all var(--transition);
}
.infra-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.infra-card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.infra-card h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; }
.infra-card p { font-size: 0.82rem; line-height: 1.5; }

/* ===== ARCH IMAGE ===== */
.arch-img { text-align: center; margin: 36px 0 20px; }
.arch-img img {
  max-width: 100%; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  transition: transform var(--transition-slow);
}
.arch-img img:hover { transform: scale(1.01); }

/* ===== CTA SECTION ===== */
.cta-section {
  background:
    radial-gradient(ellipse 60% 80% at 30% 20%, rgba(120,100,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 70% 80%, rgba(240,192,96,0.06) 0%, transparent 50%),
    var(--surface-solid);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 80px 56px; text-align: center; margin: 0 24px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-warm), transparent);
  opacity: 0.4;
}
.cta-section h2 { color: var(--white); margin-bottom: 14px; }
.cta-section p { max-width: 520px; margin: 0 auto 40px; font-size: 1.05rem; line-height: 1.7; }

/* ===== DIVIDER & GLOW ===== */
.divider { height: 1px; background: var(--border-subtle); margin: 0; }
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-warm), var(--accent), transparent);
  opacity: 0.35;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 150px 0 90px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(120,100,255,0.15) 0%, transparent 65%),
    var(--bg);
  text-align: center;
}
.page-hero .tag { margin-bottom: 22px; }
.page-hero h1 { margin-bottom: 18px; }
.page-hero p { max-width: 620px; margin: 0 auto; font-size: 1.08rem; line-height: 1.7; }

/* ===== FEATURE LIST ===== */
.feature-list { list-style: none; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition);
}
.feature-list li:hover { padding-left: 8px; }
.feature-list li:last-child { border-bottom: none; }
.feature-list .fi {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(120,100,255,0.15), rgba(240,192,96,0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; margin-top: 2px;
  border: 1px solid var(--border-subtle);
}
.feature-list .ft h4 { color: var(--white); margin-bottom: 4px; font-family: var(--font-display); font-weight: 600; }
.feature-list .ft p { font-size: 0.88rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg2); border-top: 1px solid var(--border-subtle);
  padding: 64px 0 36px;
}
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 52px; }
.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 800; color: var(--white); margin-bottom: 14px;
}
.footer-brand .logo span { color: var(--accent-warm); }
.footer-brand p { font-size: 0.88rem; max-width: 280px; line-height: 1.6; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 600; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px;
}
.footer-col a { display: block; font-size: 0.88rem; color: var(--text2); margin-bottom: 11px; transition: all var(--transition); }
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text3); letter-spacing: 0.01em; }

/* ===== EVIDENCE TABLE (for evidence page) ===== */
.ev-table { width:100%; border-collapse:collapse; font-size:0.88rem; }
.ev-table th { padding:12px 16px; text-align:left; font-size:0.72rem; font-weight:600; color:var(--text3); text-transform:uppercase; letter-spacing:0.08em; border-bottom:1px solid var(--border-subtle); background:var(--bg3); }
.ev-table td { padding:12px 16px; border-bottom:1px solid var(--border-subtle); vertical-align:top; color:var(--text2); }
.ev-table tr:last-child td { border-bottom:none; }
.ev-table td:first-child { color:var(--text); font-family:monospace; font-size:0.82rem; word-break:break-all; }
.ev-table tr:hover td { background:rgba(120,100,255,0.03); }
.pub-ready { color:var(--green); font-size:0.75rem; font-weight:600; }
.pub-needs { color:var(--yellow); font-size:0.75rem; font-weight:600; }
.pub-internal { color:var(--text3); font-size:0.75rem; font-weight:600; }
.pub-no { color:#ef4444; font-size:0.75rem; font-weight:600; }
.ev-section { margin-bottom:56px; }
.ev-section h3 { color:var(--white); margin-bottom:6px; }
.ev-section .ev-desc { font-size:0.9rem; color:var(--text2); margin-bottom:20px; }
.system-card { display:flex; align-items:flex-start; gap:16px; padding:22px; background:var(--surface); border:1px solid var(--border-subtle); border-radius:var(--radius); margin-bottom:12px; transition:all var(--transition); }
.system-card:hover { border-color:var(--border-hover); transform:translateX(4px); }
.system-card .sc-icon { font-size:1.6rem; flex-shrink:0; }
.system-card h4 { color:var(--white); margin-bottom:4px; font-family:var(--font-display); }
.system-card p { font-size:0.88rem; margin-bottom:8px; }
.system-card .sc-meta { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.system-card a { font-size:0.82rem; color:var(--accent2); }

/* ===== CONTACT (for contact page) ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-item .ci { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(120,100,255,0.12), rgba(240,192,96,0.06)); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; border: 1px solid var(--border-subtle); }
.contact-item h4 { color: var(--white); margin-bottom: 3px; font-size: 0.95rem; font-family: var(--font-display); }
.contact-item p { font-size: 0.88rem; margin: 0; }
.contact-item a { color: var(--accent2); font-size: 0.88rem; }
.contact-item a:hover { color: var(--accent-warm); }
.contact-form { background: var(--surface-solid); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 44px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text2); margin-bottom: 8px; letter-spacing: 0.02em; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 18px; background: var(--bg3); border: 1px solid var(--border-subtle);
  border-radius: 10px; color: var(--text); font-size: 0.95rem; font-family: var(--font-body);
  transition: all var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(120,100,255,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(6,6,14,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 28px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 60px; }
  .hero-stats { gap: 32px; }
  .cta-section { padding: 52px 28px; margin: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
}
