/* ============================================
   TREZOR DIGITAL — GLOBAL STYLES
   Armored corporate design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --bg-primary:    #0a0a0a;
  --bg-secondary:  #111111;
  --bg-card:       #161616;
  --bg-hover:      #1e1e1e;
  --border:        #252525;
  --border-bright: #3a3a3a;
  --gold:          #c9a84c;
  --gold-light:    #e8c96a;
  --gold-dim:      #8a6e2a;
  --text-primary:  #e8e8e8;
  --text-secondary:#9a9a9a;
  --text-dim:      #5a5a5a;
  --danger:        #c0392b;
  --font-main:     'Roboto', sans-serif;
  --font-mono:     'Roboto Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: var(--gold-dim); color: var(--text-primary); }

/* ── LINKS ── */
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

/* ══════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.logo-text span { color: var(--gold); }

nav { display: flex; align-items: center; gap: 4px; }

nav a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 2px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

nav a:hover { color: var(--gold); background: rgba(201,168,76,.07); }
nav a.active { color: var(--gold); border-bottom: 2px solid var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: #0a0a0a !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 2px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--gold-light) !important; color: #000 !important; }

/* ── MOBILE MENU ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: .3s;
}

/* ══════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════ */
.page-content { padding-top: 64px; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(201,168,76,.08) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201,168,76,.03) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(201,168,76,.03) 80px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; }
  50% { opacity:.3; }
}

.hero-title {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hero-title .accent { color: var(--gold); }
.hero-title .outline {
  -webkit-text-stroke: 1px rgba(255,255,255,.2);
  color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 560px;
  letter-spacing: .3px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
  font-family: var(--font-mono);
  letter-spacing: -1px;
}

.hero-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: var(--gold-light);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(201,168,76,.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,.05);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}
.btn-ghost:hover {
  background: rgba(201,168,76,.1);
  border-color: var(--gold);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #e74c3c; }

.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 12px; }

.btn svg, .btn .icon { width:16px; height:16px; flex-shrink:0; }

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
section {
  padding: 96px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 64px;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 48px;
}

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  transition: border-color .2s, transform .2s;
}

.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,.1);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: .3px;
}

.card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   GRIDS
══════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ══════════════════════════════════════════
   FEATURE LIST
══════════════════════════════════════════ */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}
.feature-list li::before {
  content: '▸';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 13px;
}

/* ══════════════════════════════════════════
   BADGE / TAGS
══════════════════════════════════════════ */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgba(201,168,76,.1);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
}

/* ══════════════════════════════════════════
   HIGHLIGHT / CTA BAND
══════════════════════════════════════════ */
.cta-band {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(201,168,76,.06) 0%, transparent 70%);
}

/* ══════════════════════════════════════════
   ACCORDION (FAQ)
══════════════════════════════════════════ */
.accordion { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }

.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 28px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-main);
  transition: background .2s;
}

.accordion-trigger:hover { background: var(--bg-hover); }

.accordion-trigger.open { color: var(--gold); }

.accordion-arrow {
  font-size: 18px;
  color: var(--gold);
  transition: transform .3s;
  flex-shrink: 0;
}
.accordion-trigger.open .accordion-arrow { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 0 28px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}
.accordion-body.open { display: block; }

/* ══════════════════════════════════════════
   TABLE
══════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  background: var(--bg-secondary);
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 16px 20px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

tr:hover td { background: var(--bg-hover); }

/* ══════════════════════════════════════════
   FORM
══════════════════════════════════════════ */
.form-group { margin-bottom: 24px; }

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 15px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}

textarea { resize: vertical; min-height: 140px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a84c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  font-size: 20px;
  margin-bottom: 16px;
  display: block;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════ */
.page-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40%;
  background: radial-gradient(ellipse at right center, rgba(201,168,76,.06) 0%, transparent 70%);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ══════════════════════════════════════════
   CODE BLOCK
══════════════════════════════════════════ */
.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  overflow-x: auto;
  line-height: 1.8;
}

.code-block .kw { color: var(--gold); font-weight: 500; }
.code-block .str { color: #98c379; }
.code-block .cm { color: var(--text-dim); font-style: italic; }

/* ══════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════ */
.timeline { position: relative; padding-left: 32px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--gold-dim);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════ */
.progress-item { margin-bottom: 24px; }

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-label { font-size: 14px; color: var(--text-secondary); }
.progress-value { font-size: 13px; color: var(--gold); font-family: var(--font-mono); }

.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════
   NOTICE BOX
══════════════════════════════════════════ */
.notice {
  padding: 20px 24px;
  border-radius: 4px;
  border-left: 3px solid;
  font-size: 14px;
  line-height: 1.7;
}
.notice-info { background: rgba(201,168,76,.07); border-color: var(--gold); color: var(--text-secondary); }
.notice-warn { background: rgba(192,57,43,.07); border-color: var(--danger); color: var(--text-secondary); }

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.text-gold { color: var(--gold); }
.text-dim  { color: var(--text-dim); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mono { font-family: var(--font-mono); }

.mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  nav { display: none; }
  .burger { display: flex; }

  nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
  }

  nav.open a {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .hero { min-height: auto; padding: 48px 0 64px; }
}
