/* Digital Social Apps — site styles
   Palette: warm paper background, ink text, coral (ToonAI), magenta (Hashtags AI) */

:root {
  --paper: #FAF6EF;
  --paper-2: #F1EADF;
  --ink: #1B1B2F;
  --ink-2: #4A4A5E;
  --ink-3: #7B7B8C;
  --line: rgba(27, 27, 47, 0.10);
  --coral: #FF5E5B;
  --coral-deep: #E0403D;
  --coral-soft: #FFE3E2;
  --pink: #E8338F;
  --pink-deep: #C21F73;
  --pink-soft: #FBE0EE;
  --night: #0F1A33;
  --night-2: #16223F;
  --white: #FFFFFF;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 30px rgba(27, 27, 47, 0.08), 0 2px 6px rgba(27, 27, 47, 0.05);
  --shadow-phone: 0 24px 60px rgba(27, 27, 47, 0.18);
  --font-display: 'Sora', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a.is-toon:hover { background: var(--coral-soft); color: var(--coral-deep); }
.nav-links a.is-tags:hover { background: var(--pink-soft); color: var(--pink-deep); }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 40px;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: var(--coral-soft); top: -160px; left: -140px; }
.hero::after { width: 520px; height: 520px; background: var(--pink-soft); top: 40px; right: -180px; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 980px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.eyebrow::before, .eyebrow::after { content: ''; width: 22px; height: 1px; background: var(--line); }
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero h1 .toon { color: var(--coral); }
.hero h1 .tags { color: var(--pink); }
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-apps {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 980px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.app-chip:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(27, 27, 47, 0.14); }
.app-chip img { width: 40px; height: 40px; border-radius: 12px; }
.app-chip small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.app-chip .chev { color: var(--ink-3); margin-left: 4px; }

/* Collage of phones under the hero */
.collage {
  position: relative;
  z-index: 1;
  margin: 64px auto 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  height: 380px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.collage .phone {
  flex: 0 0 auto;
  width: 190px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  border: 6px solid var(--ink);
  background: var(--ink);
  transform: translateY(var(--y, 0));
}
.collage .phone img { width: 100%; height: auto; }
.collage .phone:nth-child(1) { --y: 90px; transform: translateY(var(--y)) rotate(-6deg); }
.collage .phone:nth-child(2) { --y: 40px; transform: translateY(var(--y)) rotate(-2deg); }
.collage .phone:nth-child(3) { --y: 0; }
.collage .phone:nth-child(4) { --y: 40px; transform: translateY(var(--y)) rotate(2deg); }
.collage .phone:nth-child(5) { --y: 90px; transform: translateY(var(--y)) rotate(6deg); }

/* ---------- App sections ---------- */
.app {
  padding: 110px 0;
  position: relative;
}
.app-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.app-badge img { width: 28px; height: 28px; border-radius: 8px; }
.app h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 18px;
}
.app .intro { font-size: 1.1rem; color: var(--ink-2); }
.app-cta { display: flex; align-items: center; gap: 18px; justify-self: end; flex-wrap: wrap; }
.store-btn img { height: 52px; width: auto; transition: transform 0.25s ease, opacity 0.25s ease; }
.store-btn:hover img { transform: scale(1.04); opacity: 0.9; }
.app-meta { font-size: 13px; color: var(--ink-3); line-height: 1.4; }

/* Screens rail */
.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 12px 4px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail figure {
  flex: 0 0 auto;
  width: 200px;
  margin: 0;
  scroll-snap-align: start;
}
.rail .shot {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
  transition: transform 0.35s ease;
}
.rail figure:hover .shot { transform: translateY(-6px); }
.rail figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  text-align: center;
}

/* Bento feature grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.tile {
  grid-column: span 4;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(27, 27, 47, 0.12); }
.tile.wide { grid-column: span 8; }
.tile.half { grid-column: span 6; }
.tile h3 { font-size: 1.2rem; font-weight: 700; margin: 14px 0 8px; }
.tile p { color: var(--ink-2); font-size: 15px; }
.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.tile .stat {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

/* ToonAI theming */
.app--toon { background: var(--paper); }
.app--toon .app-badge { background: var(--coral-soft); color: var(--coral-deep); }
.app--toon h2 em { font-style: normal; color: var(--coral); }
.app--toon .tile-icon { background: var(--coral-soft); color: var(--coral-deep); }
.app--toon .stat { color: var(--coral); }
.app--toon .tile.accent { background: var(--coral); color: var(--white); border-color: transparent; }
.app--toon .tile.accent p, .app--toon .tile.accent .stat { color: var(--white); }
.app--toon .tile.accent .tile-icon { background: rgba(255, 255, 255, 0.2); color: var(--white); }

/* Hashtags AI theming — dark navy band */
.app--tags {
  background: var(--night);
  color: var(--white);
}
.app--tags::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(232, 51, 143, 0.20), transparent 70%),
    radial-gradient(500px 400px at 90% 80%, rgba(232, 51, 143, 0.12), transparent 70%);
  pointer-events: none;
}
.app--tags .wrap { position: relative; z-index: 1; }
.app--tags .app-badge { background: rgba(232, 51, 143, 0.18); color: #FF8BC6; }
.app--tags h2 em { font-style: normal; color: var(--pink); }
.app--tags .intro { color: rgba(255, 255, 255, 0.72); }
.app--tags .app-meta { color: rgba(255, 255, 255, 0.5); }
.app--tags .rail figcaption { color: rgba(255, 255, 255, 0.55); }
.app--tags .rail .shot { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.app--tags .tile {
  background: var(--night-2);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.app--tags .tile:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45); }
.app--tags .tile p { color: rgba(255, 255, 255, 0.68); }
.app--tags .tile-icon { background: rgba(232, 51, 143, 0.18); color: #FF8BC6; }
.app--tags .stat { color: var(--pink); }
.app--tags .tile.accent { background: var(--pink); color: var(--night); border-color: transparent; }
.app--tags .tile.accent p, .app--tags .tile.accent .stat { color: var(--night); }
.app--tags .tile.accent .tile-icon { background: rgba(16, 19, 31, 0.14); color: var(--night); }

/* ---------- Company / contact ---------- */
.company { padding: 110px 0; background: var(--paper-2); }
.company-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.company h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.08; margin-bottom: 18px; }
.company p { color: var(--ink-2); font-size: 1.05rem; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.contact-card a.mail {
  display: inline-block;
  font-weight: 600;
  color: var(--coral-deep);
  border-bottom: 2px solid var(--coral-soft);
  margin-bottom: 22px;
}
.contact-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-card li a { font-size: 14px; color: var(--ink-2); }
.contact-card li a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app-head { grid-template-columns: 1fr; gap: 28px; }
  .app-cta { justify-self: start; }
  .tile, .tile.wide, .tile.half { grid-column: span 6; }
  .company-inner { grid-template-columns: 1fr; }
  .collage { height: 300px; gap: 12px; }
  .collage .phone { width: 150px; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .hero { padding-top: 64px; }
  .collage { height: 240px; }
  .collage .phone { width: 120px; border-width: 4px; }
  .collage .phone:nth-child(1), .collage .phone:nth-child(5) { display: none; }
  .app { padding: 80px 0; }
  .tile, .tile.wide, .tile.half { grid-column: span 12; }
  .rail figure { width: 170px; }
}
