/* ── reset & variables ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0b0a08;
  --surface:      #141210;
  --surface2:     #1d1a16;
  --border:       #2a2520;
  --border-hi:    rgba(224,112,20,.45);
  --accent:       #e07020;    /* TrueNext orange */
  --accent2:      #f0b020;    /* TrueNext gold */
  --accent-dim:   rgba(224,112,20,.1);
  --accent2-dim:  rgba(240,176,32,.08);
  --text:         #f2ede4;
  --muted:        #80705e;
  --muted2:       #504438;
  --green:        #22c55e;
  --radius:       13px;
  --radius-lg:    18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── layout ─────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── nav ────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(11,10,8,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 62px;
}
/* Logo — actual TrueNext brand image */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-wrap {
  background: #ffffff;
  border-radius: 7px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 26px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  margin-left: .5rem;
}
.nav-links a {
  font-size: .875rem;
  color: var(--muted);
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-spacer { flex: 1; }

/* ── buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  border: none;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  text-decoration: none;
  padding: .55rem 1.2rem;
}
.btn-primary {
  background: linear-gradient(135deg, #e07020 0%, #c86010 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(224,112,20,.35);
}
.btn-primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(224,112,20,.45);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text);
}
.btn-ghost:hover { background: var(--accent-dim); border-color: var(--accent); }
.btn-lg { padding: .75rem 1.75rem; font-size: .95rem; border-radius: 11px; }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-outline-gold {
  background: transparent;
  border: 1px solid rgba(240,176,32,.3);
  color: #f0b020;
}
.btn-outline-gold:hover { background: rgba(240,176,32,.08); border-color: #f0b020; }

/* ── badge ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--accent-dim);
  border: 1px solid rgba(224,112,20,.22);
  border-radius: 100px;
  padding: .3rem .9rem;
  font-size: .73rem;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 7px var(--green);
}

/* ── hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 110px;
  overflow: hidden;
  text-align: center;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(224,112,20,.1) 1px, transparent 0);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(224,112,20,.14) 0%, rgba(240,176,32,.06) 45%, transparent 70%);
  top: -280px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  filter: blur(60px);
}
.hero-glow-2 {
  position: absolute;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(240,176,32,.07) 0%, transparent 70%);
  bottom: -100px; right: -50px;
  pointer-events: none;
  filter: blur(80px);
}
.hero-content { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
  margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(135deg, #e07020 0%, #f0a020 55%, #f0b820 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── section ────────────────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .6rem;
}
.section-header p { font-size: 1.05rem; color: var(--muted); }
.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

/* ── cards ──────────────────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(224,112,20,.05) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 40px rgba(224,112,20,.08);
}
.card:hover::after { opacity: 1; }

/* icon block */
.icon-block {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(224,112,20,.18);
}
.icon-block.gold {
  background: var(--accent2-dim);
  border-color: rgba(240,176,32,.2);
}

/* ── platform block ─────────────────────────────────────────────────────────── */
.platform-bar {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
}
.platform-bar-label { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; flex-shrink: 0; }
.platform-bar-text { color: var(--text); }

/* ── steps ──────────────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #e07020 0%, #c86010 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 16px rgba(224,112,20,.35);
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step-card p  { font-size: .875rem; color: var(--muted); line-height: 1.65; }

/* ── terminal ───────────────────────────────────────────────────────────────── */
.terminal {
  background: #0c0b09;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: 'SF Mono', 'Fira Code', 'Menlo', monospace;
  font-size: .82rem;
  line-height: 1.75;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 60px rgba(224,112,20,.06);
}
.terminal-bar {
  background: #151310;
  border-bottom: 1px solid var(--border);
  padding: .7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.tbar-dot { width: 11px; height: 11px; border-radius: 50%; }
.tbar-dot.red    { background: #ff5f57; }
.tbar-dot.yellow { background: #ffbd2e; }
.tbar-dot.green  { background: #28c840; }
.terminal-title { margin-left: .5rem; font-size: .72rem; color: var(--muted2); font-family: inherit; }
.terminal-body  { padding: 1.5rem 1.75rem; }
.t-prompt { color: var(--accent); }
.t-cmd    { color: var(--text); }
.t-key    { color: var(--accent2); }
.t-val    { color: var(--green); }
.t-dim    { color: var(--muted2); }
.t-blank  { display: block; height: .85rem; }

/* ── feature grid ───────────────────────────────────────────────────────────── */
.features-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.features-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--border-hi); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p  { font-size: .875rem; color: var(--muted); line-height: 1.65; }

/* ── security cards ─────────────────────────────────────────────────────────── */
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.security-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.security-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.security-card p  { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.65; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.check-list li { display: flex; gap: .6rem; font-size: .85rem; color: var(--muted); }
.check-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── cta ────────────────────────────────────────────────────────────────────── */
.cta-section {
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(224,112,20,.09) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: .75rem;
  position: relative;
}
.cta-section p { font-size: 1.05rem; color: var(--muted); margin-bottom: 2rem; position: relative; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── page hero (inner pages) ────────────────────────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-content { position: relative; z-index: 1; }
.product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: .85;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}

/* ── footer ─────────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer-inner { display: flex; gap: 4rem; margin-bottom: 3rem; }
.footer-brand { flex: 1; }
.footer-tagline { font-size: .875rem; color: var(--muted); margin-top: .75rem; max-width: 240px; line-height: 1.6; }
.footer-links { display: flex; gap: 3.5rem; }
.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted2); margin-bottom: .2rem; }
.footer-col a { font-size: .875rem; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: .78rem; color: var(--muted2); }

/* ── animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp .6s ease both; }
.fade-up-2 { animation: fadeUp .6s .12s ease both; }
.fade-up-3 { animation: fadeUp .6s .24s ease both; }

/* ── responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .features-4 { grid-template-columns: repeat(2, 1fr); }
  .features-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 80px; }
  .section { padding: 72px 0; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}
@media (max-width: 540px) {
  .features-4, .features-3 { grid-template-columns: 1fr; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: center; }
}
