* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0f172a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #e2e8f0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #4f46e5; color: #fff; font-weight: 800; letter-spacing: -0.02em; }
.brand-name { font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 16px; }
.nav-link { color: #0f172a; text-decoration: none; font-weight: 600; }
.btn-nav { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 10px; }

.hero {
  padding: 40px 0 64px;
  background:
    radial-gradient(1000px 500px at 20% -200px, #c7d2fe 0%, transparent 60%),
    radial-gradient(1000px 500px at 80% -200px, #fde68a 0%, transparent 60%),
    linear-gradient(#ffffff, #ffffff);
}

.title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.subtitle {
  font-size: clamp(18px, 3vw, 23px);
  line-height: 1.6;
  color: #334155;
  margin: 0 0 14px;
}
.subtitle-lead { display: block; font-size: clamp(21px, 3.45vw, 30px); font-weight: 700; color: #0f172a; margin-bottom: 2px; }

.lead-form { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: stretch; justify-items: stretch; width: 100%; }

.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 14px; color: #0f172a; }
input[type="text"], input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
input:focus { border-color: rgba(99,102,241,0.8); box-shadow: 0 12px 30px -18px rgba(99,102,241,0.6); transform: translateY(-1px); }
.input-error { border-color: #f87171 !important; box-shadow: 0 0 0 3px rgba(248,113,113,0.2) !important; }
.form-error {
  margin: -4px 0 12px;
  font-size: 13px;
  color: #b91c1c;
  text-align: center;
}
.form-error.is-hidden { display: none; }
.form-callout { margin: 0; font-size: 13px; color: #64748b; text-align: center; }

.btn-primary {
  appearance: none;
  border: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 35px -18px rgba(99, 102, 241, 0.9);
  transition: transform 0.08s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-primary:hover { box-shadow: 0 22px 40px -16px rgba(99, 102, 241, 0.95); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 12px 24px -14px rgba(99, 102, 241, 0.8); }
.btn-primary:disabled {
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
  background: #dce3f9;
  color: #6b7280;
}
.btn-block { width: 100%; }

.btn-secondary { display: inline-block; padding: 10px 14px; border-radius: 10px; border: 1px solid #cbd5e1; text-decoration: none; color: #0f172a; font-weight: 700; }
.btn-secondary:hover { background: #f8fafc; }
.btn-link { display: inline-block; padding: 10px 0; margin-left: 10px; text-decoration: none; color: #4f46e5; font-weight: 700; }

.form-note { margin: 6px 2px 0; font-size: 13px; color: #475569; text-align: center; }
.form-note.is-hidden { display: none; }
.form-feedback {
  margin: 8px 0 0;
  min-height: 22px;
  font-size: 14px;
  text-align: center;
  color: #0f172a;
}
.form-feedback.error { color: #b91c1c; }
.form-feedback.success { color: #047857; }

.details { padding: 64px 0 96px; }
.details h2 { font-size: clamp(22px, 3.8vw, 32px); margin: 0 0 16px; }
.details-intro { color: #334155; line-height: 1.8; margin: 0 0 32px; max-width: 640px; }
.details-grid { display: grid; gap: 20px; }
.detail-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; background: #f8fafc; box-shadow: 0 10px 30px rgba(15,23,42,0.05); }
.detail-label { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: #4f46e5; color: #fff; font-weight: 700; margin-bottom: 12px; }
.detail-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #0f172a; }
.detail-card p { margin: 0; color: #334155; line-height: 1.7; }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.hero-illustration { width: 100%; max-width: 360px; display: block; margin: 0 auto 20px; height: auto; }
.hero-ctas { margin-top: 20px; }
.hero-form .card {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.92), rgba(237,242,255,0.96));
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 25px 60px -28px rgba(79, 70, 229, 0.55);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
}
.hero-form .card::before {
  content: "";
  position: absolute;
  inset: -80px -40px auto;
  height: 180px;
  background: radial-gradient(120px at 20% 30%, rgba(129, 140, 248, 0.35), transparent 65%),
              radial-gradient(140px at 80% 20%, rgba(99, 102, 241, 0.28), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
}
.card-title { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }

.hero-copy { text-align: left; }

@media (max-width: 640px) {
  .hero-copy { text-align: center; }
  .hero .title { font-size: clamp(34px, 6vw, 48px); font-weight: 800; }
  .hero-grid { gap: 18px; }
}

.site-footer { border-top: 1px solid #e2e8f0; background: #ffffff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.footer-brand { color: #334155; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #334155; text-decoration: none; }

@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 36px; }
  .details-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-card:nth-child(4), .detail-card:nth-child(5) { grid-column: span 3; }
}
