/* Twexel AI — лендинг агрегатора: светлый, визуальный, минимум текста. */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #111110;
  --muted: #6d6b64;
  --faint: #9b988f;
  --line: #e5e1d8;
  --accent: #5b3fd8;
  --mint: #0f6b4f;
  --radius: 22px;
  --radius-lg: 30px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(23, 20, 12, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.wrap--narrow { width: min(820px, calc(100% - 40px)); }

/* ------------------------------ header ------------------------------- */

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.logo-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #e2d6ff; font-size: 13px; }
.logo-ai { margin-left: 4px; font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 0.02em; }

.nav { display: flex; align-items: center; gap: 24px; margin-left: 8px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2b28; }
.btn-light { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-light:hover { border-color: #c9c4b8; }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.btn-block { width: 100%; }

.burger { display: none; width: 38px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; padding: 0; }
.burger span { display: block; width: 14px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; }
.burger span + span { margin-top: 4px; }

/* ------------------------------- common ------------------------------ */

.eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

h1 { margin: 14px 0 0; font-size: clamp(36px, 4.6vw, 64px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; }
h1 .accent { color: var(--accent); }

.lead { margin: 20px 0 0; font-size: clamp(16px, 1.4vw, 18.5px); color: var(--muted); max-width: 520px; }

.section { padding: 74px 0; }
.section--tight { padding: 30px 0 74px; }
.section--soft { background: var(--surface); }

.section-head { margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; max-width: 560px; }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head--spaced { margin-top: 44px; }
.section-hint { margin: 0 !important; font-size: 13px !important; color: var(--faint) !important; }

.link-arrow { font-size: 14px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }

.muted-note { margin: 16px 0 0; font-size: 13px; color: var(--faint); }

/* -------------------------------- hero ------------------------------- */

.hero { padding: 48px 0 26px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 44px; align-items: center; }

.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin: 14px 0 0; font-size: 13px; color: var(--faint); }

.hero-media { position: relative; }
.media-card { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #eae6dd; }
.media-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-card--hero { aspect-ratio: 4 / 4.15; box-shadow: var(--shadow); }
.media-card--hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.16), transparent 30%, transparent 62%, rgba(0,0,0,0.55));
  pointer-events: none;
}
.media-card figcaption { position: absolute; inset: auto 0 0 0; padding: 16px; display: flex; align-items: center; gap: 10px; z-index: 2; }
.media-badge { position: absolute; left: 16px; top: 16px; z-index: 3; }
.media-meta { position: absolute; right: 16px; bottom: 16px; z-index: 3; }
.chip--float { background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 12px; font-weight: 800; }
.chip--new { background: #fff; }
.media-play { position: absolute; left: 50%; top: 50%; z-index: 3; width: 62px; height: 62px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,0.94); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.media-play::after { content: ""; position: absolute; left: 53%; top: 50%; transform: translate(-50%,-50%); border-left: 15px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.media-meta { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }

.media-card--float { position: absolute; left: -34px; bottom: -30px; width: 190px; aspect-ratio: 1 / 1; border: 4px solid var(--bg); box-shadow: var(--shadow); transform: rotate(-3deg); }
.media-card--float figcaption { padding: 10px; }

.hero-chip { position: absolute; padding: 8px 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 800; }
.hero-chip--1 { top: 18px; right: -6px; transform: rotate(2deg); }
.hero-chip--2 { top: 42%; right: -10px; transform: rotate(-2deg); background: var(--ink); color: #fff; }

/* -------------------------------- new -------------------------------- */

.new-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.new-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; display: block; background: #eae6dd; }
.new-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.new-card:hover img { transform: scale(1.03); }
.new-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.35) 62%, rgba(0,0,0,0.72) 100%); }
.new-card-body { position: absolute; inset: auto 0 0 0; padding: 20px; z-index: 2; color: #fff; }
.new-card-body h3 { margin: 10px 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.new-card-body p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.82); }
.new-card-cta { display: inline-flex; margin-top: 10px; font-size: 13px; font-weight: 800; }
.chip--play { background: rgba(255,255,255,0.18); color: #fff; backdrop-filter: blur(6px); }

/* ------------------------------ numbers ------------------------------ */

.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.number b { display: block; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.04em; line-height: 1; }
.number span { font-size: 13px; color: var(--muted); }

.logos { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 22px 0 6px; }
.logos span { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: #b3aea2; }

/* --------------------------- popular models -------------------------- */

.model-strip { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 6px; }
.model-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.model-chip b { font-size: 13.5px; }
.model-chip em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.model-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg); color: var(--fg); font-weight: 800; font-size: 13px; }

/* ------------------------------ features ----------------------------- */

.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.feature-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 400ms ease; }
.feature-card:hover img { transform: scale(1.04); }
.feature-body { padding: 16px; }
.feature-body h3 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.feature-body p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

