/* =========================================================================
   Nobot Defense Technology Inc. — core stylesheet
   Dark · gender-neutral · modern · large type · Silicon Valley clean
   ========================================================================= */

:root {
  /* Surfaces */
  --bg:        #0a0b0d;
  --bg-elev:   #121419;
  --bg-elev-2: #1a1d24;
  --line:      #262a33;
  --line-soft: #1d2129;

  /* Text */
  --text:   #f5f6f7;
  --muted:  #9aa3ad;
  --faint:  #6b7280;

  /* Brand accents */
  --accent:    #e8412e;   /* signal red — "revolution" / Maple tie */
  --accent-2:  #38e8d0;   /* cyber teal — cybernetics channel */
  --accent-3:  #7c5cff;   /* deep violet — neurology / sister company */

  /* Effects */
  --radius:   14px;
  --radius-s: 10px;
  --maxw:     1180px;
  --shadow:   0 24px 60px -20px rgba(0,0,0,.7);
  --ease:     cubic-bezier(.16,.84,.44,1);

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-text:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ------------------------------------------------------------------ reset */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- typography */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: -.01em; }
h4 { font-size: 1.02rem; letter-spacing: .02em; }
p  { color: var(--muted); }
.lead { font-size: clamp(1.15rem, 2vw, 1.5rem); color: #cdd3da; line-height: 1.5; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .28em; font-size: .76rem; font-weight: 600;
  color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent-2); display: inline-block; }

.gradient-text {
  background: linear-gradient(100deg, var(--text) 0%, var(--text) 45%, var(--accent) 75%, var(--accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10,11,13,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(10,11,13,.9); }
.nav-wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { color: var(--text); display: inline-flex; align-items: center; }
.brand .logo { transition: transform .3s var(--ease); }
.brand:hover .logo { transform: translateY(-1px); }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 26px; padding: 0; }
.site-nav a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; position: relative; }
.site-nav a:hover { color: var(--text); }
.site-nav a.is-active { color: var(--text); }
.site-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-cta { display: flex; gap: 10px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  border: 1px solid transparent; transition: transform .15s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #ff5037; }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ layout */
section { position: relative; }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.maxw-md { max-width: 760px; }
.maxw-md.center { margin-inline: auto; }
.divider { height: 1px; background: var(--line-soft); border: 0; }

/* ------------------------------------------------------------------- hero */
.hero { padding-top: clamp(72px, 12vw, 150px); padding-bottom: clamp(60px, 9vw, 120px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background:
    radial-gradient(40% 60% at 20% 10%, rgba(232,65,46,.20), transparent 70%),
    radial-gradient(45% 65% at 85% 0%, rgba(56,232,208,.16), transparent 70%),
    radial-gradient(50% 60% at 60% 40%, rgba(124,92,255,.14), transparent 70%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { margin: 18px 0 8px; max-width: 14ch; }
.hero .lead { max-width: 56ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px 44px; margin-top: 56px; color: var(--faint); }
.hero-meta .stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--text); }
.hero-meta .stat span { font-size: .85rem; letter-spacing: .04em; }

/* grid background accent */
.grid-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 80%); opacity: .4;
}

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

.card {
  background: linear-gradient(180deg, var(--bg-elev) 0%, #0e1014 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: #34404d; box-shadow: var(--shadow); }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(56,232,208,.10); color: var(--accent-2); margin-bottom: 18px; font-size: 1.3rem;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; }
.card.accent-red .card-icon { background: rgba(232,65,46,.12); color: var(--accent); }
.card.accent-violet .card-icon { background: rgba(124,92,255,.14); color: var(--accent-3); }

/* feature split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.media-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-elev); aspect-ratio: 4/3; position: relative;
}

/* image placeholder */
.img-ph {
  width: 100%; height: 100%; min-height: 220px; display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(45deg, #14171d 0 12px, #11141a 12px 24px);
  color: var(--faint); font-family: var(--font-display); letter-spacing: .12em; font-size: .8rem;
  border-radius: inherit;
}
.img-ph span { display:block; opacity:.8; }

/* ---------------------------------------------------------------- timeline */
.timeline { position: relative; margin-top: 56px; }
.timeline::before { content:""; position:absolute; left: 11px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-3)); }
.tl-item { position: relative; padding: 0 0 38px 48px; }
.tl-item::before {
  content:""; position:absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent-2); box-shadow: 0 0 0 4px rgba(56,232,208,.12);
}
.tl-year { font-family: var(--font-display); font-weight: 700; color: var(--accent-2); font-size: 1.1rem; }
.tl-item h3 { font-size: 1.25rem; margin: 2px 0 6px; }
.tl-item p { font-size: .97rem; }

