/* 智核工坊 — ocean vault brand (matches TCTheme) */
:root {
  --abyss: #030810;
  --deep-ocean: #081428;
  --tide-card: #0e2240;
  --tide-glow: #00d4c8;
  --spirit-jade: #1ae8a0;
  --star-amber: #f5c842;
  --tide-violet: #8b5cf6;
  --mist: #e8f0f8;
  --slate: #6a8098;
  --tide-border: #153050;
  --danger: #e8505b;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--mist);
  background: var(--abyss);
  -webkit-font-smoothing: antialiased;
}

.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--abyss) 0%, var(--deep-ocean) 45%, var(--abyss) 100%);
}

.ocean-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 212, 200, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(139, 92, 246, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 70%, rgba(26, 232, 160, 0.06), transparent 45%);
  pointer-events: none;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background-image:
    radial-gradient(1px 1px at 20px 30px, var(--tide-glow), transparent),
    radial-gradient(1px 1px at 80px 120px, var(--spirit-jade), transparent),
    radial-gradient(1.2px 1.2px at 160px 60px, var(--tide-glow), transparent),
    radial-gradient(1px 1px at 240px 180px, var(--mist), transparent);
  background-size: 280px 220px;
  animation: drift 48s linear infinite;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-220px); }
}

a {
  color: var(--tide-glow);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--spirit-jade);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(21, 48, 80, 0.6);
  background: rgba(3, 8, 16, 0.82);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mist);
  font-weight: 600;
  font-size: 1.1rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 212, 200, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--slate);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--mist);
  background: rgba(0, 212, 200, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--tide-border);
  color: var(--mist);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* —— Hero —— */
.hero {
  padding: 72px 0 88px;
  text-align: center;
}

.hero-logo {
  width: 108px;
  height: 108px;
  margin: 0 auto 28px;
  border-radius: 22px;
  box-shadow:
    0 0 40px rgba(0, 212, 200, 0.45),
    0 0 80px rgba(139, 92, 246, 0.15);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--mist), var(--tide-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--slate);
  margin: 0 0 8px;
}

.hero .sub {
  font-size: 0.95rem;
  color: rgba(106, 128, 152, 0.9);
  margin: 0 0 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--abyss);
  background: linear-gradient(135deg, var(--tide-glow), var(--spirit-jade));
  box-shadow: 0 8px 32px rgba(0, 212, 200, 0.35);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.hero-cta:hover {
  filter: brightness(1.08);
  color: var(--abyss);
}

/* —— Sections —— */
.section {
  padding: 72px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tide-glow);
  margin-bottom: 12px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

.section-intro {
  color: var(--slate);
  max-width: 640px;
  margin: 0 0 48px;
  font-size: 1.05rem;
}

/* —— Feature cards —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(14, 34, 64, 0.65);
  border: 1px solid var(--tide-border);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: rgba(0, 212, 200, 0.45);
  box-shadow: 0 12px 40px rgba(0, 212, 200, 0.08);
}

.feature-card .icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(0, 212, 200, 0.12);
  color: var(--tide-glow);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* —— Modules (six tabs) —— */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.module-pill {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  background: rgba(14, 34, 64, 0.5);
  border: 1px solid var(--tide-border);
}

.module-pill .icon-wrap {
  margin: 0 auto 10px;
  color: var(--tide-glow);
}

.module-pill strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.module-pill span {
  font-size: 0.8rem;
  color: var(--slate);
}

/* —— Screenshots —— */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.shot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 100%;
  max-width: 280px;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(145deg, #1a3050, #0a1628);
  border: 2px solid var(--tide-border);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 212, 200, 0.15),
    inset 0 1px 0 rgba(232, 240, 248, 0.06);
}

.phone-notch {
  width: 36%;
  height: 5px;
  margin: 4px auto 8px;
  border-radius: 999px;
  background: #0a1628;
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: var(--abyss);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot-card figcaption {
  margin-top: 16px;
  text-align: center;
  max-width: 280px;
}

.shot-card figcaption strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--mist);
}

.shot-card figcaption span {
  font-size: 0.85rem;
  color: var(--slate);
}

/* —— Badges —— */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(14, 34, 64, 0.8);
  border: 1px solid var(--tide-border);
  color: var(--mist);
}

.badge i {
  color: var(--tide-glow);
  width: 18px;
  height: 18px;
}

/* —— Legal pages —— */
.legal-page {
  padding: 48px 0 96px;
}

.legal-panel {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: rgba(14, 34, 64, 0.55);
  border: 1px solid var(--tide-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.legal-panel h1 {
  margin: 0 0 8px;
  font-size: 1.85rem;
}

.legal-panel .updated {
  color: var(--slate);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-panel h2 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--tide-glow);
}

.legal-panel p,
.legal-panel li {
  color: rgba(232, 240, 248, 0.9);
  font-size: 0.98rem;
}

.legal-panel ul {
  padding-left: 1.25rem;
}

.legal-panel li {
  margin-bottom: 8px;
}

/* —— Footer —— */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--tide-border);
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer-brand p {
  color: var(--slate);
  font-size: 0.9rem;
  max-width: 320px;
  margin: 12px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--slate);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--tide-glow);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(21, 48, 80, 0.5);
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate);
}

/* —— Responsive —— */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: rgba(3, 8, 16, 0.96);
    border-bottom: 1px solid var(--tide-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-panel {
    padding: 28px 20px;
  }

  .hero {
    padding: 48px 0 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .particles {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
