/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-0: #0a0a0f;
  --bg-1: #14141c;
  --bg-2: #1c1c26;

  --text: #f0f0f5;
  --text-muted: #80808f;
  --text-dim: #50505f;

  --accent: #4d8eff;
  --accent-dim: #1a3d80;
  --accent-glow: rgba(77, 142, 255, 0.15);

  --glass: rgba(255, 255, 255, 0.025);
  --glass-hover: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.14);

  --line: rgba(255, 255, 255, 0.06);

  --radius: 20px;
  --radius-sm: 12px;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Manrope', sans-serif;

  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="paper"] {
  --bg-0: #fafaf7;
  --bg-1: #f0efe9;
  --bg-2: #e6e4dd;

  --text: #1a1a1f;
  --text-muted: #5a5a62;
  --text-dim: #8a8a92;

  --accent: #2563eb;
  --accent-dim: #1e40af;
  --accent-glow: rgba(37, 99, 235, 0.12);

  --glass: rgba(0, 0, 0, 0.02);
  --glass-hover: rgba(0, 0, 0, 0.035);
  --glass-border: rgba(0, 0, 0, 0.07);
  --glass-border-hover: rgba(0, 0, 0, 0.14);

  --line: rgba(0, 0, 0, 0.07);
}

[data-theme="ember"] {
  --bg-0: #1a0e08;
  --bg-1: #251510;
  --bg-2: #2f1d16;

  --text: #ffffff;
  --text-muted: #d4c4b0;
  --text-dim: #8a7460;

  --accent: #ff6b3d;
  --accent-dim: #802b14;
  --accent-glow: rgba(255, 107, 61, 0.2);

  --glass: rgba(255, 255, 255, 0.03);
  --glass-hover: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.16);

  --line: rgba(255, 255, 255, 0.08);
}

[data-theme="mono"] {
  --bg-0: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #141414;

  --text: #ffffff;
  --text-muted: #aaaaaa;
  --text-dim: #666666;

  --accent: #ffffff;
  --accent-dim: #cccccc;
  --accent-glow: rgba(255, 255, 255, 0.08);

  --glass: rgba(255, 255, 255, 0.02);
  --glass-hover: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.18);

  --line: rgba(255, 255, 255, 0.08);
}

[data-theme="mono"] .nav-cta {
  background: var(--accent);
  color: #000000;
}

[data-theme="mono"] .nav-cta:hover {
  background: #e5e5e5;
}

[data-theme="mono"] .btn-primary {
  background: var(--accent);
  color: #000000;
}

[data-theme="mono"] .btn-primary:hover {
  background: #e5e5e5;
}

[data-theme="midnight"] .logo-img,
[data-theme="ember"] .logo-img,
[data-theme="mono"] .logo-img {
  filter: invert(1);
  background: transparent;
}

[data-theme="ink"] {
  --bg-0: #ffffff;
  --bg-1: #f5f5f5;
  --bg-2: #eaeaea;

  --text: #000000;
  --text-muted: #555555;
  --text-dim: #888888;

  --accent: #000000;
  --accent-dim: #444444;
  --accent-glow: rgba(0, 0, 0, 0.08);

  --glass: rgba(0, 0, 0, 0.02);
  --glass-hover: rgba(0, 0, 0, 0.04);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.18);

  --line: rgba(0, 0, 0, 0.08);
}

[data-theme="ink"] .nav-cta {
  background: var(--accent);
  color: #ffffff;
}

[data-theme="ink"] .nav-cta:hover {
  background: #2a2a2a;
}

[data-theme="ink"] .btn-primary {
  background: var(--accent);
  color: #ffffff;
}

[data-theme="ink"] .btn-primary:hover {
  background: #2a2a2a;
}

