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

html {
  scroll-behavior: smooth;
}

/* ===== DESIGN TOKENS ===== */
:root {
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.6), 0 2px 4px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.7), 0 4px 8px rgba(0,0,0,0.5);

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;

  /* Malwarden Dark Theme Colors */
  --primary: #00D4FF;
  --secondary: #5B6B78;
  --accent: #EF4444;
  --background: #0A0D14;
  --text: #E8EDF5;
  --text-light: #7A8BA8;
  --surface-alt: #111827;
  --surface-card: #1a2235;
  --border: #1E2D42;

  /* Fonts */
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: #0A0D14;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER & NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #111827;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 1px 0 rgba(0, 212, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Text-based logo fallback (kept for compatibility) */
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.site-logo:hover {
  text-decoration: none;
}

/* SVG image logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.logo img {
  display: block;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
}

/* ===== HAMBURGER (mobile) ===== */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: rgba(255,255,255,0.85);
  position: relative;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after { top: 6px; }

.nav-toggle:checked + .nav-toggle-label span {
  background: transparent;
}
.nav-toggle:checked + .nav-toggle-label span::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle:checked + .nav-toggle-label span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #05080F;
  color: rgba(255,255,255,0.5);
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: rgba(255,255,255,0.7);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; }
h4 { font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 600; }

/* Eyebrow label above headings */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Prose body text */
.prose {
  max-width: 65ch;
  line-height: 1.8;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-dark {
  background: linear-gradient(135deg, #0d1626 0%, #0a1220 100%);
  color: rgba(255,255,255,0.95);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark p {
  color: rgba(255,255,255,0.95);
}

/* ===== CARDS & GRIDS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

/* ===== FORMS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-card);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

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

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

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

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* select option styling for dark mode */
.form-group select option {
  background: var(--surface-card);
  color: var(--text);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98) translateY(0);
}

.btn-primary {
  background: var(--primary);
  color: #0A0D14;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  background: #00b8d9;
  box-shadow: 0 6px 22px rgba(0, 212, 255, 0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #0A0D14;
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  opacity: 0.8;
}

.btn-ghost:hover {
  opacity: 1;
  background: rgba(255,255,255,0.08);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===== HERO ===== */
.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero: centered layout */
.hero-centered {
  padding: 4rem 0;
  text-align: center;
}

.hero-centered .hero-content {
  max-width: 760px;
  margin: 0 auto;
}

/* Hero: split layout (content left, media right) */
.hero-split {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--background) 0%, rgba(0, 212, 255, 0.04) 100%);
}

.hero-split .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-split .hero-content {
  text-align: left;
}

.hero-split .hero-media img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .hero-split .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-split .hero-content {
    text-align: center;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #111827;
    padding: 1rem 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: 20rem;
  }

  .site-nav a {
    padding: 0.75rem 1.5rem;
    display: block;
  }
}


/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.testimonial blockquote {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-light);
}

.testimonial .stars {
  color: #f59e0b;
  margin-bottom: 0.5rem;
}

/* ===== PRICING TABLE ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.15), var(--shadow-md);
  position: relative;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1rem 0;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

.pricing-card ul {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.pricing-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-card li::before {
  content: "\2713 ";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  color: var(--text);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  line-height: 1.6;
  color: var(--text-light);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

/* ===== TEAM GRID ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.team-member h3 {
  margin-bottom: 0.25rem;
}

.team-member .role {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== STATS COUNTER ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 2rem 0;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 212, 255, 0.05) 100%);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--text);
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.cta-banner h2 {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn {
  background: var(--primary);
  color: #0A0D14;
}

/* ===== MALWARDEN CUSTOM STYLES ===== */

/* Trust badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

/* Feature cards with icons */
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.75rem;
}

/* Setup checklist */
.setup-checklist {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.checklist-checkbox input {
  margin: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  appearance: none;
}

.checklist-checkbox input:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checklist-checkbox input:checked::after {
  content: "✓";
  color: #0A0D14;
  font-weight: bold;
}

/* Trial countdown */
.trial-countdown {
  background: rgba(0, 212, 255, 0.05);
  border-left: 4px solid var(--primary);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  text-align: center;
}

.countdown-timer {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "Courier New", monospace;
  margin: 1rem 0;
}

.countdown-timer.warning {
  color: var(--accent);
}

/* No credit card banner */
.no-cc-banner {
  background: rgba(34, 197, 94, 0.07);
  border-left: 4px solid #22c55e;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--text);
  font-size: 0.95rem;
}

.no-cc-banner svg {
  color: #22c55e;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Featured/most popular badge */
.badge-featured {
  background: var(--accent);
  color: rgba(255,255,255,0.95);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.badge-discount {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Signup form container */
.signup-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--surface-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

/* Onboarding breadcrumb */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span {
  color: var(--text-light);
}

/* Grid variations */
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Threat animation placeholder */
.threat-viz {
  aspect-ratio: 600/450;
  background: linear-gradient(135deg, var(--surface-alt) 0%, var(--surface-card) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

/* Form error styling */
.form-group.error input,
.form-group.error select {
  border-color: var(--accent);
}

.form-error {
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Success message */
.success-message {
  background: rgba(34, 197, 94, 0.07);
  border-left: 4px solid #22c55e;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  color: #4ade80;
  margin-bottom: 1.5rem;
  display: none;
}

.success-message.show {
  display: block;
}
