/* ============================================================
   GLOBAL.CSS — Veraxiss shared foundation
   Fonts: Syne (headings) · DM Mono (body)
   Base: #020408
   ============================================================ */


/* ---- CSS Variables ---- */
:root {
  --teal: #00c8a8;
  --amber: #f7a130;
  --void: #020408;
  --white: #e8f0fa;
  --muted: #6b8aaa;
  --accent: var(--teal);
  /* overridden per page */

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;

  --nav-h: 72px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--void);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  cursor: auto;
  animation: pageFadeIn 0.45s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

a,
button {
  cursor: pointer;
}

/* ---- Noise Texture (SVG grain via filter) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ---- SVG Dot Grid ---- */
#dot-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ---- Feature flags ---- */
[data-decido-hide] { display: none !important; }

/* ---- Navigation ---- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: top 0.35s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

nav.nav-hidden {
  top: calc(-1 * var(--nav-h) - 2px);
}

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

.nav-logo-svg {
  height: 30px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-logo-svg {
  height: 30px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--void);
  font-weight: 700;
  letter-spacing: 0;
  transition: background 0.4s ease;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hero auth buttons (absolute, top-right inside hero section) */
.hero-auth-btns {
  position: absolute;
  top: 24px;
  right: 48px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-btn-login,
.hero-btn-cta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: #020408;
  background: #f5c400;
  padding: 10px 20px;
  border: 2px solid #f5c400;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn-login:hover,
.hero-btn-cta:hover {
  background: #ffd426;
  border-color: #ffd426;
  box-shadow: 0 4px 20px rgba(245, 196, 0, 0.45);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(2, 4, 8, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 28px 48px 32px;
  z-index: 99;
  flex-direction: column;
  gap: 24px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-mobile a:hover {
  color: var(--white);
}

/* ---- Glassmorphism Card System ---- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

/* ---- Section Label ---- */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border), transparent);
  max-width: 220px;
}

/* ---- Typing Cursor ---- */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 0.85em;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---- Scroll Reveal System ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 0.08s;
}

.reveal-d2 {
  transition-delay: 0.18s;
}

.reveal-d3 {
  transition-delay: 0.28s;
}

.reveal-d4 {
  transition-delay: 0.38s;
}

/* ---- Main Content ---- */
main {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
}

