/* Base styles */
:root {
  --bg: #0b0c10;
  --panel: #111218;
  --panel-alt: #0f1117;
  --text: #e8ecf1;
  --muted: #aab4c0;
  --brand: #4f7cf8;
  --brand-600: #3f69de;
  --accent: #2ee6a6;
  --border: #202430;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Karla", ui-sans-serif, system-ui, -apple-system, Segoe UI,
    Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Global links */
a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: #7fa0ff;
}
a:active {
  color: var(--brand-600);
}
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(11, 12, 16, 0.6);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.logo-img {
  display: block;
  height: 48px;
  width: auto;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, border-color 160ms ease;
  flex-direction: column;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}
.nav-toggle .bar {
  display: block;

  color: var(--text);
  background: var(--text);
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease, width 180ms ease;
  transform-origin: center;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.nav-toggle.active {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--brand);
}
.nav-toggle.active .bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  width: 20px;
}
.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  width: 20px;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
}
.nav .divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  box-shadow: var(--shadow);
  font-weight: 600;
}
.btn:hover {
  filter: brightness(1.05);
}
.btn:active {
  transform: translateY(1px);
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}
.btn-sm {
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 1 !important;
  color: var(--text) !important;
}

/* Hero */
.hero {
  padding: 72px 0;
  border-bottom: none;
  background: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.4px;
}
.hero p {
  color: var(--muted);
  max-width: 700px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 56px 0;
}
.section.alt {
  border-top: none;
  border-bottom: none;
}
main > section:nth-of-type(odd) {
  background: var(--bg);
}
main > section:nth-of-type(even) {
  background: var(--bg);
}
.section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.2px;
}
.logo,
.site-header .logo,
h1,
h2,
h3 {
  font-family: "Roboto Condensed", ui-sans-serif, system-ui, -apple-system,
    Segoe UI, Roboto, Inter, "Helvetica Neue", Arial;
}
.section-intro {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Cards */
.grid {
  display: grid;
  gap: 16px;
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.card p {
  margin: 0;
  color: var(--muted);
}

/* Testimonials */
.testimonials {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.testimonial {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.testimonial blockquote {
  margin: 0 0 8px;
  font-style: italic;
  color: var(--text);
}
.testimonial figcaption {
  color: var(--muted);
  font-size: 14px;
}

/* FAQ */
.faq-list details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}
.faq-list p {
  color: var(--muted);
  margin: 8px 0 0;
}
.stats-media {
  margin: 16px 0 20px;
  display: flex;
  justify-content: center;
}
.stats-img {
  width: 100%;
  max-width: 920px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Form */
.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-row + .form-row {
  margin-top: 12px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full {
  grid-column: 1 / -1;
}
label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
input,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0c0e13;
  color: var(--text);
}
input::placeholder,
textarea::placeholder {
  color: #6b7280;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.form-status {
  color: var(--accent);
  font-weight: 600;
  min-height: 20px;
}
.error {
  border-color: #ef4444 !important;
}
.error-text {
  color: #ef4444;
  font-size: 13px;
  margin-top: -4px;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  background: #0128c4;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: flex-start;
}
.footer-brand address {
  font-style: normal;
  color: var(--muted);
}
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.footer-nav a {
  color: var(--brand);
  text-decoration: none;
}
.footer-nav a:hover {
  color: #7fa0ff;
}
.footer-copy {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero {
    padding: 56px 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    background: #0b0c10;
    border-bottom: 1px solid var(--border);
    transform-origin: top center;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
  }
  .nav.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
  }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav li {
    border-top: 1px solid var(--border);
  }
  .nav a,
  .nav .btn-sm {
    display: block;
    padding: 12px 20px;
  }
  .nav .divider {
    display: none;
  }
  .btn-sm {
    padding: 10px 14px;
  }
}

/* Prevent bleed between section backgrounds */
.section {
  overflow: hidden;
}
.stats-media {
  margin: 8px 0 20px;
}

/* Checkbox improvements */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
}
.checkbox a {
  text-decoration: underline;
}
input[type="checkbox"].error {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
}

/* Footer logo */
.footer-logo {
  display: block;
  height: 36px;
  width: auto;
}

/* Footer email emphasis */
.site-footer .footer-nav a[href^="mailto:"] {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 18px;
}
.site-footer .footer-nav a[href^="mailto:"]:hover {
  color: #ffffff;
}
