/* Trazia landing page — shared stylesheet */
/* Brand: bg #0A0E1A, accent #3B82F6, body white/muted */

:root {
  --bg:        #0A0E1A;
  --bg-2:      #111827;
  --bg-3:      #1F2937;
  --accent:    #3B82F6;
  --accent-2:  #60A5FA;
  --accent-purple: #8B5CF6;
  --text:      #FFFFFF;
  --muted:     #94A3B8;
  --muted-2:   #64748B;
  --border:    rgba(255,255,255,0.08);

  --maxw:    1080px;
  --pad:     clamp(20px, 4vw, 48px);
  --radius:  16px;
  --gap:     clamp(16px, 3vw, 28px);

  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Subtle starfield via radial-gradient layers */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.2), transparent 50%),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(1.5px 1.5px at 90% 60%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,0.2), transparent 50%),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(circle at 50% 70%, rgba(59,130,246,0.10), transparent 40%);
  background-size: 120% 120%;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

/* ------- Layout primitives ------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  padding: clamp(60px, 10vw, 110px) 0;
}

/* ------- Nav ------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(10, 14, 26, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}

.nav-brand img { width: 36px; height: 36px; }

.nav-lang {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.nav-lang a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-lang a.active {
  color: var(--text);
  border-color: var(--border);
  background: var(--bg-2);
}

.nav-lang a:hover { text-decoration: none; color: var(--text); }

/* ------- Hero ------- */

.hero {
  text-align: center;
  padding: clamp(70px, 12vw, 140px) 0 clamp(50px, 8vw, 90px);
}

.hero-logo {
  width: clamp(80px, 12vw, 110px);
  height: clamp(80px, 12vw, 110px);
  margin: 0 auto 28px;
  filter: drop-shadow(0 8px 30px rgba(59, 130, 246, 0.35));
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #B0BEC5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  border-color: transparent;
}

.btn-coming {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 700;
}

.btn .store-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1px;
}

.btn .store-name {
  font-size: 16px;
  font-weight: 700;
}

/* ------- Cards ------- */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 56px;
  max-width: 580px;
  font-size: 17px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--accent);
}

.card-icon svg { width: 28px; height: 28px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ------- Roadmap ------- */

.roadmap {
  background: linear-gradient(180deg, transparent 0%, rgba(59,130,246,0.04) 50%, transparent 100%);
}

.roadmap-track {
  position: relative;
  padding: 40px 0;
}

.roadmap-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.phase {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.phase.current {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--bg-2) 0%, rgba(59, 130, 246, 0.08) 100%);
}

.phase-icon {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
}

.phase-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.phase-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}

.phase-status {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.phase.current .phase-status {
  color: var(--accent-2);
  font-weight: 600;
}

/* ------- Privacy block ------- */

.privacy-block {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px clamp(24px, 5vw, 72px);
  max-width: 760px;
  margin: 0 auto;
}

.privacy-block h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
}

.privacy-block p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 24px;
}

.privacy-block .pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pillar {
  background: var(--bg-3);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
}

.pillar::before {
  content: '✓ ';
  color: var(--accent);
  font-weight: 700;
}

/* ------- Footer ------- */

footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  font-size: 14px;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand-row img { width: 28px; height: 28px; }

.footer-brand-row span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

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

.footer-links a {
  color: var(--muted);
}

.footer-copy {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-2);
}

/* ------- Responsive ------- */

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .nav-brand { font-size: 18px; }
  .nav-brand img { width: 28px; height: 28px; }
}

/* ------- Legal pages ------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px var(--pad) 100px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text);
}

.legal h3 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 8px;
  font-weight: 600;
}

.legal p, .legal li {
  color: #CBD5E1;
  font-size: 15px;
  line-height: 1.75;
}

.legal ul, .legal ol {
  padding-left: 22px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.legal th, .legal td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.legal th {
  background: var(--bg-2);
  font-weight: 600;
}

.legal blockquote {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 8px;
  color: var(--muted);
}

.legal code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.legal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.legal a { color: var(--accent-2); }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ------- Accessibility helpers ------- */

