/* ============================================================
   QHEAD — Design System
   Apple Store × PlayStation × Cyberpunk × Premium Tech
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Brand accent */
  --accent: #ff6a00;
  --accent-2: #ff9446;
  --accent-hover: #ff8124;
  --accent-grad: linear-gradient(135deg, #ff8a3d 0%, #ff5e00 100%);
  --accent-soft: rgba(255, 106, 0, 0.12);
  --accent-line: rgba(255, 106, 0, 0.35);

  /* Text */
  --text-primary: #f4f4f6;
  --text-secondary: rgba(244, 244, 246, 0.66);
  --text-muted: rgba(244, 244, 246, 0.4);
  --text-on-accent: #ffffff;

  /* Surfaces */
  --bg-dark: #08080a;
  --surface-well: rgba(255, 255, 255, 0.03);
  --surface-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --highlight-top: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Shadows & glow */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 28px 64px -16px rgba(0, 0, 0, 0.72);
  --glow-orange-sm: 0 0 24px rgba(255, 106, 0, 0.28);
  --glow-orange-btn: 0 8px 22px -6px rgba(255, 106, 0, 0.55);
  --ring: 0 0 0 3px rgba(255, 106, 0, 0.4);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 30px;
  --r-pill: 9999px;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Motion */
  --dur-fast: 0.16s;
  --dur: 0.3s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --header-h: 68px;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* Ambient cinematic backdrop: orange glows + faint technical grid.
     Layered directly on body (fixed attachment) for robust compositing. */
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(58vw 48vh at 84% -10%, rgba(255, 106, 0, 0.16), transparent 60%),
    radial-gradient(44vw 40vh at -4% 2%, rgba(255, 106, 0, 0.07), transparent 55%),
    radial-gradient(70vw 60vh at 50% 116%, rgba(255, 106, 0, 0.05), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  background-position: 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-attachment: fixed;
}

::selection { background: rgba(255, 106, 0, 0.32); color: #fff; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
  background-clip: padding-box;
}

/* Focus ring (keyboard only) */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
a:focus-visible, button:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  box-shadow: var(--ring);
}

/* --- Layout --- */
.w {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 9vw, 128px) 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.qh-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.section-head {
  max-width: 660px;
  margin-bottom: var(--sp-7);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.03em;
}

.section-copy {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

/* Feature steps */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.feature-card {
  position: relative;
  padding: var(--sp-6);
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--highlight-top);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 106, 0, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--highlight-top), var(--shadow-md);
}

.feature-card:hover::after { opacity: 1; }

.feature-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.feature-card h3 {
  font-size: 21px;
  margin-bottom: var(--sp-2);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* --- Components --- */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent-grad);
  color: var(--text-on-accent);
  box-shadow: var(--highlight-top), var(--glow-orange-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--highlight-top), 0 14px 30px -6px rgba(255, 106, 0, 0.72);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-hairline);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border-hairline);
}

.topbar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img { height: 34px; border-radius: 8px; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--dur-fast);
}

.nav a:hover { color: var(--text-primary); }

.primary-nav {
  background: var(--accent-grad);
  color: var(--text-on-accent) !important;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  box-shadow: var(--glow-orange-btn);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast);
}

.primary-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -6px rgba(255, 106, 0, 0.7);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(72px, 11vw, 140px) 0 clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-7);
  align-items: center;
}

.hero-title {
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: var(--sp-5);
}

.hero-title .accent {
  background: linear-gradient(120deg, #ff9a4d 0%, #ff5e00 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.55;
  margin-bottom: var(--sp-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}

.tag:hover { border-color: var(--accent-line); color: var(--text-primary); }

.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: calc(-1 * var(--sp-2)) 0 var(--sp-5);
  padding: 7px 16px 7px 7px;
  background: rgba(255, 106, 0, 0.07);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-promo strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.promo-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--glow-orange-btn);
}

.hero-panel {
  position: relative;
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  box-shadow: var(--highlight-top), var(--shadow-lg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 106, 0, 0.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-topline {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.hero-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.live-pill {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.6);
  animation: pulse-live 2s ease-out infinite;
}

@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 106, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

.hero-panel h2 {
  font-size: 23px;
  margin-bottom: var(--sp-2);
}

.hero-panel > p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: var(--sp-5);
}

.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-5) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-stats li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 14px;
}

.hero-stats li:last-child { border-bottom: none; }

.hero-stats li strong {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-primary);
}

.hero-stats li span {
  color: var(--text-secondary);
  text-align: right;
}

.hero-chat {
  background: rgba(255, 106, 0, 0.05);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}

.hero-chat strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.hero-chat p {
  font-size: 14px;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
}

/* Cards & Panels */
.card {
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--highlight-top);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--sp-4);
}

.proof-item {
  padding: var(--sp-5);
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--highlight-top);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.proof-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: var(--sp-2);
}

.proof-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

/* Catalog */
.cat-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  overflow-x: auto;
  padding-bottom: 8px;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}

.cat-tab:hover { color: var(--text-primary); border-color: var(--border-strong); }

.cat-tab.on {
  background: var(--accent-grad);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: var(--glow-orange-btn);
}

.cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.cat-tab.on .cat-count { background: rgba(0, 0, 0, 0.22); }

.cat-list {
  display: grid;
  gap: var(--sp-2);
}

.cat-row {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-lg);
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.cat-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.cat-row:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--border-strong);
}

.cat-row:hover::before { opacity: 1; }

.cat-row-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.cat-row-price { color: var(--accent); font-family: var(--font-mono); font-size: 14px; font-weight: 500; }

.cat-detail {
  display: none;
  padding: var(--sp-5);
  margin-top: -6px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-hairline);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.cat-detail.open { display: block; animation: fadeSlide var(--dur) var(--ease-out); }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cat-cond {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 14px;
}

.cat-cond:last-of-type { border-bottom: none; }
.cat-cond-label { color: var(--text-secondary); }
.cat-cond-price { font-family: var(--font-mono); color: var(--text-primary); font-weight: 500; }

.cat-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.cat-order-btn, .cat-tg-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), box-shadow var(--dur-fast);
}

.cat-order-btn {
  background: var(--accent-grad);
  color: var(--text-on-accent);
  box-shadow: var(--glow-orange-btn);
}

.cat-order-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -6px rgba(255, 106, 0, 0.7); }

.cat-tg-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
}

.cat-tg-btn:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* Catalog — "order any model" call-to-action */
.cat-anymodel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: linear-gradient(120deg, rgba(255, 106, 0, 0.1), rgba(255, 255, 255, 0.015) 60%);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xl);
  box-shadow: var(--highlight-top);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.cat-anymodel:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--highlight-top), var(--glow-orange-sm);
}

.cat-anymodel-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 4px;
}

.cat-anymodel-text span {
  display: block;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.cat-anymodel-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  background: var(--accent-grad);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: var(--glow-orange-btn);
  transition: transform var(--dur-fast) var(--ease-out);
}

.cat-anymodel:hover .cat-anymodel-btn { transform: translateY(-1px); }

/* Workspace / Dashboard */
.workspace-shell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-2xl);
  padding: var(--sp-5);
  box-shadow: var(--highlight-top);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-5);
}

.nav-card {
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  box-shadow: var(--highlight-top);
}

.brand-stack {
  text-align: center;
  margin-bottom: var(--sp-5);
}

.brand-stack img { width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--sp-2); }
.brand-stack p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 16px; }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  text-align: left;
  transition: all var(--dur-fast);
}

.tab-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.tab-btn.on {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.badge {
  margin-left: auto;
  background: var(--accent-grad);
  color: var(--text-on-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}

/* Account Card */
.account-card {
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--highlight-top);
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-5);
}

.account-user { display: flex; align-items: center; gap: var(--sp-4); }
.avatar {
  width: 52px;
  height: 52px;
  background: var(--accent-grad);
  color: var(--text-on-accent);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--glow-orange-sm);
}

.account-meta { text-align: right; font-size: 12px; color: var(--text-muted); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-4);
}

.summary-card {
  background: var(--surface-grad);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--highlight-top);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.summary-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.summary-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.summary-card span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* Orders & Details */
.orders-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.order-card {
  padding: var(--sp-4);
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-lg);
  cursor: pointer;
  box-shadow: var(--highlight-top);
  transition: all var(--dur-fast) var(--ease-out);
}

.order-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.order-card.on { border-color: var(--accent-line); background: var(--accent-soft); }

.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-2); }
.order-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.status-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-pill);
}
.online-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); }

.order-meta { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.mini-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
}

.detail-panel { display: flex; flex-direction: column; gap: var(--sp-4); }
.detail-slab {
  background: var(--surface-grad);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--highlight-top);
}

.detail-slab h3 { margin-bottom: var(--sp-3); font-size: 18px; }

.detail-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.detail-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  text-align: center;
}
.detail-pill strong { display: block; font-family: var(--font-display); font-size: 15px; }
.detail-pill span { font-size: 11px; color: var(--text-muted); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: var(--sp-4); position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-line), var(--border-hairline));
}

.timeline-step { position: relative; }
.timeline-step::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 3px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 1px var(--accent-line);
}

.timeline-step strong { display: block; font-size: 14px; }
.timeline-step span { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.timeline-step p { margin: 4px 0 0; font-size: 13px; color: var(--text-secondary); }

/* Chat */
.messages-list {
  height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-right: 8px;
  padding-bottom: var(--sp-3);
}

.message {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  max-width: 85%;
}

.message img {
  max-width: 100%;
  border-radius: var(--r-md);
  margin-bottom: var(--sp-2);
  display: block;
  cursor: pointer;
  transition: transform var(--dur-fast);
}

.message img:hover {
  transform: scale(1.02);
}

.message.mine {
  align-self: flex-end;
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--text-on-accent);
  box-shadow: var(--glow-orange-btn);
}

.message-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; margin-bottom: 4px; opacity: 0.7; }
.message-head span:last-child { font-family: var(--font-mono); }
.message p { margin: 0; font-size: 14px; line-height: 1.45; }

.composer { margin-top: var(--sp-4); }
.composer textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  resize: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.composer textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.composer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-3);
}

