:root {
    --navy: #0A1840;
    --navy-deep: #050C26;
    --navy-soft: #1A2956;
    --gold: #C9A24A;
    --gold-deep: #A8852D;
    --gold-soft: #E8D69E;
    --cream: #F4EFE3;
    --cream-deep: #ECE4D2;
    --cream-warm: #F8F3E7;
    --ink: #1A1A1A;
    --ink-mid: #4A463E;
    --ink-soft: #6B6557;
    --line: #D8CFB8;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
  }

  /* Subtle paper grain */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.81 0 0 0 0 0.7 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* ===== NAV ===== */
  nav.top {
    background: transparent;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 2;
  }
  .nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--navy);
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    background: var(--gold);
    transform: rotate(45deg);
    border-radius: 2px;
    flex-shrink: 0;
  }
  .brand-name {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  .brand-name em {
    font-style: italic;
    color: var(--gold-deep);
    font-weight: 400;
  }
  .nav-back {
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
  }
  .nav-back:hover { color: var(--navy); }

  /* ===== MAIN ===== */
  main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 32px;
    position: relative;
    z-index: 2;
  }
  .container {
    max-width: 900px;
    width: 100%;
  }

  /* ===== INTRO ===== */
  .intro {
    text-align: center;
    margin-bottom: 56px;
    animation: fadeUp 0.6s ease-out;
  }
  .intro-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 20px;
  }
  .intro-eyebrow::before, .intro-eyebrow::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--gold);
  }
  .intro h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 16px;
  }
  .intro h1 em {
    font-style: italic;
    color: var(--gold-deep);
    font-weight: 300;
  }
  .intro p {
    font-size: 17px;
    color: var(--ink-mid);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
  }

  /* ===== STEP STATES ===== */
  .step {
    display: none;
    animation: fadeUp 0.5s ease-out;
  }
  .step.active { display: block; }

  /* ===== ROLE CARDS ===== */
  .role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
  .role-card {
    background: var(--cream-warm);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 48px 36px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-family: inherit;
    color: inherit;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
  }
  .role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gold);
    transition: width 0.3s;
  }
  .role-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(10, 24, 64, 0.1);
  }
  .role-card:hover::before {
    width: 4px;
  }
  .role-icon {
    width: 56px;
    height: 56px;
    background: var(--navy);
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
  }
  .role-icon.learner::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    border-top-color: transparent;
    border-right-color: transparent;
    transform: rotate(-45deg);
  }
  .role-icon.mentor::after {
    content: '';
    position: absolute;
    inset: 12px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  }
  .role-icon.employer::after {
    content: '';
    position: absolute;
    inset: 12px;
    background: var(--gold);
    clip-path: polygon(0% 25%, 100% 25%, 100% 100%, 0% 100%, 0% 25%, 40% 25%, 40% 0%, 60% 0%, 60% 25%);
}
  .role-card-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-deep);
    font-weight: 600;
  }
  .role-card-title {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .role-card-title em {
    font-style: italic;
    color: var(--gold-deep);
  }
  .role-card-desc {
    font-size: 14px;
    color: var(--ink-mid);
    line-height: 1.6;
  }
  .role-card-cta {
    margin-top: 12px;
    font-size: 13px;
    color: var(--navy);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s;
  }
  .role-card:hover .role-card-cta { gap: 12px; }

  /* ===== SIGN-IN STEP ===== */
  .signin-shell {
    background: var(--cream-warm);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 48px 56px;
    max-width: 480px;
    margin: 0 auto;
  }
  .signin-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: var(--cream);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 24px;
  }
  .signin-role-tag .dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
  }
  .signin-title {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 8px;
  }
  .signin-title em {
    font-style: italic;
    color: var(--gold-deep);
  }
  .signin-sub {
    font-size: 14px;
    color: var(--ink-mid);
    margin-bottom: 32px;
  }
  .signin-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    text-decoration: none;
  }
  .oauth-btn:hover {
    border-color: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 24, 64, 0.06);
  }
  .oauth-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--ink-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
  }
  .divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
  }

  .email-link {
    display: block;
    padding: 14px 20px;
    text-align: center;
    background: var(--navy);
    color: var(--cream);
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
  }
  .email-link:hover {
    background: var(--navy-deep);
    transform: translateY(-1px);
  }

  .signin-foot {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-soft);
    text-align: center;
  }
  .signin-foot a {
    color: var(--gold-deep);
    text-decoration: none;
    font-weight: 500;
  }
  .signin-foot a:hover { text-decoration: underline; }

  .back-row {
    display: flex;
    justify-content: center;
    margin-top: 24px;
  }
  .back-btn {
    background: none;
    border: none;
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    transition: color 0.2s;
  }
  .back-btn:hover { color: var(--navy); }

  /* ===== FOOTER ===== */
  footer {
    background: var(--navy-deep);
    color: var(--cream-deep);
    padding: 32px;
    position: relative;
    z-index: 2;
    text-align: center;
  }
  .footer-mark {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
  }
  footer a {
    color: var(--gold);
    text-decoration: none;
  }

  /* ===== ANIMATIONS ===== */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 720px) {
    main { padding: 40px 20px; }
    .role-cards { grid-template-columns: 1fr; gap: 16px; }
    .role-card { padding: 36px 28px; }
    .role-card-title { font-size: 26px; }
    .signin-shell { padding: 36px 28px; }
    .intro h1 { font-size: 32px; }
  }
