/* ================================================================
   SemPace Landing — Mercedes Petronas F1 Design System v2
   Carregado somente na landing page (templates/site/landing.html)
   Ordem: depois de brand.css e site.css — sobrescreve onde necessário
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --lp-bg:            #0B1012;
  --lp-surface:       #15191B;
  --lp-surface-2:     #0F1416;
  --lp-surface-deep:  #08090A;
  --lp-teal:          #00D2BE;
  --lp-teal-dark:     #007368;
  --lp-teal-soft:     rgba(0,210,190,0.10);
  --lp-teal-border:   rgba(0,210,190,0.20);
  --lp-silver:        #C8CCCE;
  --lp-text:          #E6EAEB;
  --lp-text-mute:     #9BA4A7;
  --lp-text-dim:      #6F7A7D;
  --lp-text-faint:    #3D4548;
  --lp-divider:       rgba(255,255,255,0.05);
  --lp-border:        rgba(255,255,255,0.08);
  --lp-radius:        4px;
  --lp-radius-pill:   999px;

  --font-display: 'Bebas Neue', 'Urbanist', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
  --font-body:    'Inter', 'Urbanist', system-ui, sans-serif;
}

/* ── Body ───────────────────────────────────────────────────────── */
body.site-body {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--font-body);
}

/* ================================================================
   NAV
   ================================================================ */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(11,16,18,0.95);
  border-bottom: 0.5px solid var(--lp-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 1rem;
}

/* Logo */
.lp-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--lp-text);
  flex-shrink: 0;
}

.lp-brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

.lp-brand-tag {
  border-left: 1px solid var(--lp-teal);
  margin-left: 0.85rem;
  padding-left: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-brand-tag span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lp-text-dim);
  line-height: 1.25;
  display: block;
}

/* Nav links — center */
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--lp-text-mute);
  text-decoration: none;
  transition: color 0.15s;
}

.lp-nav-links a:hover,
.lp-nav-links a:focus {
  color: var(--lp-teal);
}

/* Nav right actions */
.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Nav CTA pill */
.lp-nav-cta {
  background: var(--lp-teal);
  color: #000 !important;
  border: none;
  border-radius: var(--lp-radius-pill);
  padding: 0.45rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none !important;
  display: inline-block;
  transition: background 0.15s;
  line-height: 1.6;
}

.lp-nav-cta:hover {
  background: #3EE5D6;
  color: #000 !important;
}

/* Mobile toggle */
.lp-nav-toggle {
  display: none;
  background: transparent;
  border: 0.5px solid var(--lp-border);
  border-radius: var(--lp-radius);
  color: var(--lp-text);
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* ================================================================
   HERO — Static F1 Tagline
   ================================================================ */
.lp-hero {
  padding: 5rem 0 0;
  background: var(--lp-bg);
}

/* Eyebrow */
.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-teal);
  margin-bottom: 1.5rem;
}

.lp-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--lp-teal);
  flex-shrink: 0;
  vertical-align: middle;
}

/* H1 */
.lp-hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--lp-text);
  margin-bottom: 1.2rem;
}

.lp-teal-word {
  color: var(--lp-teal);
}

/* Strikethrough "achismo" */
.lp-strike {
  position: relative;
  display: inline-block;
}

.lp-strike::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  transform: translateY(-2px) skewY(-3deg);
  height: 5px;
  background: var(--lp-teal);
  border-radius: 1px;
  pointer-events: none;
}

/* Subhead */
.lp-hero-sub {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.75;
  color: var(--lp-text-mute);
  max-width: 420px;
  margin-bottom: 2rem;
}

/* CTA row */
.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Primary button */
.lp-btn-primary {
  background: var(--lp-teal);
  color: #000 !important;
  border: none;
  border-radius: var(--lp-radius);
  padding: 0.9rem 2rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: background 0.15s;
  cursor: pointer;
}

.lp-btn-primary:hover {
  background: #3EE5D6;
  color: #000 !important;
}

/* Ghost button */
.lp-btn-ghost {
  background: transparent;
  color: var(--lp-text) !important;
  border: 0.5px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 13px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: border-color 0.15s, color 0.15s;
}

.lp-btn-ghost:hover {
  border-color: var(--lp-teal-border);
  color: var(--lp-teal) !important;
}

/* ================================================================
   HUD — Live Telemetry
   ================================================================ */
.lp-hud-wrap {
  margin-top: 3rem;
  padding-bottom: 4rem;
}

.lp-hud {
  position: relative;
  background: var(--lp-surface);
  border: 0.5px solid var(--lp-teal-border);
  border-radius: 8px;
  overflow: hidden;
}

/* "LIVE TELEMETRY" notch */
.lp-hud-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lp-teal);
  color: #000;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 0 0 6px 6px;
  white-space: nowrap;
  z-index: 1;
  font-weight: 500;
}

