/* ============================================================
   Canvas Plus Landing Page — styles.css
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --bg:              #05050a;
  --bg-2:            #0a0a12;
  --bg-card:         rgba(255, 255, 255, 0.03);
  --bg-card-hover:   rgba(255, 255, 255, 0.055);

  --border:          rgba(255, 255, 255, 0.07);
  --border-hover:    rgba(14, 165, 233, 0.45);

  /* Primary: sky blue */
  --accent:          #0ea5e9;
  --accent-dark:     #0284c7;
  --accent-light:    #38bdf8;
  --accent-dim:      rgba(14, 165, 233, 0.12);
  --accent-glow:     rgba(14, 165, 233, 0.28);

  /* Secondary: warm amber-orange */
  --secondary:       #fb923c;
  --secondary-dim:   rgba(251, 146, 60, 0.12);
  --secondary-border: rgba(251, 146, 60, 0.28);

  --text-primary:    #ffffff;
  --text-secondary:  rgba(255, 255, 255, 0.54);
  --text-muted:      rgba(255, 255, 255, 0.28);

  --gradient-text:   linear-gradient(135deg, #38bdf8 0%, #fbbf24 100%);
  --gradient-btn:    linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);

  --font:            'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:    'Instrument Serif', Georgia, 'Times New Roman', serif;

  --max-w:           1140px;
  --nav-h:           64px;
  --ease:            cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Top accent line ── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #0ea5e9 30%, #fbbf24 70%, transparent 100%);
  z-index: 999;
  pointer-events: none;
}

/* ── Background: dot grid ── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 110% 60% at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 110% 60% at 50% 0%, black 20%, transparent 75%);
}

/* ── Background: noise texture ── */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.038;
  pointer-events: none;
  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: 256px 256px;
}

/* ── Layout container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Navigation
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

#navbar.scrolled {
  background: rgba(5, 5, 10, 0.82);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--text-secondary);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  #demo {
    display: none;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-btn);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 10px;
  padding: 0.58rem 1.15rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.35), 0 4px 18px rgba(14, 165, 233, 0.25);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.55), 0 8px 28px rgba(14, 165, 233, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary .arrow {
  transition: transform 0.2s var(--ease);
  display: inline-block;
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 10px;
  padding: 0.58rem 1.15rem;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.22s var(--ease);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.78rem 1.5rem;
  font-size: 0.925rem;
  border-radius: 12px;
}

.btn-xl {
  padding: 0.95rem 2.2rem;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.4), 0 8px 32px rgba(14, 165, 233, 0.28);
}

.btn-xl:hover {
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.6), 0 14px 44px rgba(14, 165, 233, 0.4);
}

/* ============================================================
   Hero
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) 2rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 520px;
  background: radial-gradient(
    ellipse at center,
    rgba(14, 165, 233, 0.13) 0%,
    rgba(2, 132, 199, 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.28);
  border-radius: 100px;
  padding: 0.32rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.01em;
  margin-bottom: 2.2rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

/* Hero headline uses display serif */
#hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
  color: var(--text-primary);
}

/* Italic serif for the gradient line — editorial signature */
.gradient-text {
  font-style: italic;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--text-secondary);
  max-width: 490px;
  margin: 0 auto 2.8rem;
  line-height: 1.78;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  z-index: 2;
  animation: bounce-chevron 2.4s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce-chevron {
  0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.35; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 0.7; }
}

/* ============================================================
   Stats Band
   ============================================================ */
#stats {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.65rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   Section Headers (shared)
   ============================================================ */
.section-header {
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Section h2 uses display serif */
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
}

/* Italic emphasis within section headings */
.section-header h2 em {
  font-style: italic;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   Features
   ============================================================ */
#features {
  padding: 7rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.7rem;
  transition:
    background   0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform    0.25s var(--ease),
    box-shadow   0.25s var(--ease);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-dim);
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--accent-light);
  transition: background 0.25s, border-color 0.25s;
}

.feature-icon svg {
  width: 17px;
  height: 17px;
}

.feature-card:hover .feature-icon {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(14, 165, 233, 0.32);
}

/* Feature card titles use display serif */
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.855rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   How It Works
   ============================================================ */
#how-it-works {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.steps-grid {
  display: flex;
  align-items: stretch;
}

.step-card {
  flex: 1;
  position: relative;
  padding: 0;
}

.step-connector {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.step-connector::after {
  content: '';
  display: block;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.45), rgba(251, 146, 60, 0.45));
}

.step-num {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  position: absolute;
  top: -0.75rem;
  left: 0;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.step-content {
  position: relative;
  z-index: 1;
  padding-top: 3.8rem;
  padding-right: 1.5rem;
}

.step-icon {
  width: 42px;
  height: 42px;
  background: var(--secondary-dim);
  border: 1px solid var(--secondary-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--secondary);
}

.step-icon svg {
  width: 17px;
  height: 17px;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.855rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.step-content code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.82em;
  color: var(--secondary);
}

/* ============================================================
   Demo / Browser Mockup
   ============================================================ */
#demo {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.demo-wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.browser-mockup {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 70px rgba(0, 0, 0, 0.65),
    0 0 100px rgba(14, 165, 233, 0.06);
}