[data-theme="ink"] .hl {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--nav-border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links {
  margin-left: auto;
  margin-right: 4px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo-nick {
  font-weight: 400;
  font-size: 0.7em;
  color: var(--text-dim);
  margin-left: 2px;
  letter-spacing: 0;
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-img-sm {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--bg-0);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: #6ba1ff;
  transform: translateY(-1px);
}

.nav-cta .arrow {
  transition: transform 0.2s;
}

.nav-cta:hover .arrow {
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-inner { justify-content: space-between; }
}

/* ---------- Nav tools (lang + theme) ---------- */
.nav-tools {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 100px;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.nav-tool:hover {
  color: var(--text);
  background: var(--glass-hover);
}

.nav-tool--lang {
  width: auto;
  padding: 0 12px;
  min-width: 44px;
}

.lang-active {
  color: var(--text);
}

.nav-tool--theme {
  width: 36px;
  padding: 0;
}

.theme-icon {
  width: 16px;
  height: 16px;
  display: none;
}

[data-theme="mono"] .theme-icon--mono { display: block; }
[data-theme="ink"] .theme-icon--ink { display: block; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

@media (max-width: 600px) {
  .hero { padding: 110px 0 40px; min-height: auto; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 420px;
  padding-top: 20px;
}

.hero-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(40px);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 30px 60px var(--accent-glow));
  transition: transform 0.4s ease;
}

.hero-logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

[data-theme="midnight"] .hero-logo,
[data-theme="ember"] .hero-logo,
[data-theme="mono"] .hero-logo {
  filter: drop-shadow(0 30px 60px var(--accent-glow)) invert(1);
}

[data-theme="paper"] .hero-logo,
[data-theme="ink"] .hero-logo {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.2));
}

.hero-float {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 10px 18px 10px 16px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.float-val {
  order: -1;
}

.hero-float--1 {
  top: 15%;
  right: -10px;
  animation-delay: -2s;
}

.hero-float--2 {
  bottom: 18%;
  left: -10px;
  animation-delay: -4s;
}

.hero-float--3 {
  top: 48%;
  right: -40px;
  animation-delay: -3s;
}

.hero-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.hero-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--text);
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
}

