/* islegit.ai — clean & technical, slate/cyan */
:root {
  --bg:        #0b1220;
  --surface:   #0f1830;
  --surface-2: #131e3a;
  --border:    #1f2c4d;
  --border-2:  #2a3a63;
  --fg:        #e6ecf7;
  --muted:     #7e8aa8;
  --muted-2:   #5a6789;
  --accent:    #22d3ee;       /* cyan */
  --accent-2:  #60a5fa;       /* blue */
  --accent-3:  #f59e0b;
  --good:      #34d399;
  --bad:       #f87171;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* light palette */
[data-theme="light"] {
  --bg:        #f6f7fa;
  --surface:   #ffffff;
  --surface-2: #f0f2f7;
  --border:    #e3e7ef;
  --border-2:  #cdd4e0;
  --fg:        #0d1426;
  --muted:     #5b6781;
  --muted-2:   #8590a8;
  --accent:    #0891b2;
  --accent-2:  #2563eb;
}

/* alt palettes */
[data-palette="navy-gold"] {
  --accent: #f5b942;
  --accent-2: #d4a017;
}
[data-palette="violet"] {
  --accent: #a78bfa;
  --accent-2: #c4b5fd;
}
[data-palette="lime"] {
  --accent: #a3e635;
  --accent-2: #84cc16;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.small { font-size: 11px; letter-spacing: 0.06em; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); background: var(--surface);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.tag.no-dot::before { display: none; }

/* page shell */
.shell {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  position: relative;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 600; letter-spacing: 0.02em;
}
.logo svg { display: block; }
.logo .dot { color: var(--accent); }
.nav-links {
  display: flex; gap: 28px; font-family: var(--mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--fg); border-radius: 4px;
  transition: border-color .15s, background .15s, color .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: var(--accent); color: #00131a; border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 80%, white); color: #00131a;}
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* section frame */
section { padding: 96px 0; position: relative; }
.section-head {
  display: grid; grid-template-columns: 280px 1fr; gap: 40px;
  margin-bottom: 48px;
}
.section-head .label {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase;
}
.section-head h2 {
  margin: 0; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em;
  font-weight: 500;
}
.section-head h2 em { font-style: normal; color: var(--accent); }
.section-head .sub {
  margin-top: 12px; color: var(--muted); max-width: 580px;
}

/* hero */
.hero { padding-top: 64px; padding-bottom: 80px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-grid.layout-stacked {
  grid-template-columns: 1fr;
  text-align: left;
  gap: 40px;
}
.hero-grid.layout-left {
  grid-template-columns: 1fr 1.15fr;
}

.hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02; letter-spacing: -0.025em;
  font-weight: 500;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 .strike {
  position: relative; color: var(--muted);
}
.hero h1 .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%;
  height: 3px; background: var(--accent); transform: rotate(-3deg);
}
.hero p.lead {
  font-size: 17px; color: var(--muted); max-width: 540px; margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.hero-stat {
  padding: 18px 18px 18px 0;
  border-right: 1px dashed var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat .v {
  font-family: var(--mono); font-size: 22px; font-weight: 600;
  color: var(--fg);
}
.hero-stat .l {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: 4px;
}

/* hexagon panel */
.hex-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  background:
    linear-gradient(var(--surface), var(--surface)),
    linear-gradient(135deg, color-mix(in oklab, var(--accent) 30%, transparent), transparent 60%);
  background-blend-mode: normal;
  border-radius: 6px;
  overflow: visible;
}
.hex-panel::before, .hex-panel::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--accent);
}
.hex-panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hex-panel::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hex-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.hex-panel-head .blink {
  display: inline-block; width: 6px; height: 6px; background: var(--good);
  border-radius: 999px; margin-right: 6px;
  animation: blink 1.4s infinite ease;
  box-shadow: 0 0 6px var(--good);
}
@keyframes blink { 0%, 60% { opacity: 1; } 80% { opacity: 0.2; } 100% { opacity: 1;} }

.hex-panel-foot {
  margin-top: 6px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.hex-panel-foot .row { display: flex; justify-content: space-between; }
.hex-panel-foot .row span:last-child { color: var(--fg); }

.agent-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.agent-tab {
  height: 28px; padding: 0 10px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: transparent; border: 1px solid var(--border);
  border-radius: 3px;
  letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.agent-tab.active { color: var(--fg); border-color: var(--accent); }
.agent-tab .swatch { width: 8px; height: 8px; border-radius: 1px; background: currentColor; }

/* polygon draw animation */
.hex-poly { transition: stroke .3s, fill .3s; }
@keyframes hexPop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.hex-poly { transform-origin: center; transform-box: fill-box; animation: hexPop .55s cubic-bezier(.2,.7,.2,1.1); }

/* capability grid */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.cap {
  background: var(--surface); padding: 28px;
  position: relative; transition: background .15s;
}
.cap:hover { background: var(--surface-2); }
.cap-num {
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
  letter-spacing: 0.14em;
}
.cap h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em;}
.cap p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.cap-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border-top: 1px dashed var(--border); padding-top: 12px;
}
.cap-meta .row { display: flex; justify-content: space-between; }
.cap-meta .row span:last-child { color: var(--fg); }
.cap-icon {
  width: 36px; height: 36px; border: 1px solid var(--border-2);
  border-radius: 3px; display: grid; place-items: center;
  background: var(--bg);
}

/* how it works */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.how-step {
  position: relative;
  padding: 28px; border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
}
.how-step .step-no {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  letter-spacing: 0.18em;
}
.how-step h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 500;}
.how-step p { color: var(--muted); font-size: 14px; margin: 0 0 16px;}
.how-step .vis {
  height: 120px; border: 1px solid var(--border); border-radius: 4px;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in oklab, var(--accent) 10%, transparent) 12px 13px),
    var(--bg);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  position: relative;
}

