:root {
  --bg: #0f1419;
  --surface: #161b22;
  --surface-2: #0d1117;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --blue: #58a6ff;
  --green: #3fb950;
  --amber: #d29922;
}

html { min-height: 100%; font-size: 16px; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); }
.container-fluid { width: min(1180px, calc(100% - 40px)); margin-inline: auto; padding: 0; }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(48, 54, 61, .75); background: rgba(15, 20, 25, .86); backdrop-filter: blur(14px); }
.site-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand-logo { width: 48px; height: 34px; display: block; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0,0,0,.25)); }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: 15px; letter-spacing: -.01em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.site-actions { display: flex; align-items: center; }
.primary-menu { display: flex; align-items: center; align-self: stretch; gap: 4px; margin-left: auto; margin-right: 24px; }
.primary-menu-link { position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0 13px; color: #9da7b2; font-size: 13px; font-weight: 650; text-decoration: none; transition: color .18s ease, background .18s ease; }
.primary-menu-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.primary-menu-link:hover { color: var(--text); background: rgba(255,255,255,.025); text-decoration: none; }
.primary-menu-link.active { color: var(--text); background: rgba(88,166,255,.06); }
.primary-menu-link.active::after { background: var(--blue); box-shadow: 0 0 10px rgba(88,166,255,.4); }
.btn-login, .btn-hero-primary, .btn-hero-secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 650; text-decoration: none; transition: .18s ease; }
.btn-login { min-height: 40px; padding: 0 18px; border: 1px solid #3b82c4; background: #1f6feb; color: white; }
.btn-login:hover, .btn-hero-primary:hover { transform: translateY(-1px); background: #388bfd; color: white; text-decoration: none; box-shadow: 0 8px 24px rgba(31,111,235,.2); }

.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 5px 9px 5px 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #1f6feb, #58a6ff); color: white; font-size: 12px; font-weight: 800; }
.account-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.chevron { color: var(--muted); }
.account-popover { position: absolute; right: 0; top: calc(100% + 10px); width: 220px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.account-label { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.account-popover strong { display: block; margin: 2px 0 12px; font-size: 14px; }
.menu-action { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; }
.menu-action:hover { border-color: #f85149; color: #ff7b72; }

.landing-hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(48,54,61,.7); background: radial-gradient(circle at 75% 20%, rgba(31,111,235,.1), transparent 32%), linear-gradient(180deg, #111820 0%, var(--bg) 100%); }
.hero-glow { position: absolute; width: 480px; height: 480px; right: -140px; top: -250px; border-radius: 50%; background: rgba(63,185,80,.06); filter: blur(10px); }
.hero-content { position: relative; padding-block: 92px 88px; }
.eyebrow, .section-kicker, .card-meta { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.landing-hero h1 { max-width: 800px; margin: 22px 0 20px; color: var(--text); font-size: clamp(44px, 6.4vw, 78px); font-weight: 750; line-height: .99; letter-spacing: -.055em; }
.landing-hero h1 span { color: var(--blue); }
.hero-copy { max-width: 650px; margin: 0; color: #a8b3bf; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.btn-hero-primary, .btn-hero-secondary { min-height: 48px; padding: 0 20px; }
.btn-hero-primary { gap: 16px; background: #1f6feb; color: white; }
.btn-hero-secondary { border: 1px solid var(--border); background: rgba(22,27,34,.7); color: var(--text); }
.btn-hero-secondary:hover { border-color: #6e7681; color: white; text-decoration: none; transform: translateY(-1px); }

.workspace-section { padding-block: 54px 72px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { margin: 5px 0 0; color: var(--text); font-size: 27px; letter-spacing: -.03em; }
.access-badge { padding: 6px 10px; border: 1px solid rgba(63,185,80,.3); border-radius: 999px; background: rgba(63,185,80,.08); color: #56d364; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.workspace-card { position: relative; min-height: 255px; padding: 26px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(145deg, rgba(22,27,34,.98), rgba(13,17,23,.98)); color: var(--text); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.workspace-card::after { content: ""; position: absolute; width: 150px; height: 150px; right: -80px; top: -80px; border-radius: 50%; background: var(--card-color); opacity: .08; }
.workspace-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--card-color) 55%, var(--border)); color: var(--text); text-decoration: none; box-shadow: 0 18px 40px rgba(0,0,0,.2); }
.card-dashboard { --card-color: #58a6ff; }.card-tasks { --card-color: #d29922; }.card-tests { --card-color: #3fb950; }.card-api { --card-color: #bc8cff; }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid color-mix(in srgb, var(--card-color) 35%, var(--border)); border-radius: 10px; background: color-mix(in srgb, var(--card-color) 10%, transparent); color: var(--card-color); font-family: ui-monospace, monospace; font-weight: 800; }
.workspace-card h3 { margin: 6px 0 9px; color: var(--text); font-size: 20px; letter-spacing: -.02em; }
.workspace-card p { max-width: 480px; margin: 0 0 24px; color: #9da7b2; line-height: 1.55; }
.card-link { position: absolute; left: 26px; bottom: 24px; color: var(--card-color); font-size: 13px; font-weight: 700; }
.card-link b { margin-left: 7px; transition: margin .18s; }.workspace-card:hover .card-link b { margin-left: 12px; }

.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 34px; }
.feature-strip div { padding: 4px 28px; border-right: 1px solid var(--border); }.feature-strip div:first-child { padding-left: 0; }.feature-strip div:last-child { border: 0; }
.feature-strip strong, .feature-strip span { display: block; }.feature-strip strong { color: var(--text); font-size: 14px; }.feature-strip span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.site-footer .container-fluid { min-height: 64px; display: flex; justify-content: space-between; align-items: center; }
.footer-status { display: inline-flex; align-items: center; gap: 7px; }.footer-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* Shared form styling, including the login page. */
.form-control { border-color: var(--border); background: var(--surface-2); color: var(--text); }.form-control:focus { border-color: var(--blue); background: var(--surface-2); color: var(--text); box-shadow: 0 0 0 .2rem rgba(88,166,255,.15); }.form-label { color: #b1bac4; }.text-danger { color: #ff7b72 !important; }.btn-primary { border-color: #1f6feb; background: #1f6feb; }
.auth-page { min-height: calc(100vh - 141px); display: grid; place-items: center; padding: 56px 20px; background: radial-gradient(circle at 50% 10%, rgba(31,111,235,.1), transparent 32%); }
.auth-card { width: min(100%, 430px); padding: 34px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.auth-card h1 { margin: 7px 0 8px; color: var(--text); font-size: 30px; letter-spacing: -.035em; }
.auth-copy { margin: 0 0 26px; color: var(--muted); }
.btn-auth { min-height: 44px; margin-top: 4px; border-radius: 8px; font-weight: 700; }
.test-launcher { padding-block: 60px 76px; }
.test-launcher-heading { max-width: 690px; margin-bottom: 32px; }
.test-launcher-heading h1 { margin: 14px 0 10px; color: var(--text); font-size: 42px; letter-spacing: -.045em; }
.test-launcher-heading p { margin: 0; color: #9da7b2; font-size: 17px; line-height: 1.6; }
.test-launcher-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 18px; align-items: start; }
.launcher-card { padding: 28px; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); box-shadow: 0 20px 55px rgba(0,0,0,.14); }
.launcher-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.launcher-card-heading .card-icon { flex: 0 0 auto; margin: 0; }
.launcher-card-heading h2 { margin: 3px 0 0; color: var(--text); font-size: 20px; letter-spacing: -.02em; }
.launcher-card .form-group { margin-bottom: 20px; }
.launcher-card .form-label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: none; }
.launcher-card .form-select { min-height: 46px; border-radius: 8px; }
.btn-launch-test { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; border: 0; border-radius: 8px; background: #1f6feb; color: white; font-weight: 750; cursor: pointer; transition: .18s ease; }
.btn-launch-test:hover { transform: translateY(-1px); background: #388bfd; box-shadow: 0 10px 28px rgba(31,111,235,.2); }
.recent-icon { border-color: rgba(210,153,34,.35); background: rgba(210,153,34,.08); color: var(--amber); }
.recent-tests { display: grid; gap: 8px; }
.recent-test { display: flex; align-items: stretch; min-height: 67px; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: rgba(13,17,23,.68); transition: .18s ease; }
.recent-test:hover { transform: translateX(3px); border-color: rgba(63,185,80,.42); }
.recent-test-link { flex: 1; display: flex; align-items: center; justify-content: space-between; min-width: 0; padding: 12px 15px; color: var(--text); text-decoration: none; }
.recent-test-link:hover { color: var(--text); text-decoration: none; }
.recent-test span, .recent-test strong, .recent-test small { display: block; }
.recent-test strong { font-size: 14px; }.recent-test small { margin-top: 3px; color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }.recent-test b { color: var(--green); }
.recent-test-remove { width: 46px; flex: 0 0 46px; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; transition: .18s ease; }
.recent-test-remove:hover, .recent-test-remove:focus-visible { outline: 0; background: rgba(248,81,73,.09); color: #ff7b72; }

@media (max-width: 720px) {
  .container-fluid { width: min(100% - 28px, 1180px); }
  .account-name { display: none; }
  .site-nav { min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
  .primary-menu { order: 3; width: 100%; height: 44px; margin: 8px 0 -10px; overflow-x: auto; border-top: 1px solid rgba(48,54,61,.7); }
  .primary-menu-link { flex: 0 0 auto; }
  .hero-content { padding-block: 64px; }
  .landing-hero h1 { font-size: 46px; }
  .hero-copy { font-size: 16px; }
  .hero-actions, .section-heading { align-items: stretch; flex-direction: column; }
  .workspace-grid, .feature-strip { grid-template-columns: 1fr; }
  .test-launcher-grid { grid-template-columns: 1fr; }
  .feature-strip div { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--border); }
}
