/* ─────────────────────────────────────────────────────────────────────────
   CyberMentor — Premium Homepage & Landing Page Design System
   Aesthetic: Dark Cybersecurity Glassmorphism (Cyan / Teal / Emerald / Indigo)
   Typography: Inter + JetBrains Mono
───────────────────────────────────────────────────────────────────────── */

:root {
  --bg-primary: #050b17;
  --bg-secondary: #0a1326;
  --bg-card: rgba(12, 23, 44, 0.75);
  --bg-card-hover: rgba(18, 34, 64, 0.9);
  
  --border-subtle: rgba(0, 220, 220, 0.14);
  --border-bright: rgba(0, 220, 220, 0.4);
  --border-glow: rgba(0, 255, 157, 0.4);

  --accent-cyan: #00dcdc;
  --accent-teal: #00b4b4;
  --accent-emerald: #00ff9d;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;

  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-glow-cyan: 0 0 35px rgba(0, 220, 220, 0.2);
  --shadow-glow-green: 0 0 35px rgba(0, 255, 157, 0.2);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

/* ── Accessibility: Skip Link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--accent-cyan);
  color: #040914;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 20px;
}

*:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(0, 220, 220, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(59, 130, 246, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(0, 255, 157, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(139, 92, 246, 0.06) 0%, transparent 45%);
}

/* Subtle Matrix Grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 220, 220, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 220, 220, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ── Typography & Badges ─────────────────────────────────────────────── */
.font-mono { font-family: var(--font-mono); }
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-blue { color: var(--accent-blue); }
.text-dim { color: var(--text-dim); }

.badge-hackathon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 220, 220, 0.1);
  border: 1px solid rgba(0, 220, 220, 0.25);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(0, 220, 220, 0.15);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ── Glassmorphism Card ──────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), var(--shadow-glow-cyan);
}

/* ── Navbar ───────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 11, 23, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(0, 220, 220, 0.5));
}

.brand-title {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-by {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  color: #040914;
  box-shadow: 0 4px 20px rgba(0, 220, 220, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 220, 220, 0.5);
  background: linear-gradient(135deg, #22ecec, #00c8c8);
}

.btn-secondary {
  background: rgba(12, 23, 44, 0.8);
  border-color: var(--border-bright);
  color: var(--text-main);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(20, 38, 70, 0.9);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald), #00c978);
  color: #040914;
  box-shadow: 0 4px 20px rgba(0, 255, 157, 0.3);
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 157, 0.5);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: 12px;
}

/* ── Hero Section ─────────────────────────────────────────────────────── */
.hero-section {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 65%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto 60px;
}

.stat-item {
  padding: 20px 16px;
  text-align: center;
  background: rgba(10, 20, 38, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Hero Visual Showcase */
.hero-mockup-wrap {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.mockup-header-spacer {
  width: 48px;
}

.roi-table-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.section-title-left {
  text-align: left;
  margin-bottom: 20px;
}

.section-desc-left {
  text-align: left;
  margin-bottom: 20px;
}

.section-desc-sm {
  text-align: left;
  font-size: 0.95rem;
}

.arch-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-no-top-padding {
  padding-top: 0;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-icon {
  font-size: 1.4rem;
}

.footer-logo-text {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.footer-links-bottom {
  display: flex;
  gap: 20px;
}


.mockup-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(0, 220, 220, 0.25) 0%, rgba(0, 255, 157, 0.1) 40%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.mockup-frame {
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  background: var(--bg-secondary);
}

.mockup-header {
  background: #091224;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.mockup-address {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Section Headers ──────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Feature Cards Grid ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 220, 220, 0.1);
  border: 1px solid rgba(0, 220, 220, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--accent-cyan);
}

/* ── ROI & Value Comparison Section ───────────────────────────────────── */
.roi-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.roi-table-card {
  overflow: hidden;
  padding: 0;
}

.roi-table-header {
  padding: 24px 28px;
  background: rgba(0, 220, 220, 0.05);
  border-bottom: 1px solid var(--border-subtle);
}

.roi-table {
  width: 100%;
  border-collapse: collapse;
}

.roi-table th, .roi-table td {
  padding: 16px 24px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.roi-table th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.2);
}

.roi-table tr:last-child td {
  border-bottom: none;
}

.roi-table .col-highlight {
  background: rgba(0, 220, 220, 0.04);
  font-weight: 600;
  color: var(--accent-emerald);
}

.roi-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roi-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.roi-stat-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.roi-stat-num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.roi-stat-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Interactive Gallery / Walkthrough ────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-info {
  padding: 20px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

.gallery-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.gallery-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Hackathon & Architecture Story ───────────────────────────────────── */
.hackathon-card {
  border: 1px solid rgba(0, 220, 220, 0.3);
  background: linear-gradient(135deg, rgba(12, 23, 44, 0.9), rgba(8, 16, 32, 0.95));
  padding: 48px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.hackathon-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 220, 220, 0.12), transparent 70%);
  pointer-events: none;
}

.hackathon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.arch-stack-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.arch-stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.9rem;
}

.arch-item-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.arch-item-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

/* ── Invitation to Supporters & Mentors ────────────────────────────────── */
.supporters-section {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 220, 220, 0.03) 50%, transparent 100%);
}

.supporters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.supporter-card {
  text-align: center;
  padding: 36px 24px;
}

.supporter-icon {
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.supporter-role {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.supporter-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ── CTA Banner ───────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 220, 220, 0.15), rgba(0, 255, 157, 0.1));
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
}

.cta-banner-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-banner-desc {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 32px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  background: #040812;
  margin-top: 80px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-desc {
  max-width: 320px;
  line-height: 1.6;
  color: var(--text-dim);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

/* ── Performance: Offscreen Content Deferral ──────────────────────────── */
.section:not(.hero-section) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

/* ── FAQ Accordion for AEO / GEO / SEO ───────────────────────────────── */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.faq-summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: '−';
  color: var(--accent-emerald);
}

.faq-answer {
  margin-top: 14px;
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.faq-answer p:not(:last-child) {
  margin-bottom: 10px;
}

.faq-answer ul {
  padding-left: 20px;
  margin-top: 8px;
}

.faq-answer li {
  margin-bottom: 6px;
}

/* ── Responsive Design ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid, .supporters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .roi-container, .hackathon-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .features-grid, .supporters-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding: 60px 0 40px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat-value {
    font-size: 1.5rem;
  }
  .hackathon-card {
    padding: 28px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

