/* Global Reset & Design Tokens */
:root {
  color-scheme: dark;
  --bg: #060709;
  --fg: #f4f4f5;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.07);

  --accent: #e04a1a;
  --accent-gradient: linear-gradient(135deg, #e04a1a 0%, #ff7a45 100%);
  --text-gradient: linear-gradient(135deg, #ffffff 30%, #e04a1a 100%);

  --phone-aspect: 1206 / 2622;
  --phone-w: 280px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

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

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Background Ambient Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
}

.glow-1 {
  top: 10%;
  left: 10%;
  width: 450px;
  height: 450px;
  background: #e04a1a;
}

.glow-2 {
  top: 40%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: #ff7a45;
}

/* Header & Logo */
.header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 9, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #fff;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(224, 74, 26, 0.3);
}

.nav {
  display: none;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

/* Buttons & Gradients */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent-gradient);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(224, 74, 26, 0.45);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-disabled {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--muted) !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.btn-disabled::after {
  display: none !important;
}

/* Store Download Buttons (Coming Soon style) */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.store-buttons-centered {
  justify-content: center;
}

.store-btn-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 18px;
  border-radius: 14px;
  min-width: 180px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background-color 0.2s;
  cursor: not-allowed;
  user-select: none;
}

.store-btn-coming-soon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.store-icon {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

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

.store-sub {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.store-main {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.soon-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(224, 74, 26, 0.15);
  color: #ff7a45;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid rgba(224, 74, 26, 0.3);
}

.btn-glow {
  position: relative;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 12px;
  z-index: -1;
  filter: blur(12px);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.btn-glow:hover::after {
  opacity: 0.8;
}

.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 56px 24px 64px;
}

.hero-text,
.hero-phone {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    padding-top: 80px;
    padding-bottom: 96px;
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  margin: 0 0 32px;
  max-width: 30rem;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.fine {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  padding-left: 4px;
}

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

/* Device Shell / Phone Frame Mockup */
.device {
  width: var(--phone-w);
  margin-inline: auto;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.device:hover {
  transform: translateY(-4px) scale(1.015);
}

.device-shell {
  aspect-ratio: var(--phone-aspect);
  border-radius: 42px;
  padding: 7px; /* Modern ultra-thin bezel */
  background: #0f1013;
  border: 2px solid #2d3139; /* Matte titanium frame */
  box-shadow:
    0 30px 70px -10px rgba(0, 0, 0, 0.85),
    0 15px 30px -15px rgba(224, 74, 26, 0.15), /* Subtle branding glow */
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 6px rgba(0, 0, 0, 0.6);
  position: relative;
}

.device-notch {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 18px;
  background: #000;
  border-radius: 10px;
  z-index: 30;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #090a0d;
  position: relative;
  border: 1.5px solid #000;
}

/* Glass screen reflection glare overlay */
.device-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
              rgba(255, 255, 255, 0.12) 0%,
              rgba(255, 255, 255, 0.04) 30%,
              rgba(255, 255, 255, 0) 30.1%,
              rgba(255, 255, 255, 0) 100%);
  z-index: 28;
  pointer-events: none;
}

/* Glass screen inner shadow for realistic depth */
.device-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
  z-index: 27;
  pointer-events: none;
}

/* Phone Screen Container Layouts */
.screen-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  z-index: 10;
}

.screen-container.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 20;
}

.app-screenshot {
  display: block;
  width: 100%;
  height: 100%;
  margin-top: 0;
  object-fit: cover;
  object-position: center top;
}

/* Feature Navigation Tabs below phone */
.mock-tabs {
  display: flex;
  gap: 4px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 16px;
  width: min(540px, 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  overflow-x: auto;
  scrollbar-width: none;
}

.mock-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 1;
  min-height: 36px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s;
  padding: 0 10px;
  white-space: nowrap;
}

.tab-btn i {
  width: 14px;
  height: 14px;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}

/* Features List Section */
.features-section {
  padding: 80px 24px 72px;
  border-top: 1px solid var(--border);
  position: relative;
}

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

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature-item {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-item {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .feature-reverse .feature-media {
    order: 2;
  }

  .feature-reverse .feature-copy {
    order: 1;
  }
}

.feature-media {
  display: flex;
  justify-content: center;
}

.copy-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 24px;
  transition: transform 0.3s, border-color 0.3s;
}

.copy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(224, 74, 26, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon i {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.copy-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.copy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  position: relative;
}

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

.cta h2 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: 0;
}

@media (max-width: 520px) {
  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .ambient-glow {
    display: none;
  }

  .lede {
    max-width: 19.5rem;
    font-size: 16px;
  }

  .fine {
    max-width: 19.5rem;
    font-size: 12px;
    line-height: 1.5;
  }

  .store-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .store-buttons-centered {
    align-items: center;
  }

  .store-btn-coming-soon {
    width: 100%;
    min-width: 0;
  }

  .device {
    width: min(var(--phone-w), 100%);
  }

  .section-header h2,
  .cta h2 {
    font-size: 32px;
  }
}

.cta p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 32px;
}

/* Footer Section */
.footer {
  padding: 48px 24px 64px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 640px) {
  .footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 17px;
}

.footer-logo img {
  border-radius: 6px;
}

.footer nav {
  display: flex;
  gap: 24px;
}

.footer nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer nav a:hover {
  color: #fff;
}

.copyright {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.copyright a {
  color: var(--fg);
  font-weight: 600;
}

/* Scroll Reveal Effects */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Pulsing Utility Class */
.pulsing {
  animation: pulseFab 2.5s infinite;
}

@keyframes pulseFab {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
