/* =========================================================
   Meetakk Landing Page — Design System & Layout
   ========================================================= */

/* --- Custom Properties ---------------------------------- */
:root {
  --bg:          #080e1c;
  --bg-2:        #0f1829;
  --surface:     #131f35;
  --surface-2:   #1a2a44;
  --border:      rgba(59, 130, 246, 0.15);
  --text:        #f0f6ff;
  --muted:       #8ba0be;
  --accent:      #3b82f6;
  --accent-2:    #7c3aed;
  --accent-teal: #0ea5e9;
  --success:     #10b981;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;

  --font:        system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:        ui-monospace, "Cascadia Code", "Fira Code", monospace;

  --shadow:      0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 8px 48px rgba(0, 0, 0, 0.6);

  --transition:  0.22s ease;
}

/* --- Reset & Base --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* --- Utility -------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  outline-offset: 3px;
}

.btn:focus-visible { outline: 2px solid var(--accent); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.35);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 14, 28, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}

/* Wordmark */
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.wordmark__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.wordmark__text em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.nav__link {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--transition);
}

.nav__link:hover { color: var(--text); }

.nav__cta { margin-left: 0.75rem; }

/* Mobile hamburger */
.nav__toggle {
  display: none;
  margin-left: auto;
  padding: 0.4rem;
  color: var(--muted);
  border-radius: var(--radius-sm);
}

.nav__toggle:hover { color: var(--text); }
.nav__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger-bar + .hamburger-bar { margin-top: 5px; }

/* Mobile drawer */
.nav__drawer {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.nav__drawer .nav__link {
  display: block;
  padding: 0.6rem 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

.nav__drawer .btn { margin-top: 0.75rem; width: 100%; }

/* open state */
.nav__drawer.is-open { display: flex; }

@media (max-width: 767px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; flex-direction: column; align-items: center; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
}

/* Decorative grid background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

/* Glow blobs */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.18;
}

.hero__glow--blue {
  width: 480px;
  height: 480px;
  background: var(--accent);
  top: -120px;
  left: -80px;
}

.hero__glow--violet {
  width: 360px;
  height: 360px;
  background: var(--accent-2);
  top: -60px;
  right: -40px;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__content { max-width: 540px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: breathe 2.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Hero illustration */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Session mockup card */
.session-mockup {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(59, 130, 246, 0.08);
  position: relative;
}

.session-mockup__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--red   { background: #ef4444; }
.dot--amber { background: #f59e0b; }
.dot--green { background: #22c55e; }

.session-mockup__title {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* Round badge */
.round-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--accent);
  border-radius: 100px;
}

/* Video grid inside mockup */
.mockup-videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mockup-video {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--bg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
}

.mockup-video__avatar {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.mockup-video--local .mockup-video__avatar {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2540 100%);
}

.mockup-video--remote .mockup-video__avatar {
  background: linear-gradient(135deg, #2d1f52 0%, #1a0f38 100%);
}

.mockup-video__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  padding: 0.3rem 0.4rem;
  background: rgba(0, 0, 0, 0.5);
  color: #cbd5e1;
  letter-spacing: 0.04em;
}

/* Timer bar */
.mockup-timer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.6rem;
}

.timer-icon {
  color: var(--accent-teal);
  flex-shrink: 0;
}

.timer-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.timer-value {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-teal);
  font-variant-numeric: tabular-nums;
}

/* Partner info strip */
.mockup-partner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 0.55rem 0.8rem;
}

.partner-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.partner-info { flex: 1; min-width: 0; }

.partner-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partner-tag {
  font-size: 0.68rem;
  color: var(--muted);
}

/* Progress dots */
.round-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-2);
}

.progress-dot--done { background: var(--accent); }

.progress-dot--active {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
  animation: breathe 2s ease-in-out infinite;
}

.progress-label {
  font-size: 0.68rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero { padding: 4rem 0 3.5rem; }
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.section { padding: 5rem 0; }

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section__sub {
  font-size: 1rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

/* Connector line between steps */
.steps::before {
  content: "";
  position: absolute;
  top: 48px;
  left: calc(33.33% - 0px);
  right: calc(33.33% - 0px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.step:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-3px);
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.step:nth-child(1) .step__number {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--accent);
}

.step:nth-child(2) .step__number {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  color: var(--accent-2);
}

.step:nth-child(3) .step__number {
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: var(--accent-teal);
}

.step__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

/* =========================================================
   FEATURES
   ========================================================= */
.features-bg {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.feature-icon--blue   { background: rgba(59, 130, 246, 0.12); color: var(--accent); }
.feature-icon--violet { background: rgba(124, 58, 237, 0.12); color: var(--accent-2); }
.feature-icon--teal   { background: rgba(14, 165, 233, 0.12);  color: var(--accent-teal); }
.feature-icon--green  { background: rgba(16, 185, 129, 0.12); color: var(--success); }

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

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

/* =========================================================
   PRODUCT SHOWCASE
   ========================================================= */
.showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.showcase__content { max-width: 460px; }

.showcase__headline {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.showcase__body {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.showcase__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Dashboard mockup */
.dashboard-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
}

.dashboard-mockup__topbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.status-pill {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--success);
}

.event-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.event-row + .event-row {
  border-top: 1px solid var(--border);
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-dot--active  { background: var(--success); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); animation: breathe 2s ease-in-out infinite; }
.event-dot--next    { background: var(--accent); }
.event-dot--waiting { background: #475569; }

.event-info { flex: 1; min-width: 0; }

.event-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.event-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  flex-shrink: 0;
}

.event-badge--live    { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.event-badge--soon    { background: rgba(59, 130, 246, 0.15); color: var(--accent);  border: 1px solid rgba(59, 130, 246, 0.3); }
.event-badge--waiting { background: rgba(71, 85, 105, 0.3); color: #94a3b8; border: 1px solid rgba(71,85,105,0.4); }

@media (max-width: 900px) {
  .showcase__inner { grid-template-columns: 1fr; }
  .showcase__content { max-width: 100%; }
}

/* =========================================================
   JOIN SECTION (Token entry)
   ========================================================= */
.join-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
}

.join-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.join-card__headline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.join-card__sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.token-form {
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  transition: border-color var(--transition);
}

.token-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.token-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  min-width: 0;
}

.token-input::placeholder { color: var(--muted); }

.token-submit {
  flex-shrink: 0;
}

.join-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.join-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 500px) {
  .token-form { flex-direction: column; padding: 0.75rem; }
  .token-submit { width: 100%; }
}

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

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.82rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--text); }

/* =========================================================
   SKIP LINK
   ========================================================= */
.skip-link {
  position: absolute;
  top: -999px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 700;
  z-index: 200;
  transition: top 0.1s;
}

.skip-link:focus { top: 0; }
