/* Tellglass — Sting9 visual system (light slate + amber) */

:root {
  --color-primary-dark: #1e3a5f;
  --color-primary: #334155;
  --color-primary-light: #475569;
  --color-secondary: #f8fafc;
  --color-secondary-gray: #e2e8f0;
  --color-accent-orange: #f59e0b;
  --color-accent-orange-dark: #d97706;
  --color-success: #10b981;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-light: #64748b;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-800: #92400e;
  --blue-50: #eff6ff;
  --blue-200: #bfdbfe;
  --blue-600: #2563eb;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: var(--slate-900);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-900);
  margin: 0 0 0.75rem;
}

a { color: var(--amber-600); text-decoration: none; }
a:hover { color: var(--amber-800); }

.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
}

.section {
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .section { padding-block: 6rem; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate-900);
}

.brand:hover { opacity: 0.85; color: var(--slate-900); }

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.brand span {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--slate-700);
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--slate-900);
}

.nav-toggle {
  display: inline-flex;
  border: 1px solid var(--slate-200);
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle svg { width: 1.25rem; height: 1.25rem; color: var(--slate-700); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--slate-200);
  padding: 0.75rem 0 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  color: var(--slate-700);
  font-weight: 500;
}

#nav-toggle:checked ~ .mobile-nav { display: block; }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav,
  #nav-toggle:checked ~ .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--slate-50), #fff);
  text-align: center;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23334155' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 64rem;
  margin-inline: auto;
}

.logo-glow {
  position: relative;
  display: inline-flex;
  margin-bottom: 2rem;
}

.logo-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber-500);
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.2;
}

.logo-glow-inner {
  position: relative;
  background: #fff;
  padding: 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.logo-glow img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  display: block;
}

.text-hero {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
}

.text-hero .accent {
  display: block;
  margin-top: 0.5rem;
  color: var(--amber-600);
}

.text-body-lg {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--slate-600);
  max-width: 48rem;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.threat-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}

.threat-stats strong { color: var(--slate-900); }

.pulse-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #ef4444;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cta-row { flex-direction: row; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--amber-500);
  color: #fff;
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  background: var(--amber-600);
  color: #fff;
  transform: scale(1.03);
}

.btn-dark {
  background: var(--slate-800);
  color: #fff;
  box-shadow: 0 10px 20px rgba(30, 41, 59, 0.3);
}

.btn-dark:hover {
  background: var(--slate-900);
  color: #fff;
  transform: scale(1.03);
}

.btn-block { width: 100%; }

.info-banner {
  max-width: 42rem;
  margin: 2rem auto 1.5rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  gap: 0.75rem;
  text-align: left;
  color: var(--blue-900);
  font-size: 0.875rem;
}

.info-banner strong { display: block; margin-bottom: 0.25rem; }
.info-banner a { color: var(--blue-800); font-weight: 600; text-decoration: underline; }

.privacy-note {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

/* Sections */
.section-muted {
  background: var(--slate-50);
  border-block: 1px solid var(--slate-200);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 36rem;
  margin: 0 auto;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-sidebar {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .grid-sidebar {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: var(--slate-300);
}

.card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.card-icon.emerald { color: var(--emerald-600); }
.card-icon.blue { color: var(--blue-600); }
.card-icon.purple { color: #7c3aed; }
.card-icon.amber { color: var(--amber-600); }

.stat-value {
  font-family: var(--font-body);
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-card { margin-top: 4rem; max-width: 56rem; margin-inline: auto; }

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.progress-head span:first-child {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.progress-head span:last-child {
  font-size: 1.5rem;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 1rem;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-600));
  border-radius: 999px;
  transition: width 0.8s ease;
}

.progress-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber-100);
  color: var(--amber-800);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1.25rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--slate-900);
  padding: 0.75rem 0.9rem;
  font: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(245, 158, 11, 0.35);
  border-color: var(--amber-500);
}

textarea { min-height: 10rem; resize: vertical; }

.alert {
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.success-panel {
  max-width: 28rem;
  margin: 3rem auto;
  text-align: center;
}

.success-panel .check {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--emerald-500);
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--slate-200);
}

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-600);
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--slate-600);
  font-size: 0.9rem;
}

.list-check li::before {
  content: "✓";
  color: var(--amber-500);
  margin-right: 0.5rem;
  font-weight: 700;
}

.page-hero {
  background: linear-gradient(to bottom, var(--slate-50), #fff);
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: #cbd5e1;
  border-top: 1px solid #1e293b;
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.2rem;
}

.footer-brand span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-body);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-copy {
  color: #94a3b8;
  max-width: 28rem;
  line-height: 1.6;
}

.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