.lp-hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 2rem 0 1.6rem;
}

.lp-hud-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-right: 0.5px solid var(--lp-divider);
}

.lp-hud-cell:last-child {
  border-right: none;
}

.lp-hud-val {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--lp-text);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.lp-hud-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--lp-teal);
  line-height: 1;
}

.lp-hud-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-text-dim);
}

/* ================================================================
   HERO CAROUSEL — restyled, mantém funcionalidade JS intacta
   ================================================================ */
.lp-carousel-wrap {
  background: var(--lp-surface-2);
  border-top: 0.5px solid var(--lp-border);
}

/* Override site.css carousel styles quando dentro de lp-carousel-wrap */
.lp-carousel-wrap .hero-carousel {
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.lp-carousel-wrap .hero-slide {
  border-radius: 0;
  min-height: clamp(320px, 40vh, 440px);
}

/* ================================================================
   SECTION COMUM
   ================================================================ */
.lp-section {
  padding: 5rem 0;
  background: var(--lp-bg);
}

.lp-section-alt {
  background: var(--lp-surface-2);
  border-top: 0.5px solid var(--lp-border);
  border-bottom: 0.5px solid var(--lp-border);
}

.lp-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.lp-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1;
  color: var(--lp-text);
  margin: 0;
  letter-spacing: 0.01em;
}

.lp-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-teal);
  white-space: nowrap;
}

/* ================================================================
   COCKPIT GRID — 6 cards 3x2
   ================================================================ */
.lp-cockpit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--lp-border);
  border: 0.5px solid var(--lp-border);
  border-radius: var(--lp-radius);
  overflow: hidden;
}

.lp-cockpit-card {
  background: var(--lp-surface);
  padding: 1.5rem;
  position: relative;
  transition: background 0.18s;
}

.lp-cockpit-card:hover {
  background: var(--lp-surface-2);
}

/* Primeiro card — border-left teal */
.lp-cockpit-card:first-child {
  border-left: 2px solid var(--lp-teal);
}

/* Numeração */
.lp-card-num {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--lp-text-faint);
  line-height: 1;
}

/* Ícone chip */
.lp-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--lp-radius);
  background: var(--lp-teal-soft);
  border: 0.5px solid var(--lp-teal-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: var(--lp-teal);
}

.lp-cockpit-card h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-text);
  margin: 0 0 0.4rem;
}

.lp-cockpit-card p {
  font-size: 12px;
  color: var(--lp-text-mute);
  margin: 0;
  line-height: 1.65;
}

/* ================================================================
   PILLARS — Engenharia de Performance
   ================================================================ */
.lp-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--lp-border);
  border: 0.5px solid var(--lp-border);
  border-radius: var(--lp-radius);
  overflow: hidden;
}

.lp-pillar {
  background: var(--lp-surface-2);
  padding: 1.8rem 1.4rem;
}

.lp-pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--lp-teal);
  margin-bottom: 0.75rem;
}

.lp-pillar h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  color: var(--lp-text);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.lp-pillar p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lp-text-dim);
  margin: 0;
  line-height: 1.6;
}

/* ================================================================
   CTA FLAG — Linha de Largada (fundo branco — único)
   ================================================================ */
.lp-cta-flag {
  background: #FFFFFF;
  position: relative;
}

.lp-flag-stripe-top {
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #0B1012 0 12px,
    #FFFFFF 12px 24px
  );
}

.lp-flag-stripe-bottom {
  height: 4px;
  background: var(--lp-teal-dark);
}

.lp-flag-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 0 3.5rem;
}

.lp-flag-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-teal-dark);
  margin-bottom: 0.8rem;
}

.lp-flag-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: #0B1012;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
}

.lp-teal-dark {
  color: var(--lp-teal-dark);
}

.lp-flag-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: #555;
  max-width: 380px;
  margin: 0;
  line-height: 1.7;
}

.lp-flag-cta {
  background: #0B1012;
  color: var(--lp-teal) !important;
  border: none;
  border-radius: var(--lp-radius);
  padding: 1rem 2.4rem;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 44px;
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.lp-flag-cta:hover {
  background: #1A2428;
  color: var(--lp-teal) !important;
}

/* ================================================================
   CONTACT
   ================================================================ */
.lp-contact-section {
  padding: 4rem 0;
  background: var(--lp-bg);
}

.lp-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.lp-contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--lp-text-mute);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.6rem 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}

.lp-contact-item i {
  color: var(--lp-teal);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.lp-contact-item:hover,
.lp-contact-item:focus {
  color: var(--lp-text);
}

/* ================================================================
   FOOTER
   ================================================================ */
.lp-footer {
  background: var(--lp-surface-deep);
  border-top: 0.5px solid var(--lp-teal-border);
  padding: 1.4rem 0;
}

.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lp-footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-text-dim);
  margin: 0;
}

