:root {
  --ink: #12141a;
  --ink-soft: #3a3f4b;
  --muted: #6b7280;
  --paper: #f6f3ee;
  --paper-2: #efeae2;
  --line: rgba(18, 20, 26, 0.08);
  --accent: #e04e2a;
  --accent-deep: #c43d1c;
  --mint: #1f8a70;
  --chat-bg: #ffffff;
  --radius: 18px;
  --max: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  border: 0;
  cursor: pointer;
  background: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Atmosphere */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 12% -10%, rgba(224, 78, 42, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 8%, rgba(31, 138, 112, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(18, 20, 26, 0.05), transparent 60%),
    linear-gradient(180deg, #f8f5f0 0%, var(--paper) 40%, #f2eee8 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0 0.35rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-radius: 0.7rem;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.35s var(--ease), background 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: #000;
}

/* Hero */
.hero {
  display: grid;
  align-items: center;
  padding: 1.25rem 0 3.25rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.brand-lockup {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin-bottom: 1.35rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.05s forwards;
}

.brand-lockup span {
  display: block;
  background: linear-gradient(105deg, var(--ink) 20%, #3a3f4b 55%, var(--accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.18s forwards;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 34ch;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.35rem;
  border-radius: 0.85rem;
  font-weight: 650;
  font-size: 0.98rem;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: rgba(18, 20, 26, 0.22);
  transform: translateY(-2px);
}

/* Phone / Instagram DM visual */
.hero-visual {
  justify-self: end;
  width: min(100%, 340px);
  opacity: 0;
  animation: rise 1s var(--ease) 0.25s forwards, floaty 6.5s ease-in-out 1.2s infinite;
}

.phone {
  background: #111;
  border-radius: 2.35rem;
  padding: 0.55rem;
  box-shadow:
    0 28px 55px rgba(18, 20, 26, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.phone-screen.ig {
  background: #fff;
  border-radius: 1.9rem;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111;
}

.ig-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem 0.15rem;
  font-size: 0.78rem;
  font-weight: 650;
}

.ig-status-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ig-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem 0.7rem;
  border-bottom: 1px solid #efefef;
}

.ig-back {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  flex-shrink: 0;
}

.ig-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}

.ig-avatar-ring {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  flex-shrink: 0;
}

.ig-avatar,
.ig-mini-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #ffd7c8, transparent 42%),
    linear-gradient(145deg, #e04e2a, #ff8f62);
  border: 1.5px solid #fff;
  box-sizing: border-box;
}

.ig-mini-avatar {
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  flex-shrink: 0;
  align-self: flex-end;
}

.ig-mini-avatar.spacer {
  visibility: hidden;
}

.ig-user-meta {
  min-width: 0;
}

.ig-user-meta strong {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ig-verified {
  display: inline-flex;
}

.ig-user-meta small {
  display: block;
  color: #8e8e8e;
  font-size: 0.7rem;
  font-weight: 400;
  margin-top: 0.05rem;
}

.ig-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  padding-right: 0.15rem;
}

.ig-chat {
  flex: 1;
  padding: 0.85rem 0.7rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: #fff;
  overflow: hidden;
}

.ig-time {
  align-self: center;
  color: #8e8e8e;
  font-size: 0.68rem;
  font-weight: 500;
  margin: 0.15rem 0 0.55rem;
}

.ig-row {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  max-width: 100%;
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn 0.45s var(--ease) forwards;
}

.ig-row.out {
  justify-content: flex-end;
}

.ig-row.in {
  justify-content: flex-start;
}

.ig-row.stacked {
  margin-top: 0.08rem;
}

.ig-row.d1 { animation-delay: 0.55s; }
.ig-row.d2 { animation-delay: 1.05s; }
.ig-row.d3 { animation-delay: 1.45s; }
.ig-row.d4 { animation-delay: 1.75s; }
.ig-row.d5 { animation-delay: 2.1s; }
.ig-row.d6 { animation-delay: 2.5s; }

.ig-bubble {
  max-width: 78%;
  padding: 0.55rem 0.78rem;
  font-size: 0.84rem;
  line-height: 1.35;
  word-wrap: break-word;
}

.ig-bubble.in {
  background: #efefef;
  color: #111;
  border-radius: 22px;
}

.ig-row.in:not(.stacked) .ig-bubble.in,
.ig-row.in.stacked:last-of-type .ig-bubble.in {
  border-bottom-left-radius: 4px;
}

.ig-row.stacked .ig-bubble.in {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.ig-row.stacked.d5 .ig-bubble.in {
  border-bottom-left-radius: 4px;
  border-top-left-radius: 4px;
}

.ig-bubble.out {
  background: #3797f0;
  color: #fff;
  border-radius: 22px;
  border-bottom-right-radius: 4px;
}

.ig-bubble b {
  font-weight: 650;
}

.ig-quick {
  max-width: 78%;
  border: 1px solid #dbdbdb;
  border-radius: 22px;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111;
  background: #fff;
}

.ig-composer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem 0.85rem;
  position: relative;
}

.ig-cam {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: #0095f6;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ig-input {
  flex: 1;
  min-height: 2.15rem;
  border: 1px solid #dbdbdb;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 5.5rem 0 0.9rem;
  color: #8e8e8e;
  font-size: 0.84rem;
}

.ig-tools {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(calc(-50% - 0.12rem));
  pointer-events: none;
}


/* Sections */
section {
  padding: 5rem 0;
}

.section-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 16ch;
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 1.05rem;
}

.features {
  border-top: 1px solid var(--line);
}

.feature-list {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
}

.feature {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.steps {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.steps-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 0.1rem;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  color: rgba(224, 78, 42, 0.28);
  line-height: 1;
  margin-bottom: 0.85rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.cta-band {
  padding-bottom: 4rem;
}

.cta-panel {
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.25rem);
  background:
    linear-gradient(135deg, rgba(224, 78, 42, 0.1), transparent 40%),
    linear-gradient(225deg, rgba(31, 138, 112, 0.1), transparent 45%),
    #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.cta-panel p {
  color: var(--ink-soft);
  max-width: 42ch;
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

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

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

/* Privacy page */
.legal {
  padding: 2.5rem 0 5rem;
}

.legal-header {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.85rem;
}

.legal-header p {
  color: var(--ink-soft);
}

.legal article {
  max-width: 44rem;
}

.legal article > p,
.legal article li {
  color: var(--ink-soft);
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

.legal article h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.85rem;
}

.legal article ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.legal article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-updated {
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bubbleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulseDots {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-list,
  .steps-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 0.75rem 0 2.75rem;
  }

  .hero-visual {
    justify-self: center;
    order: -1;
    width: min(100%, 320px);
    animation: rise 1s var(--ease) 0.15s forwards;
  }

  .phone-screen.ig {
    min-height: 500px;
  }

  .brand-lockup {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .brand-lockup,
  .hero h1,
  .hero-lead,
  .cta-row,
  .hero-visual,
  .ig-row {
    opacity: 1;
    transform: none;
  }
}
