/* AI4Now Landing — modern, dark, accessible */
:root {
  --bg: #0b0f14;
  --card: #121823;
  --text: #e6eefc;
  --muted: #a7b3c7;
  --accent: #0ea5ff; /* neon blue to match the favicon glow */
  --accent-2: #38bdf8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

html, body { height: 100%; background: transparent; }

body::before{
  content: "";
  position: fixed;
  inset: -2px 0 -2px 0; /* extend 2px beyond to avoid edge seams */
  z-index: -1;
  
  background:
    /* Horizontal sweep for subtle left->right color play */
    linear-gradient(90deg,
      rgba(6,12,18,0.00) 0%,
      rgba(10,20,30,0.22) 18%,
      rgba(20,36,50,0.18) 35%,
      rgba(14,165,255,0.08) 50%,
      rgba(20,36,50,0.18) 65%,
      rgba(10,20,30,0.24) 82%,
      rgba(6,12,18,0.00) 100%),
    /* Vignette to deepen edges/bottom */
    radial-gradient(120% 120% at 50% 120%,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.22) 35%,
      rgba(0,0,0,0.10) 60%,
      rgba(0,0,0,0.00) 80%),
    /* Hero-top ambient glow (raised off-screen) */
    radial-gradient(1800px 1000px at 50% -80%,
      rgba(14,165,255,0.22) 0%,
      rgba(14,165,255,0.14) 38%,
      rgba(14,165,255,0.06) 58%,
      rgba(14,165,255,0.00) 72%),
    /* Corner fills for balance */
    radial-gradient(1400px 800px at 6% 14%,
      rgba(56,189,248,0.14) 0%,
      rgba(56,189,248,0.06) 55%,
      rgba(56,189,248,0.00) 72%),
    radial-gradient(1400px 800px at 94% 24%,
      rgba(14,165,255,0.12) 0%,
      rgba(14,165,255,0.05) 56%,
      rgba(14,165,255,0.00) 74%),
    /* Vertical tone map — darker and closer to header color at top */
    linear-gradient(180deg,
      #08101a 0%,
      #071019 12%,
      #0a131d 28%,
      #0b1722 45%,
      #0b1220 65%,
      #0b0f14 100%);

  filter: saturate(1.04) contrast(1.02);
  pointer-events: none;
}

.section{ padding: 64px 22px; background: transparent; }
.site-footer{ display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px;border-top:0;background:transparent; }


* { box-sizing: border-box; }
html, body { height: 100%; background: transparent; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--text);
  
  line-height: 1.6;
}

/* Header */
/* Header (fixed on scroll) */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  background: #08101a; /* exact match to top of page gradient */
  border-bottom: 0;
  box-shadow: none;
}

/* Push content below fixed header */
body{ padding-top: 80px; }

.brand {
  display: flex; gap: 10px; align-items: center;
  color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .3px;
}
.brand img { width: 28px; height: 28px; border-radius: 6px; filter: drop-shadow(0 0 8px rgba(14,165,255,.6)); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--text); }
.menu { display: none; background: none; border: 0; cursor: pointer; }
.menu span { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #001220; font-weight: 800; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: 0 8px 30px rgba(14,165,255,0.35);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.ghost {
  background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.18);
  box-shadow: none;
}
.btn.small { padding: 8px 12px; font-size: 14px; }

/* Brighten the Get Started button text */
.nav .btn.small {
  color: #ffffff;             /* bright white text */
  background-color: #0ea5ff;  /* your theme blue */
  border: none;               /* remove ghost border if present */
  font-weight: 600;           /* slightly bolder text */
  transition: background-color 0.2s ease;
}

.nav .btn.small:hover {
  background-color: #0090e0;  /* darker blue on hover */
}


