/* ============================================================
   RichChip Website — main.css
   Global variables, reset, typography, layout, section styles
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --rich-blue: #1A6FFF;
  --rich-blue-hover: #3d86ff;
  --rich-blue-glow: rgba(26, 111, 255, 0.25);
  --privacy-cyan: #00D4C8;
  --privacy-cyan-glow: rgba(0, 212, 200, 0.25);
  --signal-green: #00E87A;
  --signal-green-glow: rgba(0, 232, 122, 0.25);
  --security-purple: #9B59FF;
  --security-purple-glow: rgba(155, 89, 255, 0.25);

  --gold: #D4A843;
  --gold-light: #F5D476;
  --gold-dark: #A07820;
  --gold-glow: rgba(212, 168, 67, 0.3);
  --gold-gradient: linear-gradient(135deg, #A07820 0%, #D4A843 40%, #F5D476 60%, #C89030 100%);

  --deep-space: #080E1E;
  --surface-dark: #111827;
  --surface-mid: #162032;
  --surface-elevated: #1a2640;

  --text-primary: #F0F4FF;
  --text-secondary: #8899BB;
  --text-muted: #4A5568;
  --border: #1E2D4A;
  --border-light: #243450;

  --radius-card: 12px;
  --radius-btn: 6px;
  --radius-badge: 20px;
  --max-width: 1280px;

  --font-en: 'Inter', 'Sora', sans-serif;
  --font-zh: 'Noto Sans TC', sans-serif;
  --font-num: 'Space Grotesk', sans-serif;

  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;

  --nav-height: 72px;
  --section-pad: 100px;
  --section-pad-sm: 60px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--deep-space);
  color: var(--text-primary);
  font-family: var(--font-zh), var(--font-en), sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ── Typography ────────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rich-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ── Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad) 0;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Hero Section (#hero) ──────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 25% 50%, rgba(26, 111, 255, 0.12) 0%, transparent 70%),
    linear-gradient(135deg, #080E1E 0%, #0D1B2E 50%, #080E1E 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(26, 111, 255, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.4;
  animation: heroGridPulse 8s ease-in-out infinite alternate;
}

@keyframes heroGridPulse {
  from { opacity: 0.25; }
  to   { opacity: 0.5; }
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 20% 60%, rgba(0, 212, 200, 0.06) 0%, transparent 60%);
  animation: heroGlowShift 12s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes heroGlowShift {
  from { transform: translateX(0) translateY(0); }
  to   { transform: translateX(5%) translateY(-5%); }
}

.hero-slider {
  position: relative;
  height: 100%;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translateX(30px);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-slide.exit {
  opacity: 0;
  transform: translateX(-30px);
}

/* ── Hero slide background images ──────────────────────── */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transition: transform 8s ease;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1.04);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 14, 30, 0.82) 0%,
    rgba(8, 14, 30, 0.55) 50%,
    rgba(8, 14, 30, 0.25) 100%
  );
  z-index: 1;
}

.hero-slide-overlay--brand {
  background: linear-gradient(
    to bottom,
    rgba(8, 14, 30, 0.45) 0%,
    rgba(8, 14, 30, 0.10) 40%,
    rgba(8, 14, 30, 0.10) 60%,
    rgba(8, 14, 30, 0.80) 100%
  );
}

/* Brand slide: content sits at the bottom */
.hero-slide--brand {
  align-items: flex-end;
}

.hero-slide--brand .container {
  padding-bottom: 80px;
}

.hero-slide--brand .hero-content--centered {
  padding-top: 0;
}

.hero-slide-overlay--security {
  background: linear-gradient(
    105deg,
    rgba(8, 14, 30, 0.88) 0%,
    rgba(20, 10, 40, 0.65) 50%,
    rgba(8, 14, 30, 0.30) 100%
  );
}

/* ── Brand hero slide ────────────────────────────────── */
.hero-content--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-brand-logo {
  width: 100%;
  max-width: 700px;
  margin-bottom: 0.5rem;
}

.hero-brand-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 40px rgba(212, 168, 67, 0.5));
}

.hero-brand-tagline {
  font-size: 1.1rem;
  color: rgba(240, 244, 255, 0.75);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-cta--centered {
  justify-content: center;
}

/* ── Gold CTA button ─────────────────────────────────── */
.btn-gold {
  background: var(--gold-gradient);
  color: #1a1000;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 20px var(--gold-glow);
}

.btn-gold:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 32px rgba(212, 168, 67, 0.5);
  transform: translateY(-2px);
}

.hero-content {
  padding-top: var(--nav-height);
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--privacy-cyan);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--privacy-cyan);
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--rich-blue), var(--privacy-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.hero-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--rich-blue);
}

