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

:root {
  --bg:          #ffffff;
  --bg-surface:  #f4f4f5;
  --bg-card:     #f9f9fa;
  --border:      #e0e2e6;
  --border-glow: #d4a800;
  --blue:        #d4a800;
  --blue-light:  #ffbb00;
  --cyan:        #b8860b;
  --cyan-dim:    rgba(212, 168, 0, 0.12);
  --green:       #16a34a;
  --green-dim:   rgba(22, 163, 74, 0.12);
  --red:         #dc2626;
  --red-dim:     rgba(220, 38, 38, 0.12);
  --yellow:      #ffbb00;
  --yellow-dim:  rgba(255, 187, 0, 0.15);
  --text:        #1a1a1a;
  --text-muted:  #555565;
  --text-faint:  #9ca3af;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 32px rgba(0, 0, 0, 0.08);
  --shadow-blue: 0 0 40px rgba(212, 168, 0, 0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }

.gradient-text {
  background: linear-gradient(135deg, #b8860b, var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--yellow), #d4a800);
  color: #1a1a1a;
  box-shadow: 0 0 24px rgba(255, 187, 0, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffcc33, var(--yellow));
  box-shadow: 0 0 36px rgba(255, 187, 0, 0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--cyan);
  background: var(--yellow-dim);
}

.btn-full { width: 100%; }

/* ─── NAV ────────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-bottom 0.3s, backdrop-filter 0.3s;
  padding: 0;
}

#nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 90px;
  width: auto;
  display: block;
}

.logo-bracket { color: var(--yellow); }
.logo:hover .logo-bracket { color: var(--cyan); }

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(0,0,0,0.05); }

.nav-cta {
  background: linear-gradient(135deg, var(--yellow), #d4a800) !important;
  color: #1a1a1a !important;
  padding: 8px 20px !important;
  box-shadow: 0 0 16px rgba(255, 187, 0, 0.3);
}
.nav-cta:hover {
  box-shadow: 0 0 24px rgba(255, 187, 0, 0.5) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── SECTION BASE ───────────────────────────────────────────────────── */
.section { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 1.05rem;
}

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--yellow-dim);
  border: 1px solid rgba(212, 168, 0, 0.3);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

/* ─── HERO ───────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 168, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 0, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 187, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 80px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
  background: rgba(255, 255, 255, 0.8);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 { margin-bottom: 24px; }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: var(--shadow);
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── SERVICES ───────────────────────────────────────────────────────── */
.services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

.service-card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(212, 168, 0, 0.1);
  border: 1px solid rgba(212, 168, 0, 0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cyan);
  transition: all 0.3s;
}

.service-card:hover .card-icon {
  background: rgba(212, 168, 0, 0.18);
  color: var(--yellow);
}

.card-icon svg { width: 26px; height: 26px; }

.service-card h3 { margin-bottom: 12px; }

.service-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags li {
  font-size: 0.75rem;
  color: var(--text-faint);
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-weight: 500;
}

/* ─── THREATVUE ──────────────────────────────────────────────────────── */
.threatvue {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tv-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.tv-content h2 { margin-bottom: 20px; }
.tv-content > p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.02rem;
  line-height: 1.75;
}
.tv-content strong { color: var(--cyan); font-weight: 600; }

.tv-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.tv-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tv-features svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ThreatVue mock terminal card */
.tv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(212, 168, 0, 0.1), var(--shadow);
  font-family: 'JetBrains Mono', monospace;
}

.tv-card-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tv-dot.red    { background: #ff5f57; }
.tv-dot.yellow { background: #febc2e; }
.tv-dot.green  { background: #28c840; }

.tv-card-title {
  margin-left: 8px;
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

.tv-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.tv-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 8px;
  opacity: 0;
  animation: alertAppear 0.4s ease forwards;
}

.tv-alert:nth-child(1) { animation-delay: 0.3s; }
.tv-alert:nth-child(2) { animation-delay: 0.8s; }
.tv-alert:nth-child(3) { animation-delay: 1.3s; }
.tv-alert:nth-child(4) { animation-delay: 1.8s; }
.tv-alert:nth-child(5) { animation-delay: 2.3s; }

@keyframes alertAppear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.tv-alert.high  { background: var(--red-dim);    border-left: 3px solid var(--red); }
.tv-alert.med   { background: var(--yellow-dim);  border-left: 3px solid var(--yellow); }
.tv-alert.low   { background: rgba(212,168,0,0.08); border-left: 3px solid var(--blue); }

.tv-alert-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 1px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.tv-alert.high  .tv-alert-label { background: var(--red);    color: #fff; }
.tv-alert.med   .tv-alert-label { background: var(--yellow); color: #1a1a1a; }
.tv-alert.low   .tv-alert-label { background: var(--blue);   color: #1a1a1a; }

.tv-alert span:last-child { color: var(--text-muted); }

.tv-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 0, 0.4), transparent);
  animation: scanLine 3s linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ─── WHY US ─────────────────────────────────────────────────────────── */
.why-us { background: var(--bg-surface); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.why-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212,168,0,0.12), rgba(255,187,0,0.08));
  border: 1px solid rgba(212,168,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--cyan);
}

.why-icon svg { width: 26px; height: 26px; }

.why-card h3 { margin-bottom: 12px; }

.why-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── CONTACT ────────────────────────────────────────────────────────── */
.contact {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.75;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.required { color: var(--yellow); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 187, 0, 0.15);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 14px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--green-dim);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: var(--radius);
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 14px 20px;
  margin-top: 16px;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo { display: inline-flex; margin-bottom: 16px; }

.footer-brand p {
  color: var(--text-faint);
  font-size: 0.9rem;
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

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

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom span { font-size: 0.82rem; color: var(--text-faint); }

.footer-tagline {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan) !important;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tv-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero-stats { gap: 20px; padding: 20px 24px; }
  .stat-divider { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 24px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 100px 0 0 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    border-top: 1px solid var(--border);
    gap: 8px;
    align-items: stretch;
  }
  .nav-links.open a {
    padding: 14px 16px;
    font-size: 1rem;
  }
  .nav-toggle { display: flex; }
  .tv-visual { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-links { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
}
