/* ====== Base ====== */
:root{
  --bg: #f7f9fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --brand: #2563eb;
  --brand-2: #22c55e;
  --ring: rgba(37,99,235,.25);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
}

a{ color:var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width:min(1140px, 92vw);
  margin-inline:auto;
  padding-inline: 4px;
}

/* ====== Topbar ====== */
.topbar{
  position:sticky; top:0; z-index:100;
  background:#fff;
  backdrop-filter: saturate(120%) blur(6px);
  box-shadow: 0 1px 0 rgba(2,8,23,.06);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height:64px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand-badge{
  display:inline-grid; place-items:center;
  width:36px; height:36px; border-radius:10px;
  font-weight:700; color:#fff; background:linear-gradient(135deg, var(--brand), #0ea5e9);
}
.brand-name{ color:var(--ink); font-weight:700; letter-spacing:.2px; }

.btn{
  appearance:none; border:0; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem; padding:.75rem 1rem; border-radius:12px; font-weight:600;
  transition:transform .04s ease, box-shadow .2s ease, background .2s ease, color .2s ease, opacity .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-cta{
  color:#fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 24px rgba(37,99,235,.25);
}
.btn-primary{
  color:#fff; background: var(--brand);
  box-shadow: 0 6px 18px rgba(37,99,235,.25);
}
.btn-ghost{
  color:var(--ink); background:#eef2ff;
}
.btn-ghost:hover{ background:#e2e8ff; }
.btn:focus-visible{ outline:2px solid var(--ring); outline-offset: 2px; }

/* ====== HERO ====== */
.hero{
  position:relative;
  padding: 28px 0 48px;
  background:
    radial-gradient(1200px 500px at 50% -150px, rgba(2,8,23,.08), transparent 60%),
    var(--hero-bg, none) center/cover no-repeat;
}
.hero::after{
  /* soft bottom fade */
  content:""; position:absolute; inset:auto 0 0 0; height:48px;
  background:linear-gradient(180deg, rgba(247,249,251,0), var(--bg));
}

/* two columns */
.hero-grid{
  display:grid; gap:28px; align-items:stretch;
  grid-template-columns: 1.1fr .9fr;
}

/* Card shell */
.hero-card{
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(2,8,23,.08);
  min-height: 360px;
  height: 100%;
}
.hero-left{
  padding: 28px;
  display:flex; flex-direction:column; justify-content:center;
}
.hero-left h1{
  margin:0 0 12px 0; font-weight:800; letter-spacing:.2px;
  font-size: clamp(28px, 3.2vw + 10px, 48px);
}
.hero-left .hl{ color: var(--brand); }
.lede{ font-size: 18px; color: var(--muted); margin: 6px 0 18px; }
.hero-actions{ display:flex; gap:12px; margin:8px 0 6px; }
.muted{ color: var(--muted); }
.small{ font-size: 12px; }

/* RIGHT hero: full-bleed image */
.hero-right{
  position:relative;
  padding:0;            /* remove padding to let the image touch edges */
  overflow:hidden;      /* clip image to rounded corners */
  display:block;
}
.hero-right img{
  display:block; width:100%; height:100%;
  object-fit: cover; border-radius: inherit;
}
.hero-right figcaption{
  position:absolute; left:18px; bottom:14px;
  background: rgba(255,255,255,.92);
  padding: 6px 10px; border-radius: 10px; color:var(--muted);
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(2,8,23,.15);
}

/* ====== Main sections ====== */
.main{ padding: 24px 0 64px; }
.grid-2{ display:grid; gap:28px; grid-template-columns: 1.05fr .95fr; }

.card{
  background:var(--card); border-radius:16px; padding:22px;
  box-shadow: 0 10px 30px rgba(2,8,23,.08);
}
.card-header{ display:flex; align-items:center; gap:12px; justify-content:space-between; }
.section-title{ margin:.2rem 0 1rem; font-size: 28px; }

.pill{
  display:inline-flex; align-items:center; gap:6px;
  background:#ecfdf5; color:#047857; border:1px solid #a7f3d0;
  padding:.35rem .55rem; border-radius:999px; font-size:12px; font-weight:700;
}

/* form */
.form{ display:grid; gap:14px; }
.fields-2{ display:grid; gap:14px; grid-template-columns: 1fr 1fr; }
.field span{ display:block; font-size:13px; color:var(--muted); margin-bottom:6px; }
.field input[type="text"],
.field input[type="number"],
.field input[type="date"]{
  width:100%; padding:.7rem .85rem; border-radius:12px; border:1px solid #e2e8f0; background:#fff;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field input:focus{ border-color:var(--brand); box-shadow: 0 0 0 4px var(--ring); outline:0; }

legend{ font-size:13px; color:var(--muted); margin-bottom:.35rem; }
.chip{ display:inline-flex; align-items:center; gap:.5rem; padding:.45rem .7rem; border:1px solid #e2e8f0; border-radius:999px; margin-right:.5rem; }
.chip input{ accent-color: var(--brand); }

.actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* quick links + teaser/result */
.quick-links{ display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 14px; }
.ql{
  display:inline-flex; align-items:center; gap:8px; padding:.5rem .7rem; border-radius:12px; border:1px dashed #e5e7eb; color:var(--muted);
}
.teaser{ margin-top:10px; }
.markdown{ margin-top:12px; }

/* Footer */
.footer{ padding:24px 0; }

/* ====== Responsive ====== */
@media (max-width: 980px){
  .hero-grid, .grid-2{
    grid-template-columns: 1fr;
  }
  .hero-left{ min-height: 340px; }
  .hero-right{ min-height: 320px; }
}
