/* ===================================================================
   NOVA TRACKER — landing page
   Theme: dark command-center HUD, crimson + cyan accents
   =================================================================== */

:root{
  --bg:            #08080c;
  --bg-panel:      #121219;
  --bg-panel-2:    #16161f;
  --line:          #2a2a35;
  --red:           #ff2d3d;
  --red-dim:       #a3111f;
  --red-glow:      rgba(255, 45, 61, 0.45);
  --cyan:          #24e0ea;
  --cyan-dim:      #0f7d84;
  --text:          #f2f2f6;
  --text-muted:    #9797a4;
  --text-faint:    #5c5c68;
  --font-display:  'Orbitron', sans-serif;
  --font-body:     'Rajdhani', sans-serif;
  --radius:        4px;
  --container:     1160px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; }

.accent{ color: var(--red); }

/* subtle scanline + vignette overlay across whole page */
.hud-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse at 50% 0%, rgba(255,45,61,0.05), transparent 60%);
}

/* ============ NAV ============ */
.nav{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(8,8,12,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav__brand{
  font-family: var(--font-display);
  font-weight:700;
  letter-spacing: 2px;
  font-size: 16px;
  display:flex;
  align-items:center;
  gap:8px;
}
.nav__dot{
  width:8px;height:8px;border-radius:50%;
  background: var(--red);
  box-shadow: 0 0 8px 2px var(--red-glow);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink{ 0%,100%{opacity:1} 50%{opacity:.35} }
.nav__links{ display:flex; align-items:center; gap: 28px; font-size: 15px; letter-spacing: .5px;}
.nav__links a{ color: var(--text-muted); transition: color .2s; }
.nav__links a:hover{ color: var(--text); }
.nav__cta{
  color: var(--red) !important;
  border: 1px solid var(--red-dim);
  padding: 8px 16px;
  border-radius: var(--radius);
}
.nav__cta:hover{ background: rgba(255,45,61,0.08); }

/* ============ EYEBROW / SECTION HEADERS ============ */
.eyebrow{
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--red);
  margin: 0 0 14px;
  display:flex;
  align-items:center;
  gap:8px;
}
.eyebrow--center{ justify-content:center; text-align:center; }
.icon-dot::before{
  content:"";
  display:inline-block;
  width:6px;height:6px;
  background: var(--red);
  margin-right: 4px;
}
.section__title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: 1px;
}
.section__sub{
  text-align:center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--text-muted);
  font-size: 18px;
}

.section{ max-width: var(--container); margin: 0 auto; padding: 110px 24px; position:relative; z-index:1;}
.section--tight{ padding-top: 70px; }

/* ============ HERO ============ */
.hero{
  max-width: var(--container);
  margin: 0 auto;
  padding: 90px 24px 60px;
  position: relative;
  z-index:1;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items:center;
}
.hero__title{
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 24px;
  text-shadow: 0 0 30px var(--red-glow);
}
.hero__sub{
  color: var(--text-muted);
  font-size: 19px;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero__actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 18px;}
