/* ============================================================
       CircleBC Tools — landing page
       Dark theme · brand colors:
         CircleBC orange #E8722C  → Production accent
         TelcoBroker blue #1E8FD5 → Staging accent
       ============================================================ */
    :root {
      --bg:           #0E1117;
      --bg-2:         #151A23;
      --surface:      #1A2030;
      --surface-2:    #232A3C;
      --line:         #2A3247;
      --line-2:       #364159;
      --ink:          #F1F2F5;
      --ink-2:        #B6BCCB;
      --mute:         #7B8499;

      --orange:       #E8722C;
      --orange-soft:  rgba(232, 114, 44, 0.14);
      --orange-line:  rgba(232, 114, 44, 0.35);
      --blue:         #1E8FD5;
      --blue-soft:    rgba(30, 143, 213, 0.14);
      --blue-line:    rgba(30, 143, 213, 0.35);

      --radius:       16px;
      --radius-sm:    10px;
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    body {
      font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
      background: var(--bg);
      color: var(--ink);
      min-height: 100vh;
      -webkit-font-smoothing: antialiased;
      line-height: 1.5;
      /* subtle ambient glow */
      background-image:
        radial-gradient(900px 500px at 85% -10%, rgba(232,114,44,0.10), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(30,143,213,0.07), transparent 60%);
      background-attachment: fixed;
    }
    a { color: inherit; text-decoration: none; }

    .page {
      max-width: 1180px;
      margin: 0 auto;
      padding: 32px 28px 48px;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* ---------- Top bar ---------- */
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }
    .lockup {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    /* CircleBC mark is square with ~25% transparent padding around the ring,
       so it needs to render noticeably taller than TelcoBroker to feel
       optically balanced rather than visually shrunken. */
    .lockup img.circlebc { height: 72px; width: auto; display: block; margin: -8px 0; }
    .lockup img.telco    { height: 30px; width: auto; display: block; background: transparent; }
    .lockup .divider {
      width: 1px;
      height: 40px;
      background: var(--line-2);
    }
    .topbar .env {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px;
      border-radius: 999px;
      background: var(--surface);
      border: 1px solid var(--line);
      font-size: 12px;
      color: var(--ink-2);
      font-family: 'JetBrains Mono', ui-monospace, monospace;
    }
    .topbar .env::before {
      content: '';
      width: 6px; height: 6px;
      border-radius: 999px;
      background: var(--orange);
      box-shadow: 0 0 8px var(--orange);
    }

    /* ---------- Hero ---------- */
    .hero {
      margin-top: 56px;
      max-width: 720px;
    }
    .hero .eyebrow {
      font-size: 12px;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      color: var(--orange);
      font-weight: 600;
      margin-bottom: 16px;
    }
    .hero h1 {
      margin: 0;
      font-size: clamp(32px, 5vw, 52px);
      line-height: 1.05;
      font-weight: 700;
      letter-spacing: -0.8px;
      color: var(--ink);
    }
    .hero h1 .accent { color: var(--orange); }
    .hero p {
      margin: 16px 0 0;
      color: var(--ink-2);
      font-size: 16px;
      max-width: 560px;
    }

    /* ---------- Tool grid ---------- */
    .grid {
      margin-top: 40px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 16px;
    }
    .card {
      position: relative;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      min-height: 220px;
      overflow: hidden;
      transition: transform .18s ease, border-color .18s ease, background .18s ease;
    }
    .card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: var(--card-accent, var(--orange));
      opacity: 0.85;
    }
    .card::after {
      content: '';
      position: absolute;
      top: -60px; right: -60px;
      width: 180px; height: 180px;
      background: radial-gradient(circle, var(--card-glow, rgba(232,114,44,0.14)), transparent 65%);
      pointer-events: none;
    }
    .card:hover {
      transform: translateY(-2px);
      border-color: var(--card-accent, var(--orange));
      background: var(--surface-2);
    }
    .card[data-accent="blue"]  { --card-accent: var(--blue);   --card-glow: rgba(30,143,213,0.16); }

    .card .row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      position: relative;
    }
    .thumb {
      width: 56px; height: 56px;
      border-radius: 14px;
      background: var(--thumb-bg, var(--orange-soft));
      border: 1px solid var(--thumb-line, var(--orange-line));
      color: var(--card-accent, var(--orange));
      display: grid;
      place-items: center;
      font-family: 'JetBrains Mono', monospace;
      font-weight: 700;
      font-size: 18px;
      letter-spacing: 0.5px;
      flex-shrink: 0;
    }
    .card[data-accent="blue"] .thumb { --thumb-bg: var(--blue-soft); --thumb-line: var(--blue-line); }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.4px;
      text-transform: uppercase;
      background: var(--pill-bg, var(--orange-soft));
      color: var(--card-accent, var(--orange));
      border: 1px solid var(--pill-line, var(--orange-line));
    }
    .pill::before {
      content: '';
      width: 5px; height: 5px;
      border-radius: 999px;
      background: var(--card-accent, var(--orange));
    }
    .card[data-accent="blue"] .pill { --pill-bg: var(--blue-soft); --pill-line: var(--blue-line); }

    .card h2 {
      margin: 0;
      font-size: 20px;
      font-weight: 600;
      letter-spacing: -0.2px;
      position: relative;
    }
    .card p {
      margin: 4px 0 0;
      color: var(--ink-2);
      font-size: 14px;
      line-height: 1.5;
      position: relative;
    }
    .card .foot {
      margin-top: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-top: 8px;
      border-top: 1px solid var(--line);
      font-family: 'JetBrains Mono', monospace;
      font-size: 12px;
      color: var(--mute);
      position: relative;
    }
    .card .host {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }
    .card .cta {
      color: var(--card-accent, var(--orange));
      font-weight: 600;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .card .cta .arrow {
      display: inline-block;
      transition: transform .18s ease;
    }
    .card:hover .cta .arrow { transform: translateX(3px); }

    /* ---------- Footer ---------- */
    .foot-note {
      margin-top: auto;
      padding-top: 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      color: var(--mute);
      font-size: 12px;
    }
    .foot-note .mono { font-family: 'JetBrains Mono', monospace; }
    .foot-note .legend {
      display: inline-flex;
      align-items: center;
      gap: 14px;
    }
    .foot-note .legend .swatch {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .foot-note .legend .dot {
      width: 8px; height: 8px;
      border-radius: 999px;
    }
    .foot-note .legend .dot.orange { background: var(--orange); }
    .foot-note .legend .dot.blue   { background: var(--blue); }

    /* ---------- Responsive ---------- */
    @media (max-width: 760px) {
      .page { padding: 22px 18px 32px; }
      .topbar .env { display: none; }
      .lockup { gap: 14px; }
      .lockup img.circlebc { height: 56px; margin: -6px 0; }
      .lockup img.telco    { height: 24px; }
      .lockup .divider     { height: 32px; }
      .hero { margin-top: 36px; }
      .grid { grid-template-columns: 1fr; margin-top: 28px; gap: 12px; }
      .card { min-height: 0; padding: 20px; }
      .card .foot { flex-wrap: wrap; }
      .foot-note { padding-top: 28px; }
    }

    /* Focus styles for accessibility */
    .card:focus-visible {
      outline: 2px solid var(--card-accent, var(--orange));
      outline-offset: 2px;
    }