/* ------------------------------- trends ------------------------------ */

.trends { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trend { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.1; background: #eae6dd; }
.trend img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.trend:hover img { transform: scale(1.04); }
.trend::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 32%, transparent 55%, rgba(0,0,0,0.66) 100%); }
.trend-label { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: 15px; font-weight: 800; color: #fff; }
.trend-type { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.9); font-size: 11px; font-weight: 800; }
.trend-action { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 12px; font-weight: 800; transition: background 160ms ease; }
.trend:hover .trend-action { background: #fff; }


/* ------------------------------ character ---------------------------- */

.character { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 44px; align-items: center; }
.character-media { display: flex; align-items: center; gap: 12px; }
.portrait { margin: 0; position: relative; flex: 1; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: #eae6dd; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.9); font-size: 11px; font-weight: 700; }
.portrait-arrow { font-size: 22px; color: var(--faint); }
.character-copy h2 { margin: 10px 0 0; font-size: clamp(28px, 3vw, 42px); letter-spacing: -0.035em; line-height: 1.05; }
.character-copy p { margin: 12px 0 22px; color: var(--muted); font-size: 15.5px; max-width: 420px; }

/* -------------------------------- access ----------------------------- */

.access h2 { margin: 0 0 24px; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.035em; }
.access-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.access-item { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.access-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--bg); color: var(--ink); }
.access-icon svg { width: 21px; height: 21px; }
.access-item b { display: block; margin-top: 12px; font-size: 16px; }
.access-item p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }

/* ------------------------------- pricing ----------------------------- */

.pricing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.plan--featured { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan-badge { position: absolute; top: 14px; right: 14px; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,0.14); font-size: 10.5px; font-weight: 800; }
.plan h3 { margin: 0; font-size: 16px; font-weight: 700; }
.price { margin: 8px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.price span { font-size: 12px; font-weight: 600; opacity: 0.6; margin-left: 2px; }
.plan-note { margin: 4px 0 12px; font-size: 12px; opacity: 0.65; }
.plan ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; font-size: 13px; }
.plan li { position: relative; padding-left: 20px; }
.plan li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--accent); }
.plan--featured li::before { color: #b9a6ff; }
.plan .btn { margin-top: auto; }
.plan--featured .btn-light { background: #fff; border-color: #fff; color: var(--ink); }

/* --------------------------------- faq ------------------------------- */

.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-size: 16px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--faint); }
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0 0 18px; font-size: 14.5px; color: var(--muted); max-width: 640px; }

/* --------------------------------- cta ------------------------------- */

.cta { padding: 20px 0 40px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 38px 36px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.cta h2 { margin: 0; font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -0.03em; }
.cta p { margin: 8px 0 0; color: rgba(255,255,255,0.68); font-size: 15px; }
.cta .btn-light { background: #fff; border-color: #fff; color: var(--ink); }

/* -------------------------------- footer ----------------------------- */

.footer { padding: 30px 0 24px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand .logo { color: var(--ink); }
.footer-brand .logo-mark { background: var(--ink); }
.footer-brand p { margin: 10px 0 0; font-size: 13px; color: var(--muted); max-width: 260px; }
.footer-small { font-size: 11.5px !important; color: var(--faint) !important; }
.footer-nav { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted); }
.footer-nav b { color: var(--ink); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.footer-nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }

/* ------------------------------ responsive --------------------------- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 560px; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trends { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .character { grid-template-columns: 1fr; gap: 28px; }
  .access-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 68px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; border-radius: 10px; }
  .nav a:hover { background: var(--bg); }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; }
  .header-actions .btn-ghost { display: none; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .new-grid { grid-template-columns: 1fr; }
  .new-card { aspect-ratio: 4 / 3; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding: 54px 0; }
  .section--tight { padding: 18px 0 54px; }
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero { padding-top: 28px; }
  .hero-media { margin-inline: auto; }
  .media-card--hero { aspect-ratio: 3 / 4; }
  .media-card--float { left: -8px; bottom: -18px; width: 130px; }
  .hero-chip { display: none; }
  .feature-grid, .trends, .pricing, .access-grid { grid-template-columns: 1fr; }
  .portrait-arrow { display: none; }
  .character-media { gap: 8px; }
  .plan { padding: 18px; }
  .faq summary { font-size: 15px; }
  .footer-bottom { flex-direction: column; }
}
