:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --white: #fffefa;
  --ink: #221d29;
  --muted: #615967;
  --line: #e2dce5;
  --purple: #643cca;
  --purple-dark: #4d29aa;
  --lavender: #ede7fa;
  --dark: #252031;
  --radius: 19px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "Inter", Arial, sans-serif;
  line-height: 1.55;
}
html[lang="hy"] body { font-family: "Noto Sans Armenian", "Segoe UI", Arial, sans-serif; }
::selection { color: var(--ink); background: #ddd0fd; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
[id] { scroll-margin-top: 25px; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
p, h1, h2, h3, figure { margin: 0; }
svg { display: block; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 2; padding: .6rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { min-height: 76px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
.logo-mark { display: inline-grid; flex: none; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: white; background: var(--purple); font-size: 21px; font-weight: 400; line-height: 1; }
.section-nav, .header-actions { display: flex; align-items: center; }
.section-nav { gap: clamp(18px, 3vw, 40px); }
.header-actions { gap: 12px; }
.section-nav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.section-nav a:hover { color: var(--purple-dark); }
.language-nav { display: flex; flex: none; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.language-nav a { display: grid; min-width: 31px; min-height: 32px; place-items: center; color: var(--muted); border-radius: 6px; font: 700 12px/1 "Segoe UI", Arial, sans-serif; text-decoration: none; }
.language-nav a:hover, .language-nav a[aria-current="true"], .language-nav a[aria-current="page"] { color: var(--purple-dark); background: var(--lavender); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 17px; width: fit-content; min-height: 50px; padding: 11px 18px; border: 1px solid transparent; border-radius: 9px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .16s, border-color .16s; }
.button > [aria-hidden="true"], .text-link > [aria-hidden="true"] { flex: none; line-height: 1; }
.button-outline { min-height: 42px; padding: 8px 13px; border-color: #d8cde9; }
.button-outline:hover { background: var(--lavender); border-color: #bba6de; }
.button-primary { color: white; background: var(--purple); }
.button-primary:hover { background: var(--purple-dark); }
.button-primary:disabled { opacity: .65; cursor: wait; }
.text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--purple-dark); font-size: 14px; font-weight: 700; text-underline-offset: 4px; text-decoration-color: transparent; }
.text-link:hover { text-decoration-color: currentColor; }

.hero { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: center; gap: clamp(30px, 5vw, 82px); padding-block: clamp(40px, 5.5vw, 74px); }
.eyebrow { display: flex; gap: 9px; align-items: center; color: var(--purple-dark); font-size: 12px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.signal { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #7a50d8; box-shadow: 0 0 0 4px #e9ddff; margin-inline: 4px 3px; }
h1, h2 { font-weight: 760; letter-spacing: -.07em; line-height: .98; text-wrap: balance; overflow-wrap: anywhere; }
html[lang="hy"] h1, html[lang="hy"] h2 { letter-spacing: -.055em; line-height: 1.08; }
h1 { margin-top: 23px; font-size: clamp(35px, 5.35vw, 76px); }
h1 em { color: var(--purple); font-style: normal; }
.hero-desc { max-width: 460px; margin-top: 18px; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 23px; }
.hero-examples-link { min-height: 44px; }
.hero h1 > * { display: block; }
.hero-preview { display: block; min-width: 0; text-decoration: none; border-radius: var(--radius); }
.hero-preview-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.hero-preview-caption strong { color: var(--purple-dark); }
.hero-preview:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.apex-preview {
  min-width: 0;
  padding: clamp(14px, 3.2vw, 39px);
  border: 1px solid #dfd3f2;
  border-radius: var(--radius);
  background: repeating-linear-gradient(0deg, #7651bc19 0 1px, transparent 1px 26px), repeating-linear-gradient(90deg, #7651bc19 0 1px, transparent 1px 26px), #eee4fa;
}
.apex-window { overflow: hidden; border: 1px solid #38484a; border-radius: 10px; color: #f3f8f7; background: #131f21; box-shadow: 0 12px 22px #38265c30; }
.apex-toolbar { display: flex; justify-content: space-between; gap: 7px; padding: 8px 11px; color: #b7c7c8; border-bottom: 1px solid #38484a; font: 9px/1.2 Consolas, monospace; }
.apex-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.apex-hero > div { padding: 8px 0 8px 12px; }
.apex-hero strong { display: block; font-size: clamp(13px, 2vw, 25px); line-height: 1.13; overflow-wrap: anywhere; }
.apex-hero img { display: block; width: 100%; height: auto; }
.apex-pill { display: inline-block; margin-top: 8px; padding: 4px 6px; border-radius: 4px; color: #201308; background: #ff9d65; font-size: 10px; font-weight: 750; }
.apex-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; padding: 0 10px 11px; }
.apex-services div { display: grid; align-content: start; gap: 2px; padding: 5px; border: 1px solid #38484a; border-radius: 4px; font-size: clamp(9px, 1.15vw, 12px); overflow-wrap: anywhere; }

.formats { display: grid; grid-template-columns: minmax(0, .77fr) minmax(0, 1.75fr); gap: clamp(24px, 4.3vw, 64px); padding-block: clamp(50px, 6.5vw, 88px); border-top: 1px solid var(--line); }
.section-intro h2 { margin-top: 17px; font-size: clamp(40px, 5vw, 68px); }
.section-intro > p:last-of-type:not(.eyebrow) { margin-top: 17px; max-width: 315px; color: var(--muted); font-size: 16px; }
.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.format-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; min-width: 0; padding: clamp(15px, 2vw, 25px); background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.format-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 7px; color: #736680; font: 11px/1 Consolas, monospace; }
.format-top svg { width: 40px; height: 40px; padding: 6px; stroke: var(--purple-dark); stroke-width: 1.8; border-radius: 8px; background: var(--lavender); }
.format-card h3, .steps h3 { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.format-card p, .steps p { color: var(--muted); font-size: 14px; }
.format-card a { margin-top: auto; padding-top: 6px; font-size: 13px; }

.examples { padding-block: clamp(49px, 6.5vw, 83px); border-top: 1px solid var(--line); }
.examples-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px 35px; align-items: end; margin-bottom: 25px; }
.examples .examples-intro > p:last-of-type { max-width: 390px; margin-top: 0; }
.example-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.demo-card { --demo-gutter: clamp(14px, 1.5vw, 20px); display: grid; grid-template-rows: 1fr auto; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.demo-link { display: grid; grid-template-rows: auto 1fr; min-width: 0; border-radius: inherit; text-decoration: none; }
.demo-card--wedding { --demo-mat: #b8bda6; --demo-glow: #e9e5d4; --demo-paper: #f7f1e4; --demo-ink: #313a2a; --demo-accent: #526246; --demo-frame: #22261f; }
.demo-card--birthday { --demo-mat: #e7a1a8; --demo-glow: #f9d7c4; --demo-paper: #fff2e8; --demo-ink: #672e49; --demo-accent: #a84766; --demo-frame: #33222d; }
.demo-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: clamp(220px, 23vw, 280px);
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: radial-gradient(ellipse at 20% 24%, var(--demo-glow), transparent 65%), var(--demo-mat);
}
.demo-card--birthday .demo-stage { justify-content: flex-end; background: radial-gradient(ellipse at 83% 27%, var(--demo-glow), transparent 65%), var(--demo-mat); }
.demo-photo { position: absolute; inset: 0 0 0 auto; z-index: 0; width: 74%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.demo-card--birthday .demo-photo { inset: 0 auto 0 0; object-position: 50% 47%; }
.demo-phone {
  position: relative;
  z-index: 1;
  width: min(52%, 120px);
  aspect-ratio: 9 / 16.7;
  margin-inline-start: 10%;
  padding: 5px;
  border: 1px solid #ffffff8a;
  border-radius: clamp(20px, 2.25vw, 31px);
  background: var(--demo-frame);
  box-shadow: 0 19px 33px #261f284d, 0 5px 9px #251a273d;
  transform: rotate(-6deg);
}
.demo-card--birthday .demo-phone { margin-inline: 0 10%; transform: rotate(6deg); }
.demo-phone::before {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 50%;
  width: 24%;
  height: 7px;
  border-radius: 999px;
  background: var(--demo-frame);
  transform: translateX(-50%);
  content: "";
}
.demo-screen { display: grid; height: 100%; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; border-radius: clamp(15px, 1.85vw, 25px); color: var(--demo-ink); background: var(--demo-paper); }
.demo-screen-hero { position: relative; isolation: isolate; display: grid; align-items: end; background: var(--demo-accent); }
.demo-screen-hero img, .demo-screen-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-screen-hero img { z-index: 0; object-fit: cover; object-position: center 43%; }
.demo-screen-hero::before { z-index: 1; background: linear-gradient(transparent 31%, #191820c7 95%); content: ""; }
.demo-screen-caption { position: relative; z-index: 2; padding: 9px 6px; color: #fffaf4; text-align: center; }
.demo-screen-title { margin-bottom: 3px; font-size: clamp(8px, .8vw, 11px); line-height: 1.2; font-weight: 700; }
.demo-screen-name { font: 700 clamp(14px, 1.25vw, 20px)/1.08 Georgia, serif; letter-spacing: -.04em; text-wrap: balance; overflow-wrap: anywhere; }
html[lang="hy"] .demo-card--wedding .demo-screen-name { font-family: "Noto Serif Armenian", Georgia, serif; }
.demo-card--birthday .demo-screen-name { font-family: inherit; font-weight: 850; }
.demo-screen-details { display: grid; justify-items: center; gap: 4px; padding: 6px; }
.demo-screen-date { font-size: clamp(9px, .9vw, 12px); font-weight: 740; text-align: center; }
.demo-calendar { display: grid; width: 100%; max-width: 156px; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: center; justify-items: center; font-size: clamp(7px, .76vw, 10px); font-variant-numeric: tabular-nums; }
.demo-calendar strong { display: grid; width: min(100%, 19px); aspect-ratio: 1; place-items: center; border-radius: 50%; color: white; background: var(--demo-accent); }
.demo-body { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: var(--demo-gutter) var(--demo-gutter) 0; }
.demo-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 3px 14px; }
.demo-heading h3 { font-size: clamp(19px, 1.9vw, 25px); line-height: 1.12; letter-spacing: -.035em; }
.demo-heading time { color: var(--demo-ink); font-size: 13px; font-weight: 700; }
.demo-features { color: var(--muted); font-size: 14px; }
.demo-cta { max-width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 13px; gap: 10px; font-size: 14px; text-align: left; }
.demo-link:hover .demo-cta, .demo-link:focus-visible .demo-cta { background: var(--purple-dark); }
.demo-order { max-width: calc(100% - var(--demo-gutter) * 2); min-height: 44px; margin: 1px var(--demo-gutter) 6px; font-size: 13px; }

.process { color: #fffdff; background: var(--dark); }
.process-inner { display: grid; grid-template-columns: .75fr 1fr; gap: clamp(28px, 7vw, 120px); padding-block: clamp(50px, 6.6vw, 85px); }
.process .eyebrow { color: #dfcfff; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid #5b5167; }
.steps li { padding-block: 19px; border-bottom: 1px solid #5b5167; }
.steps p { margin-top: 6px; max-width: 460px; color: #dfd6e6; }

.order { background: #f1eafa; }
.order-inner { display: grid; grid-template-columns: .75fr 1fr; gap: clamp(30px, 7vw, 120px); padding-block: clamp(55px, 7vw, 105px); }
.order-decoration { display: block; width: fit-content; margin-top: 18px; color: #d8c5f4; font: 80px/1 Georgia, serif; }
.order-form { display: grid; gap: 15px; min-width: 0; padding: clamp(19px, 3vw, 34px); border: 1px solid #e5dceb; border-radius: var(--radius); background: var(--white); box-shadow: 0 14px 45px #4f28650d; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-field { min-width: 0; }
.order-form label { display: grid; min-width: 0; gap: 5px; font-size: 14px; font-weight: 650; }
.order-form input:not([type="checkbox"]), .order-form select, .order-form textarea {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  border: 1px solid var(--field-border, #cfc4d7);
  border-radius: 7px;
  background: #fff;
  font-size: 16px;
}
.order-form input::placeholder, .order-form textarea::placeholder { font-weight: 400; color: #6d6572; opacity: 1; }
.order-form [aria-invalid="true"] { --field-border: #a02a38; }
.field-error { margin-top: 5px; color: #a02a38; font-size: 14px; overflow-wrap: anywhere; }
.order-form textarea { min-height: 105px; resize: vertical; }
.order-form .consent { grid-template-columns: auto 1fr; gap: 9px; align-items: start; color: var(--muted); font-size: 13px; font-weight: 400; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--purple); }
.form-status { font-size: 14px; overflow-wrap: anywhere; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #a02a38; }
.form-status[data-state="success"] { color: #21633d; font-weight: 700; }
.footer-inner { min-height: 90px; }
.footer-inner p { color: var(--muted); font-size: 14px; }

@media (max-width: 980px) {
  .wrap { width: min(100% - 56px, 900px); }
  .section-nav { display: none; }
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formats { grid-template-columns: 1fr; }
  .formats .section-intro > p:last-of-type { max-width: 480px; }
}
@media (max-width: 760px) {
  .examples-intro { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 38px); }
  .header-inner { min-height: 66px; gap: 10px; }
  .wordmark { gap: 7px; min-width: 0; font-size: 17px; white-space: normal; line-height: 1.2; overflow-wrap: anywhere; }
  .logo-mark { width: 29px; height: 29px; font-size: 17px; }
  .button-outline { gap: 7px; padding-inline: 9px; font-size: 12px; }
  .hero, .process-inner, .order-inner { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 26px; padding-block: 37px 42px; }
  h1 { max-width: 580px; margin-top: 20px; font-size: clamp(35px, 9vw, 60px); text-wrap: initial; }
  .hero-desc { margin-top: 19px; }
  .hero-actions { margin-top: 23px; }
  .order-decoration { display: none; }
  .process-inner, .order-inner { gap: 25px; }
  .footer-inner { min-height: 78px; flex-wrap: wrap; gap: 12px; padding-block: 14px; }
  .footer-inner p { display: none; }
}
@media (max-width: 520px) {
  .header-actions > .button { display: none; }
  .language-nav { gap: 0; padding: 2px; }
  .language-nav a { min-width: 44px; min-height: 44px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 4px 12px; }
  .hero-actions > a { max-width: 100%; overflow-wrap: anywhere; }
  .hero-actions > .button { gap: 8px; padding-inline: 12px; text-align: left; }
  .format-grid, .example-grid { grid-template-columns: 1fr; }
  .format-card { gap: 8px; padding: 17px; }
  .format-top { margin-bottom: 3px; }
  .form-row { grid-template-columns: 1fr; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: grid; place-items: center; width: 44px; height: 44px; list-style: none; cursor: pointer; color: var(--purple-dark); border: 1px solid var(--line); border-radius: 9px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 20px; height: 20px; }
.logo-mark svg { width: 68%; height: 68%; }
.order-decoration svg { width: 1em; height: 1em; }
.arrow-icon { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.12em; }
.mobile-nav nav { position: absolute; z-index: 5; top: 100%; right: 0; width: max-content; max-width: min(240px, 80vw); padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 8px 24px #38265c25; }
.mobile-nav nav a { display: grid; align-items: center; min-height: 44px; padding: 5px 10px; }
.order-next { color: var(--muted); font-size: 13px; }
@media (max-width: 980px) {
  .mobile-nav { display: block; }
}
@media (max-width: 420px) {
  .header-inner { width: calc(100% - 24px); gap: 6px; }
  .header-inner .wordmark { font-size: 14px; gap: 5px; overflow-wrap: normal; }
  .header-inner .logo-mark { width: 25px; height: 25px; }
  .header-inner .language-nav a { min-width: 34px; }
  .mobile-nav { order: 1; }
  .mobile-nav nav { max-width: min(240px, calc(100vw - 24px)); }
}


.case-preview { display: grid; align-items: center; min-width: 0; height: clamp(220px, 23vw, 280px); padding: 12px; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: var(--case-mat); color: white; text-decoration: none; }
.case-preview--apex { --case-mat: #efe2d7; --case-bar: #171815; }
.case-preview--volt { --case-mat: #e0ebff; --case-bar: #123475; }
.case-window { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; overflow: hidden; border-radius: 10px; background: var(--case-bar); box-shadow: 0 14px 30px #21182330; }
.case-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 12px; font-size: 10px; letter-spacing: .08em; }
.case-visual { position: relative; display: grid; align-items: end; min-height: 0; isolation: isolate; }
.case-visual img, .case-visual::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-visual img { z-index: -2; object-fit: cover; }
.case-visual::after { content: ""; z-index: -1; background: linear-gradient(0deg, #100e0dd9, #100e0d55 43%, transparent 72%); }
.case-copy { padding: clamp(12px, 2.1vw, 23px); }
.case-copy > strong { display: block; max-width: 19ch; font-size: clamp(16px, 1.5vw, 23px); line-height: 1.12; }
.case-preview--volt .case-visual img { object-fit: contain; background: white; }
.case-preview:hover .case-copy > strong { text-decoration: underline; text-underline-offset: 4px; }
.apex-hero img { aspect-ratio: 3 / 2; object-fit: cover; }
