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

:root {
  --bg:     #080d1a;
  --text:   #e8eaf0;
  --muted:  #6b7280;
  --accent: #00d4ff;
  --purple: #7c3aed;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

#canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* === HERO === */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  animation: fadeUp 0.9s var(--ease) both;
}


.logo-svg {
  width: min(680px, 85vw);
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.12));
}

.logo-svg .letter {
  fill-opacity: 0;
  stroke: rgba(0, 212, 255, 0.55);
  stroke-width: 1.5;
  paint-order: stroke fill;
  transition: fill-opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
              stroke 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-svg .letter.drawn {
  fill-opacity: 1;
  stroke: rgba(0, 212, 255, 0.22);
}

.logo-svg .emblem {
  fill-opacity: 0;
  stroke: rgba(255, 165, 0, 0.5);
  stroke-width: 1.5;
  paint-order: stroke fill;
  transition: fill-opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
              stroke 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 2px rgba(255, 165, 0, 0.2));
}

.logo-svg .emblem.drawn {
  fill-opacity: 1;
  stroke: rgba(255, 165, 0, 0.2);
}

.tagline {
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--muted);
  min-height: 1.5em;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.tagline.visible {
  opacity: 1;
}

.tagline.visible::after {
  content: '|';
  color: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

/* === SCROLL HINT === */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  color: var(--muted);
  opacity: 0;
  animation: fadeOpacity 0.8s ease 3.8s forwards;
}

.scroll-hint svg {
  animation: bounceY 2s ease-in-out 4.6s infinite;
}

@keyframes fadeOpacity {
  to { opacity: 0.6; }
}

@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* === PLATFORM SECTIONS === */
.platform-section {
  position: relative;
  z-index: 1;
  padding: 120px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.platform-section-inner.visible {
  opacity: 1;
  transform: none;
}

.platform-section-header {
  margin-bottom: 52px;
}

.section-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.platform-section-header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.platform-section-header > p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

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

.detail-card {
  padding: 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.detail-card h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}

.detail-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* --- Section 01: two-column split (header left / cards right) --- */
.section-01 .platform-section-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: start;
}
.section-01 .platform-section-header {
  margin-bottom: 0;
}

/* --- Section 02: centered header, 4-column step cards --- */
.section-02 {
  text-align: center;
}
.section-02 .platform-section-header > p {
  margin: 0 auto;
}
.section-02 .platform-details {
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: left;
}
.section-02 .detail-card {
  border: none;
  border-top: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  padding: 24px 0 0;
}
.section-02 .detail-card::before {
  content: attr(data-step);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 18px;
}

/* --- Section 03: flush divider list (label | description) --- */
.section-03 .platform-details {
  grid-template-columns: 1fr;
  gap: 0;
}
.section-03 .detail-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: baseline;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  padding: 28px 0;
}
.section-03 .detail-card:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.section-03 .detail-card h4 {
  font-size: 13px;
}

/* === FOOTER === */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === KEYFRAMES === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 960px) {
  .section-01 .platform-section-inner { grid-template-columns: 1fr; gap: 48px; }
  .section-02 .platform-details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .platform-section { padding: 80px 28px; }
  .platform-details { grid-template-columns: 1fr; }
  .section-02 .platform-details { grid-template-columns: 1fr; }
  .section-03 .detail-card { grid-template-columns: 1fr; gap: 10px; }
  footer { flex-direction: column; gap: 6px; text-align: center; padding: 20px 24px; }
}