.quick-row { display: flex; gap: var(--sp-2); }
.quick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--r-sm);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--dur-fast);
}
.quick-btn:hover { color: var(--text-primary); border-color: var(--accent-line); }

/* Quote Table */
.quote-table { display: flex; flex-direction: column; gap: var(--sp-3); }
.quote-line { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); font-size: 14px; font-family: var(--font-mono); }
.quote-line span { color: var(--text-secondary); font-family: var(--font-body); }
.quote-total { color: var(--accent); font-weight: 700; }

/* Payment rows */
.pay-title { display: flex; flex-direction: column; gap: 2px; }
.pay-title em { font-style: normal; font-size: 11.5px; color: var(--text-muted); line-height: 1.4; max-width: 320px; }
.pay-btn {
  flex-shrink: 0; height: 38px; padding: 0 18px; border: none; border-radius: var(--r-md);
  background: var(--accent-grad); color: #fff; font-family: var(--font-body); font-weight: 600;
  font-size: 13px; white-space: nowrap; cursor: pointer; box-shadow: var(--glow-orange-btn);
  transition: transform var(--dur-fast) var(--ease-out);
}
.pay-btn:hover { transform: translateY(-1px); }
.pay-status { flex-shrink: 0; font-family: var(--font-mono); font-size: 13px; }
.pay-status.paid { color: #2ecc71; }
.pay-status.processing { color: var(--accent); }
.pay-status.locked { color: var(--text-muted); }

/* Footer */
footer {
  position: relative;
  background: #050506;
  padding: var(--sp-8) 0 var(--sp-6);
  border-top: 1px solid var(--border-hairline);
}

.footer-panel { display: flex; flex-direction: column; gap: var(--sp-6); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-6); }
.footer-brand { max-width: 400px; }
.footer-brand img { height: 34px; border-radius: 8px; margin-bottom: var(--sp-3); }
.footer-brand p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin: 0; }

.footer-links { display: flex; gap: var(--sp-8); }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col strong { font-family: var(--font-display); font-size: 14px; color: var(--text-primary); }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Toast Notifications --- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--text-muted);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.32s var(--ease-out) forwards;
  font-size: 14px;
  font-weight: 500;
  min-width: 220px;
}

.toast.success { border-left-color: #34d399; }
.toast.error { border-left-color: #f87171; }
.toast.info { border-left-color: var(--accent); }

@keyframes slideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ───────── Japan accents ───────── */
/* Hero rising-sun rays (orange, on-brand — a nod to 日本 without kitsch) */
.hero { overflow: hidden; }
.hero-grid { position: relative; z-index: 2; }
.hero-rays {
  position: absolute; top: -180px; right: -140px;
  width: 640px; height: 640px; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 8deg at 50% 50%,
    rgba(255, 106, 0, 0.11) 0deg 5deg, transparent 5deg 13deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, #000 4%, transparent 60%);
          mask: radial-gradient(circle at 50% 50%, #000 4%, transparent 60%);
}
.hero-rays::after {
  content: ""; position: absolute; inset: 41%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.35), transparent 72%);
}
/* Giant faint kana watermark behind the hero */
.jp-watermark {
  position: absolute; top: 50%; right: 1.5%; transform: translateY(-50%);
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--font-display); font-weight: 700; line-height: 0.92;
  font-size: clamp(90px, 15vw, 190px);
  color: rgba(255, 255, 255, 0.028); letter-spacing: 0.08em;
  z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
}
/* Kanji prefix chip for eyebrows */
.qh-eyebrow .jp {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0;
  margin-right: 9px; padding-right: 9px;
  border-right: 1px solid var(--accent-line);
  color: var(--accent);
}
/* Small "from Japan" sub-line under the hero title */
.hero-jp-line {
  display: inline-flex; align-items: center; gap: 10px;
  margin: calc(-1 * var(--sp-3)) 0 var(--sp-4);
  font-family: var(--font-mono); font-size: 13px; color: var(--text-muted);
}
.hero-jp-line b { color: var(--accent); font-weight: 700; }
/* 日本 → Россия delivery route accent */
.jp-route {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  margin: 0 auto var(--sp-6); padding: 12px 22px; width: fit-content; max-width: 100%;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-hairline);
  border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 13px;
  color: var(--text-secondary); flex-wrap: wrap;
}
.jp-route .pt { display: inline-flex; align-items: center; gap: 7px; color: var(--text-primary); font-weight: 600; }
.jp-route .pt span { font-family: var(--font-display); color: var(--accent); }
.jp-route .dash {
  flex: 1; min-width: 40px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent-line) 0 6px, transparent 6px 12px);
}
/* Subtle seigaiha (wave-scale) texture strip */
.jp-seigaiha {
  height: 22px;
  background-image:
    radial-gradient(circle at 50% 110%, transparent 38%, rgba(255, 106, 0, 0.10) 38% 40%, transparent 41%);
  background-size: 36px 22px;
  opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 560px; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5);
    border-bottom: 1px solid var(--border-hairline);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; gap: var(--sp-5); }
  .feature-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; }
  .cat-anymodel { flex-direction: column; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5); }
  .cat-anymodel-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
