/* CSS Document */

  :root{
    --bg: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --line: #e6e8ee;
    --card: #ffffff;
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    --shadow-soft: 0 6px 18px rgba(2, 6, 23, 0.06);
    --radius: 16px;
    --radius-sm: 12px;
    --max: 1100px;
  }

  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height:1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  a{ color: inherit; }
  a:hover{ opacity:0.92; }
  img{ max-width:100%; height:auto; display:block; }

  .wrap{
    max-width: var(--max);
    margin:0 auto;
    padding: 28px 18px;
  }
  @media (min-width: 760px){
    .wrap{ padding: 34px 24px; }
  }

  /* Typography */
  h1,h2,h3{ margin:0 0 12px 0; letter-spacing:-0.02em; }
  h1{
    font-size: clamp(30px, 4.2vw, 44px);
    line-height:1.08;
    margin-top: 10px;
  }
  h2{
    font-size: clamp(22px, 3vw, 30px);
    line-height:1.2;
    margin-top: 34px;
  }
  h3{
    font-size: 18px;
    line-height:1.25;
    margin-top: 0;
  }
  p{ margin: 0 0 14px 0; }
  .muted{ color: var(--muted); }
  .kicker{
    letter-spacing:0.12em;
    text-transform:uppercase;
    font-size:12px;
    color: var(--muted);
  }

  /* Layout helpers */
  .hero{ padding: 18px 0 10px; }
  .grid{ display:grid; gap: 16px; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  @media (min-width: 900px){
    .grid{ gap: 18px; }
    .grid-2{ grid-template-columns: 1.25fr 0.75fr; align-items:start; }
    .grid-3{ grid-template-columns: repeat(3, 1fr); }
  }

  /* Cards */
  .card{
    background: var(--card);
    border:1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-soft);
  }
  @media (min-width: 900px){
    .card{ padding: 20px; }
  }
  .card h3{ margin-bottom: 10px; }

  /* Buttons */
  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.85);
    text-decoration:none;
    color: var(--text);
    background: transparent;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, opacity 140ms ease;
    user-select: none;
  }
  .btn:hover{
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
  }
  .btn:active{
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.95;
  }
  .btn-solid{
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
  }
  .btn-solid:hover{
    background: #0b1220;
    border-color: #0b1220;
  }

  /* Lists */
  ul{ margin: 10px 0 0; padding-left: 18px; }
  li{ margin: 6px 0; }

  /* Message / alert */
  .msg{
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin: 14px 0;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: var(--text);
  }

  /* Forms */
  form label{ display:block; font-weight:600; margin-bottom: 2px; }
  input, textarea, select{
    width:100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    outline: none;
    transition: box-shadow 140ms ease, border-color 140ms ease;
    font: inherit;
  }
  textarea{ resize: vertical; min-height: 110px; }
  input:focus, textarea:focus, select:focus{
    border-color: rgba(15, 23, 42, 0.40);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
  }

  /* Section anchors: keep headings visible under any fixed header */
  [id]{ scroll-margin-top: 90px; }

  /* Optional: subtle section separation */
  .section{
    margin-top: 26px;
  }

  /* Minimal responsive nav support (if your header uses .main-nav.open) */
  .main-nav ul{ list-style:none; padding:0; margin:0; display:flex; gap:16px; align-items:center; }
  @media (max-width: 899px){
    .main-nav ul{ flex-wrap:wrap; gap:10px; }
    .main-nav.open ul{ display:flex; }
  }

  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior:auto; }
    .btn{ transition:none; }
  }

