:root {
  --bg: #070709;
  --surface: rgba(20, 20, 25, .72);
  --surface-strong: rgba(15, 15, 19, .94);
  --accent: #00f0ff;
  --accent-glow: rgba(0, 240, 255, .4);
  --text: #fff;
  --muted: #a0a0a5;
  --line: rgba(255, 255, 255, .1);
  --success: #00ff66;
  --danger: #ff5576;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; }
button, input { font: inherit; }
.hidden { display: none !important; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.page-shell { min-height: 100vh; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(7,7,9,.96), rgba(7,7,9,.82)); }
.ambient, .data-line { position: absolute; pointer-events: none; }
.ambient { width: 700px; height: 700px; border-radius: 50%; filter: blur(5px); opacity: .55; }
.ambient-one { right: -260px; top: -250px; background: radial-gradient(circle, rgba(0,240,255,.19), transparent 65%); }
.ambient-two { left: -330px; bottom: -380px; background: radial-gradient(circle, rgba(100,0,255,.16), transparent 64%); }
.data-line { width: 1px; height: 54vh; opacity: .27; background: linear-gradient(transparent, var(--accent), transparent); }
.line-one { left: 8%; top: 4%; }
.line-two { right: 13%; bottom: 0; }

.site-header { height: 84px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.brand { color: var(--accent); font: 600 13px/1 'Space Grotesk', sans-serif; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; }
.brand span { color: var(--muted); font-weight: 300; }
.system-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 400 11px/1 'Space Grotesk', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.system-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(0,255,102,.7); }

main { position: relative; z-index: 1; }
.hero { padding: clamp(72px, 11vw, 132px) 0 68px; max-width: 880px; }
.eyebrow, .state-kicker { margin: 0 0 18px; color: var(--accent); font: 500 12px/1.2 'Space Grotesk', sans-serif; letter-spacing: 2px; text-transform: uppercase; }
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
h1 { margin: 0; font-size: clamp(43px, 7.2vw, 82px); font-weight: 400; line-height: .98; letter-spacing: -3px; text-transform: lowercase; }
h1 span { color: var(--accent); text-shadow: 0 0 32px var(--accent-glow); }
.lead { max-width: 690px; margin: 30px 0 42px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); font-weight: 300; line-height: 1.7; }

