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

:root {
  --bg-color: #030304;
  --text-primary: #ffffff;
  --text-muted: rgb(148, 148, 156);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(255, 255, 255, 0.24);
  --nav-bg: rgba(12, 12, 16, 0.75);
  
  /* Fonts */
  --font-serif: 'Playfair Display', 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-color);
  position: relative;
  overflow-x: hidden;
}

/* 1. Background Atmosphere & Canvas */
#neuralCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
}

.orb-top {
  top: -120px;
  left: 30%;
  width: 720px;
  height: 440px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, transparent 70%);
  animation: orbDrift 16s ease-in-out infinite alternate;
}

.orb-bottom {
  bottom: -150px;
  right: 20%;
  width: 620px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.045) 0%, transparent 70%);
  animation: orbDrift 20s ease-in-out infinite alternate-reverse;
}

.cursor-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 680px;
  height: 680px;
  margin-top: -340px;
  margin-left: -340px;
  background: radial-gradient(circle 340px at center, rgba(255, 255, 255, 0.045), transparent 70%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

/* 2. Main Viewport Container */
.viewport-frame {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 3rem 2rem 3rem;
  justify-content: space-between;
}

/* 3. Navigation Bar */
.nav-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: auto;
  animation: navEntrance 0.8s var(--ease-expo) forwards;
}

.navbar {
  width: 100%;
  max-width: 1080px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem 0 1.25rem;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  box-shadow: 
    0 12px 36px -8px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar:hover {
  border-color: var(--border-highlight);
  box-shadow: 
    0 16px 44px -8px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease-expo), background 0.3s ease;
}

.brand-group:hover .brand-icon-box {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.16);
}

.brand-icon {
  color: #ffffff;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

/* 4. Action Buttons with Dual-Arrow Kinetic Slide */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-color: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  transform: translate3d(0, 0, 0);
  transition: transform 0.25s var(--ease-expo), 
              box-shadow 0.25s ease, 
              background-color 0.2s ease;
  will-change: transform;
}

.action-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.action-btn:hover::after {
  left: 140%;
}

.nav-btn {
  padding: 0.44rem 0.95rem;
  font-size: 0.84rem;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.nav-btn:hover {
  background-color: #f2f2f5;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

.hero-btn {
  padding: 0.95rem 2.1rem;
  font-size: 1.02rem;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(255, 255, 255, 0.4),
    0 12px 36px -6px rgba(255, 255, 255, 0.26);
}

.hero-btn:hover {
  background-color: #f7f7fa;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(255, 255, 255, 0.75),
    0 18px 48px -4px rgba(255, 255, 255, 0.42);
}

.action-btn:active {
  transform: scale(0.97) !important;
}

/* Kinetic Dual-Arrow Swap */
.icon-wrap {
  position: relative;
  width: 14px;
  height: 14px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.arrow-svg {
  position: absolute;
  transition: transform 0.35s var(--ease-expo);
  flex-shrink: 0;
}

.arrow-1 { transform: translate3d(0, 0, 0); }
.arrow-2 { transform: translate3d(-16px, 16px, 0); }

.action-btn:hover .arrow-1 { transform: translate3d(16px, -16px, 0); }
.action-btn:hover .arrow-2 { transform: translate3d(0, 0, 0); }

/* 5. Main Hero Section */
.hero-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 2.5rem 0 3.5rem 0;
}

.hero-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
}

/* 6. Editorial Serif Headline with Animated Metallic Chrome Sheen */
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7.2vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.75rem;
}

.title-line {
  display: block;
}

.sheen-text {
  display: inline-block;
  background: linear-gradient(
    115deg,
    #7a7a86 0%,
    #ffffff 22%,
    #ffffff 38%,
    #8f8f9e 54%,
    #ffffff 72%,
    #696974 100%
  );
  background-size: 240% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textEntrance 0.9s var(--ease-expo) var(--delay) forwards,
             metallicSheen 7.5s ease-in-out 1s infinite;
  opacity: 0;
  will-change: transform, opacity, background-position;
}

/* 7. Description */
.hero-description {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.62;
  max-width: 610px;
  margin-bottom: 2.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: textEntrance 0.9s var(--ease-expo) 0.28s forwards;
}

/* 8. Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  opacity: 0;
  animation: textEntrance 0.9s var(--ease-expo) 0.42s forwards;
}

/* Keyframe Animations */
@keyframes navEntrance {
  from {
    opacity: 0;
    transform: translate3d(0, -12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes textEntrance {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes metallicSheen {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes orbDrift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
  100% { transform: translate(-20px, -15px); }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .nav-wrapper,
  .sheen-text,
  .hero-description,
  .hero-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .action-btn::after,
  .arrow-svg {
    transition: none !important;
  }

  #neuralCanvas,
  .cursor-spotlight {
    display: none !important;
  }
}

/* Responsive Rules */
@media (max-width: 900px) {
  .viewport-frame {
    padding: 1.25rem 2rem;
  }

  .hero-title {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
  }
}

@media (max-width: 640px) {
  .viewport-frame {
    padding: 1rem 1.25rem;
  }

  .navbar {
    height: 46px;
    padding: 0 0.85rem;
  }

  .hero-wrapper {
    padding: 4rem 0 3rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.08;
    margin-bottom: 1.25rem;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 2rem;
  }

  .hero-btn {
    width: 100%;
    height: 50px;
  }
}
