/* ===== Design Tokens ===== */
:root {
  --bg: #111827;
  --bg-elevated: #1e293b;
  --bg-overlay: #0f172a;
  --bg-glass: rgba(30, 41, 59, 0.82);
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(56, 189, 248, 0.45);
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --accent: #38bdf8;
  --accent-deep: #0ea5e9;
  --accent-glow: rgba(56, 189, 248, 0.4);
  --violet: #a5b4fc;
  --gradient: linear-gradient(135deg, #38bdf8 0%, #a5b4fc 100%);
  --font-display: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'Inter', sans-serif;
  --container: 1280px;
  --header-h: 80px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ===== Ambient ===== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
  animation: orb-drift 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #0ea5e9, transparent 70%);
  top: -10%; left: -5%;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  bottom: 10%; right: -8%;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: -14s;
  opacity: 0.2;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(17, 24, 39, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::before { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-phone {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text);
  transition: 0.3s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(56, 189, 248, 0.4);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(56, 189, 248, 0.1);
}

.btn-full { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  z-index: 2;
  overflow: hidden;
}

.hero-grid-floor {
  position: absolute;
  bottom: 0; left: -50%; right: -50%;
  height: 55%;
  background:
    linear-gradient(to bottom, transparent, rgba(17, 24, 39, 0.85) 80%),
    repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.06) 0, rgba(56, 189, 248, 0.06) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(56, 189, 248, 0.06) 0, rgba(56, 189, 248, 0.06) 1px, transparent 1px, transparent 80px);
  transform: perspective(600px) rotateX(72deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, #000 20%, transparent 100%);
  pointer-events: none;
}

.hero-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 8vh, 80px);
  padding-bottom: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-title em {
  display: block;
  font-style: normal;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.85;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* Showcase */
.hero-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.showcase-ring {
  position: absolute;
  width: 90%; height: 90%;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.showcase-ring.ring-2 {
  width: 70%; height: 70%;
  border-color: rgba(129, 140, 248, 0.15);
  animation-direction: reverse;
  animation-duration: 20s;
}

.showcase-glow {
  position: absolute;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}

.showcase-float {
  position: relative;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
  transition: transform 0.15s ease-out;
}

.showcase-img {
  width: min(100%, 480px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}

.showcase-tag {
  position: absolute;
  bottom: 10%; right: 5%;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  color: var(--text-muted);
}

/* Metrics bar */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: 24px clamp(20px, 4vw, 32px);
  margin-bottom: clamp(40px, 6vh, 80px);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.metric-val {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.metric-val.text {
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.02em;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

.metric-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.metric-tags span {
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--surface);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  animation: fade-bounce 2.5s ease infinite;
}

.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* ===== Marquee ===== */
.marquee-wrap {
  position: relative;
  z-index: 2;
  border-block: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.5);
  overflow: hidden;
  padding: 18px 0;
}

.marquee {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 35s linear infinite;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.marquee span:nth-child(even) { color: var(--accent); opacity: 0.5; }

/* ===== Sections ===== */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 12vh, 140px) 0;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 40px);
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-head.inline { margin-bottom: 32px; }

.section-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.45), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.section-num.light {
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-weight: 300;
  max-width: 520px;
}

.section-head.center p { margin: 0 auto; }

/* ===== Bento Products ===== */
.products { background: var(--bg-elevated); }

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 16px;
}

.bento-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.45s var(--ease);
}

.bento-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.bento-hero {
  grid-row: span 2;
}

.bento-bg {
  position: absolute;
  inset: 0;
}

.bento-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.bento-item:hover .bento-bg img { transform: scale(1.06); }

.bento-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.35) 50%, transparent 100%);
}

.bento-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(20px, 3vw, 32px);
  z-index: 1;
}

.bento-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.bento-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  margin: 8px 0 6px;
}

.bento-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
}

.bento-arrow {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 1.5rem;
  color: var(--accent);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.35s var(--ease);
}

