/* === Crestline Theme === */
:root {
  --bg: #0b0e1a;
  --bg-2: #111427;
  --fg: #f2ede6;
  --fg-muted: #9a9086;
  --accent: #e85a1b;
  --accent-soft: rgba(232, 90, 27, 0.12);
  --accent-glow: rgba(232, 90, 27, 0.25);
  --border: rgba(242, 237, 230, 0.08);
  --card-bg: rgba(17, 20, 39, 0.7);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

::selection { background: var(--accent-glow); color: var(--fg); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.hero-shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #e85a1b 0%, transparent 70%);
  top: -150px; right: -100px;
}

.hero-shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #4a6fa5 0%, transparent 70%);
  bottom: 0; left: -50px;
}

.hero-shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #e85a1b 0%, transparent 70%);
  top: 40%; left: 30%;
  opacity: 0.08;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 237, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 237, 230, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 440px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  backdrop-filter: blur(10px);
}

.pill::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-stat-row {
  display: flex;
  gap: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
}

.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* === SECTION SHARED === */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* === SUBJECTS === */
.subjects {
  padding: 100px 0;
  position: relative;
}

.subjects::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.subjects .section-heading {
  margin-bottom: 56px;
  max-width: 600px;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.subject-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subject-card:hover {
  border-color: rgba(232, 90, 27, 0.3);
  transform: translateY(-2px);
}

.subject-card-featured {
  grid-column: 1;
  border-color: rgba(232, 90, 27, 0.25);
  background: linear-gradient(135deg, rgba(232, 90, 27, 0.06) 0%, var(--card-bg) 60%);
}

.subject-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
}

.subject-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
}

.subject-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.subject-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subject-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === HOW IT WORKS === */
.howitworks {
  padding: 100px 0;
  background: var(--bg-2);
  position: relative;
}

.howitworks::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hiw-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.hiw-intro {
  margin-top: 20px;
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 400px;
}

.hiw-cta-row {
  margin-top: 28px;
  display: flex;
  gap: 16px;
}

.hiw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card-bg);
}

.hiw-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

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

.hiw-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.hiw-step:last-child { border-bottom: none; }

.hiw-step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  min-width: 32px;
  padding-top: 2px;
}

.hiw-step-content { flex: 1; }

.hiw-step-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.hiw-step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 0;
  position: relative;
}

.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-accent {
  margin-bottom: 36px;
  display: inline-flex;
}

.manifesto-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  color: var(--fg);
  margin-bottom: 28px;
  position: relative;
}

.manifesto-quote::before {
  content: '\201C';
  font-size: 4em;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: -0.4em;
  left: -0.2em;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
}

.manifesto-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.manifesto-sig {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.manifesto-sig-line {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--accent);
}

/* === CLOSING === */
.closing-section {
  padding: 100px 0 120px;
  background: var(--bg-2);
  position: relative;
}

.closing-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.closing-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.closing-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.closing-vision {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
}

.vision-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* === FOOTER === */
.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 28px;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--fg-muted);
  padding-top: 4px;
}

.footer-sep { color: var(--border); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(154, 144, 134, 0.5);
  line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-headline { font-size: 52px; }

  .subjects { padding: 72px 0; }
  .subjects-grid { grid-template-columns: 1fr 1fr; }
  .subject-card-featured { grid-column: 1 / -1; }

  .hiw-layout { grid-template-columns: 1fr; gap: 48px; }
  .hiw-steps { order: -1; }

  .closing-heading { font-size: 32px; }

  .footer-inner { flex-direction: column; gap: 20px; }
  .footer-meta { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 42px; }
  .subjects-grid { grid-template-columns: 1fr; }
  .hero-stat-row { flex-direction: column; gap: 20px; }
}