section {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Prevents grid/flex item from overflowing its column on narrow viewports */
.hero-text {
  min-width: 0;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 10px;
  background: var(--accent);
  color: var(--void);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

/* Pulsing glow rings */
.btn-primary::before,
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pulseRing 2.8s ease-out infinite;
}

.btn-primary::after {
  inset: -10px;
  border-radius: 16px;
  animation-delay: 0.7s;
}

@keyframes pulseRing {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.btn-no-anim::before,
.btn-no-anim::after {
  display: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

/* ---- Email Capture ---- */
.email-form {
  display: flex;
  max-width: 420px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
}

.email-form input {
  flex: 1;
  padding: 15px 20px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

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

.email-form button {
  padding: 15px 22px;
  background: var(--accent);
  border: none;
  color: var(--void);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.email-form button:hover {
  opacity: 0.85;
}

/* ---- Marquee ---- */
.marquee-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-inner {
  display: inline-flex;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-inner span {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 36px;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---- How It Works — Step System ---- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: start;
  gap: 0;
}

.step-connector {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px;
}

.step-line {
  width: 100%;
  height: 0;
  border-top: 2px dashed rgba(58, 80, 104, 0.6);
  position: relative;
  overflow: visible;
}

.step-line::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 1.1s var(--ease);
  box-shadow: 0 0 8px var(--accent);
}

.step-line.draw::after {
  width: 100%;
}

.step-item {
  padding: 0 20px;
}

.step-num {
  font-family: var(--font-body);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.25;
  display: block;
  margin-bottom: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.step-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ================================================================
   RESPONSIVE — 7-tier breakpoint system
   xs   < 360px  — tiny phones (iPhone SE 1st gen)
   sm   < 480px  — phones portrait
   md   < 768px  — large phones landscape / small tablet
   lg   < 960px  — tablet portrait → hamburger nav kicks in
   xl   < 1280px — tablet landscape / small laptop
   2xl  ≥ 1440px — large desktop
   tv   ≥ 1920px — TV / ultra-wide monitors
   4k   ≥ 2560px — 4K displays
   ================================================================ */

/* ---- Tablet portrait & below (< 960px) — hamburger nav ---- */
@media (max-width: 959px) {
  nav {
    padding: 0 28px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile {
    padding: 24px 28px 28px;
  }

  .container {
    padding: 0 28px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .step-connector {
    display: none;
  }

  .step-item {
    padding: 0;
  }
}

/* ---- Large phones / small tablet landscape (< 768px) ---- */
@media (max-width: 767px) {
  :root {
    --nav-h: 64px;
  }

  .section-label {
    margin-bottom: 36px;
  }

  .step-num {
    font-size: 2.2rem;
  }

  .step-title {
    font-size: 0.95rem;
  }

  .marquee-inner span {
    font-size: 0.72rem;
    padding: 0 24px;
  }
}

/* ---- Phones portrait (< 480px) ---- */
@media (max-width: 479px) {
  :root {
    --nav-h: 60px;
  }

  nav {
    padding: 0 20px;
  }

  .nav-mobile {
    padding: 20px 20px 24px;
  }

  .container {
    padding: 0 20px;
  }

  .btn-primary,
  .btn-ghost {
    padding: 13px 22px;
    font-size: 0.76rem;
  }

  .email-form {
    flex-direction: column;
    border-radius: 10px;
    max-width: 100%;
  }

  .email-form input {
    padding: 14px 18px;
  }

  .email-form button {
    padding: 14px 18px;
    border-radius: 0;
    font-size: 0.76rem;
  }

  .section-label {
    margin-bottom: 28px;
    font-size: 0.65rem;
  }

  .step-num {
    font-size: 2rem;
  }

  .step-title {
    font-size: 0.92rem;
  }

  .step-desc {
    font-size: 0.76rem;
  }

  .steps-grid {
    gap: 28px;
  }
}

/* ---- Tiny phones (< 360px) ---- */
@media (max-width: 359px) {
  :root {
    --nav-h: 56px;
  }

  nav {
    padding: 0 14px;
  }

  .nav-mobile {
    padding: 16px 14px 20px;
  }

  .container {
    padding: 0 14px;
  }

  .btn-primary,
  .btn-ghost {
    padding: 12px 18px;
    font-size: 0.72rem;
    width: 100%;
    justify-content: center;
  }

  .step-num {
    font-size: 1.8rem;
  }
}

/* ---- Laptop (≥ 1280px) ---- */
@media (min-width: 1280px) {
  .nav-logo-svg,
  .footer-logo-svg {
    height: 40px;
  }
}

/* ---- Large desktop (≥ 1440px) ---- */
@media (min-width: 1440px) {
  .container {
    max-width: 1500px;
  }

  .nav-logo-svg,
  .footer-logo-svg {
    height: 44px;
  }
}

/* ---- TV / Ultra-wide (≥ 1920px) ---- */
@media (min-width: 1920px) {
  :root {
    --nav-h: 90px;
  }

  nav {
    padding: 0 120px;
  }

  .nav-logo {
    font-size: 1.25rem;
    gap: 14px;
  }

  .nav-logo-mark {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
    border-radius: 8px;
  }

  .nav-logo-svg,
  .footer-logo-svg {
    height: 54px;
  }

  .nav-links {
    gap: 60px;
  }

  .nav-links a {
    font-size: 0.88rem;
  }

  .container {
    max-width: 1800px;
    padding: 0 120px;
  }

  .section-label {
    font-size: 0.85rem;
    margin-bottom: 64px;
  }

  .glass-card {
    border-radius: 22px;
  }

  .btn-primary,
  .btn-ghost {
    padding: 20px 52px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .email-form input {
    padding: 20px 28px;
    font-size: 0.95rem;
  }

  .email-form button {
    padding: 20px 32px;
    font-size: 0.88rem;
  }

  .step-num {
    font-size: 3.8rem;
  }

  .step-title {
    font-size: 1.3rem;
  }

  .step-desc {
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .marquee-inner span {
    font-size: 1rem;
    padding: 0 56px;
  }

  .marquee-wrap {
    animation-duration: 48s;
  }
}

/* ---- 4K displays (≥ 2560px) ---- */
@media (min-width: 2560px) {
  :root {
    --nav-h: 108px;
  }

  nav {
    padding: 0 200px;
  }

  .container {
    max-width: 2400px;
    padding: 0 200px;
  }

  .nav-logo {
    font-size: 1.5rem;
  }

  .nav-logo-mark {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-ghost {
    padding: 24px 64px;
    font-size: 1.05rem;
  }

  .step-num {
    font-size: 4.5rem;
  }

  .step-title {
    font-size: 1.5rem;
  }

  .step-desc {
    font-size: 1rem;
  }

  .marquee-inner span {
    font-size: 1.15rem;
    padding: 0 72px;
  }
}
/* ================================================================
   ACCESSIBILITY — REDUCED MOTION
   Respects prefers-reduced-motion: reduce (WCAG 2.3.3)
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    opacity: 1;
  }

  .reveal,
  .reveal-d1,
  .reveal-d2,
  .reveal-d3,
  .reveal-d4 {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .marquee-inner {
    animation: none;
  }

  .btn-primary::before,
  .btn-primary::after {
    animation: none;
  }

  .typing-cursor {
    animation: none;
  }

  #dot-grid {
    display: none;
  }

  .step-line::after {
    transition: none;
  }
}

/* ================================================================
   MOBILE ELEMENT CENTERING (≤ 767px)
   ================================================================ */
@media (max-width: 767px) {
  .section-label {
    justify-content: center;
  }

  .section-label::after {
    display: none;
  }

  .step-item {
    text-align: center;
  }

  .step-num {
    display: block;
    text-align: center;
  }
}