.hero__meta{ font-size: 14px; color: var(--text-faint); letter-spacing: .5px;}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn__icon{ width:16px; height:16px; }
.btn--primary{
  background: linear-gradient(135deg, var(--red), #c81627);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,45,61,.3), 0 10px 30px -8px var(--red-glow);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,45,61,.5), 0 16px 34px -8px var(--red-glow); }
.btn--ghost{
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover{ border-color: var(--red-dim); color: var(--red); }
.btn--large{ padding: 18px 36px; font-size: 15px; }
.field--full.btn--primary{ justify-content:center; margin-top: 8px; }

.hero__stage{ position:relative; display:flex; justify-content:center; align-items:center; min-height: 480px;}
.phone-frame--hero{ width: 230px; position:relative; z-index:2; }
.stat-card{
  position:absolute;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  width: 190px;
  z-index:3;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6);
}
.stat-card--balance{ top: 6%; left: -6%; }
.stat-card--budget{ bottom: 10%; right: -8%; }
.stat-card__label{ display:block; font-size: 10px; letter-spacing: 1.5px; color: var(--text-faint); font-family: var(--font-display); margin-bottom:6px;}
.stat-card__value{ display:block; font-size: 22px; font-weight:700; margin-bottom: 8px; }
.stat-card--balance .stat-card__value{ color: var(--cyan); }
.stat-card--budget .stat-card__value{ color: var(--red); }
.stat-card__bar{ display:block; height:4px; background: rgba(255,255,255,.08); border-radius: 2px; overflow:hidden;}
.stat-card__bar i{ display:block; height:100%; background: var(--cyan); }
.stat-card--budget .stat-card__bar i{ background: var(--red); }

/* ============ PHONE FRAME ============ */
.phone-frame{
  position:relative;
  border: 3px solid #26262f;
  border-radius: 26px;
  overflow:hidden;
  background:#000;
  box-shadow:
    0 0 0 1px rgba(255,45,61,.15),
    0 30px 60px -20px rgba(0,0,0,.7),
    0 0 40px -10px var(--red-glow);
}
.phone-frame::before{
  content:"";
  position:absolute;
  top:0; left:50%;
  transform: translateX(-50%);
  width: 40%;
  height: 18px;
  background:#000;
  border-radius: 0 0 12px 12px;
  z-index: 5;
}
.phone-frame__scan{
  position:absolute; left:0; right:0; height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(36,224,234,.14), transparent);
  animation: scan 3.4s linear infinite;
}
@keyframes scan{ 0%{ top:-40%; } 100%{ top: 100%; } }

/* ============ SCREENSHOT CAROUSEL (dependency-free) ============ */
.carousel{
  position:relative;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 0 56px;
}
.carousel__track{
  flex: 1;
  display:flex;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  padding: 10px 18%;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar{ display:none; }
.carousel__track.is-dragging{ cursor: grabbing; scroll-snap-type: none; }
.carousel__slide{
  flex: 0 0 260px;
  scroll-snap-align: center;
  display:flex;
  flex-direction:column;
  align-items:center;
  opacity: .35;
  transform: scale(.88);
  transition: opacity .3s ease, transform .3s ease;
  user-select: none;
}
.carousel__slide.is-active{ opacity:1; transform: scale(1); }
.carousel__slide img{ pointer-events: none; }
.slide-caption{
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.carousel__arrow{
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--red);
  font-size: 22px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: border-color .2s, transform .15s;
  z-index: 2;
}
.carousel__arrow:hover{ border-color: var(--red-dim); transform: scale(1.06); }
.carousel__dots{
  position:absolute;
  left:0; right:0; bottom:14px;
  display:flex;
  justify-content:center;
  gap: 8px;
}
.carousel__dot{
  width:8px; height:8px;
  border-radius:50%;
  border:none;
  background: var(--line);
  cursor:pointer;
  padding:0;
}
.carousel__dot.is-active{ background: var(--red); box-shadow: 0 0 8px var(--red-glow); }

@media (max-width: 640px){
  .carousel__track{ padding: 10px 6%; }
  .carousel__arrow{ display:none; }
}

/* ============ PURPOSE / BACKGROUND PANELS ============ */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  position:relative;
}
.panel::before, .panel::after{
  content:"";
  position:absolute;
  width:16px; height:16px;
  border: 2px solid var(--red);
}
.panel::before{ top:-1px; left:-1px; border-right:none; border-bottom:none; }
.panel::after{ bottom:-1px; right:-1px; border-left:none; border-top:none; }
.panel__title{ font-family: var(--font-display); font-size: 20px; margin: 0 0 16px; }
.panel__text{ color: var(--text-muted); margin: 0 0 14px; }
.checklist li{
  padding: 10px 0 10px 26px;
  border-bottom: 1px dashed var(--line);
  position: relative;
  color: var(--text);
}
.checklist li:last-child{ border-bottom:none; }
.checklist li::before{
  content:"✓";
  position:absolute;
  left:0;
  color: var(--cyan);
  font-weight:700;
}

/* ============ TECH GRID ============ */
.tech-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 60px;
}
.tech-card{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 12px;
  text-align:center;
  transition: border-color .2s, transform .2s;
}
.tech-card:hover{ border-color: var(--red-dim); transform: translateY(-4px); }
.tech-card__glyph{ display:block; font-size: 26px; color: var(--red); margin-bottom: 10px; }
.tech-card__name{ display:block; font-family: var(--font-display); font-size: 13px; letter-spacing: .5px; margin-bottom: 6px;}
.tech-card__desc{ display:block; font-size: 13px; color: var(--text-faint); }

