/* ============================
   ORYUM LANDING PAGE — STYLE
   Design System: Dark Cosmic
   ============================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --bg-primary: #0B1120;
  --bg-surface: rgba(15, 23, 42, 0.6);
  --bg-surface-solid: #000000;
  --text-primary: #F8FAFC;
  --text-muted: #CBD5E1;
  --accent: #FFFFFF;
  --border: rgba(255, 255, 255, 0.15);
  --glow: rgba(255, 255, 255, 0.08);
  --glow-strong: rgba(255, 255, 255, 0.15);

  --font-title: 'DM Serif Display', serif;
  --font-body: 'Space Grotesk', sans-serif;

  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-logo span {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary) !important;
  transition: var(--transition);
}

.nav-cta:hover {
  border-color: var(--glow-strong);
  box-shadow: 0 0 20px var(--glow);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 17, 32, 0.3) 0%,
    rgba(11, 17, 32, 0.6) 50%,
    var(--bg-primary) 100%
  );
}

/* Stars / Particles overlay */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: var(--max-opacity, 0.8); transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-text {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero-title .highlight {
  display: block;
  background: linear-gradient(135deg, #e2e8f0, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-solid);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.store-badge:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px var(--glow), 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-badge .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge .store-text small {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.store-badge .store-text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Hero Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
}

.hero-phone {
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Features Section --- */
.features {
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 40px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
  overflow: hidden;
  /* Scroll animation */
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
  overflow: hidden;
}

.feature-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.feature-title {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Showcase Section --- */
.showcase {
  position: relative;
  overflow: hidden;
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.showcase-visual {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(-30px);
}

.showcase-visual.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.showcase-phone {
  max-width: 350px;
  width: 100%;
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.6));
}

.showcase-content {
  opacity: 0;
  transform: translateX(30px);
}

.showcase-content.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.showcase-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.showcase-desc {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.showcase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.showcase-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
}

.showcase-features li .check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03), transparent 70%);
  pointer-events: none;
}

.cta-card {
  position: relative;
  padding: 80px 40px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
}

.cta-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 32px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 0 40px var(--glow);
}

.cta-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Early Adopter Email Form --- */
.early-adopter-form {
  margin-top: 32px;
  max-width: 480px;
}

.form-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.email-form .input-group {
  display: flex;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.email-form .input-group:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px var(--glow);
}

.email-form input[type="email"] {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  min-width: 0;
}

.email-form input[type="email"]::placeholder {
  color: rgba(203, 213, 225, 0.5);
}

.email-form button[type="submit"] {
  padding: 16px 28px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.email-form button[type="submit"]:hover {
  background: #e2e8f0;
}

.email-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-success {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #86efac;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  animation: fadeInUp 0.5s ease forwards;
}

/* Coming Soon badge style */
.store-badge.coming-soon {
  opacity: 0.7;
  cursor: default;
}

.store-badge.coming-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
  opacity: 0.85;
}

/* CTA Form (centered variant) */
.cta-form {
  max-width: 460px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-logo span {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: var(--transition);
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: rgba(203, 213, 225, 0.5);
}

/* --- Animations for scroll --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- Store Modal --- */
.store-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.store-modal.active {
  opacity: 1;
  visibility: visible;
}

.store-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.store-modal-content {
  position: relative;
  max-width: 420px;
  width: 90%;
  padding: 48px 36px;
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.store-modal.active .store-modal-content {
  transform: scale(1) translateY(0);
}

.store-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.store-modal-close:hover {
  color: var(--text-primary);
}

.store-modal-title {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.store-modal-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.store-modal-btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.store-modal-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 30px var(--glow);
  transform: translateY(-2px);
}

/* --- Store Badge Active (clickable) --- */
.store-badge.store-download {
  cursor: pointer;
  opacity: 1;
}

.store-badge.store-download:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    gap: 40px;
  }

  .showcase-inner {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 17, 32, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
    padding-bottom: 60px;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-phone {
    max-width: 280px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .showcase-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .showcase-visual {
    order: -1;
  }

  .showcase-phone {
    max-width: 260px;
  }

  .showcase-features {
    align-items: center;
  }

  .section-padding {
    padding: 80px 0;
  }

  .early-adopter-form {
    max-width: 100%;
    align-items: center;
  }

  .email-form .input-group {
    flex-direction: column;
    border-radius: var(--radius-sm);
  }

  .email-form button[type="submit"] {
    border-radius: 0;
  }

  .cta-form {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .store-badge {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .cta-badges {
    flex-direction: column;
    align-items: center;
  }

  .cta-badges .store-badge {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}
