:root {
  --ink: #0c1222;
  --muted: #5e6a7d;
  --soft: #f5f7fb;
  --line: rgba(15, 23, 42, 0.1);
  --card: rgba(255, 255, 255, 0.82);
  --white: #ffffff;
  --accent: #0ea5e9;
  --accent-deep: #0369a1;
  --success: #14b8a6;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body,
main,
section,
article,
div {
  min-width: 0;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.5);
  outline-offset: 4px;
}

button {
  font: inherit;
}

svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: max(18px, env(safe-area-inset-top)) 0 auto;
  z-index: 20;
  transition: transform 0.35s ease;
}

.site-header.has-scrolled {
  transform: translateY(-4px);
}

.nav {
  width: min(100% - 40px, var(--container));
  min-height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.brand,
.nav-actions,
.primary-button,
.footer-inner,
.panel-top,
.flow-node,
.dashboard-header {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 740;
  letter-spacing: 0;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--ink));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font-size: 0;
}

.nav-actions {
  gap: 8px;
  color: rgba(12, 18, 34, 0.72);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-actions > a:not(.nav-button) {
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-button,
.primary-button {
  justify-content: center;
  border-radius: 999px;
  font-weight: 720;
  white-space: nowrap;
}

.nav-button {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  padding: 170px 0 72px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media img {

  background: var(--ink);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(12, 18, 34, 0.18), rgba(12, 18, 34, 0.72)),
    linear-gradient(90deg, rgba(12, 18, 34, 0.72), rgba(12, 18, 34, 0.18) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1060px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta .eyebrow {
  color: #a7e5ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 960px;
  margin-bottom: 24px;
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.primary-button {
  width: fit-content;
  max-width: 100%;
  min-height: 56px;
  gap: 10px;
  padding: 0 22px 0 26px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.primary-button svg {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.section {
  padding: 110px 0;
}

.intro-band {
  padding: 34px 0;
  background: var(--ink);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  min-height: 132px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.cta h2 {
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.cta p {
  color: var(--muted);
  font-size: 1.12rem;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step-card,
.benefit-grid article,
.compare-card,
.admin-panel,
.event-grid article,
.dashboard {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.step-card {
  position: relative;
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.step-card:not(:nth-child(3n))::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -27px;
  width: 28px;
  height: 1px;
  background: var(--line);
}

.icon-shell {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 19px;
  background: rgba(14, 165, 233, 0.11);
  color: var(--accent-deep);
}

.step-card span {
  color: var(--accent-deep);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.step-card h3 {
  margin: 10px 0 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.flow-section,
.events-section {
  background: var(--soft);
}

.flow-layout,
.admin-layout,
.memory-layout,
.interface-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.flow-visual {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.64));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flow-track {
  position: absolute;
  left: 58px;
  top: 52px;
  bottom: 52px;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(14, 165, 233, 0.08));
}

.flow-node {
  position: relative;
  gap: 18px;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.flow-node svg {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 15px;
  background: var(--soft);
  color: var(--accent-deep);
}

.flow-node span {
  font-weight: 760;
  color: var(--ink);
}

.flow-node.is-active {
  transform: scale(1.025);
  background: var(--ink);
}

.flow-node.is-active span,
.flow-node.is-active svg {
  color: var(--white);
}

.flow-node.is-active svg {
  background: rgba(255, 255, 255, 0.14);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.benefit-grid article {
  min-height: 220px;
  padding: 26px;
  border-radius: var(--radius-md);
}

.benefit-grid svg {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: var(--accent-deep);
}

.benefit-grid h3,
.compare-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.benefit-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.comparison-section {
  background: linear-gradient(180deg, var(--white), var(--soft));
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.compare-card {
  padding: 34px;
  border-radius: var(--radius-lg);
}

.premium-card {
  background: linear-gradient(135deg, #0f172a, #0e7490);
  color: var(--white);
}

.muted-card {
  background: rgba(255, 255, 255, 0.72);
}

.compare-card ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.compare-card li {
  position: relative;
  padding-left: 30px;
  color: inherit;
}

.compare-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
}

.muted-card li {
  color: var(--muted);
}

.admin-layout,
.interface-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.admin-panel {
  padding: 22px;
  border-radius: 36px;
}

.panel-top {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-top span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.panel-top strong {
  font-size: 1.25rem;
}

.live-badge {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-weight: 800;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.photo-item {
  overflow: hidden;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

.photo-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  
  background: var(--soft);
}

.photo-item div {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.photo-item button,
.dashboard button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
}

.frames-section {
  background: linear-gradient(180deg, var(--white), #eef7fb);
}

.frames-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.frames-layout .section-heading {
  margin-bottom: 0;
}

.frame-showcase {
  grid-row: span 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.frame-preview {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  padding: 20px;
  border: 14px solid var(--white);
  border-radius: 34px;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
  box-shadow: var(--shadow);
}

.frame-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 22px;
}

.frame-preview::after {
  content: "";
  position: absolute;
  inset: 46px 36px 86px;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(12, 18, 34, 0.2)),
    url("assets/images/frames/corporate-logo-frame.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.frame-preview span,
.frame-preview strong,
.frame-preview small {
  position: relative;
  z-index: 1;
}

.frame-preview span {
  color: rgba(12, 18, 34, 0.58);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.frame-preview strong {
  font-size: 1.35rem;
  line-height: 1.05;
}

.frame-preview small {
  color: var(--muted);
  font-weight: 720;
}

.frame-corporate {
  background: linear-gradient(135deg, #0f172a, #0e7490);
  color: var(--white);
}

.frame-corporate span,
.frame-corporate small,
.frame-festival span,
.frame-festival small {
  color: rgba(255, 255, 255, 0.72);
}

.frame-festival {
  background: linear-gradient(135deg, #7c3aed, #f97316);
  color: var(--white);
}

.frame-sport {
  background: linear-gradient(135deg, #dcfce7, #0ea5e9);
}

.frame-details {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.frame-details h3 {
  margin-bottom: 18px;
}

.frame-details ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame-details li,
.frame-tags span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.frame-details li {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--muted);
  font-weight: 680;
}

.frame-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.frame-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
}

.creation-section {
  background: var(--ink);
  color: var(--white);
}

.creation-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.creation-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.creation-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.creation-visual {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  color: #a7e5ff;
}

.creation-visual svg {
  width: 42px;
  height: 42px;
}

.creation-card > span {
  color: #a7e5ff;
  font-size: 0.82rem;
  font-weight: 840;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.creation-card h3 {
  margin: 10px 0 22px;
  font-size: 2rem;
  line-height: 1;
}

.creation-card ol {
  display: grid;
  gap: 18px;
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.creation-card li {
  padding-left: 8px;
}

.creation-card li::marker {
  color: #a7e5ff;
  font-weight: 840;
}

.formats-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

.format-visual {
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 251, 0.92));
  box-shadow: var(--shadow);
}

.format-card {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.format-card div {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: end center;
  overflow: hidden;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(12, 18, 34, 0.54));
}

.format-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  
  object-position: center;
}

.format-card div::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(12, 18, 34, 0.54));
  pointer-events: none;
}

.format-card div::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;

  border-radius: 15px;
}

.format-card span {
  position: relative;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 820;
}

.format-card.portrait {
  width: 28%;
  aspect-ratio: 2 / 3;
}

.format-card.landscape {
  width: 38%;
  aspect-ratio: 3 / 2;
}

.format-card.square {
  width: 30%;
  aspect-ratio: 1;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.event-grid article {
  aspect-ratio: 3 / 2;
  min-height: 138px;
  display: flex;
  align-items: end;
  padding: 22px;
  border-radius: var(--radius-md);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(12, 18, 34, 0.64)),
    url("assets/images/frames/festival-custom-frame.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 800;
}

.memory-layout {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.memory-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.memory-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
 
  background: var(--soft);
}

.interface-section {
  background: #0c1222;
  color: var(--white);
}

.interface-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.dashboard {
  display: grid;
  grid-template-columns: 86px 1fr;
  min-height: 430px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar {
  display: grid;
  grid-template-rows: 54px repeat(3, 42px) 1fr;
  gap: 14px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-sidebar .sidebar-dot {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-sidebar .sidebar-dot.is-selected {
  background: var(--accent);
}

.dashboard-main {
  padding: 24px;
}

.dashboard-header {
  gap: 12px;
  margin-bottom: 22px;
}

.dashboard-header div {
  flex: 1;
  min-height: 94px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-header span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.dashboard-header strong {
  font-size: 1.8rem;
}

.dashboard-list {
  display: grid;
  gap: 12px;
}

.dashboard-list div {
  min-height: 72px;
  display: grid;
  grid-template-columns: 52px 1fr 92px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-list .thumb-dot {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--success));
  font-size: 0;
}

.dashboard-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.dashboard button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.cta {
  padding: 120px 0;
  background-image:
    linear-gradient(135deg, rgba(12, 18, 34, 0.86), rgba(3, 105, 161, 0.78)),
    url("assets/images/events/festive-event-frame.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--white);
}

.cta-inner {
  max-width: 900px;
}

.cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

.primary-button.light {
  margin-top: 16px;
}

.footer {
  padding: 28px 0;
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  justify-content: space-between;
  gap: 20px;
}

.footer-inner span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
}

.footer .nav-button {
  background: rgba(255, 255, 255, 0.12);
}

.reveal,
.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible,
.reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group.is-visible > *:nth-child(2) {
  transition-delay: 0.06s;
}

.reveal-group.is-visible > *:nth-child(3) {
  transition-delay: 0.12s;
}

.reveal-group.is-visible > *:nth-child(4) {
  transition-delay: 0.18s;
}

.reveal-group.is-visible > *:nth-child(5) {
  transition-delay: 0.24s;
}

.reveal-group.is-visible > *:nth-child(6) {
  transition-delay: 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .nav-actions > a:not(.nav-button):hover {
    background: rgba(15, 23, 42, 0.06);
  }

  .primary-button:hover svg {
    transform: translateX(3px);
  }
}

@media (max-width: 980px) {
  .nav-actions a:not(.nav-button) {
    display: none;
  }

  .steps-timeline,
  .benefit-grid,
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-card:not(:nth-child(3n))::after {
    display: none;
  }

  .flow-layout,
  .admin-layout,
  .memory-layout,
  .interface-layout,
  .frames-layout,
  .formats-layout {
    grid-template-columns: 1fr;
  }

  .admin-layout .section-heading {
    order: -1;
  }

  .frame-showcase {
    grid-row: auto;
  }

  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .container,
  .nav,
  .hero-content {
    width: min(100% - 32px, var(--container));
  }

  .site-header {
    top: max(10px, env(safe-area-inset-top));
    inset-inline: 0;
  }

  .nav {
    min-height: 58px;
    gap: 10px;
    padding: 8px 9px 8px 12px;
  }

  .brand span:last-child {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    flex: 0 0 auto;
  }

  .nav-actions {
    gap: 0;
  }

  .nav-button {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 86svh;
    padding: 112px 0 40px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.55rem, 10.5vw, 4rem);
    line-height: 0.98;
  }

  .hero-copy {
    margin-bottom: 24px;
    font-size: clamp(1rem, 4.2vw, 1.12rem);
    line-height: 1.48;
  }

  .primary-button {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    text-align: center;
    white-space: normal;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(12, 18, 34, 0.16), rgba(12, 18, 34, 0.82)),
      linear-gradient(90deg, rgba(12, 18, 34, 0.52), rgba(12, 18, 34, 0.08));
  }

  .section {
    padding: 68px 0;
  }

  .intro-band {
    padding: 22px 0;
  }

  .stat-card {
    min-height: auto;
    padding: 22px;
  }

  .stat-grid,
  .steps-timeline,
  .benefit-grid,
  .comparison,
  .photo-grid,
  .event-grid,
  .frame-showcase,
  .frame-details ul,
  .creation-options {
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .cta h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.04;
  }

  .section-heading p:not(.eyebrow),
  .cta p {
    font-size: 1rem;
  }

  .step-card {
    min-height: auto;
    padding: 22px;
    border-radius: 24px;
  }

  .icon-shell {
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .step-card h3 {
    font-size: 1.12rem;
  }

  .flow-visual,
  .admin-panel,
  .compare-card,
  .frame-details,
  .creation-card,
  .format-visual {
    border-radius: 26px;
    padding: 18px;
  }

  .flow-track {
    left: 42px;
    top: 42px;
    bottom: 42px;
  }

  .flow-node {
    gap: 12px;
    min-height: 64px;
    padding: 12px;
  }

  .flow-node.is-active {
    transform: none;
  }

  .flow-node svg {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .benefit-grid article {
    min-height: auto;
    padding: 22px;
  }

  .benefit-grid svg {
    margin-bottom: 16px;
  }

  .compare-card {
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
  }

  .frame-preview {
    min-height: 236px;
    border-width: 10px;
    border-radius: 28px;
  }

  .format-visual {
    min-height: auto;
    flex-wrap: wrap;
    gap: 12px;
  }

  .format-card.portrait,
  .format-card.landscape,
  .format-card.square {
    width: min(100%, 260px);
  }

  .photo-item {
    display: block;
  }

  .photo-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .photo-item div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .photo-item button {
    min-height: 40px;
    padding-inline: 8px;
    font-size: 0.74rem;
  }

  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    grid-template-columns: 64px repeat(3, 42px);
    grid-template-rows: none;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dashboard-header,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-list div {
    grid-template-columns: 44px 1fr;
  }

  .dashboard-list button {
    grid-column: 2;
  }

  .cta {
    padding: 86px 0;
  }

  .footer {
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .container,
  .nav,
  .hero-content {
    width: min(100% - 28px, var(--container));
  }

  .brand span:last-child {
    max-width: 96px;
  }

  .nav-button {
    padding-inline: 10px;
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 104px;
  }

  h1 {
    font-size: clamp(2.35rem, 12.5vw, 3.2rem);
  }

  .eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.09em;
  }

  .frame-preview::after {
    inset: 42px 26px 82px;
  }

  .photo-item div {
    grid-template-columns: 1fr;
  }

  .photo-item button {
    font-size: 0.82rem;
  }

  .dashboard-main,
  .dashboard-sidebar {
    padding: 16px;
  }
}

@media (max-width: 340px) {
  .brand span:last-child {
    max-width: 82px;
  }

  .nav {
    width: min(100% - 24px, var(--container));
    padding-inline: 8px;
  }

  .nav-button {
    padding-inline: 9px;
  }

  h1 {
    font-size: 2.28rem;
  }

  .section {
    padding: 58px 0;
  }

  .format-card.portrait,
  .format-card.landscape,
  .format-card.square {
    width: 100%;
  }
}

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

  .reveal,
  .reveal-group > * {
    opacity: 1;
    transform: none;
  }
}
