/* =============================================
   TOKAVY LANDING PAGE — CSS
   Design System: "Kinetic Terminal"
   ============================================= */

/* ---------- FONT FACE ---------- */
@font-face {
  font-family: 'MuseoModerno';
  src: url('../assets/fonts/MuseoModerno-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --bg:          #0A0A0A;
  --accent:      #D6FD1A;
  --white:       #F0F0F0;
  --muted:       #777777;
  --surface:     #111111;
  --border:      #1E1E1E;
  --dark-bar:    #0D0D0D;
  --key-border:  #2E2E2E;

  --font-headline: 'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-logo:     'MuseoModerno', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }
img { display: block; }

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, border-bottom 0.3s ease;
}

#navbar.scrolled {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.logo-wordmark {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-actions { display: flex; align-items: center; }

.btn-login {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  border-radius: 8px;
  height: 36px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-login:hover {
  background: var(--accent);
  color: var(--bg);
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 100vh;
  padding: 0 80px;
  gap: 64px;
  padding-top: 64px; /* account for fixed navbar */
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-headline {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
}

.hero-subtext {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 24px;
  max-width: 420px;
}

/* CTA Button */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0px rgba(214, 253, 26, 0); }
  50%       { box-shadow: 0 0 24px rgba(214, 253, 26, 0.45); }
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  height: 48px;
  padding: 0 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 36px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-cta:hover { opacity: 0.88; }

.hero-cta-subtext {
  color: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  letter-spacing: 0.5px;
}

/* Hero right column */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =============================================
   TERMINAL COMPONENT (reusable)
   ============================================= */
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  height: 32px;
  border-bottom: 1px solid var(--border);
  padding: 0 12px;
  position: relative;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green  { background: #28C840; }

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--white);
  white-space: pre-wrap;
  min-height: 110px;
}

.terminal-body.muted { color: var(--muted); }

/* Typing cursor */
.cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Text selected state */
.terminal-text-selected {
  background: rgba(214, 253, 26, 0.2);
  color: var(--accent) !important;
  border-radius: 2px;
  padding: 0 1px;
}

/* =============================================
   KEYBOARD KEY COMPONENT
   ============================================= */
.shortcut-row {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 0 2px 0 #000000;
  transition: transform 0.1s, box-shadow 0.1s;
  white-space: nowrap;
}

.kbd.pressed {
  transform: scale(0.95) translateY(1px);
  box-shadow: 0 1px 0 #000000;
  box-shadow: 0 0 8px rgba(214, 253, 26, 0.5), 0 1px 0 #000;
}

/* Card variant keys (How It Works) */
.kbd-card {
  background: var(--border);
  border: 1px solid var(--key-border);
  color: var(--white);
  font-size: 11px;
  padding: 4px 10px;
}

.key-plus {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  margin: 0 4px;
}

.key-combo {
  display: flex;
  align-items: center;
}

/* =============================================
   TOAST POPUP
   ============================================= */
.toast-popup {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 220px;
  height: 52px;
  border-radius: 26px;
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: 0 16px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.toast-popup.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 2px;
}

.toast-percent {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.toast-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

/* Static toast (in How It Works card) */
.toast-static {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 190px;
  height: 48px;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: 0 14px;
}

/* =============================================
   APP LOGOS STRIP
   ============================================= */
#logos-strip {
  background: var(--dark-bar);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  overflow: hidden;
}

.logos-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 80px;
}

.logos-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.marquee-container {
  overflow: hidden;
  width: 100%;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.app-logo {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 16px;
  color: var(--muted);
  cursor: default;
  transition: color 0.2s;
  white-space: nowrap;
  user-select: none;
}

.app-logo:hover { color: var(--white); }

/* =============================================
   HOW IT WORKS
   ============================================= */
#how-it-works {
  padding: 120px 80px;
}

.section-heading {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 48px;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  margin-bottom: 64px;
}

.section-subheading {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  margin-bottom: 48px;
}