/* ---------------------------------------------------------------- callouts */
.cta-band {
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(232,65,46,.18), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(56,232,208,.14), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin: 18px auto 30px; max-width: 56ch; }

.pill { display:inline-block; padding:5px 12px; border:1px solid var(--line); border-radius:999px;
  font-size:.76rem; letter-spacing:.04em; color:var(--muted); background:var(--bg-elev); }
.pill.live { color: var(--accent-2); border-color: rgba(56,232,208,.4); }
.pill.live::before { content:""; display:inline-block; width:7px; height:7px; border-radius:50%;
  background: var(--accent-2); margin-right:7px; box-shadow:0 0 8px var(--accent-2); }

/* dual-use diagram */
.transfer {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; margin-top: 40px;
}
.transfer .node { background: var(--bg-elev); border:1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.transfer .node h3 { font-size: 1.3rem; }
.transfer .arrow { display:grid; place-items:center; color: var(--accent-2); font-size: 1.6rem; }
@media (max-width: 720px){ .transfer { grid-template-columns: 1fr; } .transfer .arrow { transform: rotate(90deg); } }

/* ------------------------------------------------------------- e-commerce */
.product-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.product {
  background: var(--bg-elev); border:1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display:flex; flex-direction:column; transition: border-color .2s, transform .2s var(--ease);
}
.product:hover { transform: translateY(-4px); border-color:#34404d; }
.product .product-media { aspect-ratio: 4/3; }
.product .product-body { padding: 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.product .product-body h3 { font-size:1.15rem; }
.product .price { font-family:var(--font-display); font-size:1.3rem; color:var(--text); }
.product .product-foot { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.badge-soon { font-size:.72rem; letter-spacing:.06em; color:var(--accent-3); border:1px solid rgba(124,92,255,.4); padding:4px 9px; border-radius:999px; }

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: #08090b; }
.footer-grid { display:grid; grid-template-columns: 1.6fr repeat(3, 1fr) 1.4fr; gap: 32px; padding-block: 64px 40px; }
.footer-logo { color: var(--text); margin-bottom: 16px; }
.footer-tag { color: var(--text); font-family: var(--font-display); font-size: 1.05rem; max-width: 24ch; }
.footer-legal { color: var(--faint); font-size:.85rem; margin-top:10px; }
.footer-col h4 { color: var(--text); text-transform: uppercase; letter-spacing:.14em; font-size:.74rem; margin-bottom:14px; }
.footer-col a { display:block; color: var(--muted); font-size:.92rem; padding:5px 0; transition:color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-sister p { font-size:.9rem; color:var(--muted); margin-bottom:8px; }
.footer-sister strong { color: var(--text); }
.footer-note { color: var(--faint); font-size:.82rem; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:18px; padding-block: 22px; border-top:1px solid var(--line-soft); flex-wrap:wrap; }
.footer-bottom p { font-size:.82rem; color: var(--faint); }
.footer-bottom nav { display:flex; gap:20px; }
.footer-bottom a { color: var(--muted); font-size:.82rem; }
.footer-bottom a:hover { color: var(--text); }

/* ------------------------------------------------------------------ flash */
.flash { padding: 12px 0; font-size:.92rem; }
.flash .container { display:flex; align-items:center; gap:10px; }
.flash-error   { background: rgba(232,65,46,.12);  color:#ffb3a8; border-block:1px solid rgba(232,65,46,.3); }
.flash-success { background: rgba(56,232,208,.10); color:#9ff3e6; border-block:1px solid rgba(56,232,208,.3); }
.flash-info    { background: rgba(124,92,255,.12); color:#ccbfff; border-block:1px solid rgba(124,92,255,.3); }

/* ------------------------------------------------------------------- auth */
.auth-wrap { min-height: 70vh; display:grid; place-items:center; padding-block: 60px; }
.auth-card { width:100%; max-width: 440px; background: var(--bg-elev); border:1px solid var(--line);
  border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.9rem; }
.auth-card .sub { color: var(--muted); margin: 8px 0 26px; font-size:.96rem; }
.field { margin-bottom: 18px; }
.field label { display:block; font-size:.85rem; color: var(--muted); margin-bottom:7px; font-weight:500; }
.field input, .field select, .field textarea {
  width:100%; background: var(--bg); border:1px solid var(--line); border-radius: var(--radius-s);
  padding: 13px 14px; color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(56,232,208,.15);
}
.field .hint { font-size:.78rem; color: var(--faint); margin-top:6px; }
.auth-alt { text-align:center; margin-top:20px; font-size:.9rem; color: var(--muted); }
.auth-alt a { color: var(--accent-2); }

/* ------------------------------------------------------------- dashboard */
.dash { padding-block: 48px 96px; }
.dash-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:36px; }
.dash-grid { display:grid; grid-template-columns: 260px 1fr; gap: 28px; align-items:start; }
.side-nav { background: var(--bg-elev); border:1px solid var(--line); border-radius: var(--radius); padding:16px; position:sticky; top:90px; }
.side-nav a { display:block; padding:11px 14px; border-radius: var(--radius-s); color: var(--muted); font-size:.95rem; }
.side-nav a:hover, .side-nav a.is-active { background: var(--bg-elev-2); color: var(--text); }
.panel { background: var(--bg-elev); border:1px solid var(--line); border-radius: var(--radius); padding:28px; margin-bottom:22px; }
.stat-row { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
.stat-box { background: var(--bg-elev); border:1px solid var(--line); border-radius: var(--radius); padding:22px; }
.stat-box .n { font-family:var(--font-display); font-size:2rem; }
.stat-box .l { color: var(--muted); font-size:.85rem; }

/* tables */
.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius: var(--radius); }
table.data { width:100%; border-collapse: collapse; font-size:.92rem; }
table.data th, table.data td { text-align:left; padding:13px 16px; border-bottom:1px solid var(--line-soft); }
table.data th { color: var(--muted); font-weight:600; font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; background: var(--bg-elev-2); }
table.data tr:last-child td { border-bottom:0; }
.tag { font-size:.74rem; padding:3px 9px; border-radius:999px; border:1px solid var(--line); }
.tag.ok { color:#9ff3e6; border-color: rgba(56,232,208,.4); }
.tag.warn { color:#ffd28a; border-color: rgba(255,180,80,.4); }
.tag.admin { color:#ccbfff; border-color: rgba(124,92,255,.4); }

/* ------------------------------------------------------------------ misc */
.feature-list { list-style:none; padding:0; display:grid; gap:14px; }
.feature-list li { display:flex; gap:12px; align-items:flex-start; color: var(--muted); }
.feature-list li::before { content:"▸"; color: var(--accent-2); margin-top:1px; }
.logo-rows { display:flex; flex-wrap:wrap; gap:14px 30px; align-items:center; opacity:.7; }

.note-box { border-left:3px solid var(--accent-3); background: rgba(124,92,255,.06); padding:16px 20px; border-radius:0 var(--radius-s) var(--radius-s) 0; }

/* reveal on scroll */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity:1; transform:none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 940px) {
  .grid-3, .grid-4, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .side-nav { position: static; }
}
@media (max-width: 760px) {
  .nav-toggle { display:flex; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items:flex-start;
    gap: 0; background: var(--bg-elev); border-bottom:1px solid var(--line);
    padding: 12px 24px 24px; transform: translateY(-120%); transition: transform .35s var(--ease); margin-left:0;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 4px; width:100%; }
  .site-nav ul a { display:block; padding:12px 0; font-size:1.05rem; }
  .nav-cta { width:100%; margin-top:12px; }
  .nav-cta .btn { flex:1; }
  .split, .grid-2 { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-3, .grid-4, .product-grid, .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap:28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity:1 !important; transform:none !important; transition:none; }
  .btn:hover, .card:hover, .product:hover { transform:none; }
}
