:root {
  --bg: #f3f4f6;
  --bg-elev: #ffffff;
  --bg-soft: #e8eaee;
  --ink: #14161c;
  --muted: #5a5f6c;
  --line: rgba(20, 22, 28, 0.12);
  --accent: #b33a5a;
  --accent-deep: #8f2d47;
  --accent-soft: rgba(179, 58, 90, 0.1);
  --beauty: #d9a8b4;
  --beauty-deep: #7a4554;
  --font-display: "AnjomanR", "dana", sans-serif;
  --font-body: "dana", "AnjomanR", sans-serif;
  --max: 1100px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

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

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

ul,
ol {
  list-style: none;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  transition: background 0.3s var(--ease), border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(243, 244, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-brand img {
  width: 26px;
  height: auto;
}

.nav-links {
  display: none;
  gap: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.nav-cta {
  display: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
}

.nav-cta:hover {
  background: var(--accent-deep);
}

.nav-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
}

@media (min-width: 900px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 899px) {
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    inset-inline: 1rem;
    flex-direction: column;
    padding: 1.1rem;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: center;
  padding: 7rem 1.5rem 3.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 6.5rem 1.5rem 4rem;
  }
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(243, 244, 246, 0.35) 0%, rgba(243, 244, 246, 0.92) 70%, var(--bg) 100%),
    linear-gradient(125deg, #e4cdd4 0%, #e8e4ef 42%, #d5e0e4 100%);
}

@keyframes shot-scroll {
  0%,
  12% {
    transform: translateY(0);
  }
  88%,
  100% {
    transform: translateY(calc(-100% + 100cqh));
  }
}

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

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin-inline: auto;
  text-align: center;
}

.hero-kicker {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
  opacity: 0;
  animation: rise 0.7s var(--ease) 0.1s forwards;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 6.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.75s var(--ease) 0.2s forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 600;
  max-width: 20em;
  margin: 0 auto 0.7rem;
  line-height: 1.5;
  opacity: 0;
  animation: rise 0.75s var(--ease) 0.32s forwards;
}

.hero-lead {
  color: var(--muted);
  max-width: 32em;
  margin: 0 auto 1.5rem;
  font-size: 0.98rem;
  opacity: 0;
  animation: rise 0.75s var(--ease) 0.42s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  opacity: 0;
  animation: rise 0.75s var(--ease) 0.52s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary:hover {
  background: var(--accent);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  border-color: rgba(22, 20, 31, 0.28);
  background: #fff;
}

/* —— Sections —— */
.section {
  padding: 5rem 1.5rem;
  width: min(100%, calc(var(--max) + 3rem));
  margin-inline: auto;
}

.section-alt {
  width: 100%;
  max-width: none;
  background: var(--bg-soft);
  padding-inline: max(1.5rem, calc(50% - var(--max) / 2));
}

.section-head {
  max-width: 34rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* —— Demos —— */
.demo-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .demo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.demo-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.demo-card.demo-live:hover {
  border-color: rgba(179, 58, 90, 0.4);
  transform: translateY(-3px);
}

.demo-card.is-soon {
  opacity: 0.72;
  cursor: default;
}

.demo-preview {
  aspect-ratio: 16 / 11;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.demo-preview--shot {
  aspect-ratio: 16 / 11;
  background: #fff;
  container-type: size;
}

.demo-preview--shot img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
  transition: transform 6s linear;
  will-change: transform;
}

.demo-live:hover .demo-preview--shot img,
.demo-preview--shot:focus-within img {
  transform: translateY(calc(-100% + 100cqh));
}

@media (hover: none) {
  .demo-preview--shot img {
    animation: shot-scroll 10s ease-in-out infinite alternate;
  }
}

.demo-preview--fashion {
  background:
    linear-gradient(160deg, #2a2a2a 0%, #2a2a2a 38%, transparent 38%),
    linear-gradient(90deg, #d9cfc4 50%, #c4b8ab 50%);
}

.demo-preview--digital {
  background:
    linear-gradient(180deg, #1e3a5f 0%, #1e3a5f 40%, #e8eef4 40%);
}

.demo-preview--market {
  background:
    repeating-linear-gradient(
      90deg,
      #e8f0e4 0,
      #e8f0e4 22%,
      #fff 22%,
      #fff 25%
    ),
    linear-gradient(180deg, #7aa86d 0%, #7aa86d 35%, #f0f4ee 35%);
}

.demo-preview--home {
  background:
    linear-gradient(135deg, #c9b89a 0%, #c9b89a 45%, #ebe4d6 45%);
}

.demo-preview--sport {
  background:
    linear-gradient(180deg, #1a1a1a 0%, #1a1a1a 42%, #ef4444 42%, #ef4444 48%, #f5f5f5 48%);
}

.demo-meta {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.demo-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.55rem;
  background: var(--bg-soft);
  color: var(--muted);
}

.demo-live .demo-badge {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.demo-meta h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.demo-meta p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.demo-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.demo-live:hover .demo-link {
  color: var(--accent-deep);
}

/* —— Strip —— */
.strip {
  padding-block: 0 1rem;
}

.strip-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.strip-list li {
  background: var(--bg-elev);
  padding: 1.2rem 1rem;
  text-align: center;
}

.strip-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.strip-list span {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .strip-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

.feature-rail {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .feature-rail {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.feature-rail article {
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}

.feature-rail h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.feature-rail p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* —— Tabs —— */
.layout-tabs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.65rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.tab-list button {
  font-family: var(--font-body);
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.tab-list button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.tab-panels {
  padding: 1.5rem 1.35rem 1.75rem;
}

.tab-panel[hidden] {
  display: none;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.chip-grid li {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.88rem;
}

.tab-note {
  color: var(--muted);
  max-width: 42rem;
}

/* —— Widgets —— */
.widget-cats {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .widget-cats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.widget-cats h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.widget-cats h3 + h3 {
  margin-top: 1.5rem;
}

.widget-cats li {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.32rem 0;
  border-bottom: 1px solid rgba(22, 20, 31, 0.06);
}

.font-note {
  margin-top: 1.75rem;
  color: var(--beauty-deep);
  font-size: 0.93rem;
}

/* —— Funnel —— */
.funnel {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .funnel {
    grid-template-columns: repeat(4, 1fr);
  }
}

.funnel-step {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(179, 58, 90, 0.4);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.funnel h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}

.funnel p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Tech —— */
.tech-stage {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .tech-stage {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tech-stage article {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.tech-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.tech-stage h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.tech-stage p {
  color: var(--muted);
}

/* —— Content —— */
.content-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 3rem;
  }
}

.content-grid h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  display: inline-block;
}

.content-grid p {
  color: var(--muted);
}

/* —— Panel —— */
.section-panel {
  width: 100%;
  max-width: none;
  background:
    linear-gradient(180deg, rgba(20, 22, 28, 0.03), transparent 40%),
    var(--bg);
  padding-inline: max(1.5rem, calc(50% - var(--max) / 2));
}

.section-head--wide {
  max-width: 42rem;
}

.panel-highlights {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 700px) {
  .panel-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .panel-highlights {
    grid-template-columns: repeat(4, 1fr);
  }
}

.panel-highlights article {
  padding: 1.25rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  border-top: 3px solid var(--accent);
}

.panel-highlights h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.panel-highlights p {
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-stage {
  display: grid;
  gap: 0;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  min-height: 280px;
  box-shadow: 0 18px 40px rgba(20, 22, 28, 0.06);
}

@media (min-width: 800px) {
  .panel-stage {
    grid-template-columns: 200px 1fr;
    min-height: 320px;
  }
}

.panel-stage-side {
  background: #1a1d26;
  color: rgba(255, 255, 255, 0.72);
  padding: 1.15rem 0.9rem;
  display: none;
}

@media (min-width: 800px) {
  .panel-stage-side {
    display: block;
  }
}

.ps-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  padding: 0.35rem 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.75rem;
}

.ps-menu {
  display: grid;
  gap: 0.2rem;
}

.ps-menu li {
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  border-radius: 4px;
}

.ps-menu li.is-active {
  background: rgba(179, 58, 90, 0.28);
  color: #fff;
}

.panel-stage-main {
  padding: 1.15rem 1.25rem 1.4rem;
  background:
    linear-gradient(180deg, #fafbfc, #fff);
}

.ps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
}

.ps-save {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  color: #1f7a4d;
  background: rgba(31, 122, 77, 0.1);
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
}

.ps-fields {
  display: grid;
  gap: 0.85rem;
}

.ps-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.ps-row span {
  height: 10px;
  border-radius: 2px;
  background: rgba(20, 22, 28, 0.18);
}

.ps-row i {
  display: block;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
}

.ps-row--wide {
  grid-template-columns: 110px 1fr;
}

.ps-swatches {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.35rem;
  padding-inline-start: calc(110px + 0.75rem);
}

.ps-swatches b {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.ps-swatches b:nth-child(1) { background: #b33a5a; }
.ps-swatches b:nth-child(2) { background: #14161c; }
.ps-swatches b:nth-child(3) { background: #e8eaee; }
.ps-swatches b:nth-child(4) { background: #3d6ea8; }

.panel-groups {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .panel-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
}

@media (min-width: 1000px) {
  .panel-groups {
    grid-template-columns: repeat(4, 1fr);
  }
}

.panel-groups h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  margin-bottom: 0.85rem;
  color: var(--accent);
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.panel-groups li {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.32rem 0;
  padding-inline-start: 0.85rem;
  position: relative;
}

.panel-groups li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.85em;
  width: 4px;
  height: 4px;
  background: var(--ink);
  opacity: 0.35;
}

/* —— All features —— */
.all-features {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 800px) {
  .all-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.all-features h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.9rem;
  color: var(--accent);
}

.all-features li {
  position: relative;
  padding: 0.35rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  padding-inline-start: 0.9rem;
}

.all-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.9em;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent);
}

/* —— CTA —— */
.cta-final {
  padding: 4.5rem 1.5rem 3.5rem;
  background: var(--ink);
  color: #f4f1ea;
}

.cta-final-inner {
  width: min(100%, 34rem);
  margin-inline: auto;
  text-align: center;
}

.cta-final img {
  margin: 0 auto 1.1rem;
  filter: invert(1) brightness(1.1);
}

.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  margin-bottom: 0.65rem;
}

.cta-final p {
  color: rgba(244, 241, 234, 0.7);
  margin-bottom: 1.5rem;
}

.cta-final .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-final .btn-primary:hover {
  background: var(--beauty);
  color: var(--ink);
}

.cta-final .btn-ghost {
  border-color: rgba(244, 241, 234, 0.25);
  color: #f4f1ea;
  background: transparent;
}

.cta-final .btn-ghost:hover {
  border-color: rgba(244, 241, 234, 0.5);
  background: rgba(244, 241, 234, 0.06);
}

.site-foot {
  padding: 1.35rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-foot strong {
  color: var(--ink);
}

/* —— Reveal —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

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

  [data-reveal],
  .hero-kicker,
  .hero-brand,
  .hero-headline,
  .hero-lead,
  .hero-actions {
    opacity: 1;
    transform: none;
  }
}
