/* =========================================================
   COMPONENTS — Orbital Gems: Link Puzzle
   Header, Hero, Features, CTA, About, Footer, Buttons
   ========================================================= */

/* =========================================================
   STICKY HEADER
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 28, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-teal);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand-name {
  display: none;
}

@media (min-width: 768px) {
  .brand-name {
    display: inline;
  }
}

.header-nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.header-nav a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--duration) var(--ease-out);
}

.header-nav a:hover {
  color: var(--color-text);
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-teal);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--duration) var(--ease-out);
}

.header-cta:hover {
  background: var(--color-surface-2);
  border-color: var(--color-teal);
  color: var(--color-text);
  box-shadow: 0 0 20px var(--color-glow-teal);
}

.header-cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

@media (min-width: 768px) {
  .header-cta-label {
    display: inline;
  }
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  background: radial-gradient(ellipse at 50% 0%, rgba(95, 227, 200, 0.08), transparent 60%);
  position: relative;
}

@media (min-width: 768px) {
  .hero {
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
  }
}

.hero-inner {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-8);
  }
}

.hero-copy h1 {
  margin-bottom: var(--space-4);
}

.hero-sub {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.hero-body {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    gap: var(--space-4);
  }
}

.hero-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.hero-art {
  position: relative;
}

.hero-art-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 0 40px var(--color-glow-teal);
}

.hero-art-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-art-hint {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.hero-art-hint span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
  opacity: 0.5;
}

@media (min-width: 768px) {
  .hero-art-hint {
    display: none;
  }
}

/* =========================================================
   BUTTONS (Download CTAs)
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-base);
  text-decoration: none;
  transition: all var(--duration) var(--ease-out);
  min-height: 56px;
  position: relative;
  border: 1px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 4px;
}

.btn-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-line-sm {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.btn-line-lg {
  font-size: var(--text-lg);
  font-weight: 700;
}

/* Google Play button */
.btn-play {
  background: linear-gradient(135deg, var(--color-teal), var(--color-gold));
  color: var(--color-bg);
  border-color: transparent;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--color-glow-teal),
              0 4px 12px var(--color-glow-gold);
  color: var(--color-bg);
}

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

/* iOS button — disabled, Coming Soon */
.btn-ios {
  background: var(--color-btn-disabled-bg);
  color: var(--color-btn-disabled-text);
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.55;
  filter: grayscale(0.6);
  cursor: not-allowed;
  position: relative;
}

.btn-ios:hover {
  transform: none;
  background: var(--color-btn-disabled-bg);
  color: var(--color-btn-disabled-text);
  box-shadow: none;
}

.btn-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  pointer-events: none;
}

.btn-wide {
  width: 100%;
  justify-content: center;
}

@media (min-width: 480px) {
  .btn-wide {
    width: auto;
    min-width: 200px;
  }
}

/* =========================================================
   FEATURES GRID
   ========================================================= */

.feature-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--duration) var(--ease-out);
  position: relative;
}

.feature-card:hover {
  border-color: var(--color-teal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
              0 0 20px var(--color-glow-teal);
  transform: translateY(-4px);
}

.feature-key {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-teal);
  background: var(--color-surface-2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
  letter-spacing: 0.06em;
}

.feature-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.feature-text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =========================================================
   CTA SECTION
   ========================================================= */

.cta-section {
  background: linear-gradient(180deg, 
    var(--color-bg) 0%, 
    var(--color-surface) 50%, 
    var(--color-bg) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-inner {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-inner h2 {
  margin-bottom: var(--space-4);
}

.cta-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-7);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-5);
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

.cta-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */

.about-section {
  background: var(--color-bg);
}

.about-inner {
  max-width: 54rem;
  margin: 0 auto;
}

.about-inner h2 {
  text-align: center;
  margin-bottom: var(--space-6);
}

.about-columns {
  display: grid;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.about-text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.about-contact {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}

.about-contact-label {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.about-mail {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-teal);
  word-break: break-all;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.footer-inner {
  display: grid;
  gap: var(--space-6);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    text-align: left;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
  }
}

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

@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-start;
  }
}

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.footer-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 32rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
}

@media (min-width: 768px) {
  .footer-links {
    align-items: flex-end;
  }
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-5);
}

/* =========================================================
   MOBILE STICKY CTA (fixed bottom bar, mobile only)
   ========================================================= */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 28, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3);
  display: flex;
  gap: var(--space-2);
  z-index: 999;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}

.sticky-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

.sticky-btn {
  flex: 1;
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
}

.sticky-btn .btn-icon {
  display: none;
}

.sticky-btn .btn-line-sm {
  font-size: 10px;
}

.sticky-btn .btn-line-lg {
  font-size: var(--text-sm);
}