/* Hero */
.hero {
  position: relative;
  padding: 96px 22px 36px;
  text-align: center;
  overflow: hidden;
}
.hero .glow {
  position: absolute;
  inset: -80% -10% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(14,165,255,0.15), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-logo { width: 100px; height: 100px; border-radius: 24px; box-shadow: 0 0 50px rgba(14,165,255,0.55); }
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 18px 0 8px;
  line-height: 1.05;
}
.lead { max-width: 820px; margin: 0 auto 18px; color: var(--muted); font-size: 18px; }
.cta { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.badges { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.badge { background: rgba(14,165,255,0.12); border: 1px solid rgba(14,165,255,0.2); color: var(--text);
         padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }

/* Sections */
.section{ padding: 64px 22px; background: transparent; }
.section h2 { text-align: center; margin: 0 0 12px; font-size: 28px; }
.section-desc { text-align: center; color: var(--muted); margin: 0 auto 24px; max-width: 820px; }

/* Cards/Grid */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 22px; max-width: 1100px; margin: 0 auto; }
.card, .tile {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card h3, .tile h4 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
.tile .links { display: flex; gap: 12px; flex-wrap: wrap; }
.tile .links a { color: var(--accent-2); text-decoration: none; font-weight: 700; }
.tile .links a[aria-disabled="true"] { pointer-events: none; opacity: .6; }

.projects .project { border-color: rgba(14,165,255,0.18); }

.checklist { max-width: 720px; margin: 0 auto 14px; display: grid; gap: 10px; }
.checklist li { list-style: none; padding-left: 28px; position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); }

/* Contact */
.contact form {
  display: flex; gap: 10px; justify-content: center; margin: 10px 0;
}
.contact input {
  width: min(360px, 90vw);
  padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
  background: var(--card); color: var(--text);
}
.tiny { color: var(--muted); font-size: 12px; text-align: center; }

/* Footer */
.site-footer{ display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px;border-top:0;background:transparent; }
.socials { display: flex; gap: 14px; }
.socials a { color: var(--muted); text-decoration: none; }
.socials a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .highlights { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 60px; right: 12px; flex-direction: column; background: rgba(15,20,28,.95); padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); }
  .menu { display: block; }
  .nav.show { display: flex; }
}

/* Modal for Live Demo */
.modal { position: fixed; inset: 0; display: none; z-index: 100; }
.modal.show { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; margin: 4vh auto; width: min(1100px, 94vw); height: min(80vh, 820px);
  background: var(--card, #111); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.45); overflow: hidden;
}
.modal-close { position: absolute; top: 8px; right: 10px; background: transparent; color: #fff;
  border: 0; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
#demo-frame { width: 100%; height: 100%; border: 0; background: #111; }


/* === Unify card/tile backgrounds across sections === */
:root {
  /* you already defined --card; keep using it for a consistent shade */
  /* --card: #121823; */
}

html, body { height: 100%; background: transparent; }

body::before{
  content: "";
  position: fixed;
  inset: -2px 0 -2px 0; /* extend 2px beyond to avoid edge seams */
  z-index: -1;
  
  background:
    /* Horizontal sweep for subtle left->right color play */
    linear-gradient(90deg,
      rgba(6,12,18,0.00) 0%,
      rgba(10,20,30,0.22) 18%,
      rgba(20,36,50,0.18) 35%,
      rgba(14,165,255,0.08) 50%,
      rgba(20,36,50,0.18) 65%,
      rgba(10,20,30,0.24) 82%,
      rgba(6,12,18,0.00) 100%),
    /* Vignette to deepen edges/bottom */
    radial-gradient(120% 120% at 50% 120%,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.22) 35%,
      rgba(0,0,0,0.10) 60%,
      rgba(0,0,0,0.00) 80%),
    /* Hero-top ambient glow (raised off-screen) */
    radial-gradient(1800px 1000px at 50% -80%,
      rgba(14,165,255,0.22) 0%,
      rgba(14,165,255,0.14) 38%,
      rgba(14,165,255,0.06) 58%,
      rgba(14,165,255,0.00) 72%),
    /* Corner fills for balance */
    radial-gradient(1400px 800px at 6% 14%,
      rgba(56,189,248,0.14) 0%,
      rgba(56,189,248,0.06) 55%,
      rgba(56,189,248,0.00) 72%),
    radial-gradient(1400px 800px at 94% 24%,
      rgba(14,165,255,0.12) 0%,
      rgba(14,165,255,0.05) 56%,
      rgba(14,165,255,0.00) 74%),
    /* Vertical tone map — darker and closer to header color at top */
    linear-gradient(180deg,
      #08101a 0%,
      #071019 12%,
      #0a131d 28%,
      #0b1722 45%,
      #0b1220 65%,
      #0b0f14 100%);

  filter: saturate(1.04) contrast(1.02);
  pointer-events: none;
}

.section{ padding: 64px 22px; background: transparent; }
.site-footer{ display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px;border-top:0;background:transparent; }


/* Make ALL cards/tiles use the exact same background + border + shadow */
.highlights .card,
.grid .tile,
.grid.projects .tile,
.grid.projects .tile.project,
.projects .project {
  background: var(--card) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: var(--shadow);
}

/* === Unify card/tile backgrounds across sections === */
:root {
  /* you already defined --card; keep using it for a consistent shade */
  /* --card: #121823; */
}

html, body { height: 100%; background: transparent; }

body::before{
  content: "";
  position: fixed;
  inset: -2px 0 -2px 0; /* extend 2px beyond to avoid edge seams */
  z-index: -1;
  
  background:
    /* Horizontal sweep for subtle left->right color play */
    linear-gradient(90deg,
      rgba(6,12,18,0.00) 0%,
      rgba(10,20,30,0.22) 18%,
      rgba(20,36,50,0.18) 35%,
      rgba(14,165,255,0.08) 50%,
      rgba(20,36,50,0.18) 65%,
      rgba(10,20,30,0.24) 82%,
      rgba(6,12,18,0.00) 100%),
    /* Vignette to deepen edges/bottom */
    radial-gradient(120% 120% at 50% 120%,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.22) 35%,
      rgba(0,0,0,0.10) 60%,
      rgba(0,0,0,0.00) 80%),
    /* Hero-top ambient glow (raised off-screen) */
    radial-gradient(1800px 1000px at 50% -80%,
      rgba(14,165,255,0.22) 0%,
      rgba(14,165,255,0.14) 38%,
      rgba(14,165,255,0.06) 58%,
      rgba(14,165,255,0.00) 72%),
    /* Corner fills for balance */
    radial-gradient(1400px 800px at 6% 14%,
      rgba(56,189,248,0.14) 0%,
      rgba(56,189,248,0.06) 55%,
      rgba(56,189,248,0.00) 72%),
    radial-gradient(1400px 800px at 94% 24%,
      rgba(14,165,255,0.12) 0%,
      rgba(14,165,255,0.05) 56%,
      rgba(14,165,255,0.00) 74%),
    /* Vertical tone map — darker and closer to header color at top */
    linear-gradient(180deg,
      #08101a 0%,
      #071019 12%,
      #0a131d 28%,
      #0b1722 45%,
      #0b1220 65%,
      #0b0f14 100%);

  filter: saturate(1.04) contrast(1.02);
  pointer-events: none;
}

.section{ padding: 64px 22px; background: transparent; }
.site-footer{ display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px;border-top:0;background:transparent; }


/* Make ALL cards/tiles use the exact same background + border + shadow */
.highlights .card,
.grid .tile,
.grid.projects .tile,
.grid.projects .tile.project,
.projects .project {
  background: var(--card) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: var(--shadow);
}

/* Optional: consistent hover (if you want the same lift everywhere) */
.highlights .card:hover,
.grid .tile:hover,
.grid.projects .tile:hover,
.grid.projects .tile.project:hover,
.projects .project:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.32);
}

