:root {
  --color-bg: #08080a;
  --color-surface: #111114;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);
  --color-text: #ededed;
  --color-muted: #6b6b6f;
  --color-accent: #6e8efb;
  --color-accent-2: #a78bfa;
  --color-accent-glow: rgba(110, 142, 251, 0.12);
  --color-link: #8b9cf7;
  --font-heading: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-body: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-width: 900px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  position: relative;
  overflow-x: hidden;
}

/* Dot grid background */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
}

/* Animated aurora glow */
.aurora {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.5;
  animation: aurora 12s ease-in-out infinite alternate;
}

.aurora-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  position: absolute;
  top: 0;
  left: 30%;
  animation: drift1 10s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
  position: absolute;
  top: 10%;
  left: 55%;
  animation: drift2 14s ease-in-out infinite alternate;
}

@keyframes drift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 30px) scale(1.15); }
}

@keyframes drift2 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, -20px) scale(0.9); }
}

.container {
  width: 100%;
  max-width: var(--max-width);
  position: relative;
  z-index: 1;
}

/* Hero */
.hero {
  padding: 5rem 0 1.5rem;
  position: relative;
}

.hero-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-visual {
  width: 530px;
  height: 530px;
  flex-shrink: 0;
  margin-right: -100px;
  margin-top: -120px;
  opacity: 0;
  animation: fadeIn 1.5s ease-out 0.8s forwards;
}

#morphCanvas {
  width: 530px;
  height: 530px;
}


/* Knight icon */
.knight-icon {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  margin-bottom: -0.1em;
}

.knight-icon svg {
  width: 100%;
  height: 100%;
}

/* Hero heading row */
.hero-heading {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: slideUp 0.7s ease-out 0.35s forwards, textGlow 4s ease-in-out 1.1s infinite alternate;
}

.hero-heading h1 {
  margin-bottom: 0;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideUp 0.6s ease-out 0.2s forwards;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

.hero-text > h1 {
  opacity: 0;
  animation: slideUp 0.7s ease-out 0.3s forwards, textGlow 4s ease-in-out 1s infinite alternate;
}



.hero h1 {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--color-text);
  position: relative;
  text-shadow:
    0 0 10px rgba(110, 142, 251, 0.3),
    0 0 30px rgba(110, 142, 251, 0.15),
    0 0 60px rgba(110, 142, 251, 0.08);
}

@keyframes textGlow {
  from {
    text-shadow:
      0 0 10px rgba(110, 142, 251, 0.2),
      0 0 25px rgba(110, 142, 251, 0.1),
      0 0 50px rgba(110, 142, 251, 0.05);
  }
  to {
    text-shadow:
      0 0 15px rgba(110, 142, 251, 0.4),
      0 0 40px rgba(110, 142, 251, 0.2),
      0 0 80px rgba(110, 142, 251, 0.1),
      0 0 120px rgba(167, 139, 250, 0.06);
  }
}


.hero p {
  font-size: 1.3rem;
  color: var(--color-muted);
  max-width: 440px;
  line-height: 1.7;
  min-height: 3.4em;
}

.hero p span {
  display: inline-block;
  transition: none;
}

.hero p span.wave {
  animation: letterWave 0.4s ease-out forwards;
}

@keyframes letterWave {
  0% { transform: translateY(0); color: var(--color-muted); }
  40% { transform: translateY(-3px); color: var(--color-link); }
  100% { transform: translateY(0); color: var(--color-muted); }
}

/* Divider line */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-glow), var(--color-border), transparent);
  margin: 0 0 1rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.7s forwards;
}

/* Products */
.products {
  padding: 0 0 4rem;
  opacity: 0;
  animation: slideUp 0.6s ease-out 0.75s forwards;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

.product-grid {
  display: flex;
  gap: 10%;
  flex-wrap: wrap;
}

.product-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  width: 45%;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(110, 142, 251, 0.03) 50%, rgba(167, 139, 250, 0.02) 100%);
  border: 1px solid rgba(110, 142, 251, 0.12);
  border-radius: 16px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 20px rgba(110, 142, 251, 0.12),
    0 0 50px rgba(110, 142, 251, 0.08),
    0 0 100px rgba(110, 142, 251, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 142, 251, 0.4), rgba(167, 139, 250, 0.3), transparent);
  opacity: 0.6;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(110, 142, 251, 0.1), transparent 40%, transparent 60%, rgba(167, 139, 250, 0.08));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover {
  border-color: rgba(110, 142, 251, 0.25);
  box-shadow:
    0 0 30px rgba(110, 142, 251, 0.18),
    0 0 60px rgba(110, 142, 251, 0.1),
    0 0 120px rgba(110, 142, 251, 0.06),
    0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.product-card:hover::after {
  opacity: 1;
}

.product-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.product-icon img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.product-info {
  padding-top: 0.125rem;
}

.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.product-info p {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 0.875rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.825rem;
  color: var(--color-link);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.product-link::after {
  content: '→';
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.product-link:hover {
  gap: 0.5rem;
}

.product-link:hover::after {
  transform: translateX(2px);
}

/* Footer */
.footer {
  padding: 3rem 0;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  width: 100%;
  max-width: var(--max-width);
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: slideUp 0.5s ease-out 0.9s forwards;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.825rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-copyright {
  font-size: 0.825rem;
  color: var(--color-muted);
  opacity: 0.4;
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Privacy page */
.privacy-content {
  padding: 0 0 4rem;
  opacity: 0;
  animation: slideUp 0.6s ease-out 0.2s forwards;
}

.privacy-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.privacy-date {
  color: var(--color-muted);
  font-size: 0.825rem;
  margin-bottom: 2.5rem;
}

.privacy-body {
  line-height: 1.8;
  color: var(--color-muted);
}

.privacy-body h3 {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.privacy-body p {
  margin-bottom: 1rem;
  font-size: 0.894rem;
}

.privacy-body ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.privacy-body li {
  margin-bottom: 0.5rem;
  font-size: 0.894rem;
}

.privacy-body a {
  color: var(--color-link);
  text-decoration: none;
}

.privacy-body a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 0 1.5rem;
  }

  .aurora {
    width: 400px;
    height: 400px;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .product-card {
    width: 100%;
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .product-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .product-icon img {
    border-radius: 14px;
  }

  .hero-visual {
    display: none;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .privacy-content h2 {
    font-size: 1.5rem;
  }
}
