:root {
  --ih-primary: #2b35ea;
  --ih-primary-dark: #1a22b8;
  --ih-accent: #0b99f4;
  --ih-bg-alt: #f5fafd;
  --ih-bg-dark: #0f1543;
  --ih-text: #1b2340;
  --ih-text-muted: #555e77;
  --ih-border: #e4ebf5;
  --ih-radius: 14px;
  --ih-shadow: 0 4px 20px rgba(43, 53, 234, 0.06);
  --ih-shadow-hover: 0 8px 28px rgba(43, 53, 234, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ih-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--ih-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link svg { display: block; height: 38px; width: auto; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  color: var(--ih-text); text-decoration: none;
  font-weight: 500; font-size: 15px; transition: color 0.15s;
}
.site-nav a:hover { color: var(--ih-primary); }
.site-nav .nav-cta { color: var(--ih-primary); font-weight: 600; }

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(180deg, var(--ih-bg-alt) 0%, #fff 100%);
}
.hero .eyebrow {
  color: var(--ih-accent); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px); line-height: 1.15; font-weight: 700;
  margin: 0 0 20px; max-width: 780px;
}
.hero .lead {
  font-size: 18px; color: var(--ih-text-muted);
  max-width: 640px; margin: 0 0 32px;
}

/* ── Buttons ── */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--ih-primary); color: #fff; box-shadow: var(--ih-shadow);
}
.btn-primary:hover {
  background: var(--ih-primary-dark); box-shadow: var(--ih-shadow-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff; color: var(--ih-primary);
  border: 1.5px solid var(--ih-primary);
}
.btn-secondary:hover {
  background: var(--ih-primary); color: #fff;
  transform: translateY(-1px);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Compare block ── */
.compare-block { margin-top: 28px; }
.compare-label {
  font-size: 13px; font-weight: 500; color: var(--ih-text-muted);
  margin: 0 0 10px;
}
.compare-links { display: flex; flex-wrap: wrap; gap: 10px; }
.compare-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--ih-border);
  color: var(--ih-text); text-decoration: none;
  font-weight: 500; font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.compare-link:hover {
  border-color: var(--ih-primary);
  box-shadow: var(--ih-shadow);
  transform: translateY(-1px);
}
.compare-link .flag { font-size: 16px; }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-alt { background: var(--ih-bg-alt); }
.section h2 {
  font-size: clamp(26px, 3.5vw, 36px); font-weight: 700;
  margin: 0 0 24px; line-height: 1.2;
}
.section p { font-size: 16px; color: var(--ih-text-muted); margin: 0 0 16px; }
.section-intro { font-size: 17px; margin-bottom: 40px; }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 8px;
}
.card {
  background: #fff; border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius); padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--ih-shadow-hover); transform: translateY(-2px); }
.card h3 { font-size: 18px; font-weight: 600; color: var(--ih-primary); margin: 0 0 10px; }
.card p { font-size: 15px; margin: 0; }

/* ── Guides ── */
.guide { padding: 28px 0; border-bottom: 1px solid var(--ih-border); }
.guide:last-child { border-bottom: none; }
.guide h3 { font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.guide p { margin: 0; }

/* ── Contact ── */
.section-contact { background: var(--ih-bg-alt); }
.contact-card {
  background: #fff; border: 1px solid var(--ih-border);
  border-radius: var(--ih-radius); padding: 36px;
  margin-top: 32px; box-shadow: var(--ih-shadow);
}

/* ── Contact Form ── */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ih-text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--ih-border); border-radius: 10px;
  font-family: inherit; font-size: 15px; color: var(--ih-text);
  background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
  outline: none; resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--ih-primary);
  box-shadow: 0 0 0 3px rgba(43, 53, 234, 0.08);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e0294a;
}
.form-group .field-error {
  font-size: 12px; color: #e0294a; margin: 0;
}
.form-group textarea { min-height: 120px; }

.form-divider {
  border: none; border-top: 1px solid var(--ih-border);
  margin: 8px 0;
}

.form-note {
  font-size: 13px; color: var(--ih-text-muted); margin: 0;
}

/* Success state */
.form-success {
  display: none;
  text-align: center; padding: 32px 16px;
}
.form-success .success-icon {
  width: 52px; height: 52px;
  background: #e8faf0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.form-success .success-icon svg { color: #16a34a; }
.form-success h4 { font-size: 20px; font-weight: 700; margin: 0 0 8px; color: var(--ih-text); }
.form-success p { font-size: 15px; color: var(--ih-text-muted); margin: 0; }

@keyframes pop-in {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Footer ── */
.site-footer { background: var(--ih-bg-dark); color: #c9cfe8; padding: 48px 0 32px; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start;
}
.footer-brand-name {
  font-weight: 700; font-size: 18px; color: #fff; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.footer-tagline { font-size: 14px; color: #8a94bd; margin: 0; }
.footer-meta p {
  font-size: 13px; line-height: 1.6; margin: 0 0 12px; color: #a8b0d0;
}
.footer-meta .copy { font-size: 12px; color: #6e78a0; margin-top: 16px; }

/* ── Scroll animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ── Hamburger button ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 6px;
  background: none; border: none; cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-toggle:hover { background: var(--ih-bg-alt); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ih-text); border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0; width: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--ih-border);
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(43, 53, 234, 0.08);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 14px 24px;
    font-size: 16px;
    border-bottom: 1px solid var(--ih-border);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav .nav-cta { color: var(--ih-primary); }

  .site-header { position: sticky; }

  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .contact-card { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .fade-up { opacity: 1; transform: none; }
}
