/* ============================================
   SwaraFM — Warm Editorial Landing
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,700;9..144,800&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --paper: #FFFCF0;
  --ink: #100F0F;
  --ink-warm: #1C1B1A;
  --tx-2: #6F6E69;
  --tx-3: #878580;
  --ui-1: #E6E4D9;
  --ui-2: #DAD8CE;
  --ui-3: #CECDC3;
  --warm-bg: #E8E2D0;
  --warm-bg-2: #DDD7C7;

  --gold: #C4A882;
  --gold-hover: #B89B75;
  --gold-glow: rgba(196, 168, 130, 0.15);
  --slate: #434E58;

  --max-width: 1140px;
  --nav-h: 72px;
  --radius: 20px;
  --radius-sm: 12px;
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

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

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.1;
}

/* ============================================
   Scroll Reveal
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ============================================
   Container
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   Nav
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 252, 240, 0.8);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5rem;
  border-radius: 980px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: var(--gold-hover);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--ink-warm);
  box-shadow: 0 4px 20px rgba(16, 15, 15, 0.15);
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) 0 4rem;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

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

.hero-accent {
  display: block;
  width: 52px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  font-optical-sizing: auto;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero .tagline {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--tx-2);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  font-weight: 300;
}

/* App Store button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-store-btn:hover {
  background: var(--ink-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16, 15, 15, 0.15);
}

.app-store-btn svg {
  flex-shrink: 0;
}

.app-store-btn .btn-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.app-store-btn .btn-label small {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

.app-store-btn .btn-label strong {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero visual — floating icon */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-icon-wrapper {
  position: relative;
}

.hero-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: -48px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 4s ease-in-out infinite;
}

.hero-icon {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 48px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.08);
  animation: float 6s ease-in-out infinite;
}

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

@keyframes glow-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

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

.features {
  padding: 5rem 0 2rem;
  background: var(--warm-bg);
  position: relative;
}

/* Soft top edge */
.features::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--warm-bg));
  pointer-events: none;
}


.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features-header h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.625rem;
}

.features-header p {
  color: var(--tx-2);
  font-size: 1.0625rem;
  font-weight: 300;
}

/* Bento grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.03),
    0 16px 48px rgba(0, 0, 0, 0.06);
}

/* Bento sizing */
.feature-card:nth-child(1) { grid-column: span 4; }
.feature-card:nth-child(2) { grid-column: span 2; }
.feature-card:nth-child(3) { grid-column: span 2; }
.feature-card:nth-child(4) { grid-column: span 4; }
.feature-card:nth-child(5) { grid-column: span 3; }
.feature-card:nth-child(6) { grid-column: span 3; }

.feature-card .feature-text {
  flex: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.375rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--tx-2);
  line-height: 1.55;
  font-weight: 300;
}

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

.cta {
  background: var(--warm-bg);
  color: var(--ink);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Decorative circle */
.cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid var(--cta-ring, rgba(16, 15, 15, 0.12));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  outline: 1px solid var(--cta-ring-outer, rgba(16, 15, 15, 0.06));
  outline-offset: 100px;
}

.cta::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid var(--cta-ring-inner, rgba(16, 15, 15, 0.08));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta .container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-accent {
  display: block;
  width: 52px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto 2rem;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--tx-2);
  font-size: 1.125rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

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

.footer {
  padding: 2rem 0;
  background: var(--warm-bg);
  border-top: 1px solid var(--ui-3);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-size: 0.8125rem;
  color: var(--tx-3);
}

.footer-left span {
  font-weight: 600;
  color: var(--ink);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--tx-3);
  transition: color 0.2s;
}

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

/* ============================================
   Responsive — Tablet
   ============================================ */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-text {
    max-width: 580px;
    margin: 0 auto;
  }

  .hero-accent {
    margin: 0 auto 2rem;
  }

  .hero .tagline {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-icon {
    width: 180px;
    height: 180px;
    border-radius: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4),
  .feature-card:nth-child(5),
  .feature-card:nth-child(6) {
    grid-column: span 1;
  }
}

/* ============================================
   Responsive — Mobile
   ============================================ */

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 3rem) 0 3rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
  }

  .hero-icon-wrapper::before {
    inset: -32px;
  }

  .features {
    padding: 3.5rem 0 4rem;
  }

  .features::before {
    top: -48px;
    height: 48px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4),
  .feature-card:nth-child(5),
  .feature-card:nth-child(6) {
    grid-column: span 1;
  }

  .cta {
    padding: 4rem 0;
  }

  .cta::before,
  .cta::after {
    display: none;
  }

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

/* ============================================
   Dark Mode
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #100F0F;
    --ink: #E6E4D9;
    --ink-warm: #CECDC3;
    --tx-2: #A09F97;
    --tx-3: #878580;
    --ui-1: rgba(255, 252, 240, 0.06);
    --ui-2: rgba(255, 252, 240, 0.08);
    --ui-3: rgba(255, 252, 240, 0.12);
    --warm-bg: #181716;
    --warm-bg-2: #201F1E;
    --gold-glow: rgba(196, 168, 130, 0.2);
  }

  /* Grain — soften on dark */
  body::after {
    mix-blend-mode: soft-light;
    opacity: 0.2;
  }

  /* Nav — dark frosted glass */
  .nav {
    background: rgba(16, 15, 15, 0.75);
    border-bottom: 1px solid rgba(255, 252, 240, 0.06);
  }

  /* Gold buttons keep dark text */
  .btn-gold {
    color: #100F0F;
  }

  /* Hero icon — deeper shadows on dark */
  .hero-icon {
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.2),
      0 8px 24px rgba(0, 0, 0, 0.3),
      0 24px 64px rgba(0, 0, 0, 0.4);
  }

  /* App Store button — elevated surface */
  .app-store-btn {
    background: #282726;
    color: #E6E4D9;
  }

  .app-store-btn:hover {
    background: #343332;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }

  /* Feature cards — elevated dark surface */
  .feature-card {
    background: #1E1D1C;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  .feature-card:hover {
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 16px 48px rgba(0, 0, 0, 0.35);
  }

  /* CTA — dark with gold rings */
  .cta {
    background: #181716;
    color: #FFFCF0;
    --cta-ring: rgba(196, 168, 130, 0.1);
    --cta-ring-inner: rgba(196, 168, 130, 0.06);
    --cta-ring-outer: rgba(196, 168, 130, 0.04);
  }

  .cta p {
    color: var(--tx-3);
  }

  /* Footer */
  .footer {
    background: #181716;
    border-top-color: rgba(255, 252, 240, 0.04);
  }

  .footer-left span {
    color: var(--gold);
  }

  .footer-links a:hover {
    color: #FFFCF0;
  }
}