.hero-social:hover {
  opacity: 1;
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-social svg {
  width: 30px;
  height: 30px;
  display: block;
}

.float-key {
  font-family: 'Chiron GoRound TC', sans-serif;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.float-val {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .hero-orb { width: 280px; height: 280px; }
  .hero-logo { width: 240px; }
  .hero-visual { min-height: 320px; }
  .hero-float { display: none; }
}

@media (max-width: 600px) {
  .btn { padding: 7px 9px; font-size: 10.5px; white-space: nowrap; line-height: 1.2; }
  .hero-actions { flex-wrap: nowrap; gap: 4px; }
  .hero-actions .btn { flex: 0 0 auto; min-width: 0; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 40px;
  padding: 8px 16px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  max-width: 18ch;
  text-indent: 0;
  padding-left: 0;
}

.hero-title .line {
  display: block;
}

.hero-title__hl {
  display: inline-block;
  background: var(--text);
  color: var(--bg-0);
  padding: 0.04em 0.18em 0.02em;
  margin-top: 0.04em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-title .line:nth-child(2) {
  color: var(--text-muted);
  font-weight: 300;
}

.hero-tagline {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.6;
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 25px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-0);
}

.btn-primary:hover {
  background: #6ba1ff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}

/* ---------- Stats ---------- */
.stats {
  padding: 40px 0 80px;
}

@media (max-width: 600px) {
  .stats { padding: 20px 0 40px; }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--bg-0);
  padding: 36px 28px;
  transition: background 0.2s;
}

.stat:hover {
  background: var(--bg-1);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.stat-num span {
  font-size: 28px;
  color: var(--text-muted);
  font-weight: 400;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stat-num { font-size: 32px; }
  .stat-num span { font-size: 22px; }
}

/* ---------- Section ---------- */
.section {
  padding: 100px 0;
}

@media (max-width: 900px) {
  .section { padding: 70px 0; }
}

@media (max-width: 600px) {
  .section { padding: 50px 0; }
}

.section-head {
  margin-bottom: 60px;
  max-width: 720px;
}

@media (max-width: 600px) {
  .section-head { margin-bottom: 40px; }
}

.section-num {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 300;
  max-width: 540px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-copy {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
}

.about-copy p {
  margin-bottom: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 16px;
}

.about-copy p:last-child { margin-bottom: 0; }

.lead {
  font-size: 19px !important;
  color: var(--text) !important;
  font-weight: 300;
  line-height: 1.6 !important;
}

.hl {
  color: var(--accent);
  font-weight: 500;
}

.founder-name-legacy {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.founder-role-legacy {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-card {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.side-card:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
}

.side-key {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 16px;
}

.side-card ul {
  list-style: none;
}

.side-card li {
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
}

.side-card li:last-child { border-bottom: none; }
.side-card li:first-child { padding-top: 0; }

/* ---------- Founder ---------- */
.founder-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0.5;
}

@media (max-width: 900px) {
  .founder-card {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
    text-align: left;
  }
}

.founder-portrait {
  width: 100%;
  aspect-ratio: 1;
  max-width: 280px;
  border-radius: var(--radius);
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.founder-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.4;
}

.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.portrait-placeholder {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 96px;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

.founder-info {
  position: relative;
  z-index: 1;
}

.founder-name {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--text);
}

.founder-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 400;
}

.founder-bio {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 300;
}

.founder-bio:last-of-type {
  margin-bottom: 32px;
}

.founder-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.founder-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-0);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.founder-link:hover {
  background: var(--bg-1);
}

.founder-link:hover .link-val {
  color: var(--accent);
}

.link-key {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  flex-shrink: 0;
}

.link-val {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
  text-align: right;
  transition: color 0.2s;
  word-break: break-all;
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.products-grid--mobile {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
}

.products-grid--desktop {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1100px) {
  .products-grid--mobile { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .products-grid--mobile,
  .products-grid--desktop { grid-template-columns: 1fr; }
}

.product {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.product-visual {
  aspect-ratio: 16/9;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual--tall {
  aspect-ratio: 4/5;
  max-height: 640px;
  margin: 0 auto;
  width: 100%;
}

.product-visual--full {
  aspect-ratio: 16/9;
  background: var(--bg-0);
}

.product-visual--full img {
  object-fit: contain;
  padding: 20px;
}

.product-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-glow) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.visual-placeholder {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.product-logo,
.product-visual img.product-logo {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.product-logo-fallback {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.product-logo-fallback--bf {
  background: linear-gradient(135deg, #d4a574 0%, #8b3a1f 100%);
}

.product-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.product-loc {
  font-size: 12px;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(77, 142, 255, 0.2);
  border-radius: 100px;
  font-weight: 500;
  flex-shrink: 0;
}

.product-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-stack span {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 10px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-weight: 500;
}

.product-desc {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14px;
  font-weight: 300;
}

/* ---------- Stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

@media (max-width: 900px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stack-grid { grid-template-columns: 1fr; }
}

.stack-item {
  background: var(--bg-0);
  padding: 28px 24px;
  transition: background 0.2s;
}

.stack-item:hover {
  background: var(--bg-1);
}

.stack-key {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 10px;
}

.stack-val {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
  font-weight: 400;
}

/* ---------- Research ---------- */
.research-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .research-card { grid-template-columns: 1fr; padding: 32px; }
}

.research-copy p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.research-copy p:last-of-type { margin-bottom: 24px; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(77, 142, 255, 0.2);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.research-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  position: relative;
}

.molecular-img {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  background: var(--bg-1);
  padding: 20px;
  border: 1px solid var(--glass-border);
  filter: drop-shadow(0 0 40px var(--accent-glow));
}

.atom {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.atom::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

.atom.a1 { top: 20%;  left: 50%;  transform: translateX(-50%); }
.atom.a2 { top: 50%;  left: 85%;  transform: translateY(-50%); }
.atom.a3 { top: 80%;  left: 70%;  transform: translateY(-50%); }
.atom.a4 { top: 80%;  left: 30%;  transform: translateY(-50%); }
.atom.a5 { top: 50%;  left: 15%;  transform: translateY(-50%); }
.atom.a6 { top: 20%;  left: 50%;  transform: translateX(-50%); opacity: 0.5; }

.bond {
  position: absolute;
  background: var(--accent);
  opacity: 0.3;
  transform-origin: left center;
  height: 1.5px;
}

.bond.b1 {
  top: 30%;
  left: 50%;
  width: 35%;
  transform: rotate(30deg);
}

.bond.b2 {
  top: 55%;
  left: 65%;
  width: 30%;
  transform: rotate(90deg);
}

.bond.b3 {
  top: 80%;
  left: 50%;
  width: 30%;
}

.bond.b4 {
  top: 55%;
  left: 15%;
  width: 30%;
  transform: rotate(90deg);
}

.bond.b5 {
  top: 30%;
  left: 15%;
  width: 35%;
  transform: rotate(-30deg);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.contact:hover::before {
  transform: translateX(100%);
}

.contact:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.contact-key {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-val {
  font-size: 16px;
  color: var(--text);
  font-weight: 400;
  word-break: break-all;
  transition: color 0.2s;
}

.contact:hover .contact-val {
  color: var(--accent);
}

.contact-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.contact:hover .contact-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 400;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  margin-right: 24px;
}

.footer-social a {
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
}

.footer-social a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .footer-social {
    margin-left: 0;
    margin-right: 0;
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Selection ---------- */
::selection {
  background: var(--accent);
  color: var(--bg-0);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-2);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}