.visually-hidden,
.visually-hidden * {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Honeypot field — bulletproof hidden, present in DOM for Netlify Forms but invisible to humans */
.hp-field,
.hp-field *,
input[name="bot-field"] {
  position: absolute !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* ------- Nav actions (lang switcher + CTA on right) ------- */

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

.btn-small {
  padding: 8px 14px;
  font-size: 14px;
}

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--accent); }

@media (max-width: 600px) {
  .nav-actions .btn-small { display: none; }
}

/* ------- Email signup form (pill-shaped) ------- */

.signup-form {
  display: flex;
  align-items: stretch;
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  max-width: 540px;
  margin: 36px auto 14px;
  padding: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.signup-form:focus-within {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
}

.signup-form input[type="email"] {
  flex: 1 1 200px;
  min-width: 160px;
  padding: 14px 22px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
}

.signup-form input[type="email"]::placeholder {
  color: var(--muted-2);
}

.signup-form .btn {
  white-space: nowrap;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
}

.signup-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

.signup-note a { color: var(--accent-2); }

@media (max-width: 540px) {
  .signup-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
  }
  .signup-form input[type="email"] {
    text-align: center;
    padding: 14px 16px;
  }
  .signup-form .btn {
    border-radius: 12px;
  }
}

/* ------- Triggers (replaces the 3-card grid) ------- */

.trigger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.trigger {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

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

.trigger-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 14px;
}

.trigger h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 700;
}

.trigger p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ------- Steps ("How it works") ------- */

.alt-bg {
  background: linear-gradient(180deg, transparent 0%, rgba(59,130,246,0.03) 50%, transparent 100%);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  counter-reset: step;
}

.steps li {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ------- Achievements showcase ------- */

.ach-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .ach-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .ach-showcase { grid-template-columns: 1fr; }
}

.ach {
  text-align: center;
  margin: 0;
  padding: 22px 14px 18px;
  background: rgba(31, 41, 55, 0.7);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ach:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.4);
}

.ach img {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  display: block;
}

.ach figcaption {
  font-size: 13px;
  line-height: 1.4;
}

.ach figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.ach figcaption span {
  color: var(--muted);
  font-size: 12px;
}

.footnote {
  text-align: center;
  color: var(--muted);
  margin-top: 28px;
  font-size: 14px;
}

/* ------- Signup section (full-width call-to-action block) ------- */

.signup-section .signup-block {
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.18), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(59, 130, 246, 0.18), transparent 50%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px clamp(24px, 5vw, 72px);
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.signup-block h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.signup-block p {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
}

.signup-block .signup-form {
  margin: 0 auto 16px;
}

.signup-block .signup-note {
  margin: 0 auto;
}

/* ------- 3D Globe background (Three.js + globe.gl canvas) ------- */

.bg-globe-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  opacity: 0.45;
}

.bg-globe-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Dark scrim over the globe to keep text readable.
   Sits between globe (z:-2) and content (z:0). */
.globe-scrim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 45%,
      rgba(10, 14, 26, 0.78) 0%,
      rgba(10, 14, 26, 0.55) 35%,
      rgba(10, 14, 26, 0.30) 65%,
      rgba(10, 14, 26, 0.10) 100%
    ),
    linear-gradient(180deg, rgba(10,14,26,0.30) 0%, rgba(10,14,26,0.10) 50%, rgba(10,14,26,0.40) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .bg-globe-wrap { opacity: 0.35; }
}

/* Mobile: less obtrusive */
@media (max-width: 600px) {
  .bg-globe-wrap { opacity: 0.32; }
  .globe-scrim {
    background:
      radial-gradient(
        ellipse 100% 70% at 50% 45%,
        rgba(10, 14, 26, 0.85) 0%,
        rgba(10, 14, 26, 0.65) 50%,
        rgba(10, 14, 26, 0.45) 100%
      );
  }
}
