/* FanMomentsOS — custom stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #faf8f5;
  --bg-warm: #f4f0ea;
  --ink: #1c1917;
  --ink-muted: #78716c;
  --accent: #e85d04;
  --accent-dark: #c2410c;
  --navy: #1a1a2e;
  --cream: #fef9f3;
  --border: #e7e5e0;
  --shadow: rgba(28, 25, 23, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-warm); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── Typography ─── */
h1, h2, h3 { font-family: 'Instrument Serif', serif; font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

/* ─── Navigation ─── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 5%;
  position: sticky;
  top: 0;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo span { color: var(--accent); }

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

.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ─── Hero ─── */
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5%;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content { padding: 4rem 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.6rem;
}

.hero h1 { margin-bottom: 1.4rem; }

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

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ─── Signup Form ─── */
.signup-form {
  display: flex;
  gap: 0.7rem;
  max-width: 440px;
  flex-wrap: wrap;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.signup-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.signup-form input[type="email"]::placeholder { color: var(--ink-muted); }

.btn-primary {
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(232, 93, 4, 0.25);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(232, 93, 4, 0.3);
}

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

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-msg {
  font-size: 0.85rem;
  margin-top: 0.6rem;
  display: none;
}
.form-msg.success { color: #16a34a; display: block; }
.form-msg.error   { color: #dc2626; display: block; }

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

.hero-card {
  width: 100%;
  max-width: 480px;
  background: var(--navy);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 24px 64px rgba(26, 26, 46, 0.35);
  color: #fff;
}

.hero-card-tag {
  background: rgba(232, 93, 4, 0.2);
  color: #fb923c;
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: 'Instrument Serif', serif;
}

.hero-card p { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-bottom: 1.5rem; }

.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.stat {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem 0.7rem;
  text-align: center;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Instrument Serif', serif;
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.floating-badge {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 0.8rem 1.1rem;
  box-shadow: 0 8px 28px var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  animation: float 4s ease-in-out infinite;
}

.floating-badge.top-right {
  top: -10px;
  right: -20px;
}

.floating-badge.bottom-left {
  bottom: 40px;
  left: -30px;
  animation-delay: 2s;
}

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

/* ─── Sections ─── */
section { padding: 6rem 5%; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-header { margin-bottom: 3rem; }

.section-header p {
  color: var(--ink-muted);
  max-width: 520px;
  margin-top: 0.8rem;
  font-size: 1.05rem;
}

/* ─── Upload Section ─── */
.upload-section {
  background: var(--navy);
  color: #fff;
}

.upload-section .section-label { color: #fb923c; }
.upload-section .section-header h2 { color: #fff; }
.upload-section .section-header p { color: rgba(255,255,255,0.55); }

.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.upload-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 2rem;
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upload-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.upload-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(232, 93, 4, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fb923c;
  font-size: 1.4rem;
}

.upload-card h3 { font-size: 1.1rem; font-family: 'Instrument Serif', serif; }
.upload-card p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.5; }

.upload-trigger {
  margin-top: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s;
}

.upload-trigger:hover { background: var(--accent-dark); }

/* ─── Share Section ─── */
.share-section { background: var(--cream); }

.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.share-text h2 { margin-bottom: 1rem; }
.share-text p { color: var(--ink-muted); font-size: 1.05rem; line-height: 1.7; }

.share-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.share-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.share-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(232, 93, 4, 0.1);
  transform: translateY(-2px);
}

.share-card-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-warm);
}

.share-card h4 { font-size: 0.95rem; font-weight: 600; }
.share-card span { font-size: 0.8rem; color: var(--ink-muted); }

/* ─── Footer ─── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2.5rem 5%;
  font-size: 0.85rem;
}

footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
footer a:hover { color: #fff; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-content { padding: 3rem 0 1rem; }
  .hero-sub { margin: 0 auto 2.5rem; }
  .signup-form { margin: 0 auto; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 360px; margin: 0 auto; }
  .floating-badge.top-right { right: 10px; }
  .floating-badge.bottom-left { left: 10px; }
  .share-grid { grid-template-columns: 1fr; }
  .share-cards { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 600px) {
  .share-cards { grid-template-columns: 1fr 1fr; }
  .card-stats { grid-template-columns: repeat(3, 1fr); }
}