/* ===================================================
   UPLO — Design System
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* --- Tokens --- */
:root {
  --bg:           #07070F;
  --bg-elevated:  #0E0E1C;
  --bg-card:      #111120;
  --text:         #F0EFE9;
  --text-muted:   #6E6E88;
  --accent:       #F5793A;
  --accent-dim:   rgba(245, 121, 58, 0.14);
  --accent-glow:  rgba(245, 121, 58, 0.28);
  --border:       rgba(255, 255, 255, 0.07);
  --border-accent: rgba(245, 121, 58, 0.32);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --max-w:        1100px;
  --nav-h:        64px;
  --radius-lg:    20px;
  --radius-pill:  100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ===================================================
   NAV
   =================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 7, 15, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  line-height: 1;
}

.btn-nav {
  padding: 9px 18px;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.btn-nav:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

.btn-primary {
  padding: 14px 28px;
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: #f88a4c;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

/* ===================================================
   ENTRY ANIMATIONS
   =================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes floatPill {
  0%, 100% { transform: translateY(0px) rotate(var(--r, 0deg)); }
  50%       { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}

.anim-1 { animation: fadeUp 0.65s ease 0.05s both; }
.anim-2 { animation: fadeUp 0.65s ease 0.15s both; }
.anim-3 { animation: fadeUp 0.65s ease 0.25s both; }
.anim-4 { animation: fadeUp 0.65s ease 0.35s both; }
.anim-5 { animation: fadeUp 0.65s ease 0.45s both; }

/* ===================================================
   HERO
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 40px 100px;
  position: relative;
  overflow: hidden;
}

/* Background radial glow */
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 121, 58, 0.10) 0%, transparent 65%);
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 6.5vw, 82px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2.5px;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent);
}

.hero-body {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================================================
   PHONE MOCKUP
   =================================================== */
.phone-scene {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 100px;
  position: relative;
}

.phone-frame {
  width: 240px;
  height: 490px;
  border-radius: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, #18182E 0%, #0C0C1A 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 40px 80px rgba(0,0,0,0.7),
    0 0 80px var(--accent-glow);
  position: relative;
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
}

.phone-screen {
  position: absolute;
  inset: 0;
  padding: 56px 18px 22px;
  display: flex;
  flex-direction: column;
}

.screen-topbar {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 14px;
}

.screen-draft {
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  flex: 1;
}

.screen-char-count {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  margin: 8px 0;
}

.screen-platforms {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.screen-platform {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.screen-platform.on {
  background: var(--accent-dim);
  border-color: var(--border-accent);
  color: var(--accent);
}

.screen-post-btn {
  padding: 11px;
  background: var(--accent);
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  letter-spacing: 0.01em;
}

/* Floating platform pills */
.pill {
  position: absolute;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
  animation: floatPill 6s ease-in-out infinite;
}

.pill-x        { top: 50px;  right: -10px; --r: 2deg;  animation-delay: 0.0s; animation-duration: 7.2s; }
.pill-ig       { top: 160px; right: -20px; --r: -1deg; animation-delay: 0.8s; animation-duration: 6.5s; }
.pill-tt       { bottom: 130px; right: -5px; --r: 1deg; animation-delay: 1.4s; animation-duration: 7.8s; }
.pill-li       { top: 60px;  left: -10px; --r: -2deg; animation-delay: 0.4s; animation-duration: 6.9s; }
.pill-bs       { top: 180px; left: -20px; --r: 1.5deg; animation-delay: 1.1s; animation-duration: 7.4s; }
.pill-th       { bottom: 110px; left: -10px; --r: -1deg; animation-delay: 0.2s; animation-duration: 6.2s; }

/* ===================================================
   FEATURES
   =================================================== */
.features {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

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

.feature-card {
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, var(--accent-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover { border-color: var(--border-accent); }

.feature-card:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.feature-card:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

.feature-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===================================================
   LEGAL PAGES
   =================================================== */
.legal-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 80px) 40px 100px;
}

.legal-inner {
  max-width: 680px;
  margin: 0 auto;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  text-decoration: none;
}
.legal-eyebrow::before {
  content: '←';
  font-size: 13px;
}
.legal-eyebrow:hover { color: #f88a4c; }

.legal-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 52px 0 14px;
  color: var(--text);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-body li {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--accent);
  text-decoration: none;
}
.legal-body a:hover { text-decoration: underline; }

.legal-body strong {
  color: var(--text);
  font-weight: 500;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 840px) {
  .nav { padding: 0 20px; }

  .hero {
    padding: calc(var(--nav-h) + 60px) 20px 80px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-body { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .phone-scene { display: none; }

  .features { padding: 72px 20px; }
  .features-grid { grid-template-columns: 1fr; gap: 2px; }
  .feature-card:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .feature-card:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

  .footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  .legal-page { padding: calc(var(--nav-h) + 48px) 20px 80px; }
}
