:root {
  --bg: #07111f;
  --bg-soft: #0c1a2c;
  --surface: #102239;
  --surface-2: #142a45;
  --surface-3: #193351;
  --text: #edf6ff;
  --muted: #a9bdd0;
  --line: rgba(176, 209, 235, 0.18);
  --primary: #59d6c8;
  --primary-strong: #2bb9aa;
  --secondary: #9e8cff;
  --accent: #ffd75a;
  --danger: #ff7a84;
  --warning: #ffbd66;
  --success: #75e6a8;
  --info: #67b8ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(89, 214, 200, 0.13), transparent 31rem),
    radial-gradient(circle at 95% 12%, rgba(158, 140, 255, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: #111;
  padding: .7rem 1rem;
  border-radius: 0 0 .6rem .6rem;
}
.skip-link:focus { top: 0; }

.container { width: min(calc(100% - 2rem), var(--container)); margin: 0 auto; }
.narrow { width: min(calc(100% - 2rem), 820px); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(89, 214, 200, .44);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(89,214,200,.25), rgba(158,140,255,.18));
  box-shadow: inset 0 1px rgba(255,255,255,.14);
}
.brand-mark::before { content: "◉"; color: var(--primary); font-size: 1.2rem; }
.brand small { display: block; color: var(--muted); font-weight: 600; font-size: .7rem; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: .15rem; flex: 1 1 auto; }
.main-nav a {
  color: var(--muted);
  padding: .72rem .68rem;
  border-radius: 10px;
  font-size: .9rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); background: rgba(255,255,255,.06); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-link, .header-search-button {
  min-height: 40px;
  padding: .55rem .72rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: var(--text);
}
.sos-link { color: #fff; background: rgba(255,122,132,.17); border-color: rgba(255,122,132,.45); }
.sos-link:hover { color: #fff; background: rgba(255,122,132,.26); }
.nav-toggle { display: none; }

.site-main { min-height: 70vh; }
.section { padding: 4.8rem 0; }
.section-sm { padding: 2.8rem 0; }
.section-title {
  margin: 0 0 .75rem;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 760px; margin: 0 0 2rem; }
.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .73rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.hero { padding: 5.5rem 0 3.5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 3rem; align-items: center; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: .98;
  letter-spacing: -.065em;
  max-width: 920px;
}
.hero h1 span { color: var(--primary); }
.hero-copy { color: var(--muted); font-size: 1.14rem; max-width: 670px; margin: 1.35rem 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}
.robot-orbit {
  width: min(100%, 420px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  background: radial-gradient(circle, rgba(89,214,200,.12), transparent 65%);
  box-shadow: inset 0 0 80px rgba(89,214,200,.06);
}
.robot-orbit::before, .robot-orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(158,140,255,.28);
  border-radius: 50%;
  inset: 12%;
}
.robot-orbit::after { inset: 27%; border-color: rgba(89,214,200,.35); }
.robot-face {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 170px; height: 150px;
  border-radius: 40px;
  background: linear-gradient(145deg, #1b3c5d, #0e2037);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.13);
}
.robot-face::before, .robot-face::after {
  content: ""; position: absolute; top: 55px; width: 23px; height: 16px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 25px rgba(89,214,200,.75);
}
.robot-face::before { left: 38px; }
.robot-face::after { right: 38px; }
.robot-mouth { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: 46px; height: 7px; border-radius: 20px; background: var(--secondary); }
.orbit-label {
  position: absolute;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12,26,44,.88);
  color: var(--muted);
  font-size: .78rem;
  box-shadow: var(--shadow);
}
.orbit-label.one { top: 6%; left: 4%; }
.orbit-label.two { right: -2%; top: 37%; }
.orbit-label.three { left: 7%; bottom: 8%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48rem;
  min-height: 44px;
  padding: .72rem 1rem;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--primary);
  color: #04211d;
  font-weight: 800;
  transition: .18s ease;
}
.btn:hover { color: #04211d; transform: translateY(-1px); filter: brightness(1.05); }
.btn-secondary { background: var(--secondary); color: #110b33; }
.btn-secondary:hover { color: #110b33; }
.btn-outline { color: var(--text); background: transparent; border-color: var(--line); }
.btn-outline:hover { color: var(--text); border-color: rgba(89,214,200,.55); background: rgba(89,214,200,.07); }
.btn-danger { background: var(--danger); color: #28050a; }
.btn-warning { background: var(--warning); color: #2b1800; }
.btn-sm { min-height: 36px; padding: .48rem .72rem; font-size: .86rem; }
.btn-block { width: 100%; }

.search-box {
  display: flex;
  gap: .55rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: .68rem .75rem;
  color: var(--text);
  background: transparent;
}
.search-box input::placeholder { color: #7e96ad; }

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(20,42,69,.86), rgba(12,26,44,.84));
  box-shadow: 0 10px 36px rgba(0,0,0,.14);
  overflow: hidden;
}
.card-body { padding: 1.25rem; }
.card h3, .card h4 { margin: 0 0 .5rem; letter-spacing: -.02em; }
.card p { color: var(--muted); margin: 0 0 1rem; }
.card-hover { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(89,214,200,.38); box-shadow: 0 18px 42px rgba(0,0,0,.25); }
.feature-card { min-height: 220px; display: flex; flex-direction: column; }
.feature-card .card-body { flex: 1; display: flex; flex-direction: column; }
.feature-card .card-footer { margin-top: auto; }
.card-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; margin-bottom: 1rem;
  background: rgba(89,214,200,.11); border: 1px solid rgba(89,214,200,.25);
  color: var(--primary); font-size: 1.35rem;
}

.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge {
  display: inline-flex; align-items: center; gap: .32rem;
  padding: .28rem .52rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.035);
  font-size: .75rem; line-height: 1.25;
}
.badge.success { color: var(--success); border-color: rgba(117,230,168,.28); background: rgba(117,230,168,.07); }
.badge.warning { color: var(--warning); border-color: rgba(255,189,102,.28); background: rgba(255,189,102,.07); }
.badge.danger { color: var(--danger); border-color: rgba(255,122,132,.3); background: rgba(255,122,132,.08); }
.badge.info { color: var(--info); border-color: rgba(103,184,255,.28); background: rgba(103,184,255,.07); }
.badge.primary { color: var(--primary); border-color: rgba(89,214,200,.3); background: rgba(89,214,200,.07); }

.alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.alert + .alert { margin-top: .7rem; }
.alert.danger { border-color: rgba(255,122,132,.36); background: rgba(255,122,132,.08); }
.alert.warning { border-color: rgba(255,189,102,.33); background: rgba(255,189,102,.07); }
.alert.info { border-color: rgba(103,184,255,.30); background: rgba(103,184,255,.07); }
.alert.recommendation { border-color: rgba(89,214,200,.30); background: rgba(89,214,200,.07); }
.alert-icon { font-size: 1.35rem; }
.alert-title { font-weight: 800; margin-bottom: .15rem; }
.alert-copy { color: var(--muted); font-size: .92rem; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: .65rem; align-items: end;
  padding: 1rem; border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.025); margin-bottom: 1.2rem;
}
.field { display: grid; gap: .35rem; min-width: 160px; }
.field label { color: var(--muted); font-size: .78rem; font-weight: 700; }
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7,17,31,.7);
  color: var(--text);
  padding: .68rem .75rem;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: rgba(89,214,200,.6); box-shadow: 0 0 0 3px rgba(89,214,200,.10); }
select option { color: #111; }
textarea { min-height: 120px; resize: vertical; }

.page-hero { padding: 3.6rem 0 2rem; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; }
.page-title { margin: 0; font-size: clamp(2.1rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.055em; }
.page-subtitle { margin: 1rem 0 0; color: var(--muted); max-width: 760px; font-size: 1.08rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; color: var(--muted); font-size: .84rem; margin-bottom: 1rem; }
.breadcrumbs span { color: #718ba4; }

.robot-card .robot-visual, .culture-card .culture-visual {
  min-height: 160px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(89,214,200,.18), transparent 55%),
    linear-gradient(145deg, #15314d, #0c1a2c);
  border-bottom: 1px solid var(--line);
}
.robot-card .meta, .culture-card .meta { color: var(--muted); font-size: .82rem; margin-bottom: .75rem; }
.robot-card .price { font-weight: 800; color: var(--accent); }

.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.stat {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.stat-value { font-size: 1.25rem; font-weight: 900; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .78rem; margin-top: .25rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid var(--line); margin-bottom: 1.3rem; }
.tab {
  padding: .72rem .82rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tab.active, .tab:hover { color: var(--text); border-color: var(--primary); }

.detail-layout { display: grid; grid-template-columns: 1fr 310px; gap: 1.4rem; align-items: start; }
.sticky-panel { position: sticky; top: 94px; }
.info-list { display: grid; gap: .7rem; }
.info-row { display: grid; grid-template-columns: minmax(130px,.75fr) 1.25fr; gap: 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-label { color: var(--muted); font-size: .84rem; }
.info-value { font-weight: 650; }

.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--secondary)); }

.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ""; position: absolute; left: .34rem; top: .3rem; bottom: .3rem; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 1.2rem .6rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.25rem; top: .34rem; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(89,214,200,.12); }
.timeline-title { font-weight: 800; }
.timeline-meta { color: var(--muted); font-size: .8rem; }

.dashboard-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 1rem; }
.location-card { display: grid; grid-template-columns: 62px 1fr auto; gap: .9rem; align-items: center; }
.location-icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 16px; background: rgba(158,140,255,.10); border: 1px solid rgba(158,140,255,.24); font-size: 1.6rem; }

.sos-shell { min-height: calc(100vh - 72px); padding: 2.4rem 0 4rem; }
.sos-card { max-width: 760px; margin: 0 auto; border: 1px solid rgba(255,122,132,.3); border-radius: 24px; background: linear-gradient(145deg, rgba(47,22,32,.95), rgba(11,24,41,.98)); box-shadow: var(--shadow); overflow: hidden; }
.sos-header { padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,122,132,.22); display: flex; justify-content: space-between; align-items: center; }
.sos-body { padding: 1.5rem; }
.sos-options { display: grid; gap: .7rem; margin: 1.2rem 0; }
.sos-option { width: 100%; text-align: left; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); color: var(--text); }
.sos-option:hover { border-color: rgba(255,122,132,.55); background: rgba(255,122,132,.08); }
.sos-step { padding: 1.2rem; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); margin-bottom: .8rem; }
.sos-step strong { display: block; font-size: 1.1rem; margin-bottom: .45rem; }
.sos-note { color: var(--muted); font-size: .85rem; }