.browser-chrome {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.traffic-lights {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  opacity: 0.85;
}

.tl-red    { background: #ff5f57; }
.tl-yellow { background: #ffbd2e; }
.tl-green  { background: #28c840; }

.url-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.28rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  font-family: 'SF Mono', 'Fira Code', monospace;
  max-width: 260px;
  margin: 0 auto;
}

.chrome-spacer {
  width: 66px;
  flex-shrink: 0;
}

.browser-body {
  position: relative;
  overflow: hidden;
}


/* Demo labels row — sits below browser mockup */
.demo-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.demo-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.01em;
  opacity: 0.75;
}

/* ============================================================
   App Mockup — mirrors real Canvas Plus dashboard exactly
   Colors/values sourced directly from App.css + index.css
   ============================================================ */

.app-mockup {
  width: 100%;
  /* Real app background from index.css */
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0a0a0a 100%);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

/* Faint dot grid — matches real app bg texture */
.app-mockup::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ── Header — matches .header in App.css ── */
.am-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.am-title {
  flex: 1;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Header buttons — match .back-btn / .logout-btn in App.css */
.am-topbar-btns {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.am-hbtn {
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  color: #fff;
  cursor: default;
  white-space: nowrap;
}

.am-hbtn-active {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.5);
  color: #a5b4fc;
}

/* ── Scrollable content ── */
.am-scroll {
  flex: 1;
  padding: 0 1.5rem 1.5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* ── Course grid — matches .courses-grid ── */
.am-courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Course card — exact values from .course-card in App.css */
.am-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  padding: 1.25rem;
  position: relative;
  transition: all 0.3s ease;
  min-height: 110px;
  cursor: default;
}

.am-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* Drag handle — matches the dnd-kit grip icon */
.am-drag-handle {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: -2px;
  line-height: 1;
  cursor: grab;
}

/* h3 — exact values from .course-card h3 */
.am-course-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  padding-right: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* .grade row — flex space-between */
.am-grade-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .grade-letter — gradient text, exact from App.css */
.am-grade-letter {
  font-size: 1.6rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* .grade-percent — exact from App.css */
.am-grade-pct {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ── Upcoming section — mirrors .upcoming-section ── */
.am-upcoming {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  padding: 1.25rem;
}

.am-upcoming-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

/* .upcoming-item — exact values from App.css */
.am-upcoming-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  gap: 1rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.am-upcoming-item:last-child {
  margin-bottom: 0;
}

.am-upcoming-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(99,102,241,0.3);
  transform: translateX(3px);
}

/* .upcoming-course — small uppercase label */
.am-uitem-course {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

/* .upcoming-name */
.am-uitem-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.am-uitem-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-end;
}

/* .upcoming-points — indigo accent */
.am-uitem-pts {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(99,102,241,0.8);
}

/* .upcoming-due */
.am-uitem-due {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
}

.am-urgent {
  color: #fca5a5;
  font-weight: 600;
}

/* ── Drag states — mirrors .course-card.dragging from App.css ── */
.am-card.am-dragging {
  opacity: 0.4;
  border: 2px dashed rgba(99, 102, 241, 0.6) !important;
  background: rgba(99, 102, 241, 0.1) !important;
  transform: scale(0.97);
}

.am-card.am-drag-over {
  border-color: rgba(99, 102, 241, 0.7) !important;
  background: rgba(99, 102, 241, 0.12) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3), 0 8px 32px rgba(0,0,0,0.3) !important;
  transform: scale(1.02);
}

/* Cursor grab on cards */
.am-courses {
  cursor: grab;
}
.am-courses:active {
  cursor: grabbing;
}

/* ── Assignment check button ── */
.am-check-btn {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: transparent;
  font-size: 0.7rem;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.am-check-btn:hover {
  border-color: rgba(99, 102, 241, 0.65);
  background: rgba(99, 102, 241, 0.1);
  transform: scale(1.1);
}

.am-upcoming-item.am-checked .am-check-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: #fff;
  transform: scale(1);
}

/* Checked state — fade and strikethrough */
.am-upcoming-item.am-checked {
  opacity: 0.5;
}

.am-upcoming-item.am-checked .am-uitem-name {
  text-decoration: line-through;
  opacity: 0.6;
}

.am-upcoming-item.am-checked .am-urgent {
  color: rgba(255, 255, 255, 0.4);
}

/* ── Watermark — matches .fixed-watermark / .loading-watermark ── */
.am-watermark {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.2);
  font-weight: 500;
  letter-spacing: 0.03em;
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   Final CTA Band
   ============================================================ */
#cta {
  padding: 9rem 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 420px;
  background: radial-gradient(
    ellipse at center,
    rgba(14, 165, 233, 0.09) 0%,
    rgba(2, 132, 199, 0.04) 45%,
    transparent 68%
  );
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

#cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

#cta p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-logo {
  font-size: 0.9rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 0.5rem;
  font-style: italic;
  font-family: var(--font-display);
}

.footer-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-top: 0.15rem;
}

.footer-right a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-right a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-bottom strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .steps-grid {
    flex-direction: column;
    gap: 0;
  }

  .step-connector {
    width: 100%;
    height: 36px;
    align-items: flex-start;
    padding-left: 21px;
    padding-top: 0;
  }

  .step-connector::after {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.45), rgba(251, 146, 60, 0.45));
  }

  .step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
  }

  .step-num {
    font-size: 4.5rem;
    top: -0.25rem;
    left: 1rem;
  }

  .step-content {
    padding-top: 3rem;
    padding-right: 0;
  }

}

@media (max-width: 640px) {
  :root {
    --nav-h: 58px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .stat-item {
    padding: 1.25rem 0.75rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn-lg {
    justify-content: center;
  }

  #features,
  #how-it-works,
  #demo {
    padding: 5rem 0;
  }

  #cta {
    padding: 6rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-tagline {
    padding-left: 0;
  }

  .am-courses {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 1.25rem;
  }
}