.hero-arrows {
  position: absolute;
  bottom: 32px;
  right: 40px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.hero-arrow:hover {
  border-color: var(--rich-blue);
  color: var(--rich-blue);
  background: var(--rich-blue-glow);
}

/* ── Brand Positioning (#brand) ────────────────────────────── */
#brand {
  background: var(--surface-dark);
  position: relative;
  overflow: hidden;
}

#brand::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 111, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.brand-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.brand-card {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  transition: all var(--transition);
}

.brand-card:hover {
  border-color: var(--rich-blue);
  box-shadow: 0 0 24px var(--rich-blue-glow);
  transform: translateY(-4px);
}

.brand-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--rich-blue-glow), transparent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--rich-blue);
}

.brand-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.brand-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.brand-dna {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.brand-dna-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dna-badge {
  padding: 6px 16px;
  border-radius: var(--radius-badge);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid;
}

.dna-badge.secure {
  color: var(--privacy-cyan);
  border-color: var(--privacy-cyan);
  background: var(--privacy-cyan-glow);
}

.dna-badge.intelligent {
  color: var(--rich-blue);
  border-color: var(--rich-blue);
  background: var(--rich-blue-glow);
}

.dna-badge.reliable {
  color: var(--signal-green);
  border-color: var(--signal-green);
  background: var(--signal-green-glow);
}

/* ── Products Section (#products) ─────────────────────────── */
#products {
  background: var(--deep-space);
}

.filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-badge);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  background: transparent;
}

.filter-btn:hover {
  border-color: var(--rich-blue);
  color: var(--rich-blue);
}

.filter-btn.active {
  background: var(--rich-blue);
  border-color: var(--rich-blue);
  color: #fff;
}

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

.product-card {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  flex-shrink: 0;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.product-card:hover .product-card-image img {
  transform: scale(1.07);
}

.product-card > *:not(.product-card-image) {
  padding-left: 24px;
  padding-right: 24px;
}

.product-card-header {
  padding-top: 24px;
  padding-bottom: 0;
}

.product-card-footer {
  padding-bottom: 24px;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--rich-blue));
}

.product-card:hover {
  border-color: var(--card-accent, var(--rich-blue));
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--card-accent, var(--rich-blue)),
              0 0 40px var(--card-glow, var(--rich-blue-glow));
  transform: translateY(-4px);
}

.product-card.hidden {
  display: none;
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-icon-bg, var(--rich-blue-glow));
  color: var(--card-accent, var(--rich-blue));
  flex-shrink: 0;
}

.product-model {
  font-family: var(--font-num);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--card-accent, var(--rich-blue));
  background: var(--card-glow, var(--rich-blue-glow));
  padding: 4px 10px;
  border-radius: var(--radius-badge);
  align-self: flex-start;
}

.product-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.product-card-tagline {
  font-size: 0.8rem;
  color: var(--card-accent, var(--rich-blue));
  margin-bottom: 12px;
  font-weight: 600;
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.product-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-badge);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ── Technology Platform (#technology) ────────────────────── */
#technology {
  background: var(--surface-dark);
  position: relative;
  overflow: hidden;
}

.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-left .section-subtitle {
  max-width: 100%;
  margin-bottom: 32px;
}

.tech-quote {
  border-left: 3px solid var(--rich-blue);
  padding: 16px 20px;
  background: var(--surface-mid);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: all var(--transition);
}

.tech-card:hover {
  border-color: var(--rich-blue);
  box-shadow: 0 0 20px var(--rich-blue-glow);
}

.tech-card-icon {
  width: 40px;
  height: 40px;
  background: var(--rich-blue-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--rich-blue);
}

.tech-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tech-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── RSM NPU Section (#rsm-npu) ────────────────────────────── */
#rsm-npu {
  background: var(--deep-space);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

#rsm-npu::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0, 212, 200, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.rsm-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 64px;
  flex-wrap: wrap;
  row-gap: 16px;
}

.rsm-step {
  display: flex;
  align-items: center;
}

.rsm-step-box {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  text-align: center;
  min-width: 130px;
  transition: all var(--transition);
}

.rsm-step-box:hover {
  border-color: var(--privacy-cyan);
  box-shadow: 0 0 20px var(--privacy-cyan-glow);
}

.rsm-step-icon {
  width: 36px;
  height: 36px;
  background: var(--privacy-cyan-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--privacy-cyan);
}

.rsm-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.rsm-arrow {
  color: var(--privacy-cyan);
  margin: 0 8px;
  opacity: 0.6;
  flex-shrink: 0;
}

.rsm-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rsm-metric {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  transition: all var(--transition);
}

.rsm-metric:hover {
  border-color: var(--privacy-cyan);
  box-shadow: 0 0 20px var(--privacy-cyan-glow);
  transform: translateY(-4px);
}

.rsm-metric-value {
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 700;
  color: var(--privacy-cyan);
  margin-bottom: 8px;
  line-height: 1;
}