.empty-state { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); }

.search-results { display: grid; gap: 1.4rem; }
.result-group h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
.result-list { display: grid; gap: .55rem; }
.result-item { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.result-item:hover { border-color: rgba(89,214,200,.35); }
.result-meta { color: var(--muted); font-size: .78rem; margin-top: .25rem; }

.prototype-banner { border-bottom: 1px solid rgba(255,215,90,.22); background: rgba(255,215,90,.08); color: #ffe9a1; }
.prototype-banner .container { padding: .42rem 0; font-size: .78rem; display: flex; justify-content: space-between; gap: 1rem; }
.prototype-banner a { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 1.8rem; background: rgba(4,11,20,.55); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3,.7fr); gap: 2rem; }
.footer-title { font-weight: 800; margin-bottom: .7rem; }
.footer-links { display: grid; gap: .45rem; color: var(--muted); font-size: .9rem; }
.footer-copy { color: var(--muted); max-width: 460px; }
.footer-bottom { margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: #7d96ad; font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.notice-box { padding: 1rem 1.1rem; border-left: 3px solid var(--primary); background: rgba(89,214,200,.07); border-radius: 0 12px 12px 0; color: var(--muted); }
.notice-box strong { color: var(--text); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: .5rem; }
.gap-md { gap: 1rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }

@media (max-width: 1060px) {
  .main-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); flex-direction: column; align-items: stretch; padding: .7rem; border: 1px solid var(--line); background: #0b192b; border-radius: 14px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem; }
  .nav-toggle { display: inline-flex; }
  .header-search-button span, .icon-link span.label { display: none; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-grid, .detail-layout, .dashboard-grid { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .hero-visual { min-height: 330px; }
}

@media (max-width: 760px) {
  .container, .narrow { width: min(calc(100% - 1.2rem), var(--container)); }
  .header-row { min-height: 62px; gap: .45rem; }
  .brand { font-size: .9rem; }
  .brand small { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 3.4rem; }
  .hero-grid { gap: 1.3rem; }
  .hero-visual { min-height: 280px; }
  .robot-orbit { width: 280px; }
  .robot-face { width: 130px; height: 112px; border-radius: 30px; }
  .robot-face::before, .robot-face::after { top: 41px; }
  .robot-face::before { left: 28px; }
  .robot-face::after { right: 28px; }
  .robot-mouth { bottom: 25px; }
  .orbit-label { font-size: .68rem; }
  .section { padding: 3.2rem 0; }
  .grid-2, .grid-3, .grid-4, .stat-grid, .footer-grid { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
  .toolbar { display: grid; grid-template-columns: 1fr; }
  .field { min-width: 0; }
  .alert { grid-template-columns: auto 1fr; }
  .alert .btn { grid-column: 1 / -1; }
  .info-row { grid-template-columns: 1fr; gap: .2rem; }
  .location-card { grid-template-columns: 52px 1fr; }
  .location-card > .btn { grid-column: 1 / -1; }
  .prototype-banner .container { flex-direction: column; gap: .15rem; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