.bento-hero:hover .bento-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ===== Open Source ===== */
.oss-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.oss-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.oss-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.oss-panel:hover {
  border-color: var(--border-hover);
  background: rgba(56, 189, 248, 0.04);
  transform: translateY(-4px);
}

.oss-panel:hover::before { transform: scaleX(1); }

.oss-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.oss-id {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.oss-panel h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.oss-panel p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 24px;
}

.oss-link {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.oss-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===== Services ===== */
.services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 50%, var(--bg) 100%);
}

.service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-panel {
  padding: clamp(32px, 4vw, 48px);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  transition: all 0.4s var(--ease);
}

.service-panel:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
}

.service-featured {
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.06));
  border-color: rgba(56, 189, 248, 0.2);
}

.service-idx {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.35), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 20px;
}

.service-panel h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-panel p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ===== Training Band ===== */
.training-band {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

.training-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.training-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(17, 24, 39, 0.88) 40%, rgba(17, 24, 39, 0.45) 100%);
}

.training-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: clamp(60px, 10vh, 100px) 0;
}

.training-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.training-content p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.85;
}

/* ===== About ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-visual {
  position: relative;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-year {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 700;
  color: rgba(56, 189, 248, 0.1);
  line-height: 1;
  user-select: none;
}

.eco-orbit {
  position: relative;
  width: 280px; height: 280px;
  border: 1px dashed rgba(56, 189, 248, 0.22);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.eco-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--accent-glow);
  z-index: 2;
}

.eco-node {
  position: absolute;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.75rem;
  color: var(--text-muted);
  backdrop-filter: blur(8px);
}

.n1 { top: -28px; left: calc(50% - 28px); }
.n2 { right: -28px; top: calc(50% - 28px); }
.n3 { bottom: -28px; left: calc(50% - 28px); }
.n4 { left: -28px; top: calc(50% - 28px); }

.about-text p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 16px;
}

.about-list {
  list-style: none;
  margin-top: 28px;
}

.about-list li {
  padding: 12px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ===== Clients ===== */
.clients-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.clients-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 50s linear infinite;
  padding: 20px 0;
}

.clients-track img {
  height: 44px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1) brightness(1.8);
  transition: opacity 0.3s;
}

.clients-track img:hover { opacity: 0.85; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  padding: clamp(32px, 4vw, 48px);
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(12px);
}

.contact-item { margin-bottom: 24px; }

.ci-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.contact-item a {
  color: var(--accent);
  font-size: 1.05rem;
  transition: opacity 0.3s;
}

.contact-item a:hover { opacity: 0.75; }

.contact-item p {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.contact-chips a {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.3s;
}

.contact-chips a:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(32px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--border-hover); }

.contact-form textarea { resize: vertical; min-height: 120px; }

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-dim);
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--accent); }

.footer-legal {
  border-top: 1px solid var(--border);
  padding: 28px clamp(20px, 4vw, 48px);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-legal p { margin-bottom: 8px; }

.beian {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.beian a { color: var(--text-dim); transition: color 0.3s; }
.beian a:hover { color: var(--accent); }

.gongan { display: inline-flex; align-items: center; gap: 4px; }

.footer-addr { font-size: 0.75rem; opacity: 0.7; }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"] { transition-delay: 0.3s; }

/* ===== Animations ===== */
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes fade-bounce {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-showcase { min-height: 320px; order: -1; }
  .hero-metrics { flex-wrap: wrap; }
  .metric-tags { margin-left: 0; width: 100%; justify-content: center; }
  .metric-divider { display: none; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .bento-hero { grid-row: span 1; grid-column: span 2; min-height: 360px; }
  .oss-row, .service-row { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { height: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(17, 24, 39, 0.96);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-phone { display: none; }
  .nav-toggle { display: flex; }

  .bento { grid-template-columns: 1fr; }
  .bento-hero { grid-column: span 1; min-height: 300px; }
  .bento { grid-template-rows: auto; }
  .bento-item { min-height: 220px; }

  .contact-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-metrics { flex-direction: column; align-items: flex-start; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