.rsm-metric-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Use Cases (#usecases) ─────────────────────────────────── */
#usecases {
  background: var(--surface-dark);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecase-card {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.usecase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-hover-bg, transparent);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.usecase-card:hover::before {
  opacity: 1;
}

.usecase-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 20px var(--card-glow);
}

.usecase-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--card-icon-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-accent);
  position: relative;
  z-index: 1;
}

.usecase-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.usecase-product-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-badge);
  color: var(--card-accent);
  background: var(--card-glow);
  border: 1px solid var(--card-accent);
  position: relative;
  z-index: 1;
}

/* ── Roadmap (#roadmap) ────────────────────────────────────── */
#roadmap {
  background: var(--deep-space);
}

.roadmap-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
  padding: 0 24px;
}

.roadmap-track::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--rich-blue), var(--privacy-cyan), var(--text-muted));
  z-index: 0;
}

.roadmap-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.roadmap-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.25rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.roadmap-node.released .roadmap-dot {
  border-color: var(--signal-green);
  background: var(--signal-green-glow);
  box-shadow: 0 0 16px var(--signal-green-glow);
}

.roadmap-node.indev .roadmap-dot {
  border-color: var(--rich-blue);
  background: var(--rich-blue-glow);
  box-shadow: 0 0 16px var(--rich-blue-glow);
  animation: roadmapPulse 2s ease-in-out infinite;
}

@keyframes roadmapPulse {
  0%, 100% { box-shadow: 0 0 16px var(--rich-blue-glow); }
  50% { box-shadow: 0 0 32px rgba(26, 111, 255, 0.5); }
}

.roadmap-node.planned .roadmap-dot {
  border-color: var(--border-light);
  opacity: 0.7;
}

.roadmap-phase {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.roadmap-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  max-width: 140px;
  line-height: 1.4;
}

.roadmap-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-badge);
}

.roadmap-node.released .roadmap-status {
  color: var(--signal-green);
  background: var(--signal-green-glow);
  border: 1px solid var(--signal-green);
}

.roadmap-node.indev .roadmap-status {
  color: var(--rich-blue);
  background: var(--rich-blue-glow);
  border: 1px solid var(--rich-blue);
}

.roadmap-node.planned .roadmap-status {
  color: var(--text-muted);
  background: var(--surface-dark);
  border: 1px solid var(--border);
}

.roadmap-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.roadmap-stage {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.roadmap-stage-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rich-blue);
  margin-bottom: 10px;
}

.roadmap-stage-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Partnership (#partnership) ────────────────────────────── */
#partnership {
  background: var(--surface-dark);
}

.partnership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.partnership-card {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: all var(--transition);
}

.partnership-card:hover {
  border-color: var(--privacy-cyan);
  box-shadow: 0 0 24px var(--privacy-cyan-glow);
  transform: translateY(-4px);
}

.partnership-icon {
  width: 44px;
  height: 44px;
  background: var(--privacy-cyan-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--privacy-cyan);
}

.partnership-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.partnership-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.partnership-quote-block {
  background: linear-gradient(135deg, var(--surface-mid), var(--surface-elevated));
  border: 1px solid var(--border);
  border-left: 3px solid var(--privacy-cyan);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  text-align: center;
}

.partnership-quote-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

/* ── Contact (#contact) ────────────────────────────────────── */
#contact {
  background: var(--deep-space);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 111, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  background: var(--rich-blue-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rich-blue);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-info-value {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--rich-blue);
  color: var(--rich-blue);
  background: var(--rich-blue-glow);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--surface-dark);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--rich-blue);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Scroll Animations ─────────────────────────────────────── */
.animate-fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only hide when JS has loaded and set up the observer */
body.js-ready .animate-fade-up {
  opacity: 0;
  transform: translateY(32px);
}

body.js-ready .animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 1;
  transition: opacity 0.7s ease;
}

body.js-ready .animate-fade-in {
  opacity: 0;
}

body.js-ready .animate-fade-in.visible {
  opacity: 1;
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ── Product Page Styles (product pages use same main.css) ─── */
.product-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.product-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-badge);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid;
}

.product-hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.product-hero-tagline {
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.features-section {
  padding: var(--section-pad) 0;
  background: var(--surface-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--card-accent, var(--rich-blue));
  box-shadow: 0 0 20px var(--card-glow, var(--rich-blue-glow));
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.specs-section {
  padding: var(--section-pad) 0;
  background: var(--deep-space);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border);
}

.specs-table th {
  background: var(--surface-mid);
  padding: 16px 24px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.specs-table td {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 40%;
}

.specs-table tr:hover td {
  background: var(--surface-mid);
}

.product-usecases-section {
  padding: var(--section-pad) 0;
  background: var(--surface-dark);
}

.product-cta-section {
  padding: 80px 0;
  background: var(--deep-space);
  text-align: center;
}

.product-cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.product-cta-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Logo SVG ──────────────────────────────────────────────── */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}