.lp-footer-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.lp-footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--lp-text-dim);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s;
}

.lp-footer-links a:hover {
  color: var(--lp-teal);
}

/* ================================================================
   MODALS — mantém IDs, aria, forms. Só visual.
   ================================================================ */
.lp-modal .modal-content {
  background: var(--lp-surface);
  border: 0.5px solid var(--lp-border);
  border-radius: 6px;
  color: var(--lp-text);
}

.lp-modal .modal-header {
  border-bottom: 0.5px solid var(--lp-border);
  padding: 1.2rem 1.5rem 1rem;
}

.lp-modal .modal-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-modal .modal-body {
  padding: 1.2rem 1.5rem 1.5rem;
}

/* Nav pills no modal (tabs aluno/admin) */
.lp-modal .nav-pills .nav-link {
  border-radius: var(--lp-radius);
  background: rgba(255,255,255,0.05);
  color: var(--lp-text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0.5px solid var(--lp-border);
  transition: background 0.15s;
}

.lp-modal .nav-pills .nav-link.active,
.lp-modal .nav-pills .nav-link:active {
  background: var(--lp-teal);
  color: #000;
  border-color: var(--lp-teal);
}

/* Inputs do modal */
.lp-modal .form-control {
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--lp-border);
  border-radius: var(--lp-radius);
  color: var(--lp-text);
  font-size: 13px;
}

.lp-modal .form-control:focus {
  border-color: rgba(0,210,190,0.70);
  box-shadow: 0 0 0 3px rgba(0,210,190,0.12);
  background: rgba(255,255,255,0.06);
}

/* Labels */
.lp-form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-text-dim);
  margin-bottom: 0.4rem;
  display: block;
}

/* Botão submit do modal */
.btn-lp-submit {
  cursor: pointer;
  display: block;
  width: 100%;
  background: var(--lp-teal);
  color: #000;
  border: none;
  border-radius: var(--lp-radius);
  padding: 0.85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  min-height: 44px;
  transition: background 0.15s;
  line-height: 1;
}

.btn-lp-submit:hover {
  background: #3EE5D6;
}

/* Link "Esqueci minha senha" */
.lp-forgot-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.10em;
  color: var(--lp-text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.lp-forgot-link:hover {
  color: var(--lp-teal);
}

/* ================================================================
   MOBILE OFFCANVAS NAV
   ================================================================ */
.lp-offcanvas.offcanvas {
  background: var(--lp-surface);
  border-left: 0.5px solid var(--lp-border);
  max-width: min(320px, 90vw) !important;
  width: min(320px, 90vw) !important;
}

.lp-offcanvas .offcanvas-header {
  border-bottom: 0.5px solid var(--lp-border);
  padding: 1rem 1.2rem;
}

.lp-offcanvas-links {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.lp-offcanvas-links li a {
  display: block;
  padding: 0.9rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--lp-text-mute);
  text-decoration: none;
  border-bottom: 0.5px solid var(--lp-divider);
  transition: color 0.15s;
}

.lp-offcanvas-links li a:hover {
  color: var(--lp-teal);
}

.lp-offcanvas-cta-wrap {
  padding: 1.5rem;
}

/* Focus visível */
:focus-visible {
  outline: 2px solid var(--lp-teal);
  outline-offset: 2px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet */
@media (max-width: 991.98px) {
  .lp-nav-links {
    display: none;
  }

  .lp-nav-toggle {
    display: inline-flex;
  }

  .lp-cockpit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .lp-hero {
    padding-top: 3.5rem;
  }

  .lp-hero-h1 {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
  }

  .lp-hud-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 2rem;
  }

  /* 2x2 grid: borda direita e baixo */
  .lp-hud-cell {
    border-right: none;
    border-bottom: 0.5px solid var(--lp-divider);
  }

  .lp-hud-cell:nth-child(odd) {
    border-right: 0.5px solid var(--lp-divider);
  }

  .lp-hud-cell:nth-child(3),
  .lp-hud-cell:nth-child(4) {
    border-bottom: none;
  }

  .lp-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-bottom: 1.8rem;
  }

  .lp-cockpit-grid {
    grid-template-columns: 1fr;
  }

  .lp-pillars {
    grid-template-columns: 1fr;
  }

  .lp-flag-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 0;
  }

  .lp-flag-cta {
    width: 100%;
  }

  .lp-section {
    padding: 3.5rem 0;
  }

  .lp-hud-wrap {
    padding-bottom: 3rem;
  }
}

/* Small mobile */
@media (max-width: 479.98px) {
  .lp-brand-tag {
    display: none;
  }

  .lp-hud-val {
    font-size: 1.6rem;
  }

  .lp-section {
    padding: 3rem 0;
  }
}
