/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #0a0a0f;
  --bg-2:      #111118;
  --bg-3:      #1a1a26;
  --surface:   #16161f;
  --border:    rgba(255,255,255,0.08);
  --accent:    #6c63ff;
  --accent-2:  #ff6b9d;
  --accent-3:  #00d4aa;
  --text:      #f0f0f8;
  --text-2:    #9898b8;
  --text-3:    #5a5a7a;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 8px 40px rgba(0,0,0,0.4);
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { flex: 1; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
}
.btn--primary:hover {
  background: #7d75ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(108,99,255,0.4);
  text-decoration: none;
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 24px;
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
  color: var(--text);
}
.btn--lg  { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn--sm  { padding: 8px 16px; font-size: 0.875rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(10,10,15,0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__link {
  color: var(--text-2);
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}
.nav__link:hover { color: var(--text); text-decoration: none; }
.nav__user {
  color: var(--text-2);
  font-size: 0.875rem;
  padding: 4px 10px;
  background: var(--bg-3);
  border-radius: 20px;
}

/* ── Flash messages ────────────────────────────────────────────────────────── */
.flash-container { padding: 0 48px; margin-top: 16px; }
.flash {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.flash--success { background: rgba(0,212,170,0.15); border: 1px solid rgba(0,212,170,0.3); color: var(--accent-3); }
.flash--error   { background: rgba(255,107,157,0.15); border: 1px solid rgba(255,107,157,0.3); color: var(--accent-2); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 100px 80px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.hero__orb--1 { width: 500px; height: 500px; background: var(--accent); top: -100px; left: -100px; animation: float 8s ease-in-out infinite; }
.hero__orb--2 { width: 300px; height: 300px; background: var(--accent-2); bottom: 0; right: 0; animation: float 6s ease-in-out infinite reverse; }
.hero__orb--3 { width: 200px; height: 200px; background: var(--accent-3); top: 50%; left: 50%; animation: float 10s ease-in-out infinite 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero__content { position: relative; z-index: 1; }
.hero__badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  border: 1px solid rgba(108,99,255,0.3);
  color: #a89fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__sub {
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero__note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-3);
  animation: fadeUp 0.8s ease 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Chat preview ──────────────────────────────────────────────────────────── */
.hero__visual { position: relative; z-index: 1; animation: fadeUp 0.8s ease 0.4s both; }
.chat-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow), 0 0 60px rgba(108,99,255,0.1);
  max-width: 360px;
  margin-left: auto;
}
.chat-preview__header {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.chat-preview__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}
.chat-preview__dot--2 { background: #ffbd2e; }
.chat-preview__dot--3 { background: #28c840; }
.chat-preview__msg {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}
.chat-preview__msg--out { flex-direction: row-reverse; }
.chat-preview__avatar {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-preview__bubble {
  background: var(--bg-3);
  padding: 10px 14px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: 0.875rem;
  color: var(--text);
  max-width: 220px;
  line-height: 1.4;
}
.chat-preview__msg--out .chat-preview__bubble {
  background: var(--accent);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 4px;
}
.chat-preview__typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-radius: 16px;
  width: fit-content;
  margin-left: 42px;
}
.chat-preview__typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: blink 1.4s infinite;
}
.chat-preview__typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-preview__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%           { opacity: 1;   transform: scale(1); }
}

/* ── Features ──────────────────────────────────────────────────────────────── */
.features { padding: 100px 80px; background: var(--bg-2); }
.features__inner { max-width: 1100px; margin: 0 auto; }
.features__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -1px;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-4px);
}
.feature-card__icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; }

