:root {
      --dark-blue: #003087;
      --medium-blue: #026CFF;
      --light-blue: #009CDE;
      --mustard: #FFC43A;
      --deep-navy: #071B3A;
      --soft-blue: #EAF4FF;
      --ice-blue: #F5FAFF;
      --charcoal: #1E293B;
      --slate: #64748B;
      --line: #E2E8F0;
      --white: #FFFFFF;
      --error: #B42318;
      --success: #067647;
      --shadow: 0 24px 60px rgba(7, 27, 58, 0.14);
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      color: var(--charcoal);
      background: var(--ice-blue);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.5;
    }

    a {
      color: var(--dark-blue);
      text-decoration: none;
    }

    img {
      display: block;
      max-width: 100%;
      height: auto;
    }

    button,
    input,
    textarea {
      font: inherit;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 20;
      border-bottom: 1px solid rgba(226, 232, 240, 0.78);
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(16px);
    }

    .nav {
      width: min(1180px, calc(100% - 40px));
      min-height: 74px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      min-width: 178px;
    }

    .brand img {
      width: 300px;
    }


    .menu-toggle {
      display: none;
      width: 42px;
      height: 42px;
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 0;
      color: var(--dark-blue);
      background: var(--white);
      cursor: pointer;
    }

    .menu-toggle span {
      display: block;
      width: 20px;
      height: 2px;
      margin: 5px auto;
      border-radius: 999px;
      background: currentColor;
      transition: transform 160ms ease, opacity 160ms ease;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: nowrap;
      gap: 8px;
      color: var(--dark-blue);
      font-size: 14px;
      font-weight: 800;
    }

    .nav-link,
    .nav-cta {
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 6px;
      padding: 0 12px;
      white-space: nowrap;
    }

    .nav-link:hover {
      background: var(--soft-blue);
    }

    .nav-cta {
      color: var(--white);
      background: var(--medium-blue);
    }

    .hero {
      background:
        linear-gradient(135deg, rgba(7, 27, 58, 0.98), rgba(0, 48, 135, 0.96)),
        var(--deep-navy);
      color: var(--white);
    }

    .hero-inner {
      width: min(1180px, calc(100% - 40px));
      min-height: auto;
      margin: 0 auto;
      padding: 112px 0 104px;
      display: grid;
      grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
      align-items: start;
      gap: 44px;
    }

    .eyebrow {
      width: fit-content;
      margin: 0 0 18px;
      border: 1px solid rgba(255, 196, 58, 0.48);
      border-radius: 999px;
      padding: 7px 12px;
      color: var(--mustard);
      background: rgba(255, 196, 58, 0.1);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    h1,
    h2,
    h3,
    p {
      margin-top: 0;
    }

    h1 {
      max-width: 680px;
      margin-bottom: 18px;
      font-size: clamp(36px, 5.4vw, 62px);
      line-height: 1.04;
      letter-spacing: 0;
    }

    .hero-copy {
      max-width: 610px;
      margin-bottom: 28px;
      color: rgba(255, 255, 255, 0.82);
      font-size: 18px;
      line-height: 1.65;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 12px;
    }

    .button {
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      border: 0;
      border-radius: 6px;
      padding: 0 18px;
      color: var(--white);
      background: var(--medium-blue);
      font-weight: 800;
      cursor: pointer;
      transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }

    .button:hover {
      transform: translateY(-1px);
      box-shadow: 0 14px 32px rgba(2, 108, 255, 0.28);
    }

    .button.secondary {
      border: 1px solid rgba(255, 255, 255, 0.28);
      background: rgba(255, 255, 255, 0.08);
    }

    .button.secondary:hover {
      box-shadow: none;
      background: rgba(255, 255, 255, 0.14);
    }

    .builder-form .button.secondary {
      border: 1px solid var(--line);
      color: inherit;
      background: var(--white);
    }

    .builder-form .button.secondary:hover {
      box-shadow: 0 12px 26px rgba(7, 27, 58, 0.1);
      background: var(--soft-blue);
    }

    .button.light {
      color: var(--dark-blue);
      background: var(--white);
    }

    .button.light:hover {
      box-shadow: 0 14px 30px rgba(7, 27, 58, 0.14);
    }

    .icon {
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
    }

    .trust-strip {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      max-width: 610px;
      margin-top: 34px;
    }

    .metric {
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 8px;
      padding: 14px;
      background: rgba(255, 255, 255, 0.07);
    }

    .metric strong {
      display: block;
      margin-bottom: 4px;
      color: var(--mustard);
      font-size: 22px;
      line-height: 1.15;
    }

    .metric span {
      color: rgba(255, 255, 255, 0.7);
      font-size: 13px;
    }

    .tool-panel {
      border: 1px solid rgba(255, 255, 255, 0.26);
      border-radius: 8px;
      overflow: hidden;
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .panel-heading {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 20px 22px;
      color: var(--dark-blue);
      background: linear-gradient(180deg, var(--white), var(--soft-blue));
      border-bottom: 1px solid var(--line);
    }

    .panel-heading h2 {
      margin: 0;
      font-size: 22px;
      line-height: 1.25;
    }

    .panel-badge {
      border-radius: 999px;
      padding: 6px 10px;
      color: var(--deep-navy);
      background: var(--mustard);
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
    }

    .builder-form {
      padding: 22px;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .field {
      min-width: 0;
    }

    .field.full {
      grid-column: 1 / -1;
    }

    label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 7px;
      color: var(--dark-blue);
      font-size: 13px;
      font-weight: 800;
    }

    .required {
      color: var(--medium-blue);
      font-size: 12px;
      font-weight: 900;
    }

    input,
    textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 12px 13px;
      color: var(--charcoal);
      background: var(--white);
      outline: 0;
      transition: border-color 140ms ease, box-shadow 140ms ease;
    }

    input {
      min-height: 46px;
    }

    textarea {
      min-height: 96px;
      resize: vertical;
    }

    input:focus,
    textarea:focus {
      border-color: var(--medium-blue);
      box-shadow: 0 0 0 4px rgba(2, 108, 255, 0.14);
    }

    .hint {
      margin-top: 7px;
      color: var(--slate);
      font-size: 12px;
    }

    .toggle-row {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      padding: 2px 0 4px;
    }

    .toggle {
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--line);
      border-radius: 6px;
      padding: 0 12px;
      color: var(--charcoal);
      background: var(--ice-blue);
      font-size: 13px;
      font-weight: 750;
      cursor: pointer;
    }

    .toggle input {
      width: 16px;
      height: 16px;
      min-height: 0;
      padding: 0;
      accent-color: var(--medium-blue);
    }

    .output-block {
      margin-top: 18px;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: var(--ice-blue);
    }

    .output-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
    }

    .output-header h3 {
      margin: 0;
      color: var(--dark-blue);
      font-size: 16px;
      line-height: 1.3;
    }

    .copy-button {
      min-height: 38px;
      border: 0;
      border-radius: 6px;
      padding: 0 12px;
      color: var(--white);
      background: var(--dark-blue);
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .copy-button:disabled {
      cursor: not-allowed;
      opacity: 0.5;
    }

    .generated-url {
      min-height: 118px;
      border: 0;
      border-radius: 0;
      color: var(--deep-navy);
      background: transparent;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: 13px;
      line-height: 1.55;
    }

    .use-checklist {
      margin-top: 16px;
      border: 1px solid rgba(0, 48, 135, 0.16);
      border-radius: 8px;
      padding: 16px;
      background: var(--soft-blue);
    }

    .use-checklist h3 {
      margin-bottom: 10px;
      color: var(--dark-blue);
      font-size: 16px;
      line-height: 1.3;
    }

    .use-checklist ul,
    .step-list {
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .use-checklist li,
    .step-list li {
      display: grid;
      grid-template-columns: 28px 1fr;
      gap: 10px;
      align-items: start;
      color: var(--charcoal);
      font-size: 14px;
    }

    .use-checklist li + li,
    .step-list li + li {
      margin-top: 10px;
    }

    .check-mark,
    .step-number {
      width: 28px;
      height: 28px;
      display: inline-grid;
      place-items: center;
      border-radius: 999px;
      color: var(--deep-navy);
      background: var(--mustard);
      font-size: 13px;
      font-weight: 900;
      line-height: 1;
    }

    .form-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 18px;
    }

    .status {
      min-height: 24px;
      margin: 12px 0 0;
      color: var(--slate);
      font-size: 13px;
      font-weight: 700;
    }

    .status.is-error {
      color: var(--error);
    }

    .status.is-success {
      color: var(--success);
    }

    .main-content {
      background: var(--white);
    }

    .section {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
      padding: 68px 0;
    }

    .section-header {
      max-width: 760px;
      margin-bottom: 26px;
    }

    .section-header h2 {
      margin-bottom: 10px;
      color: var(--dark-blue);
      font-size: clamp(28px, 4vw, 38px);
      line-height: 1.16;
    }

    .section-header p {
      margin-bottom: 0;
      color: var(--slate);
      font-size: 17px;
    }

    .rules-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
    }

    .rule-card {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 20px;
      background: var(--ice-blue);
    }

    .rule-card h3 {
      margin-bottom: 8px;
      color: var(--dark-blue);
      font-size: 18px;
    }

    .rule-card p {
      margin-bottom: 0;
      color: var(--slate);
      font-size: 15px;
    }

    .guide-grid {
      display: grid;
      grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
      gap: 18px;
    }

    .guide-panel {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 22px;
      background: var(--ice-blue);
    }

    .guide-panel h3 {
      margin-bottom: 12px;
      color: var(--dark-blue);
      font-size: 20px;
      line-height: 1.3;
    }

    .guide-panel p {
      margin-bottom: 12px;
      color: var(--slate);
      font-size: 15px;
    }

    .guide-panel p:last-child {
      margin-bottom: 0;
    }

    .guide-panel code {
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    .callout {
      border-left: 4px solid var(--mustard);
      margin-top: 16px;
      padding: 14px 16px;
      color: var(--deep-navy);
      background: var(--white);
      font-size: 14px;
      font-weight: 750;
    }

    .reference-wrap {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
    }

    table {
      width: 100%;
      min-width: 740px;
      border-collapse: collapse;
    }

    th,
    td {
      padding: 15px 16px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: top;
      font-size: 14px;
    }

    th {
      color: var(--dark-blue);
      background: var(--soft-blue);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
    }

    tr:last-child td {
      border-bottom: 0;
    }

    code {
      color: var(--dark-blue);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-weight: 800;
    }

    .cta-band {
      color: var(--white);
      background: var(--deep-navy);
    }

    .cta-inner {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
      padding: 54px 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .cta-inner h2 {
      margin-bottom: 8px;
      font-size: clamp(26px, 4vw, 36px);
      line-height: 1.16;
    }

    .cta-inner p {
      max-width: 660px;
      margin-bottom: 0;
      color: rgba(255, 255, 255, 0.72);
    }

    .site-footer {
      border-top: 1px solid var(--line);
      background: var(--white);
    }

    .footer-inner {
      width: min(1180px, calc(100% - 40px));
      min-height: 86px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      color: var(--slate);
      font-size: 13px;
    }

    .footer-brand-link {
      color: inherit;
      font-weight: 400;
      text-decoration: none;
      transition: color 160ms ease;
    }

    .footer-brand-link:hover {
      color: var(--medium-blue);
    }

    @media (max-width: 1080px) {
      .nav {
        padding: 14px 0;
        flex-wrap: wrap;
        gap: 12px;
      }

      .menu-toggle {
        display: inline-block;
        margin-left: auto;
      }

      .nav-links {
        width: 100%;
        display: none;
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        padding: 10px 0 4px;
      }

      .nav-links.is-open {
        display: flex;
      }

      .nav-link,
      .nav-cta {
        width: 100%;
        justify-content: flex-start;
        padding: 0 12px;
      }

      .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 68px 0;
      }

      .trust-strip,
      .rules-grid,
      .guide-grid {
        grid-template-columns: 1fr;
      }

      .cta-inner {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    @media (max-width: 680px) {
      .nav {
        width: min(100% - 28px, 1180px);
        min-height: 68px;
      }

      .brand {
        min-width: 0;
      }

      .brand img {
        width: 220px;
      }

      .nav-links {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 4px;
        font-size: 13px;
      }

      .nav-link,
      .nav-cta {
        min-height: 38px;
        padding: 0 10px;
      }

      .hero-inner,
      .section,
      .cta-inner,
      .footer-inner {
        width: min(100% - 28px, 1180px);
      }

      .hero-copy {
        font-size: 16px;
      }

      .panel-heading,
      .builder-form {
        padding: 18px;
      }

      .panel-heading {
        align-items: flex-start;
        flex-direction: column;
      }

      .form-grid {
        grid-template-columns: 1fr;
      }

      .button,
      .copy-button {
        width: 100%;
      }

      .output-header {
        align-items: stretch;
        flex-direction: column;
      }

      .footer-inner {
        min-height: 112px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
      }
    }
