/* SND Security & Solutions — light theme, pleasant contrast */

:root {
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --bg-soft: #f0f2f5;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-muted: #6366f1;
  --accent-bg: #eef2ff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --font-heading: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--accent-muted);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  background-color: var(--bg-page);
  min-height: 100vh;
}

h1, h2, h3, .site-title {
  font-family: var(--font-heading);
}

/* Header: logo | nav | form (when visible) | lock */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.site-title:hover {
  color: var(--accent-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--text-primary);
}

/* Password form — hidden until lock clicked; appears between nav and lock, menu stays left */
.password-form {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.password-form.visible {
  display: flex;
}

.password-form input[type="password"] {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-page);
  color: var(--text-primary);
  width: 10rem;
  outline: none;
}

.password-form input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-bg);
}

.password-form input::placeholder {
  color: var(--text-secondary);
  opacity: 0.8;
}

.password-form button {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s;
}

.password-form button:hover {
  background: var(--accent-hover);
}

.password-form .auth-error {
  font-size: 0.875rem;
  color: #b91c1c;
}

/* Lock icon */
.lock-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-page);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.lock-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}

.lock-trigger svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Hero */
.hero {
  padding: 4rem 1.5rem;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-muted);
  background: var(--accent-bg);
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.cta-primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
}

.cta-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.section-intro {
  margin: 0 auto 2rem;
  max-width: 36rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Services — 8 cards */
.services {
  padding: 3rem 1.5rem 3rem;
  max-width: 64rem;
  margin: 0 auto;
}

.services h2,
.benefits h2,
.cta-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.services .section-intro,
.benefits .section-intro {
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  border-color: var(--accent-muted);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--accent-muted);
}

.service-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Benefits */
.benefits {
  padding: 3rem 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
}

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.benefits-list li {
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.benefits-list strong {
  color: var(--accent-muted);
  font-weight: 600;
}

/* CTA section */
.cta-section {
  padding: 4rem 1.5rem;
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  margin: 0 0 0.5rem;
}

.cta-section p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  background: var(--bg-card);
}

.site-footer p {
  margin: 0;
}

/* Client guide page */
.guide-main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.guide-content h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.guide-intro {
  margin: 0 0 2rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.guide-step {
  margin-bottom: 2.5rem;
}

.guide-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent-muted);
}

.guide-step p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.guide-step figure {
  margin: 0;
}

.guide-step img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
  background: var(--bg-soft);
}

.guide-step figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.back-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .header-right {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .password-form.visible {
    width: 100%;
    justify-content: flex-end;
  }

  .password-form input[type="password"] {
    flex: 1;
    min-width: 0;
  }
}
