/* ======================================================
   TECHIN 510 – Landing Page Styles
   ====================================================== */

/* --- AI Disclaimer Notice --- */
.ai-notice {
  max-width: 800px;
  margin: -2rem auto 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: rgba(193, 167, 120, 0.06);
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg-muted, var(--fg));
}

.ai-notice strong {
  color: var(--gold);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 5rem);
  padding-top: calc(48px + clamp(2rem, 6vw, 5rem));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 85%, var(--green-dark) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(34, 60, 34, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(193, 167, 120, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .overline {
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  letter-spacing: 0.3em;
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
}

.hero .subtitle {
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.hero .meta-line {
  margin-top: clamp(0.5rem, 1vh, 1rem);
}

/* --- Landing Sections --- */
.landing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(3rem, 6vh, 5rem) clamp(1.5rem, 4vw, 3rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-header .accent-line {
  margin-left: auto;
  margin-right: auto;
}

/* --- Course Info Grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

@media (max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

.info-item {
  background: var(--bg-card);
  border: 1px solid rgba(193, 167, 120, 0.08);
  border-radius: 4px;
  padding: clamp(0.8rem, 1.5vw, 1.2rem);
}

.info-label {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.9vw, 0.72rem);
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.info-value {
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  color: var(--fg);
  line-height: 1.4;
}

/* --- Grading Grid --- */
.grading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

@media (max-width: 700px) {
  .grading-grid {
    grid-template-columns: 1fr;
  }
}

.grading-card {
  text-align: center;
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.grading-pct {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.grading-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.grading-card p {
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  color: var(--fg-dim);
  line-height: 1.4;
}

/* --- Policy Grid --- */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

@media (max-width: 700px) {
  .policy-grid {
    grid-template-columns: 1fr;
  }
}

.policy-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.policy-card p {
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  color: var(--fg-dim);
  line-height: 1.5;
}

/* --- Final Project Section --- */
.section-intro {
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 70ch;
  margin-bottom: clamp(1.2rem, 2.5vh, 2rem);
}

.section-intro strong {
  color: var(--gold);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
  margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
}

@media (max-width: 700px) {
  .role-grid {
    grid-template-columns: 1fr;
  }
}

.role-card {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  position: relative;
}

.role-badge {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 0.9vw, 0.72rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.25em 0.8em;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: clamp(0.6rem, 1.2vh, 1rem);
}

.role-client .role-badge {
  color: var(--gold-bright);
  background: rgba(193, 167, 120, 0.12);
  border: 1px solid rgba(193, 167, 120, 0.25);
}

.role-developer .role-badge {
  color: var(--green-soft);
  background: rgba(125, 171, 110, 0.12);
  border: 1px solid rgba(125, 171, 110, 0.25);
}

.role-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  color: var(--fg);
  margin-bottom: clamp(0.5rem, 1vh, 0.8rem);
}

.role-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(0.8rem, 1.5vh, 1.2rem) 0;
}

.role-card li {
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  color: var(--fg-dim);
  line-height: 1.5;
  padding-left: 1.2em;
  position: relative;
  margin-bottom: 0.3em;
}

.role-card li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.6;
}

.role-deliverables {
  padding-top: clamp(0.5rem, 1vh, 0.8rem);
  border-top: 1px solid rgba(193, 167, 120, 0.08);
}

.role-deliverables p {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  color: var(--fg-dim);
  margin-top: 0.3rem;
}

/* --- Subsection Headers --- */
.subsection-header {
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  margin-bottom: clamp(0.8rem, 1.5vh, 1.2rem);
}

.subsection-header h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--gold);
}

/* --- Process Steps --- */
.process-card {
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 1.5vh, 1.2rem);
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

.process-num {
  flex-shrink: 0;
  width: clamp(28px, 3vw, 36px);
  height: clamp(28px, 3vw, 36px);
  border-radius: 50%;
  background: rgba(193, 167, 120, 0.1);
  border: 1px solid rgba(193, 167, 120, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  color: var(--gold);
  font-weight: 600;
}

.process-text {
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  color: var(--fg-dim);
  line-height: 1.5;
}

.process-text strong {
  color: var(--fg);
}

/* --- Bankruptcy Warning --- */
.bankruptcy-warning {
  border: 1px solid rgba(196, 92, 92, 0.25);
  background: rgba(196, 92, 92, 0.06);
  padding: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(0.8rem, 1.5vw, 1.2rem);
  margin-bottom: clamp(0.8rem, 1.5vw, 1.2rem);
}

.bankruptcy-warning h3 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--red-soft);
  margin-bottom: 0.4rem;
}

.bankruptcy-warning p {
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  color: var(--fg-dim);
  line-height: 1.5;
}

.bankruptcy-warning strong {
  color: var(--red-soft);
}

.final-project-note {
  text-align: center;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.final-project-note p {
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  color: var(--fg-dim);
  line-height: 1.5;
}

.final-project-note strong {
  color: var(--gold);
}

/* --- Week Cards Grid --- */
.week-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.2rem);
}

@media (max-width: 900px) {
  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .week-grid {
    grid-template-columns: 1fr;
  }
}

.week-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid rgba(193, 167, 120, 0.1);
  border-radius: 4px;
  padding: clamp(1rem, 2vw, 1.5rem);
  transition: border-color 0.3s, transform 0.2s;
}

.week-card:hover {
  border-color: rgba(193, 167, 120, 0.3);
  transform: translateY(-2px);
}

.week-card-num {
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.week-card-title {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  color: #f5f0e8;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.week-card-meta {
  font-size: clamp(0.6rem, 0.9vw, 0.72rem);
  color: var(--fg-muted);
}

/* --- Footer --- */
.landing-footer {
  text-align: center;
  padding: clamp(2rem, 4vh, 3rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(193, 167, 120, 0.08);
}

.landing-footer p {
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === Light Theme Landing Overrides === */
[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 15% 85%, rgba(200, 220, 200, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(200, 220, 200, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(154, 125, 78, 0.04) 0%, transparent 70%);
}

[data-theme="light"] .info-item {
  border-color: rgba(154, 125, 78, 0.12);
}

[data-theme="light"] .week-card {
  border-color: rgba(154, 125, 78, 0.12);
}

[data-theme="light"] .week-card:hover {
  border-color: rgba(154, 125, 78, 0.3);
}

[data-theme="light"] .week-card-title {
  color: #1a1a1a;
}

[data-theme="light"] .bankruptcy-warning {
  border-color: rgba(179, 64, 64, 0.25);
  background: rgba(179, 64, 64, 0.05);
}

[data-theme="light"] .landing-footer {
  border-top-color: rgba(154, 125, 78, 0.12);
}