.flow{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
}
.flow__step{
  border: 1px solid var(--line);
  background: var(--bg-panel-2);
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--text-muted);
}
.flow__arrow{ color: var(--red); }

/* ============ DOWNLOAD ============ */
.section--download{ text-align:center; }
.download-panel{
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(255,45,61,.08), var(--bg-panel));
  border-radius: 8px;
  padding: 64px 32px;
}
.specs{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 40px auto 0;
}
.specs__item{
  border-top: 1px solid var(--line);
  padding-top: 14px;
  text-align:left;
}
.specs__item span{ display:block; font-size: 12px; color: var(--text-faint); letter-spacing: 1px; margin-bottom:4px;}
.specs__item strong{ font-size: 15px; color: var(--text); font-weight:600; }

/* ============ FEEDBACK FORM ============ */
.feedback-form{
  max-width: 640px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px;
}
.field{ display:flex; flex-direction:column; gap:8px; }
.field--full{ grid-column: 1 / -1; }
.field label{ font-size: 13px; letter-spacing: 1px; color: var(--text-muted); font-family: var(--font-display); }
.optional{ color: var(--text-faint); font-family: var(--font-body); text-transform:none; letter-spacing:0; }
.field input, .field select, .field textarea{
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,45,61,.15);
}
.rating{ display:flex; gap:6px; }
.rating__star{
  background:none; border:none; font-size: 26px; color: var(--line); cursor:pointer; transition: color .15s, transform .1s;
}
.rating__star:hover{ transform: scale(1.15); }
.rating__star.is-active{ color: var(--red); text-shadow: 0 0 10px var(--red-glow); }
.feedback-status{
  grid-column: 1/-1;
  text-align:center;
  min-height: 20px;
  font-size: 14px;
  margin:0;
  color: var(--cyan);
}
.feedback-status.is-error{ color: var(--red); }
.feedback-note{
  max-width: 640px;
  margin: 18px auto 0;
  text-align:center;
  font-size: 14px;
  color: var(--text-faint);
}
.feedback-note a{ color: var(--cyan); border-bottom: 1px dotted var(--cyan-dim); }

/* ============ ADMIN PAGE ============ */
.admin-wrap{ max-width: 960px; margin: 0 auto; padding: 60px 24px 100px; position:relative; z-index:1; }
.admin-warning{
  border: 1px solid var(--red);
  background: var(--bg-panel);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-faint);
}
.admin-warning strong{ color: var(--text); }
.admin-warning code{
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
}
.admin-header{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom: 28px;}
.admin-table-wrap{
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow:auto;
  background: var(--bg-panel);
}
table.admin-table{ width:100%; border-collapse: collapse; font-size: 15px; }
table.admin-table th, table.admin-table td{
  text-align:left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  max-width: 260px;
  overflow:hidden;
  text-overflow: ellipsis;
}
table.admin-table th{
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-faint);
  background: var(--bg-panel-2);
}
table.admin-table tr:last-child td{ border-bottom:none; }
.admin-empty{ text-align:center; padding: 60px 20px; color: var(--text-faint); }

/* ============ FOOTER ============ */
.footer{
  text-align:center;
  padding: 48px 24px 60px;
  color: var(--text-faint);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
.footer__small{ font-size: 12px; margin-top: 6px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__stage{ min-height: 380px; margin-top: 40px; }
  .split{ grid-template-columns: 1fr; }
  .tech-grid{ grid-template-columns: repeat(2, 1fr); }
  .specs{ grid-template-columns: repeat(2, 1fr); }
  .feedback-form{ grid-template-columns: 1fr; padding: 28px; }
  .nav__links{ gap: 14px; font-size: 13px; }
  .stat-card{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .phone-frame__scan, .nav__dot{ animation: none; }
}
