/* =========================================================
   IntervalDeck Brand Stylesheet
   Sampled directly from IntervalDeck Android UI
   ========================================================= */
:root {
  --bg-primary: #0e1117;
  --bg-surface: #171c26;
  --bg-surface-hover: #1f2634;
  --border-subtle: #262e3d;

  --brand-blue: #2962ff;
  --brand-blue-hover: #3b71ff;
  --brand-blue-glow: rgba(41, 98, 255, 0.28);
  --accent-gold: #f59e0b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* =========================================================
   Brand Navigation & App Icon
   ========================================================= */
.brand-nav {
  padding: 28px 0 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width:48px;
  text-decoration: none;
  color: var(--text-primary);
}

.app-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-blue), #1d4ed8);
  color: #ffffff;
  box-shadow: 0 8px 20px var(--brand-blue-glow);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* =========================================================
   Hero Header & Vertical Scrolling {{subject}} Ticker
   ========================================================= */
.hero {
  padding-bottom: 72px;
  background: radial-gradient(circle at 75% 35%, rgba(41, 98, 255, 0.14), transparent 55%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding: 32px 0 48px;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

/* Scrolling Subject Slot */
.ticker-wrapper {
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--brand-blue);
  border-bottom: 3px solid var(--brand-blue);
  padding-right: 4px;
}

.ticker-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.ticker-word {
  display: block;
  height: 1.2em;
  line-height: 1.2em;
  white-space: nowrap;
}

.hero-subtitle {
  margin: 0;
  max-width: 500px;
  font-size: 1.125rem;
  color: var(--text-secondary);
}

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

.hero-cta-centered {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

/* =========================================================
   Google Play Store Badge Button
   ========================================================= */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  background-color: #090b0f;
  border: 1.5px solid #334155;
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.play-badge:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  box-shadow: 0 14px 30px var(--brand-blue-glow);
}

.play-badge--compact {
  padding: 9px 18px;
  border-radius: 11px;
}

.play-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.play-small {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.play-large {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.play-badge--compact .play-large {
  font-size: 1rem;
}

/* =========================================================
   Samsung Galaxy Hardware Frame Encapsulation
   ========================================================= */
.phone-frame {
  position: relative;
  width: 290px;
  padding: 11px;
  background: linear-gradient(145deg, #2c3340 0%, #141820 50%, #262c38 100%);
  border-radius: 40px;
  box-shadow:
    0 0 0 1.5px #475569,
    0 28px 60px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(41, 98, 255, 0.12);
}

/* Right-side physical volume & power buttons */
.phone-frame::before {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 105px;
  width: 3px;
  height: 54px;
  background: #475569;
  border-radius: 0 3px 3px 0;
}

.phone-frame::after {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 175px;
  width: 3px;
  height: 30px;
  background: #475569;
  border-radius: 0 3px 3px 0;
}

.phone-camera {
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  background: #05070a;
  border-radius: 50%;
  border: 1.5px solid #1e293b;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 20;
  border-radius: 30px;
  overflow: hidden;
  background: #0e1117;
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Features Section
   ========================================================= */
.features {
  padding: 88px 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  margin-bottom: 112px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

/* Reverse column order for Feature 2 (Image Left, Text Right) */
.feature-row--reverse .feature-media {
  order: -1;
}

.feature-text h2 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.feature-text p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

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

/* Elevated Create Mockup & Watch Mockup Containers */
.elevated-mockup-wrapper,
.watch-mockup-wrapper {
  max-width: 340px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-subtle);
}

.elevated-mockup-img,
.watch-mockup-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Coming Soon Section */
.feature-coming-soon {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.coming-soon-header {
  text-align: center;
  margin-bottom: 48px;
}

.coming-soon-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--brand-blue);
  background: rgba(41, 98, 255, 0.14);
  border: 1px solid rgba(41, 98, 255, 0.4);
  border-radius: 999px;
}

/* =========================================================
   Mailing List Sign Up Form
   ========================================================= */
.newsletter {
  padding: 32px 0 88px;
}

.newsletter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.newsletter-card h2 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 800;
}

.newsletter-card p {
  margin: 0 0 28px;
  color: var(--text-secondary);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-form input:focus {
  border-color: var(--brand-blue);
}

.btn-primary {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #ffffff;
  background-color: var(--brand-blue);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-subtle);
  background-color: #090b0f;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.copyright {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Policy Modal */
.policy-modal {
  max-width: 520px;
  width: 90%;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.policy-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 860px) {
  .hero-grid,
  .feature-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .feature-row--reverse .feature-media {
    order: 0;
  }

  .newsletter-form {
    flex-direction: column;
  }
}