:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #1f1f1f;
  --muted: #666;
  --primary: #d89b1d;
  --primary-dark: #8a5f00;
  --accent: #4b2d7f;
  --border: rgba(31, 31, 31, .12);
  --shadow: 0 18px 45px rgba(20, 20, 20, .08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 155, 29, .18), transparent 32rem),
    radial-gradient(circle at top right, rgba(75, 45, 127, .14), transparent 28rem),
    var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(247, 244, 238, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  padding: .7rem .9rem;
  border-radius: 999px;
  font-weight: 650;
  color: #333;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(216, 155, 29, .18);
}

.nav-pill {
  background: #1f1f1f !important;
  color: white !important;
}

.menu-toggle {
  display: none;
  border: 0;
  background: #1f1f1f;
  color: white;
  border-radius: 12px;
  padding: .7rem .9rem;
  font-size: 1.1rem;
}

.hero,
.page-hero,
.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 2rem;
  align-items: center;
  padding: 5rem 0 3rem;
}

.page-hero {
  padding: 5rem 0 2rem;
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: .4rem 0 1rem;
  font-size: clamp(2.3rem, 7vw, 5rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.lead {
  max-width: 780px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 850;
  color: var(--primary-dark);
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--border);
}

.btn.primary,
.btn.secondary {
  background: #1f1f1f;
  color: #fff;
  border: none;
}

.btn.primary:hover,
.btn.secondary:hover {
  opacity: .9;
}

.btn.secondary,
.btn.small {
  background: var(--surface);
}

.btn.small {
  min-height: 40px;
  font-size: .92rem;
  margin-top: .5rem;
}

.hero-card,
.card,
.link-card {
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card {
  transform: rotate(1deg);
}

.card {
  display: flex;
  flex-direction: column;
}

.card .btn {
  margin-top: auto;
  width: fit-content;
}

.section {
  padding: 2.5rem 0;
}

.section-title {
  margin-bottom: 1.2rem;
}

.section-title h2,
.highlight h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  margin: .3rem 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.card p {
  color: var(--muted);
}

.highlight {
  margin-top: 1rem;
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(135deg, rgba(216, 155, 29, .18), rgba(75, 45, 127, .12));
  border: 1px solid var(--border);
}

.steps {
  display: grid;
  gap: .8rem;
}

.steps div {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
}

.steps span {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary);
  font-weight: 900;
}

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

.link-card {
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.link-card:hover {
  transform: translateY(-3px);
}

.link-card strong {
  display: block;
  font-size: 1.15rem;
}

.link-card span {
  color: var(--muted);
}

.contact-card .btn {
  margin-top: .5rem;
}

.login-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-box {
  width: min(460px, 100%);
}

.login-box form {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}

label {
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .9rem 1rem;
  font: inherit;
}

.alert {
  padding: .8rem 1rem;
  border-radius: 14px;
  background: #ffe0e0;
  border: 1px solid #ffb9b9;
}

.dashboard-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 74px;
    background: var(--surface);
    padding: .8rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }

  .main-nav.open {
    display: grid;
  }

  .hero,
  .grid.two,
  .grid.three,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111014;
    --surface: #1b1920;
    --text: #f7f4ee;
    --muted: #c7bfaf;
    --border: rgba(255, 255, 255, .12);
  }

  .site-header {
    background: rgba(17, 16, 20, .86);
  }

  .main-nav a {
    color: #f7f4ee;
  }

  .hero-card,
  .card,
  .link-card,
  .steps div {
    background: rgba(27, 25, 32, .86);
  }

  input {
    background: #111014;
    color: var(--text);
  }
}

textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .9rem 1rem;
  font: inherit;
  resize: vertical;
  background: transparent;
  color: var(--text);
}

form.card {
  display: grid;
  gap: .85rem;
}

form.card label {
  margin-top: .2rem;
}

form.card input[type="checkbox"] {
  width: auto;
  margin-right: .5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.profile-card {
  text-align: center;
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  border: 4px solid rgba(255,255,255,.7);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.question {
  font-weight: 700;
  margin-bottom: 1rem;
}
