/* arsensecurity.com — Premium White / Architectural Design System */
:root {
  --bg:           #ffffff;
  --bg2:          #f8f8f6;
  --bg3:          #f0f0ed;
  --border:       #e2e2de;
  --border-dark:  #c8c8c4;
  --ink:          #0f0f0e;        /* near-black, Porsche-weight */
  --ink2:         #3a3a38;        /* body text */
  --ink3:         #767674;        /* muted */
  --ink4:         #aaaaaa;        /* placeholder / caption */
  --accent:       #0d1a2b;        /* deep midnight navy — structural anchor */
  --accent-blue:  #1e40af;        /* electric clarity */
  --accent-gold:  #b8873a;        /* Porsche warmth — use sparingly */
  --danger:       #c0392b;
  --success:      #1a7a4a;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --serif:        'Playfair Display', Georgia, 'Times New Roman', serif;
  --mono:         'JetBrains Mono', 'Fira Code', monospace;
  --r:            6px;
  --r-lg:         12px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:       0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --transition:   0.18s ease;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ── TYPOGRAPHY ───────────────────────────────── */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
p { color: var(--ink3); }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink4);
  margin-bottom: 14px;
}

/* ── NAV ──────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), padding var(--transition), box-shadow var(--transition);
}
#nav.scrolled {
  border-bottom-color: var(--border);
  padding: 14px 48px;
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.nav-logo .accent { color: var(--accent-blue); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: var(--ink3);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  color: var(--ink) !important;
  border: 1.5px solid var(--ink) !important;
  padding: 7px 18px !important;
  border-radius: var(--r) !important;
  font-weight: 500 !important;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover { background: var(--ink) !important; color: #fff !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: var(--transition); }
@media(max-width:768px){
  #nav { padding: 16px 20px; }
  #nav.scrolled { padding: 12px 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px 24px 32px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
}

/* ── HERO ─────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
  padding-top: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  width: 100%;
  padding: 80px 0 60px;
}
@media(max-width:1024px){.hero-grid{grid-template-columns:1fr;gap:48px;padding:80px 0 60px;}}
@media(max-width:1024px){.hero-visual{display:none;}}
/* Architectural grid background */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.45;
  pointer-events: none;
}
/* Fade grid at edges */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, var(--bg) 90%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  color: var(--ink3);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  background: var(--bg2);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100%{box-shadow:0 0 0 3px rgba(26,122,74,0.15)}
  50%{box-shadow:0 0 0 6px rgba(26,122,74,0.08)}
}
#hero h1 {
  margin-bottom: 24px;
  line-height: 1.08;
}
#hero h1 em {
  font-style: italic;
  color: var(--accent-blue);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink3);
  max-width: 600px;
  margin-bottom: 40px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  color: var(--ink2);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 450;
  border: 1.5px solid var(--border-dark);
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Hero stats — McKinsey data bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.stat { flex: 1; padding-right: 32px; }
.stat-n {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-l { font-size: 12px; color: var(--ink4); letter-spacing: 0.02em; }
.stat-div { width: 1px; height: 48px; background: var(--border); margin-right: 32px; flex-shrink: 0; }
@media(max-width:600px){
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-div { display: none; }
  .stat { flex: 0 0 45%; }
}

/* Hero visual — live threat panel */
.hero-visual {
  background: var(--accent);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(13,26,43,0.28), 0 4px 16px rgba(0,0,0,0.12);
  font-family: var(--mono);
  position: relative;
}
.hv-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
}
.hv-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px rgba(40,200,64,0.6);
  animation: pulse-green 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%,100%{box-shadow:0 0 6px rgba(40,200,64,0.6)}
  50%{box-shadow:0 0 12px rgba(40,200,64,0.9)}
}
.hv-clock { margin-left: auto; color: rgba(255,255,255,0.25); font-size: 10px; }
.hv-feed { padding: 6px 0; }
.hv-row {
  display: grid;
  grid-template-columns: 68px 112px 1fr 36px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 11px;
  opacity: 0;
  transform: translateX(6px);
  animation: hv-in 0.35s ease forwards;
}
@keyframes hv-in { to{opacity:1;transform:none} }
.hv-r1{animation-delay:0.1s} .hv-r2{animation-delay:0.5s}
.hv-r3{animation-delay:0.9s} .hv-r4{animation-delay:1.3s}
.hv-r5{animation-delay:1.7s} .hv-r6{animation-delay:2.1s}
.hv-r7{animation-delay:2.5s}
.hv-badge {
  font-size: 9px; letter-spacing: 0.08em; font-weight: 600;
  padding: 2px 7px; border-radius: 3px; text-align: center;
}
.hv-blocked { background: rgba(220,53,69,0.18); color: #ff6b7a; border: 1px solid rgba(220,53,69,0.3); }
.hv-detect  { background: rgba(255,193,7,0.12);  color: #ffd060; border: 1px solid rgba(255,193,7,0.25); }
.hv-learn   { background: rgba(90,200,245,0.12); color: #5ac8f5; border: 1px solid rgba(90,200,245,0.25); }
.hv-ip   { color: rgba(255,255,255,0.65); font-size: 10.5px; }
.hv-type { color: rgba(255,255,255,0.35); font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hv-ms   { color: rgba(255,255,255,0.3); font-size: 10px; text-align: right; }
.hv-footer {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
  gap: 0;
}
.hv-fstat { flex: 1; text-align: center; }
.hv-fn {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1;
  margin-bottom: 3px;
}
.hv-fn.hv-green { color: #28c840; }
.hv-fl { font-size: 9.5px; color: rgba(255,255,255,0.3); letter-spacing: 0.08em; }
.hv-fdiv { width: 1px; height: 32px; background: rgba(255,255,255,0.08); }

/* ── ABOUT / IMPACT ───────────────────────────── */
#impact {
  padding: 100px 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media(max-width:768px){ .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; font-size: 15.5px; }
.about-certs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.cert {
  font-size: 11.5px;
  font-family: var(--mono);
  color: var(--ink3);
  border: 1px solid var(--border-dark);
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* Status card — replaces terminal widget */
.about-terminal {
  background: var(--accent);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.t-title { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4); margin-left: 8px; letter-spacing: 0.06em; }
.terminal-body { padding: 20px 18px 24px; }
.t-line { font-family: var(--mono); font-size: 12px; line-height: 1.9; color: rgba(255,255,255,0.5); }
.t-out { color: rgba(255,255,255,0.7); }
.t-prompt { color: rgba(255,255,255,0.3); }
.t-cmd { color: rgba(255,255,255,0.6); }
.t-green { color: #28c840; }
.t-cyan { color: #5ac8f5; }
.t-cursor { animation: blink 1.1s step-end infinite; color: rgba(255,255,255,0.7); }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── SYSTEM SHOWCASE ──────────────────────────── */
#how {
  padding: 100px 0 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.how-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}
@media(max-width:768px){ .how-header { grid-template-columns: 1fr; gap: 20px; } }
.how-header h2 { margin: 0; }
.diag-intro {
  font-size: 15px;
  color: var(--ink3);
  line-height: 1.8;
  margin: 0;
  padding-top: 6px;
}

/* Canvas area — dark by design (product showcase element) */
.diag-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #06060e;
  box-shadow: var(--shadow);
}
#diagCanvas { width: 100%; display: block; min-height: 380px; }

.diag-counters {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.diag-counter {
  flex: 1;
  padding: 18px 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.diag-counter:last-child { border-right: none; }
.dc-n {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  line-height: 1;
  margin-bottom: 4px;
}
.dc-n.threat { color: #ff5555; }
.dc-n.blocked { color: #00e57a; }
.dc-n.ai { color: #5ac8f5; }
.dc-l { font-size: 10.5px; font-family: var(--mono); color: rgba(255,255,255,0.3); letter-spacing: 0.06em; }

.diag-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 0 4px;
}
.leg-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink4); }
.leg-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.leg-dot.threat { background: #ff5555; }
.leg-dot.perimeter { background: #ff9900; }
.leg-dot.normal { background: rgba(190,190,230,0.7); }
.leg-dot.blocked { background: #00e57a; }
.leg-dot.ai { background: #5ac8f5; }

/* ── EXPERTISE ────────────────────────────────── */
#expertise {
  padding: 100px 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
#expertise > .container > .section-label { margin-bottom: 10px; }
#expertise > .container > h2 { margin-bottom: 48px; }
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media(max-width:900px){ .expertise-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px){ .expertise-grid { grid-template-columns: 1fr; } }
.exp-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background var(--transition);
}
.exp-card:hover { background: var(--bg2); }
.exp-icon {
  width: 20px;
  height: 20px;
  color: var(--ink4);
  opacity: 0.7;
  margin-bottom: 16px;
}
.exp-icon svg { width: 100%; height: 100%; }
.exp-card h3 { font-size: 16.5px; margin-bottom: 10px; color: var(--ink); }
.exp-card p { font-size: 14px; color: var(--ink3); line-height: 1.65; margin-bottom: 16px; }
.exp-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.exp-tags li {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--ink4);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* ── WORK / SUCCESS STORIES ───────────────────── */
#work {
  padding: 100px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
#work > .container > .section-label { margin-bottom: 10px; }
#work > .container > h2 { margin-bottom: 48px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media(max-width:768px){ .projects-grid { grid-template-columns: 1fr; } }
.proj-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  background: var(--bg);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.proj-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-dark);
}
.proj-card.featured {
  grid-column: 1 / -1;
  background: var(--accent);
  border-color: transparent;
  color: rgba(255,255,255,0.85);
}
.proj-card.featured .proj-label { color: rgba(255,255,255,0.4); }
.proj-card.featured h3 { color: #fff; font-size: 22px; }
.proj-card.featured p { color: rgba(255,255,255,0.65); }
.proj-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink4);
  margin-bottom: 10px;
}
.proj-card h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.3;
}
.proj-card p { font-size: 14px; color: var(--ink3); line-height: 1.7; margin-bottom: 20px; }
.proj-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.metric-n {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.metric-l { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.03em; }
.proj-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.proj-tags li {
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--ink4);
}
.proj-card.featured .proj-tags li {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
}

/* ── CONTACT ──────────────────────────────────── */
#contact {
  padding: 100px 0;
  background: var(--bg2);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
@media(max-width:768px){ .contact-inner { grid-template-columns: 1fr; gap: 40px; } }
.contact-text h2 { margin-bottom: 16px; }
.contact-text p { font-size: 15px; color: var(--ink3); line-height: 1.75; margin-bottom: 24px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink3);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--ink); }
.contact-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--ink3); letter-spacing: 0.03em; }
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  padding: 11px 14px;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:480px){ .form-row { grid-template-columns: 1fr; } }
.btn-submit {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 13px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}
.btn-submit:hover { background: var(--accent); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status { font-size: 13px; padding: 10px 0; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* ── FOOTER ───────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink4);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.footer-copy { font-size: 12px; color: var(--ink4); }