.search-form label { display: block; margin-bottom: 12px; color: var(--muted); font: 500 11px/1 'Space Grotesk', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.input-wrap { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: center; background: rgba(0,0,0,.45); border: 1px solid rgba(0,240,255,.35); transition: .25s; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 26px rgba(0,240,255,.13); }
.input-prefix { padding: 0 18px; color: var(--accent); font: 500 12px/1 'Space Grotesk', sans-serif; letter-spacing: 1px; border-right: 1px solid var(--line); }
input { min-width: 0; width: 100%; height: 64px; padding: 0 20px; border: 0; outline: 0; background: transparent; color: var(--text); font: 400 23px/1 'Space Grotesk', sans-serif; letter-spacing: 3px; }
input::placeholder { color: #4b4b51; }
.cyber-btn { height: 64px; min-width: 180px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--accent); background: transparent; color: var(--accent); font: 500 13px/1 'Space Grotesk', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: .25s; }
.cyber-btn b { font-size: 20px; font-weight: 300; }
.cyber-btn:hover, .cyber-btn:focus-visible { background: var(--accent); color: #000; box-shadow: 0 0 22px var(--accent-glow); }
.cyber-btn:disabled { opacity: .5; cursor: wait; }
.form-hint { margin: 11px 0 0; color: #66666d; font-size: 12px; }

.result-section { padding-bottom: 100px; }
.state-card, .company-card { background: var(--surface); border: 1px solid rgba(0,240,255,.18); border-radius: 8px; backdrop-filter: blur(16px); box-shadow: 0 22px 60px rgba(0,0,0,.42); }
.state-card { min-height: 180px; padding: 36px; display: flex; align-items: center; gap: 28px; }
.state-card h2 { margin: 0 0 8px; font-size: clamp(23px, 3vw, 32px); font-weight: 400; }
.state-card p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }
.scan-icon { flex: 0 0 74px; width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid rgba(0,240,255,.36); position: relative; }
.scan-icon::before, .scan-icon::after { content: ''; position: absolute; background: var(--accent); }
.scan-icon::before { width: 28px; height: 1px; }
.scan-icon::after { width: 1px; height: 28px; }
.scan-icon span { position: absolute; inset: 10px; border: 1px solid rgba(0,240,255,.14); }
.loader { flex: 0 0 68px; width: 68px; height: 68px; border: 1px solid rgba(0,240,255,.17); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; box-shadow: 0 0 22px rgba(0,240,255,.12); }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { border-color: rgba(255,85,118,.3); }
.error-state .state-kicker { color: var(--danger); }
.error-mark { flex: 0 0 68px; width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--danger); color: var(--danger); font: 300 30px/1 'Space Grotesk', sans-serif; }

.company-card { overflow: hidden; }
.company-header { padding: 34px 36px 30px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; border-bottom: 1px solid var(--line); }
.company-header h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); font-weight: 400; line-height: 1.15; }
.full-name { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.status-badge { flex: 0 0 auto; padding: 9px 12px; border: 1px solid rgba(0,255,102,.4); background: rgba(0,255,102,.08); color: var(--success); font: 500 11px/1 'Space Grotesk', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.status-badge.inactive { border-color: rgba(255,85,118,.45); background: rgba(255,85,118,.08); color: var(--danger); }
.company-grid { display: grid; grid-template-columns: 1.1fr .9fr; }
.details-panel, .risks-panel { padding: 34px 36px 38px; }
.details-panel { border-right: 1px solid var(--line); }
.company-card h3 { margin: 0 0 25px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 1.7px; text-transform: uppercase; }
.details-list { margin: 0; }
.details-list div { display: grid; grid-template-columns: 145px 1fr; gap: 20px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.07); }
.details-list dt { color: var(--muted); font-size: 12px; }
.details-list dd { margin: 0; font-size: 14px; line-height: 1.5; }
.details-list small { display: block; margin-top: 3px; color: var(--muted); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.risk-count { padding: 6px 8px; color: var(--muted); border: 1px solid var(--line); font: 500 10px/1 'Space Grotesk', sans-serif; text-transform: uppercase; }
.risk-summary { padding: 17px; margin-bottom: 18px; color: var(--success); border: 1px solid rgba(0,255,102,.2); background: rgba(0,255,102,.05); font-size: 13px; line-height: 1.5; }
.risk-summary.has-risk { color: var(--danger); border-color: rgba(255,85,118,.24); background: rgba(255,85,118,.05); }
.risk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.risk-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 12px; line-height: 1.4; }
.risk-list li::before { content: '○'; color: #58585f; }
.risk-list li.active { color: #fff; }
.risk-list li.active::before { content: '×'; color: var(--danger); }
.freshness { margin: 0; padding: 15px 36px; border-top: 1px solid var(--line); color: #66666d; font-size: 11px; }

.site-footer { position: relative; z-index: 1; padding: 32px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: var(--accent); text-underline-offset: 3px; }
.disclaimer { max-width: 800px; color: #66666d; font-size: 10px; line-height: 1.5; }

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1120px); }
  .site-header { height: 70px; }
  .system-status { display: none; }
  .hero { padding: 70px 0 50px; }
  h1 { letter-spacing: -2px; }
  .search-row { grid-template-columns: 1fr; }
  .cyber-btn { width: 100%; }
  .state-card { padding: 26px 22px; align-items: flex-start; }
  .scan-icon, .loader, .error-mark { flex-basis: 48px; width: 48px; height: 48px; }
  .company-header { padding: 27px 22px; flex-direction: column; }
  .company-grid { grid-template-columns: 1fr; }
  .details-panel, .risks-panel { padding: 28px 22px; }
  .details-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .details-list div { grid-template-columns: 1fr; gap: 7px; }
  .freshness { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
