/* ============================================================
   Tukd marketing site — V2
   Clean light canvas, vivid accents, aspirational stylized UI.
   Palette accents inherited from the app design system.
   ============================================================ */
:root {
  /* canvas */
  --bg: #faf9f3;
  --bg-soft: #f1f0e7;
  --card: #ffffff;
  /* ink */
  --ink: #16170c;
  --ink-soft: #5a5b4d;
  --ink-faint: #8c8d7e;
  /* accents */
  --primary: #14b8a6;
  --primary-d: #0d9488;
  --secondary: #7c3aed;
  --secondary-d: #6d28d9;
  --tertiary: #facc15;
  --rose: #f43f5e;
  --blue: #2563eb;
  /* gradients */
  --grad-cta: linear-gradient(135deg, #14b8a6, #0d9488);
  --grad-teal: linear-gradient(135deg, #2dd4bf, #0d9488);
  --grad-purple: linear-gradient(135deg, #a78bfa, #6d28d9);
  --grad-blue: linear-gradient(135deg, #60a5fa, #2563eb);
  --grad-rose: linear-gradient(135deg, #fb7185, #e11d48);
  --grad-warm: linear-gradient(135deg, #fde047, #f97316);
  --grad-vivid: linear-gradient(120deg, #14b8a6 0%, #2563eb 48%, #7c3aed 100%);
  /* shadows (soft, layered — the premium feel) */
  --sh-sm: 0 1px 2px rgba(22,23,12,.04), 0 4px 12px rgba(22,23,12,.05);
  --sh-md: 0 6px 16px rgba(22,23,12,.06), 0 18px 40px rgba(22,23,12,.08);
  --sh-lg: 0 12px 28px rgba(22,23,12,.08), 0 34px 70px rgba(22,23,12,.12);
  --sh-cta: 0 10px 30px rgba(13,148,136,.30);
  /* radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-full: 999px;
  /* layout */
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Space Grotesk", system-ui, sans-serif; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
mark { background: rgba(20,184,166,.22); color: inherit; border-radius: 4px; padding: 0 .15em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* gradient fill helpers */
.grad-teal { background-image: var(--grad-teal); }
.grad-purple { background-image: var(--grad-purple); }
.grad-blue { background-image: var(--grad-blue); }
.grad-rose { background-image: var(--grad-rose); }
.grad-warm { background-image: var(--grad-warm); }
.grad-vivid { background-image: var(--grad-vivid); }
.grad-text {
  background: var(--grad-vivid);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: "Be Vietnam Pro", sans-serif; font-weight: 600;
  font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary-d);
  background: rgba(20,184,166,.10);
  padding: .35rem .75rem; border-radius: var(--r-full);
}
.eyebrow--muted { color: var(--secondary-d); background: rgba(124,58,237,.10); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem;
  padding: .9rem 1.5rem; border-radius: var(--r-full); border: 0; cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn--ghost {
  background: var(--card); color: var(--ink);
  box-shadow: var(--sh-sm); border: 1px solid rgba(22,23,12,.08);
}
.btn--ghost:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--primary-d); box-shadow: var(--sh-md); }
.btn--light:hover { transform: translateY(-1px); }
.btn--small { padding: .55rem 1.05rem; font-size: .92rem; }
.btn:active { transform: scale(.98); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,243,.72);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  transition: box-shadow 200ms ease, background 200ms ease;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(22,23,12,.06), var(--sh-sm); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.nav__brand { display: flex; align-items: center; gap: .55rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.2rem; }
.nav__brand img { width: 30px; height: 30px; object-fit: contain; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a { color: var(--ink-soft); font-weight: 500; transition: color 140ms ease; }
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; line-height: 1; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(45% 55% at 78% 18%, rgba(124,58,237,.20), transparent 70%),
    radial-gradient(40% 50% at 12% 30%, rgba(20,184,166,.22), transparent 70%),
    radial-gradient(45% 45% at 60% 80%, rgba(250,204,21,.16), transparent 70%);
  filter: blur(10px); z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem clamp(3.5rem, 7vw, 6.5rem);
}
.hero__title {
  font-size: clamp(2.75rem, 6.4vw, 5rem); font-weight: 700; margin: 1.25rem 0;
}
.hero__sub { color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 36ch; }
.hero__cta { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1.1rem; flex-wrap: wrap; }
.appstore { display: inline-block; transition: transform 160ms ease; }
.appstore:hover { transform: translateY(-1px); }
.appstore:active { transform: scale(.98); }
.appstore img { display: block; }
.hero__note { color: var(--ink-faint); font-size: .9rem; }

/* hero art — floating cluster of stylized tiles */
.hero__art { position: relative; }
.cluster { display: flex; gap: 1.1rem; animation: floaty 7s ease-in-out infinite; }
.cluster__col { flex: 1; display: flex; flex-direction: column; gap: 1.1rem; }
.cluster__col--offset { margin-top: 3rem; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .cluster { animation: none; } }

.tile { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; }
.coll { padding: 1.1rem 1.15rem 1.2rem; }
.coll__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--sh-sm); }
.coll__name { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.1rem; margin-top: .7rem; }
.coll__meta { color: var(--ink-faint); font-size: .82rem; margin-top: .15rem; }

.shot__head { height: 88px; }
.shot__body { padding: .95rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.line { height: 9px; border-radius: 6px; background: rgba(22,23,12,.08); display: block; }
.line.w90 { width: 90%; } .line.w80 { width: 80%; } .line.w70 { width: 70%; }
.line.w60 { width: 60%; } .line.w50 { width: 50%; }
.chip { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; padding: .25rem .55rem; border-radius: var(--r-full); width: fit-content; margin-bottom: .35rem; }
.chip--ai { color: var(--secondary-d); background: rgba(124,58,237,.12); }

.float-badge {
  position: absolute; z-index: 2;
  background: var(--card); box-shadow: var(--sh-lg);
  font-weight: 600; font-size: .85rem; padding: .6rem .9rem; border-radius: var(--r-full);
  border: 1px solid rgba(22,23,12,.05);
}
.float-badge--1 { top: 6%; left: -6%; animation: floaty 6s ease-in-out infinite; }
.float-badge--2 { bottom: 8%; right: -4%; animation: floaty 8s ease-in-out infinite .5s; }
@media (prefers-reduced-motion: reduce) { .float-badge { animation: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: .5rem 0 1.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: .8rem; width: max-content; animation: scrollx 38s linear infinite; }
@keyframes scrollx { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.pill { white-space: nowrap; background: var(--card); box-shadow: var(--sh-sm); border: 1px solid rgba(22,23,12,.06); padding: .55rem 1.05rem; border-radius: var(--r-full); font-weight: 500; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin: .9rem 0 .6rem; }
.section__lede { color: var(--ink-soft); font-size: 1.15rem; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--sh-md); border: 1px solid rgba(22,23,12,.04); transition: transform 200ms ease, box-shadow 200ms ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card__pad { padding: clamp(1.5rem, 3vw, 2.2rem); }
.card h3 { font-size: 1.5rem; margin: 1rem 0 .5rem; }
.card p { color: var(--ink-soft); }
.card--dark { background: linear-gradient(150deg, #1b1c12, #0f100a); border-color: transparent; }
.card--dark h3 { color: #fff; }
.card--dark p { color: rgba(255,255,255,.72); }

.badge { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; box-shadow: var(--sh-sm); }
.badge--glass { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.bento__cell { display: flex; flex-direction: column; overflow: hidden; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

/* flow mock (AI categorization) */
.flow { margin-top: auto; display: flex; align-items: center; gap: .9rem; padding: 0 clamp(1.5rem,3vw,2.2rem) clamp(1.5rem,3vw,2.2rem); }
.flow__shot, .flow__coll { flex: 1; background: var(--bg); border-radius: var(--r-md); padding: .85rem; display: flex; flex-direction: column; gap: .45rem; box-shadow: var(--sh-sm); }
.flow__coll { flex-direction: row; align-items: center; gap: .6rem; }
.flow__emoji { font-size: 1.4rem; }
.flow__arrow { width: 38px; height: 38px; flex: none; border-radius: var(--r-full); display: grid; place-items: center; color: #fff; font-weight: 700; box-shadow: var(--sh-sm); }

/* search mock (OCR) */
.searchmock { margin-top: auto; padding: 0 clamp(1.5rem,3vw,2.2rem) clamp(1.5rem,3vw,2.2rem); }
.searchmock__bar { background: var(--bg); border-radius: var(--r-full); padding: .65rem 1rem; color: var(--ink-faint); font-size: .9rem; box-shadow: var(--sh-sm); }
.searchmock__bar::before { content: "🔍"; margin-right: .5rem; }
.searchmock__line { font-size: .9rem; color: var(--ink-soft); margin-top: .7rem; }

/* mini collections (smart collections) */
.minicolls { margin-top: auto; display: flex; gap: .6rem; padding: 0 clamp(1.5rem,3vw,2.2rem) clamp(1.5rem,3vw,2.2rem); }
.minicoll { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--sh-sm); }

/* note mock (notes, edits & moves) */
.notemock { margin-top: auto; padding: 0 clamp(1.5rem,3vw,2.2rem) clamp(1.5rem,3vw,2.2rem); display: flex; flex-direction: column; gap: .7rem; }
.notemock__card { background: var(--bg); border-radius: var(--r-md); padding: .85rem; display: flex; flex-direction: column; gap: .45rem; box-shadow: var(--sh-sm); }
.notemock__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; background: var(--card); border: 1px solid rgba(22,23,12,.08); box-shadow: var(--sh-sm); border-radius: var(--r-full); padding: .35rem .7rem; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }

/* tag list (reminders, export) */
.taglist { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 clamp(1.5rem,3vw,2.2rem) clamp(1.5rem,3vw,2.2rem); }

/* share mock (save from anywhere) */
.sharemock { margin-top: auto; padding: 0 clamp(1.5rem,3vw,2.2rem) clamp(1.5rem,3vw,2.2rem); }
.sharemock__row { display: inline-flex; align-items: center; gap: .6rem; background: var(--bg); border-radius: var(--r-full); padding: .55rem .9rem .55rem .55rem; font-weight: 600; font-size: .9rem; box-shadow: var(--sh-sm); }
.sharemock__icon { width: 34px; height: 34px; border-radius: var(--r-full); display: grid; place-items: center; color: #fff; font-size: 1.1rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { position: relative; padding: clamp(1.6rem, 3vw, 2.2rem); overflow: hidden; }
.step__num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-full); background: var(--ink); color: var(--bg); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; }
.step h3 { font-size: 1.35rem; margin: 1rem 0 .5rem; }
.step p { color: var(--ink-soft); }
.step__art { position: absolute; top: -28px; right: -28px; width: 110px; height: 110px; border-radius: var(--r-full); display: grid; place-items: center; font-size: 2rem; color: #fff; opacity: .9; }
.step__art span { transform: translate(-12px, 18px); }

/* ---------- CTA card ---------- */
.cta-card { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); isolation: isolate; }
.cta-card__bg { position: absolute; inset: 0; background: var(--grad-vivid); z-index: -1; }
.cta-card__content { padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); text-align: center; color: #fff; }
.cta-card h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.cta-card p { margin: .6rem auto 0; max-width: 42ch; color: rgba(255,255,255,.9); }
.cta-card__actions { display: flex; justify-content: center; margin-top: 1.8rem; }
.cta-card__note { margin-top: 1rem; color: rgba(255,255,255,.85); font-size: .9rem; }
.signup { display: flex; gap: .6rem; max-width: 460px; margin: 1.8rem auto 0; }
.signup__input { flex: 1; background: rgba(255,255,255,.96); color: #16170c; border: 0; border-radius: var(--r-full); padding: .95rem 1.25rem; font-size: 1rem; box-shadow: var(--sh-sm); }
.signup__input::placeholder { color: var(--ink-faint); }
.signup__msg { min-height: 1.3em; margin-top: 1rem; font-weight: 600; color: #fff; }
.signup__msg.is-error { color: #ffe1e6; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .85rem; max-width: 800px; }
.faq__item { background: var(--card); border-radius: var(--r-lg); padding: 1.25rem 1.5rem; box-shadow: var(--sh-sm); border: 1px solid rgba(22,23,12,.04); }
.faq__item summary { cursor: pointer; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--primary-d); font-size: 1.4rem; }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { color: var(--ink-soft); margin-top: .9rem; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); padding: 3rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.footer__brand { display: flex; align-items: center; gap: .55rem; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem; }
.footer__brand img { object-fit: contain; }
.footer__links { display: flex; gap: 1.5rem; margin-left: auto; }
.footer__links a { color: var(--ink-soft); }
.footer__links a:hover { color: var(--ink); }
.footer__copy { width: 100%; color: var(--ink-faint); font-size: .9rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3, .span-4 { grid-column: auto; }
  .span-6 { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__links.is-open { display: flex; flex-direction: column; gap: 1rem; position: absolute; top: 70px; left: 0; right: 0; background: var(--card); padding: 1.25rem 1.5rem; box-shadow: var(--sh-md); }
  .nav__cta { display: none; }
  .nav__toggle { display: block; margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { margin-top: 1rem; max-width: 460px; margin-left: auto; margin-right: auto; }
  .float-badge--1 { left: 2%; }
  .float-badge--2 { right: 2%; }
  .section__head { margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
  .signup { flex-direction: column; }
}