/* ── CTA banner ────────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(255,107,157,0.1));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}
.cta-banner__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cta-banner__inner h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.footer__tagline { color: var(--text-2); margin-bottom: 8px; }
.footer__copy { color: var(--text-3); font-size: 0.8rem; }

/* ── Auth pages ────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
}
.auth-card--wide { max-width: 540px; }
.auth-card__header { margin-bottom: 32px; }
.auth-card__header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.auth-card__header p { color: var(--text-2); }
.auth-card__switch { text-align: center; margin-top: 24px; color: var(--text-2); font-size: 0.9rem; }
.auth-card__switch a { color: var(--accent); }

/* ── Form elements ─────────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--text-3); }
.form-hint { font-size: 0.8rem; color: var(--text-3); }
.form-hint--link { color: var(--accent); font-size: 0.8rem; text-align: right; }

/* ── University choose ─────────────────────────────────────────────────────── */
.uni-options { display: flex; flex-direction: column; gap: 12px; }
.uni-option {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.uni-option:hover { border-color: var(--accent); }
.uni-option__icon { font-size: 1.5rem; }
.uni-option p { color: var(--text-2); font-size: 0.85rem; margin-top: 2px; }

/* ── Mode selection ────────────────────────────────────────────────────────── */
.mode-page { padding: 80px 48px; max-width: 900px; margin: 0 auto; }
.mode-page__header { text-align: center; margin-bottom: 56px; }
.mode-page__header h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.mode-page__header p { color: var(--text-2); }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mode-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mode-card:hover { border-color: rgba(108,99,255,0.5); transform: translateY(-4px); }
.mode-card--selected {
  border-color: var(--accent);
  background: rgba(108,99,255,0.08);
  box-shadow: 0 0 30px rgba(108,99,255,0.2);
}
.mode-card__icon { font-size: 2.5rem; }
.mode-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}
.mode-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mode-card__list li {
  color: var(--text-2);
  font-size: 0.9rem;
  padding-left: 16px;
  position: relative;
}
.mode-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-3);
  font-weight: 700;
}
.mode-card__badge {
  display: inline-block;
  background: rgba(108,99,255,0.15);
  color: #a89fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}
.mode-card__badge--pro {
  background: rgba(0,212,170,0.15);
  color: var(--accent-3);
}
.mode-page__submit { text-align: center; margin-top: 40px; }

/* ── Dashboard ─────────────────────────────────────────────────────────────── */
.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 73px);
}
.dashboard__sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sidebar__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
}
.sidebar__avatar {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.sidebar__profile strong { display: block; font-size: 0.9rem; }
.sidebar__profile span { color: var(--text-3); font-size: 0.75rem; }
.sidebar__nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar__link {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  text-decoration: none;
}
.sidebar__link:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
.sidebar__link--active { background: rgba(108,99,255,0.15); color: var(--accent); }
.sidebar__logout {
  color: var(--text-3);
  font-size: 0.85rem;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.sidebar__logout:hover { color: var(--accent-2); }
.dashboard__main { padding: 48px; overflow-y: auto; }
.dashboard__welcome { margin-bottom: 40px; }
.dashboard__welcome h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.dashboard__welcome p { color: var(--text-2); }
.dashboard__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 40px; }
.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.dash-card:hover { border-color: rgba(108,99,255,0.3); transform: translateY(-2px); }
.dash-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.dash-card p { color: var(--text-2); font-size: 0.875rem; flex: 1; }
.dashboard__coming-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,189,46,0.08);
  border: 1px solid rgba(255,189,46,0.2);
  border-radius: var(--radius-sm);
  color: #ffbd2e;
  font-size: 0.875rem;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 60px 32px; }
  .hero__visual { display: none; }
  .features { padding: 60px 32px; }
  .nav { padding: 16px 24px; }
  .mode-grid { grid-template-columns: 1fr; }
  .dashboard { grid-template-columns: 1fr; }
  .dashboard__sidebar { display: none; }
  .dashboard__main { padding: 32px 24px; }
  .flash-container { padding: 0 24px; }
}

/* ── Call cards ────────────────────────────────────────────────────────────── */
.dashboard__call-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.call-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.call-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.call-card--uni {
  border-color: rgba(108,99,255,0.3);
  background: linear-gradient(135deg, rgba(108,99,255,0.08), var(--surface));
}

.call-card--uni:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(108,99,255,0.2);
}

.call-card--any {
  border-color: rgba(0,212,170,0.2);
  background: linear-gradient(135deg, rgba(0,212,170,0.06), var(--surface));
}

.call-card--any:hover {
  border-color: var(--accent-3);
  box-shadow: 0 8px 40px rgba(0,212,170,0.15);
}

.call-card__icon {
  font-size: 2.8rem;
  line-height: 1;
}

.call-card__body { flex: 1; }

.call-card__body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.call-card__body p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

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