.hiw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hiw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-label {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.hiw-graphic {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-keys-graphic {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.key-shortcut-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.shortcut-mode-label {
  font-family: var(--font-headline);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.hiw-toast-graphic {
  justify-content: center;
}

.hiw-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.hiw-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  margin-top: -8px;
}

/* Mini terminal (HIW card 1) */
.mini-terminal {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.mini-terminal-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}

.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.mini-terminal-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-line {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
}

.mini-line.muted { color: var(--muted); }

.mini-line.highlighted {
  background: rgba(214, 253, 26, 0.2);
  color: var(--accent);
  border-radius: 2px;
  padding: 1px 3px;
}

/* =============================================
   TAGLINE BAR
   ============================================= */
#tagline-bar {
  background: var(--accent);
  padding: 36px 80px;
  text-align: center;
}

.tagline-text {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: var(--bg);
}

.tagline-brand {
  font-family: var(--font-logo);
  font-weight: 500;
  font-size: 20px;
  color: var(--bg);
}

/* =============================================
   BEFORE / AFTER SECTION
   ============================================= */
#before-after {
  padding: 120px 80px;
}

.ba-grid {
  display: grid;
  grid-template-columns: 45% 10% 45%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  gap: 0;
}

.ba-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ba-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.muted-label { color: var(--muted); }
.accent-label { color: var(--accent); }

.ba-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  gap: 40px;
  padding: 40px 0;
}

.ba-arrow {
  width: 40px;
  height: 20px;
}

.ba-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ba-right .terminal {
  flex: 1;
}

.ba-caption {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  opacity: 0.7;
  padding: 0 2px;
}

/* =============================================
   ITALIC DIVIDER
   ============================================= */
#italic-divider {
  padding: 80px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.divider-line {
  width: 100%;
  border: none;
  border-top: 1px solid var(--border);
}

.divider-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 22px;
  color: var(--white);
}

/* =============================================
   PRICING SECTION
   ============================================= */
#pricing {
  padding: 72px 80px;
}

/* Tighter spacing for pricing heading/subheading */
#pricing .section-heading {
  margin-bottom: 12px;
}

#pricing .section-subheading {
  margin-top: 0;
  margin-bottom: 40px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-card-pro {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(214, 253, 26, 0.15);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 12px;
}

.pricing-top { margin-bottom: 16px; }

.plan-name {
  display: block;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.plan-price {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 48px;
  color: var(--white);
  line-height: 1;
}

.per-month {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
}

.pricing-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--white);
}

.check-icon {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.btn-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: auto;
}

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

.btn-outline:hover { background: rgba(214, 253, 26, 0.06); }

.btn-solid {
  background: var(--accent);
  color: var(--bg);
  border: none;
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-solid:hover { opacity: 0.88; }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--dark-bar);
  border-top: 1px solid var(--border);
  padding: 60px 80px 0;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-group a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.link-group a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 0;
}

.footer-bottom span {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

/* =============================================
   SCROLL FADE-IN ANIMATION
   ============================================= */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   MOBILE RESPONSIVENESS
   ============================================= */
@media (max-width: 1024px) {
  .nav-container { padding: 0 40px; }
  #hero           { padding: 80px 40px 60px; gap: 40px; }
  .hero-headline  { font-size: 48px; }
  #how-it-works   { padding: 80px 40px; }
  #before-after   { padding: 80px 40px; }
  #pricing        { padding: 80px 40px; }
  #footer         { padding: 60px 40px 0; }
  .logos-inner    { padding: 0 40px; }
  #italic-divider { padding: 80px 40px; }
  #tagline-bar    { padding: 32px 40px; }
}

@media (max-width: 768px) {
  .nav-container  { padding: 0 24px; }
  .nav-links      { display: none; }

  #hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    gap: 40px;
    min-height: auto;
  }
  .hero-headline  { font-size: 40px; }
  .hero-subtext   { font-size: 16px; }

  .hiw-cards {
    grid-template-columns: 1fr;
  }

  .section-heading { font-size: 36px; }

  .ba-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ba-arrows {
    flex-direction: row;
    height: auto;
    padding: 0;
  }
  .ba-arrow {
    transform: rotate(90deg);
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .footer-main {
    flex-direction: column;
    gap: 40px;
  }
  .footer-links { gap: 32px; }

  #how-it-works, #before-after, #pricing {
    padding: 80px 24px;
  }
  #italic-divider { padding: 60px 24px; }
  #tagline-bar    { padding: 28px 24px; }
  #footer         { padding: 48px 24px 0; }
  .logos-inner    { padding: 0 24px; }

  .plan-price { font-size: 36px; }
}