/* Remove the subtle blue-tint border only projects had */
.projects .project { border-color: rgba(255,255,255,0.06) !important; }


.live-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.class-card {
  background: rgba(255, 255, 255, 0.05); /* subtle translucent effect */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(14, 165, 255, 0.2);
}

.class-card h4 {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.class-card p {
  color: #d0d0d0;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.social-icons img {
  filter: invert(1);              /* makes dark icons white on dark background */
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
  filter: invert(1) drop-shadow(0 0 8px #0ea5ff);
}

/* Subtle dither to fight gradient banding on some GPUs */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background-image: radial-gradient(rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
  pointer-events:none;
}

@media (min-width: 1100px){
  body::before{
    
  background:
    /* Horizontal sweep for subtle left->right color play */
    linear-gradient(90deg,
      rgba(6,12,18,0.00) 0%,
      rgba(10,20,30,0.22) 18%,
      rgba(20,36,50,0.18) 35%,
      rgba(14,165,255,0.08) 50%,
      rgba(20,36,50,0.18) 65%,
      rgba(10,20,30,0.24) 82%,
      rgba(6,12,18,0.00) 100%),
    /* Vignette to deepen edges/bottom */
    radial-gradient(120% 120% at 50% 120%,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.22) 35%,
      rgba(0,0,0,0.10) 60%,
      rgba(0,0,0,0.00) 80%),
    /* Hero-top ambient glow (raised off-screen) */
    radial-gradient(1800px 1000px at 50% -80%,
      rgba(14,165,255,0.22) 0%,
      rgba(14,165,255,0.14) 38%,
      rgba(14,165,255,0.06) 58%,
      rgba(14,165,255,0.00) 72%),
    /* Corner fills for balance */
    radial-gradient(1400px 800px at 6% 14%,
      rgba(56,189,248,0.14) 0%,
      rgba(56,189,248,0.06) 55%,
      rgba(56,189,248,0.00) 72%),
    radial-gradient(1400px 800px at 94% 24%,
      rgba(14,165,255,0.12) 0%,
      rgba(14,165,255,0.05) 56%,
      rgba(14,165,255,0.00) 74%),
    /* Vertical tone map — darker and closer to header color at top */
    linear-gradient(180deg,
      #08101a 0%,
      #071019 12%,
      #0a131d 28%,
      #0b1722 45%,
      #0b1220 65%,
      #0b0f14 100%);

  }
}
