/* filename: css/main.css */
* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f1e8;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #1f2430;
  --muted: #5f6878;
  --gold: #b78a36;
  --accent: #4e7fbf;
  --line: rgba(31, 36, 48, 0.12);
  --shadow: 0 20px 60px rgba(26, 34, 48, 0.12);
}

body.night-mode {
  --bg: #121822;
  --panel: rgba(24, 31, 44, 0.78);
  --panel-strong: rgba(24, 31, 44, 0.92);
  --text: #eef3ff;
  --muted: #b7c0d1;
  --gold: #d6ae59;
  --accent: #7eb4ff;
  --line: rgba(238, 243, 255, 0.12);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: linear-gradient(180deg, #faf7f1, #f0ece4);
  color: var(--text);
}

body.night-mode {
  background: linear-gradient(180deg, #121822, #182131);
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  padding: 22px 28px 36px;
}

.topbar {
  max-width: 1200px;
  margin: 0 auto 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), #e4c98e);
  color: #1f1608;
  font-weight: bold;
  font-size: 1.4rem;
  box-shadow: var(--shadow);
}

.brand-name {
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-links a,
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  z-index: 1000;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(122, 168, 255, 0.12);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(480px, 560px);
  gap: 30px;
  align-items: start;
}

.hero-copy {
  padding-top: 96px;
}

.eyebrow,
.section-label {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(183, 138, 54, 0.14);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 0.98;
  margin: 16px 0 30px 0;
  max-width: 14ch;
}

.hero-text,
.section p {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.small-hero-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 12px 18px;
}

.primary-button {
  background: linear-gradient(135deg, var(--gold), #e6c98b);
  color: #1f1608;
  font-weight: 700;
}

.secondary-button {
  background: var(--panel-strong);
  color: var(--text);
}

.small-hero-btn {
  padding: 8px 12px;
  min-height: 38px;
  background: rgba(122, 168, 255, 0.92);
  color: #081120;
  font-weight: bold;
}

.primary-button:hover,
.secondary-button:hover,
.small-hero-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.visual-card {
  width: 100%;
  max-width: 560px;
  min-height: 0;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  position: relative;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.visual-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b7c0d1;
}

.visual-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.visual-title {
  font-size: 1.15rem;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.visual-subtitle {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--muted);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

#heroCellCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.10), transparent 18%),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,0.06), transparent 16%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.05), transparent 18%),
    linear-gradient(180deg, #0d1d31, #132742);
  border: 1px solid rgba(255,255,255,0.08);
}

.visual-caption {
  margin-top: 12px;
  color: var(--muted);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 0.95rem;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 30px;
}

.section h2 {
  font-size: 2.2rem;
  margin: 14px 0 10px;
}

@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 0;
  }

  .visual-card {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 18px 16px 28px;
  }

  .topbar {
    margin-bottom: 18px;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 40px 16px;
  }

  .visual-card-header {
    flex-direction: column;
    align-items: stretch;
  }
}

/* filename: css/main.css */
.class-page .hero {
  padding: 18px 28px 28px;
}

.class-page .topbar {
  margin-bottom: 16px;
}

.class-page .hero-content {
  gap: 24px;
}

.class-page .hero-copy {
  padding-top: 32px;
}

.class-page .hero-copy h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  margin: 14px 0 22px 0;
  max-width: 15ch;
}

.class-page .visual-card {
  max-width: 540px;
}

.class-page #classCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,0.10), transparent 18%),
    radial-gradient(circle at 80% 25%, rgba(255,255,255,0.06), transparent 16%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.05), transparent 18%),
    linear-gradient(180deg, #0d1d31, #132742);
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 980px) {
  .class-page .hero-copy {
    padding-top: 0;
  }
}
