/* ==========================================================================
   Orbit Screw: Bolt Puzzle — Main Stylesheet
   Mobile-first, void-space futuristic precision mechanics
   ========================================================================== */

:root {
  /* Brand Tone: Futuristic Precision Mechanics
     Derived from banner/icon deep void indigo with electric blue accents */
  --void-black: #03050C;
  --void-deep: #070A16;
  --void-panel: #0A0E1E;
  --void-raised: #0F1528;
  --void-border: #1A1F38;
  
  --electric-blue: #2E63FF;
  --electric-bright: #4A7CFF;
  --electric-glow: #6B95FF;
  
  --steel-dim: #6C7A9B;
  --steel-text: #A3AECF;
  --steel-bright: #D4DBEC;
  --panel-white: #FBFBFC;
  
  /* Typography: Technical Display Sans with Tabular Numbers */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Elevation shadows (low-key, tech-panel depth) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--void-border);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--void-border);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--void-border);
  
  /* Transitions */
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-quick: 180ms;
  --duration-std: 280ms;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--steel-text);
  background: var(--void-black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: var(--electric-bright);
  text-decoration: none;
  transition: color var(--duration-quick) var(--ease-ui);
}

a:hover, a:focus {
  color: var(--electric-glow);
}

a:active {
  color: var(--electric-blue);
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--panel-white);
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.shell {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 5, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--void-border);
  height: 56px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--panel-white);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-name {
  display: none;
}

.site-nav {
  display: none;
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--electric-blue);
  color: var(--panel-white);
  transition: background var(--duration-quick) var(--ease-ui), transform var(--duration-quick) var(--ease-ui);
}

.header-cta:hover, .header-cta:focus {
  background: var(--electric-bright);
  transform: scale(1.05);
}

.header-cta:active {
  transform: scale(0.98);
}

.header-cta-text {
  display: none;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 56px;
  padding-bottom: var(--space-3xl);
  overflow: hidden;
}

.hero-plate {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  opacity: 0.75;
}

.hero-plate-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 5, 12, 0.5) 0%, rgba(3, 5, 12, 0.85) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 540px;
}

.hero-icon {
  width: 76px;
  height: 76px;
  margin-bottom: var(--space-lg);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-sm);
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--electric-glow);
  background: rgba(46, 99, 255, 0.12);
  border: 1px solid rgba(46, 99, 255, 0.3);
  border-radius: 6px;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.title-accent {
  display: block;
  color: var(--electric-glow);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--steel-bright);
  margin-bottom: var(--space-xl);
}

.store-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero-note {
  font-size: 0.9375rem;
  color: var(--steel-dim);
  margin-bottom: 0;
}

/* ==========================================================================
   Plate Button (Store Buttons)
   ========================================================================== */

.plate-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 12px;
  background: var(--void-raised);
  color: var(--panel-white);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: background var(--duration-quick) var(--ease-ui), transform var(--duration-quick) var(--ease-ui), box-shadow var(--duration-quick) var(--ease-ui);
  text-align: left;
  position: relative;
}

.plate-btn--live {
  background: linear-gradient(135deg, var(--electric-blue) 0%, #1E4FD9 100%);
}

.plate-btn--live:hover, .plate-btn--live:focus {
  background: linear-gradient(135deg, var(--electric-bright) 0%, var(--electric-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 99, 255, 0.4), 0 0 0 1px var(--electric-glow);
}

.plate-btn--live:active {
  transform: translateY(0);
}

.plate-btn--soon {
  background: #2A2A2A;
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
}

.plate-btn--soon:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.soon-tag {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 0.25rem 0.5rem;
  background: var(--steel-dim);
  color: var(--void-black);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.plate-btn-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plate-btn-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.2;
}

.plate-btn-line {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.85;
}

.plate-btn-brand {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Section Base
   ========================================================================== */

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  max-width: 720px;
}

.section-lede {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--steel-bright);
  max-width: 640px;
  margin-bottom: var(--space-2xl);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features {
  background: var(--void-deep);
  border-top: 1px solid var(--void-border);
  border-bottom: 1px solid var(--void-border);
}

.feature-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

.feature-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--void-panel);
  border: 1px solid var(--void-border);
  border-radius: 12px;
  transition: border-color var(--duration-std) var(--ease-ui), transform var(--duration-std) var(--ease-ui);
}

.feature-card:hover {
  border-color: rgba(46, 99, 255, 0.4);
  transform: translateY(-4px);
}

.bolt-node {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-md);
  background: radial-gradient(circle, var(--electric-blue) 0%, var(--electric-blue) 40%, transparent 40%, transparent 100%);
  border: 2px solid var(--electric-blue);
  border-radius: 50%;
  position: relative;
}

.bolt-node::before,
.bolt-node::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--void-panel);
}

.bolt-node::before {
  width: 18px;
  height: 2px;
}

.bolt-node::after {
  width: 2px;
  height: 18px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--panel-white);
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--steel-text);
  margin: 0;
}

/* ==========================================================================
   Download CTA Section
   ========================================================================== */

.download {
  background: linear-gradient(180deg, var(--void-black) 0%, var(--void-deep) 50%, var(--void-black) 100%);
  text-align: center;
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-icon {
  width: 88px;
  height: 88px;
  margin-bottom: var(--space-xl);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 12px 36px rgba(0, 0, 0, 0.7);
}

.download-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--panel-white) 0%, var(--electric-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.download-lede {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--steel-bright);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
}

.store-row--center {
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
  background: var(--void-panel);
  border-top: 1px solid var(--void-border);
}

.about-inner {
  max-width: 720px;
}

.about-inner p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--steel-bright);
  margin-bottom: var(--space-lg);
}

.about-inner em {
  font-style: italic;
  color: var(--panel-white);
}

.about-contact {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--void-border);
  margin-top: var(--space-xl);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  background: var(--void-black);
  border-top: 1px solid var(--void-border);
  padding: var(--space-2xl) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--panel-white);
  margin-bottom: 0.25rem;
}

.footer-tag {
  font-size: 0.875rem;
  color: var(--steel-dim);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 0.9375rem;
}

.copyright {
  font-size: 0.8125rem;
  color: var(--steel-dim);
  margin: 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--void-border);
}

/* ==========================================================================
   Sticky Mobile CTA Bar
   ========================================================================== */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: rgba(10, 14, 30, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--void-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
  animation: slideUp 300ms var(--ease-ui);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.sticky-cta img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.sticky-cta-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.2;
}

.sticky-cta-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--panel-white);
}

.sticky-cta-sub {
  font-size: 0.75rem;
  color: var(--steel-dim);
}

.sticky-cta-btn {
  flex-shrink: 0;
  padding: 0.625rem 1.25rem;
  background: var(--electric-blue);
  color: var(--panel-white);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 8px;
  transition: background var(--duration-quick) var(--ease-ui), transform var(--duration-quick) var(--ease-ui);
}

.sticky-cta-btn:hover, .sticky-cta-btn:focus {
  background: var(--electric-bright);
  color: var(--panel-white);
}

.sticky-cta-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Scroll-triggered Reveal Animation (honors prefers-reduced-motion)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--ease-ui), transform 600ms var(--ease-ui);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