/* badge area */
.badge-stage {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px;
  align-items: stretch;
}
.badge-card {
  padding: 32px;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 6px;
  display: grid; grid-template-rows: auto auto; gap: 18px;
  align-content: start; justify-items: center;
  position: relative;
}
.badge-card svg { display: block; }
.badge-meta {
  width: 100%; display: grid; gap: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border-top: 1px dashed var(--border); padding-top: 14px;
}
.badge-meta .row { display: flex; justify-content: space-between; }
.badge-meta .row span:last-child { color: var(--fg); }

/* tier badge alternative */
.tier-badge {
  width: 240px; padding: 22px;
  border: 1px solid var(--accent);
  background:
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: 4px;
  display: grid; gap: 14px;
}
.tier-badge .tier-top, .tier-badge .tier-bottom {
  display: flex; justify-content: space-between;
}
.tier-badge .tier-tier {
  font-size: 18px; letter-spacing: 0.32em; color: var(--accent);
  text-align: center; padding: 8px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.tier-badge .tier-score {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
}
.tier-badge .num { font-size: 56px; font-weight: 700; color: var(--fg); line-height: 1;}
.tier-badge .tier-bar {
  height: 4px; background: var(--bg); border: 1px solid var(--border); position: relative;
}
.tier-badge .tier-bar-fill { height: 100%; background: var(--accent); }

/* badge picker (preview) */
.badge-picker {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.badge-picker .pick {
  font-family: var(--mono); font-size: 11px; padding: 6px 10px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); border-radius: 3px; letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-picker .pick.active { color: var(--fg); border-color: var(--accent); }

.badge-side {
  display: grid; gap: 16px; align-content: start;
}
.verify-box {
  padding: 22px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 6px;
}
.verify-input {
  display: flex; gap: 0; margin-top: 14px;
  border: 1px solid var(--border-2); border-radius: 4px; overflow: hidden;
  background: var(--bg);
}
.verify-input input {
  flex: 1; height: 40px; padding: 0 12px;
  background: transparent; border: 0; color: var(--fg);
  font-family: var(--mono); font-size: 13px; outline: none;
}
.verify-input button {
  height: 40px; padding: 0 14px;
  background: var(--accent); color: #00131a; border: 0;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.verify-result {
  margin-top: 14px; padding: 12px;
  font-family: var(--mono); font-size: 12px;
  border: 1px dashed var(--border); border-radius: 4px;
  background: var(--bg); color: var(--muted);
  display: grid; gap: 4px;
}
.verify-result.ok { border-color: var(--good); color: var(--good);}
.verify-result.bad { border-color: var(--bad); color: var(--bad);}

/* methodology */
.method-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.method-list {
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  background: var(--surface);
}
.method-row {
  display: grid; grid-template-columns: 56px 1fr 100px;
  gap: 16px; padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.method-row:last-child { border-bottom: 0; }
.method-row .n {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.1em;
}
.method-row h4 { margin: 0 0 4px; font-size: 15px; font-weight: 500;}
.method-row p { margin: 0; color: var(--muted); font-size: 13px;}
.method-row .meter {
  height: 6px; background: var(--bg); border: 1px solid var(--border); position: relative;
}
.method-row .meter span {
  display: block; height: 100%; background: var(--accent);
}

/* terminal-style sample */
.terminal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  font-family: var(--mono); font-size: 13px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 11px; letter-spacing: 0.08em;
}
.terminal-bar .dots { display: flex; gap: 6px; }
.terminal-bar .dots span {
  width: 10px; height: 10px; border-radius: 999px; background: var(--border-2);
}
.terminal pre {
  margin: 0; padding: 18px;
  color: var(--fg); white-space: pre; overflow-x: auto;
  line-height: 1.6;
}
.terminal .k { color: var(--accent-2); }
.terminal .s { color: var(--good); }
.terminal .c { color: var(--muted); }
.terminal .n { color: var(--accent-3); }
.terminal .p { color: var(--accent); }

/* trust */
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.trust-cell {
  background: var(--surface); padding: 28px;
}
.trust-cell h4 {
  margin: 14px 0 8px; font-size: 16px; font-weight: 500;
}
.trust-cell p { color: var(--muted); font-size: 13px; margin: 0;}
.trust-cell .icon {
  width: 40px; height: 40px; border: 1px solid var(--accent);
  display: grid; place-items: center; border-radius: 3px;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}

/* pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.price-card {
  padding: 28px; border: 1px solid var(--border);
  background: var(--surface); border-radius: 6px;
  display: grid; grid-template-rows: auto auto auto auto 1fr auto;
  gap: 14px;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent) inset;
}
.price-card .name {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.price-card .price {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--mono);
}
.price-card .price .num { font-size: 40px; font-weight: 700; color: var(--fg);}
.price-card .price .per { font-size: 12px; color: var(--muted); }
.price-card .desc { color: var(--muted); font-size: 14px;}
.price-card ul {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 10px;
  font-size: 13px;
}
.price-card li {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--mono); color: var(--fg);
}
.price-card li::before {
  content: "+"; color: var(--accent); font-weight: 700;
}

/* faq */
.faq { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq details {
  border-bottom: 1px solid var(--border); padding: 18px 0;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 500; gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); color: var(--accent);
  font-size: 22px; transition: transform .15s;
}
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 14px 0 0; max-width: 720px;}

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 80px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot-grid h5 {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 14px;
}
.foot-grid ul {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 8px;
  font-size: 14px;
}
.foot-grid a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 48px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
  border-top: 1px dashed var(--border); padding-top: 18px;
}

/* tooltip */
.axis-tip {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: 10px 12px;
  font-family: var(--mono); font-size: 11px; color: var(--fg);
  pointer-events: none; transform: translate(-50%, -110%);
  white-space: nowrap; border-radius: 3px; z-index: 5;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.axis-tip .v { color: var(--accent); margin-left: 8px; }
.axis-tip .meta { color: var(--muted); margin-top: 4px; font-size: 10px;}

/* monogram bg corners */
.bg-frame {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  opacity: 0.3;
}

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .hero-grid.layout-left { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .cap-grid, .how-grid, .trust-grid, .pricing-grid { grid-template-columns: 1fr; }
  .method-grid, .badge-stage { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
