/* ============================================================
   Toxic or Nah — Landing
   Pixel-perfect recreation of Framer source.
   Fonts: Outfit (display) + Plus Jakarta Sans (body).
   ============================================================ */

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

:root {
  --bg: #000;
  --text: #fff;
  --text-muted: #c2c2c2;
  --text-faint: rgba(255, 255, 255, 0.55);
  --purple-deep: #09000F;
  --purple-glow: rgba(124, 77, 255, 0.42);
  --purple-edge: rgba(55, 0, 84, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ----------- LAYOUT ----------- */

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 0;
  isolation: isolate;
}

/* ----------- BRAND ----------- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 64px;
}
.brand__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.2px;
  color: var(--text);
}

/* ----------- HERO ----------- */

.hero {
  text-align: center;
  max-width: 880px;
  width: 100%;
  margin-bottom: 56px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
  letter-spacing: 0.1px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
  will-change: transform;
}
.cta:hover { transform: translateY(-1px); opacity: 0.92; }
.cta:active { transform: translateY(0); }
.cta img {
  height: 48px;
  width: auto;
}

/* ----------- DEVICE / PHONE MOCKUP ----------- */

.device {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  z-index: 1;
}
.device__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
}
.device__glow {
  position: absolute;
  inset: auto -10% -5% -10%;
  height: 70%;
  background: radial-gradient(
    ellipse at center bottom,
    var(--purple-glow) 0%,
    var(--purple-edge) 28%,
    transparent 72%
  );
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* ----------- BACKGROUND GLOW (page-wide) ----------- */

.page::before {
  content: '';
  position: fixed;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    rgba(124, 77, 255, 0.18) 0%,
    rgba(55, 0, 84, 0.32) 35%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* ----------- FOOTER ----------- */

.footer {
  margin-top: auto;
  padding: 48px 24px 32px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.footer__nav {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: var(--text-faint);
  transition: color 0.18s ease;
}
.footer__nav a:hover { color: var(--text); }
.footer__sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  user-select: none;
}

/* ----------- RESPONSIVE BREAKPOINTS ----------- */

/* Tablet (810 – 1279) */
@media (min-width: 810px) and (max-width: 1279px) {
  .page { padding: 48px 32px 0; }
  .brand { margin-bottom: 72px; }
  .hero { margin-bottom: 64px; }
  .device { max-width: 460px; }
}

/* Desktop (>= 1280) */
@media (min-width: 1280px) {
  .page { padding: 56px 48px 0; }
  .brand { margin-bottom: 80px; }
  .brand__name { font-size: 24px; }
  .hero { margin-bottom: 72px; }
  .hero__headline {
    font-size: clamp(80px, 7.5vw, 120px);
    line-height: 0.83;
    letter-spacing: -0.06em;
    margin-bottom: 28px;
  }
  .hero__subtitle {
    font-size: 18px;
    margin-bottom: 44px;
  }
  .cta img { height: 52px; }
  .device { max-width: 500px; }
}

/* Phone (< 810) */
@media (max-width: 809px) {
  .page { padding: 32px 20px 0; }
  .brand { margin-bottom: 44px; }
  .brand__logo { width: 28px; height: 28px; }
  .brand__name { font-size: 19px; }
  .hero { margin-bottom: 44px; }
  .hero__headline {
    font-size: clamp(40px, 11vw, 56px);
    margin-bottom: 18px;
  }
  .hero__subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }
  .hero__ctas { gap: 10px; }
  .cta img { height: 44px; }
  .device { max-width: 340px; }
  .footer { padding: 36px 20px 24px; }
  .footer__nav a { font-size: 12px; }
}

/* Very small phones (< 400) */
@media (max-width: 399px) {
  .hero__ctas { flex-direction: column; }
  .cta img { height: 48px; }
  .device { max-width: 290px; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta:hover { transform: none; }
}
