/* ============================================
   ZEROTRUST IAM — Global Stylesheet
   Design: Dark enterprise cybersecurity
   Fonts: Syne (display) + DM Sans (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #020817;
  --bg-secondary: #040d1f;
  --bg-card: #080f22;
  --bg-card-hover: #0c1630;
  --accent-cyan: #00d4ff;
  --accent-cyan-dim: rgba(0, 212, 255, 0.15);
  --accent-cyan-glow: rgba(0, 212, 255, 0.4);
  --accent-red: #ff3b5c;
  --accent-red-dim: rgba(255, 59, 92, 0.12);
  --text-primary: #f0f4ff;
  --text-secondary: #8899bb;
  --text-muted: #4a5a7a;
  --border: rgba(0, 212, 255, 0.12);
  --border-hover: rgba(0, 212, 255, 0.35);
  --nav-height: 72px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
}

/* ── Reset ── */
*, *::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-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Grid noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(0,212,255,0.015) 40px, rgba(0,212,255,0.015) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(0,212,255,0.015) 40px, rgba(0,212,255,0.015) 41px);
  pointer-events: none;
  z-index: 0;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-secondary); font-weight: 300; max-width: 65ch; }

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

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

section { padding: 100px 0; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(2, 8, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-badge {
  width: 32px; height: 32px;
  background: var(--accent-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.nav-logo span { color: var(--text-primary); }
.nav-logo em { color: var(--accent-cyan); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-cyan-dim);
}

.nav-links a.active { color: var(--accent-cyan); }

.nav-cta {
  background: var(--accent-cyan) !important;
  color: var(--bg-primary) !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  background: rgba(0, 212, 255, 0.85) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-cyan-glow);
}

/* ── Hamburger (mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(0,212,255,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(0,100,200,0.05) 0%, transparent 60%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-cyan-dim);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease both;
}

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

.hero h1 {
  margin-bottom: 24px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero h1 .accent { color: var(--accent-cyan); }
.hero h1 .danger { color: var(--accent-red); }

.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 580px;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  font-weight: 600;
}

.btn-primary:hover {
  background: rgba(0, 212, 255, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-cyan-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--accent-red);
  color: #fff;
  font-weight: 600;
}

.btn-danger:hover {
  background: rgba(255, 59, 92, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,59,92,0.35);
}

/* ── Stats bar ── */
.stats-bar {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  padding: 24px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* ── Section headers ── */
.section-header {
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header h2 { margin-bottom: 16px; }

.section-header p {
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.card-icon {
  width: 48px; height: 48px;
  background: var(--accent-cyan-dim);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.card h3 { margin-bottom: 12px; color: var(--text-primary); }
.card p { font-size: 0.925rem; color: var(--text-secondary); max-width: 100%; }

/* ── Feature grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.features-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Problem cards ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,59,92,0.15);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s ease;
}

.problem-card:hover {
  border-color: rgba(255,59,92,0.35);
  background: rgba(255,59,92,0.04);
  transform: translateY(-4px);
}

.problem-card .card-icon {
  background: var(--accent-red-dim);
  border-color: rgba(255,59,92,0.25);
}

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step:last-child { border-bottom: none; }

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  opacity: 0.25;
  line-height: 1;
  padding-top: 4px;
}

.step-content h3 { margin-bottom: 12px; }
.step-content p { max-width: 100%; }

.step-tag {
  display: inline-block;
  background: var(--accent-cyan-dim);
  border: 1px solid var(--border-hover);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Tech table ── */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}

.tech-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.tech-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0,212,255,0.05);
}

.tech-table tr:last-child td { border-bottom: none; }

.tech-table tr:hover td { background: var(--accent-cyan-dim); }

.tech-table td:first-child { color: var(--text-secondary); }
.tech-table td:last-child {
  color: var(--accent-cyan);
  font-family: monospace;
  font-size: 0.85rem;
}

/* ── Callout box ── */
.callout {
  background: linear-gradient(135deg, rgba(0,212,255,0.06) 0%, rgba(0,100,200,0.04) 100%);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 64px 0;
}

.callout.danger {
  background: linear-gradient(135deg, rgba(255,59,92,0.06) 0%, rgba(200,0,50,0.04) 100%);
  border-color: rgba(255,59,92,0.25);
}

/* ── Benefits list ── */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  gap: 20px;
  align-items: start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
}

.benefit-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.benefit-check {
  width: 32px; height: 32px;
  background: var(--accent-cyan-dim);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-item h4 { margin-bottom: 6px; }
.benefit-item p { font-size: 0.9rem; max-width: 100%; }

/* ── Target audience ── */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.audience-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: all 0.25s;
}

.audience-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.audience-item .icon { font-size: 1.8rem; margin-bottom: 12px; }
.audience-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 100%;
  line-height: 1.4;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}

.faq-question {
  padding: 22px 28px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  transition: background 0.2s;
  user-select: none;
}

.faq-question:hover { background: var(--bg-card-hover); }

.faq-arrow {
  color: var(--accent-cyan);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  background: var(--bg-secondary);
  padding: 0 28px;
}

.faq-answer p {
  padding: 20px 0;
  font-size: 0.925rem;
  max-width: 100%;
}

.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-arrow { transform: rotate(45deg); }

/* ── CTA Section ── */
.cta-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 { margin-bottom: 20px; }
.cta-section p { font-size: 1.1rem; margin: 0 auto 40px; }
.cta-section .hero-ctas { justify-content: center; }

/* ── Contact form ── */
.contact-section { padding: 100px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.form-embed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  overflow: hidden;
}

.form-embed iframe {
  width: 100%;
  border: none;
  border-radius: calc(var(--radius-lg) - 6px);
  min-height: 480px;
}

.form-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}

.form-placeholder .icon { font-size: 2.5rem; margin-bottom: 16px; }
.form-placeholder h3 { margin-bottom: 12px; }
.form-placeholder p { font-size: 0.9rem; margin: 0 auto 24px; }

/* ── Demo list ── */
.demo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 36px;
}

.demo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.demo-list li::before {
  content: '→';
  color: var(--accent-cyan);
  font-weight: 600;
  flex-shrink: 0;
}

/* ── Hero page variants ── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.3;
}

/* ── Footer ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 16px;
  max-width: 28ch;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

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

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

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

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 100%;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid, .problem-grid, .features-grid-2 { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 1fr; }
  .step-number { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-ctas { flex-direction: column; }
  .btn { width: fit-content; }
}
