﻿/* Trident Secure — Brand Variables */
:root {
  --bg-primary: #081D33;
  --bg-surface: #0B2342;
  --bg-surface-2: #0E2D52;
  --accent-gold: #D4AF37;
  --accent-gold-hover: #E8C441;
  --accent-teal: #0097A7;
  --accent-blue: #0D47A1;
  --text-primary: #e8eaf0;
  --text-muted: #607484;
  --success: #3a6644;
  --info-blue: #4a9eff;
  --border: rgba(212, 175, 55, 0.2);
  --border-subtle: rgba(255,255,255,0.06);
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ──────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); line-height: 1.7; }
a { text-decoration: none; color: var(--accent-gold); }

.gold { color: var(--accent-gold); }
.muted { color: var(--text-muted); }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.75rem;
}

/* ─── LAYOUT ──────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ─── NAV ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 29, 51, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent-gold);
  color: var(--bg-primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--accent-gold-hover) !important; color: var(--bg-primary) !important; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

/* ─── HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212,175,55,0.1);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}
.hero-badge span.dot {
  width: 6px; height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--accent-gold); }
.hero-desc {
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  opacity: 0.22;
  pointer-events: none;
}
.hero-visual svg { width: 100%; height: auto; }
.hero-pillars {
  margin-top: 4rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-pillar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.hero-pillar svg { color: var(--accent-gold); }

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-primary);
}
.btn-primary:hover { background: var(--accent-gold-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(212,175,55,0.05); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-icon svg { width: 18px; height: 18px; }

/* ─── CARDS ───────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: var(--border); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  background: rgba(212,175,55,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-gold);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.9rem; }

/* ─── DIVIDER ─────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0;
}

/* ─── SECTION HEADER ──────────────────────────── */
.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { font-size: 1.05rem; max-width: 580px; }
.section-header.center p { margin: 0 auto; }

/* ─── PURPOSE ─────────────────────────────────── */
.purpose-bg { background: var(--bg-surface); }
.purpose-points { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.purpose-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-surface-2);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
}
.purpose-point-icon { color: var(--accent-gold); flex-shrink: 0; margin-top: 2px; }
.purpose-point-icon svg { width: 20px; height: 20px; }
.purpose-point h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.purpose-point p { font-size: 0.85rem; }
.purpose-visual {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.use-case-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--border);
  color: var(--accent-gold);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

/* ─── FEATURES ────────────────────────────────── */
.feature-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.feature-item svg { color: var(--accent-gold); flex-shrink: 0; width: 16px; height: 16px; }

/* ─── SECURITY ────────────────────────────────── */
.security-bg { background: var(--bg-primary); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
.security-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color var(--transition);
}
.security-item:hover { border-color: rgba(212,175,55,0.3); }
.security-item-icon {
  width: 40px; height: 40px;
  background: rgba(58,102,68,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #5ecf80;
  flex-shrink: 0;
}
.security-item-icon svg { width: 20px; height: 20px; }
.security-item h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
.security-item p { font-size: 0.82rem; }
.security-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.security-panel .big-stat {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1;
}
.security-panel .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* ─── SCREENS ─────────────────────────────────── */
.screens-bg { background: var(--bg-surface); }
.screens-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screens-scroll::-webkit-scrollbar { height: 4px; }
.screens-scroll::-webkit-scrollbar-track { background: var(--bg-surface-2); border-radius: 4px; }
.screens-scroll::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 4px; }
.screen-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: border-color var(--transition);
}
.screen-card:hover { border-color: var(--border); }
.screen-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.screen-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; }
.screen-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}
.status-done { background: rgba(58,102,68,0.3); color: #5ecf80; }
.status-progress { background: rgba(74,158,255,0.15); color: var(--info-blue); }
.status-planned { background: rgba(85,96,112,0.3); color: var(--text-muted); }

/* ─── DOWNLOAD ────────────────────────────────── */
.download-bg { background: var(--bg-primary); }
.download-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}
.download-card h2 { margin-bottom: 0.75rem; }
.download-card p { margin-bottom: 2rem; }
.download-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.download-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.download-meta-item .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.download-meta-item .value { font-size: 0.9rem; font-weight: 600; }
.download-warning {
  margin-top: 1.5rem;
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: left;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.download-warning svg { color: var(--accent-gold); flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; }

/* ─── STACK ───────────────────────────────────── */
.stack-bg { background: var(--bg-surface); }
.stack-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.stack-cell {
  background: var(--bg-surface);
  padding: 1.5rem;
}
.stack-cell .layer { font-size: 0.7rem; font-weight: 700; color: var(--accent-gold); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.3rem; }
.stack-cell .tech { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.stack-cell .note { font-size: 0.78rem; }

/* ─── FOOTER ──────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}
.footer-brand svg { width: 28px; height: 28px; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-gold); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ─── PAGE LOAD ANIMATIONS ──────────────────── */
@keyframes tsSlideUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes tsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-l1 { animation: tsSlideUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.anim-l2 { animation: tsSlideUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.18s both; }
.anim-l3 { animation: tsSlideUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.32s both; }
.anim-l4 { animation: tsSlideUp 0.65s cubic-bezier(0.22,1,0.36,1) 0.46s both; }
.anim-l5 { animation: tsFadeIn  0.9s  ease                        0.60s both; }
.anim-lv { animation: tsFadeIn  1.1s  ease                        0.08s both; }

/* ─── SCROLL REVEAL ──────────────────────────── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.in-view { opacity: 1; transform: translateY(0); }
.sr-d1 { transition-delay: 0.05s; }
.sr-d2 { transition-delay: 0.15s; }
.sr-d3 { transition-delay: 0.25s; }
.sr-d4 { transition-delay: 0.35s; }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .stack-row { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    gap: 1.25rem;
  }
  .download-card { padding: 2rem 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
