/* AAPlasma: unified design system (purple) */
:root {
  --purple: #6e25a4;
  --purple-deep: #5c1d8b;
  --purple-ink: #2a0b45;
  --surface: rgba(255, 255, 255, .07);
  --surface-2: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .18);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, .78);
  --accent: #e7d4ff;
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 8vw, 104px);
  --gap: clamp(24px, 3.5vw, 48px);
  --header-h: 76px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--purple); color: var(--text);
  font-family: var(--font); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: #fff; color: var(--purple); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: var(--purple); padding: 8px 16px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------- type ---------------- */
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -.02em; }
h2, .section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 500; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose > h2:first-child, .prose > h3:first-child, .prose > h4:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose li { margin: .3em 0; }
.prose li > p { margin: 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.prose a:hover { text-decoration-color: #fff; }
.prose .lead { font-size: 1.2em; line-height: 1.6; }
.prose .small { font-size: .85em; color: var(--text-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5em .6em; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 500; color: var(--accent); margin-bottom: 1rem; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* ---------------- header ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(110, 37, 164, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { text-decoration: none; font-weight: 400; font-size: .98rem; padding: 8px 16px; border-radius: 999px; transition: background .15s; }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a.active { background: #fff; color: var(--purple); }
.nav-toggle, .burger { display: none; }
@media (max-width: 760px) {
  .logo img { height: 28px; }
  .burger { display: flex; flex-direction: column; gap: 7px; cursor: pointer; padding: 12px 0 12px 12px; }
  .burger span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--purple); flex-direction: column; align-items: stretch; gap: 4px; padding: 24px var(--gutter); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .site-nav a { font-size: 1.4rem; padding: 14px 18px; }
  .nav-toggle:checked ~ .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-toggle:checked + .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle:checked + .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
}

/* ---------------- hero ---------------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); background: var(--purple-deep); }
.hero-media-on { min-height: 52vh; display: flex; align-items: flex-end; }
.hero-home { min-height: calc(88vh - var(--header-h)); align-items: center; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hero-shade { display: none; }
.hero-media-on .hero-shade { display: block; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42, 11, 69, .15) 0%, rgba(42, 11, 69, .55) 100%); }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; margin-bottom: .35em; }
.hero:not(.hero-media-on) h1 { max-width: 26ch; }
.hero-sub { max-width: 46rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--text-soft); }
.hero-sub p:last-child { margin-bottom: 0; }
.hero-sub a { color: #fff; }
.hero-sub .meta { font-size: 1rem; }
.hero-home .hero-sub { color: #fff; font-weight: 400; }

/* ---------------- sections & layout ---------------- */
.section { padding: var(--section-y) 0; }
.section.alt { background: var(--purple-deep); }
.section .container > * + * { margin-top: var(--gap); }
.section .container > .anchor + * { margin-top: 0; }
.row { display: grid; grid-template-columns: var(--cols); gap: var(--gap); align-items: start; }
.row > .col > * + * { margin-top: 20px; }
.row-images { gap: 20px; }
.section-title { margin-bottom: 0; }
@media (max-width: 820px) {
  .row { grid-template-columns: 1fr; }
  .row-images { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .row-images { grid-template-columns: 1fr; } }

/* ---------------- media ---------------- */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--radius); }
.figure figcaption, .gallery figcaption { margin-top: 10px; font-size: .88rem; line-height: 1.5; color: var(--text-soft); }
.media video, .media .block-video { width: 100%; border-radius: var(--radius); }
.embed-16x9 { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: var(--purple-ink); }
.embed-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery, .gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery a, .gallery-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); }
.gallery img, .gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img, .gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 820px) { .gallery, .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ---------------- components ---------------- */
.btn { display: inline-flex; align-items: center; gap: .5em; background: #fff; color: var(--purple); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 14px 26px; border-radius: 999px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.actions { margin: 0; }

.pull-quote { margin: 0; padding: 28px 32px; background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.pull-quote p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.55; margin: 0; }
.pull-quote cite { display: block; margin-top: 12px; font-style: normal; color: var(--text-soft); font-size: .95rem; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-size: 1.12rem; font-weight: 500; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq-body { padding: 0 0 22px; color: var(--text-soft); }
.faq-body a { color: #fff; }

/* cards (news) */
.cards, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: background .2s, transform .2s; }
.card:hover { background: var(--surface-2); transform: translateY(-2px); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--purple-ink); margin: 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-date { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.card h3, .card-title { font-size: 1.08rem; line-height: 1.4; margin: 0 0 10px; }
.card-excerpt { font-size: .92rem; line-height: 1.6; color: var(--text-soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards-block .card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (max-width: 980px) { .cards, .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards, .card-grid, .cards-block .card-grid { grid-template-columns: 1fr; } }

/* feature list (core platforms) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.feature-img { aspect-ratio: 16 / 10; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { font-size: 1.15rem; margin: 22px 24px 8px; }
.feature .prose { margin: 0 24px 26px; font-size: .95rem; line-height: 1.65; color: var(--text-soft); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.testimonial .avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin-bottom: 18px; }
.testimonial .avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial blockquote { margin: 0 0 18px; font-size: .98rem; line-height: 1.7; flex: 1; }
.testimonial blockquote p:last-child { margin: 0; }
.testimonial figcaption { font-weight: 500; font-size: .92rem; color: var(--accent); }

/* contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); align-items: start; }
.contact-main > * + * { margin-top: 20px; }
.contact-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.contact-line { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; text-decoration: none; font-weight: 400; font-size: 1.08rem; }
.contact-line + .contact-line { border-top: 1px solid var(--line); }
.contact-line span { font-weight: 300; color: var(--text-soft); }
.contact-line:hover { background: var(--surface-2); }
.contact-reqs { background: var(--surface); border-radius: var(--radius); padding: 32px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } .contact-line { flex-direction: column; gap: 0; } .contact-reqs { padding: 26px; } }

/* ---------------- news ---------------- */
.year-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.year-nav a { text-decoration: none; padding: 6px 14px; border-radius: 999px; background: var(--surface); font-size: .92rem; font-weight: 400; }
.year-nav a:hover { background: var(--surface-2); }
.year { font-size: 1.4rem; padding-top: 8px; border-top: 1px solid var(--line); padding-top: 28px; }
.section .container > .year + .cards { margin-top: 20px; }

.section-article { padding-top: clamp(40px, 5vw, 64px); }
.article { max-width: 760px; margin: 0 auto; }
.article > * + * { margin-top: 28px; }
.article .prose { font-size: 1.04rem; line-height: 1.8; }
.article .row-images { gap: 16px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px !important; padding-top: 32px; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; background: var(--surface); border-radius: var(--radius); padding: 18px 22px; font-weight: 400; line-height: 1.45; transition: background .2s; }
.pager a:hover { background: var(--surface-2); }
.pager span { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.pager .pager-next { text-align: right; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager .pager-next { text-align: left; } }

/* ---------------- footer ---------------- */
.site-footer { background: var(--purple-ink); padding: 64px 0 32px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--text-soft); margin: 16px 0 0; max-width: 32ch; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-contact a { text-decoration: none; color: var(--text-soft); }
.footer-nav a:hover, .footer-contact a:hover, .footer-nav a.active { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-social { display: flex; gap: 16px; }
.footer-legal { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .82rem; color: var(--text-soft); }
.footer-legal p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

/* uniform section headings */
.section:not(.section-article) .container > .prose:first-child > :is(h2, h3, h4):first-child,
.section:not(.section-article) .container > .row:first-child > .col > .prose:first-child > :is(h2, h3):first-child {
  font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .55em;
}
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--purple); }
.cards-block .more { margin-top: 28px; }
.cards-block .card-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .cards-block .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-block .card-grid { grid-template-columns: 1fr; } }
html, body { overflow-x: clip; }

.product { align-items: center; background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.product-info > * + * { margin-top: 20px; }
.product-info .prose h1, .product-info .prose h2, .product-info .prose h3, .product-info .prose h4 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.coming-soon { max-width: 640px; margin: 0 auto; text-align: center; background: var(--surface); border-radius: var(--radius); padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px); }
.coming-soon h2 { margin-bottom: .5em; }
.coming-soon p:last-child { margin: 0; color: var(--text-soft); }
.coming-soon a { color: #fff; }

/* store */
.order { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); align-items: start; }
.order .actions { grid-column: 1 / -1; }
.order-text h2 { margin-bottom: .5em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 16px; background: var(--surface); border-radius: var(--radius); padding: 16px 20px; }
.steps li span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--purple); font-weight: 600; display: grid; place-items: center; font-size: .95rem; }
.steps strong { display: block; font-weight: 500; }
.steps p { margin: 2px 0 0; font-size: .92rem; color: var(--text-soft); }
.price { font-size: 1.15rem; font-weight: 500; margin: 0; }
.badge { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.badge.in { background: #d9f7e3; color: #11602f; }
.badge.out { background: rgba(255,255,255,.14); color: var(--text-soft); }
.product-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap); background: var(--surface); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); align-items: start; }
.pf-main { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 4 / 3; object-fit: cover; }
.pf-thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 8px; }
.pf-thumbs a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; }
.pf-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.pf-thumbs a:hover img { opacity: .8; }
.pf-info > * + * { margin-top: 14px; }
.pf-info h2 { margin: 0; }
.pf-info .price { font-size: 1.6rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pc-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-body { padding: 20px 22px 24px; }
.pc-body h3 { font-size: 1.05rem; line-height: 1.4; margin: 0 0 10px; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pc-body p { margin: 0; font-size: .9rem; color: var(--text-soft); }
.notice { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; font-size: .92rem; color: var(--text-soft); }
.notice strong { color: #fff; }
@media (max-width: 900px) { .order, .product-feature { grid-template-columns: 1fr; } .product-grid { grid-template-columns: repeat(2, 1fr); } .pf-thumbs { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

/* lightbox */
.lb-lock, .lb-lock body { overflow: hidden; }
.lb-zoomable { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(18, 4, 32, .97); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 64px 72px; }
.lb.lb-open { display: flex; animation: lb-in .18s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-stage img { max-width: min(1400px, 100%); max-height: calc(100vh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .2s; }
.lb-loading .lb-stage img { opacity: .3; }
.lb-stage figcaption { margin-top: 14px; display: flex; gap: 18px; justify-content: center; align-items: baseline; max-width: 900px; text-align: center; color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.5; }
.lb-count { flex: none; font-size: .8rem; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.lb button { position: absolute; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .15s; font-family: var(--font); }
.lb button:hover, .lb button:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.lb-close { top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 2.2rem; line-height: 1; padding-bottom: 4px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-nav[hidden] { display: none; }
@media (max-width: 700px) {
  .lb { padding: 56px 12px 72px; }
  .lb-nav { top: auto; bottom: 14px; transform: none; width: 46px; height: 46px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .lb-stage img { max-height: calc(100vh - 200px); }
}

/* boxed notice (OxyFog license) */
.license-box { margin-top: 2.5em; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.28); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.license-box > h2:first-child { margin-top: 0; }
.license-box h4 { margin-top: 1.6em; }
@media (max-width: 600px) { .license-box { padding: 20px; } }
