:root {
  --navy: #0f172a;
  --indigo: #1e1b4b;
  --indigo-2: #312e81;
  --primary: #4f46e5;
  --accent: #22d3ee;
  --accent-dark: #06b6d4;
  --text: #1e293b;
  --muted: #556275;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--indigo);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(34, 211, 238, .3); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-sm { padding: 8px 18px; font-size: .95rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; box-shadow: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 27, 75, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.logo.small { font-size: 1.05rem; }
.logo.small svg { width: 26px; height: 26px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: #c7d2fe; text-decoration: none; font-weight: 500; transition: color .2s; }
.site-nav a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.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; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(34, 211, 238, .25), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(79, 70, 229, .45), transparent 60%),
    linear-gradient(160deg, var(--indigo) 0%, var(--navy) 100%);
  color: #fff;
  padding: 120px 0 130px;
}
.hero-inner { max-width: 860px; text-align: center; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 18px; }
.eyebrow.dark { color: var(--primary); margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.75rem); font-weight: 800; margin-bottom: 22px; }
.accent { background: linear-gradient(90deg, var(--accent), #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subline { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #cbd5e1; max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.card { grid-column: span 2; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:nth-child(4) { grid-column: 2 / span 2; }
.card:nth-child(5) { grid-column: 4 / span 2; }
.card:hover { transform: translateY(-4px); border-color: #c7d2fe; box-shadow: 0 16px 40px rgba(79, 70, 229, .14); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--indigo-2)); color: var(--accent); margin-bottom: 20px; }
.icon svg { width: 26px; height: 26px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--border); position: relative; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: var(--accent); font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--indigo-2) 0%, var(--indigo) 60%, var(--navy) 100%); color: #fff; text-align: center; }
.contact-inner { max-width: 760px; }
.contact h2 { color: #fff; font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
.contact p { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 32px; }
.contact .contact-email { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 0; font-size: 1.05rem; }
.contact-email svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.contact-email a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); white-space: nowrap; }
.contact-email a:hover { border-color: var(--accent); }

/* Quote form */
#quote { scroll-margin-top: 90px; }
.contact .quote-form {
  background: #fff; color: var(--text); text-align: left;
  border-radius: 18px; padding: 36px; margin-top: 8px;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .35);
}
.quote-form .form-title { color: var(--navy); font-size: 1.4rem; font-weight: 800; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; color: var(--navy); margin-bottom: 6px; }
.req { color: #e11d48; }
.opt { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #64748b; opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
.field [aria-invalid="true"] { border-color: #e11d48; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(225, 29, 72, .15); }
.field-error { color: #e11d48; font-size: .85rem; margin-top: 5px; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-submit { margin-top: 26px; cursor: pointer; font-family: inherit; width: 100%; }
.btn-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.contact .form-status { margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; font-size: 1rem; font-weight: 500; }
.form-status.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.form-status a { color: inherit; font-weight: 700; }
.contact .contact-email { flex-wrap: wrap; color: #cbd5e1; }

.contact .form-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: .95rem; color: var(--muted); }
.form-note svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }
.form-note a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form-note a:hover { color: var(--indigo-2); }

/* Upload */
.upload { background: var(--bg-alt); }
#upload { scroll-margin-top: 70px; }
.upload-steps { grid-template-columns: repeat(3, 1fr); }
.upload-steps strong { color: var(--navy); }
.copy-box { display: flex; align-items: stretch; margin-top: 14px; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: #f8fafc; }
.copy-box code { flex: 1; min-width: 0; padding: 10px 12px; font-family: inherit; font-size: .92rem; font-weight: 600; color: var(--navy); overflow-wrap: break-word; word-break: normal; align-self: center; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-left: 1.5px solid var(--border); background: var(--indigo); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; padding: 0 14px; cursor: pointer; min-width: 96px; justify-content: center; transition: background .2s; }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn:hover { background: var(--indigo-2); }
.copy-btn.copied { background: #047857; }
.copy-status { display: block; font-size: .85rem; color: #047857; margin-top: 6px; min-height: 1.2em; }
.upload-cta { text-align: center; margin-top: 44px; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.btn-primary svg { width: 18px; height: 18px; }
.btn-primary:hover { background: var(--indigo-2); border-color: var(--indigo-2); box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.upload-note { color: var(--muted); font-size: .92rem; margin: 16px auto 0; max-width: 520px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Footer */
.site-footer { background: var(--navy); color: #94a3b8; padding: 28px 0; font-size: .95rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .card:nth-child(4), .card:nth-child(5) { grid-column: auto; }
  .card:nth-child(5) { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .upload-steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--indigo); padding: 8px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .btn { margin-top: 16px; text-align: center; }
  .hero { padding: 80px 0 90px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .card:nth-child(5) { grid-column: auto; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .upload-cta .btn { width: 100%; justify-content: center; }
  .quote-form { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
