/* Meyer Software Services: site styles. No external fonts or frameworks. */

:root {
  --bg: #0b1020;
  --bg-2: #10172d;
  --surface: #141c36;
  --surface-2: #1a2342;
  --line: rgba(148, 163, 214, 0.18);
  --text: #eef2ff;
  --text-2: #b4bdd9;
  --text-3: #8a94b5;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --accent: var(--cyan);
  --accent-2: var(--purple);
  --grad: linear-gradient(120deg, var(--cyan), var(--purple));
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7);
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

.theme-starrise {
  --bg: #120a24;
  --bg-2: #180d30;
  --surface: #1f1240;
  --surface-2: #29174f;
  --line: rgba(236, 150, 255, 0.2);
  --text-2: #d3c4ee;
  --text-3: #a898c9;
  --pink: #ff4fb3;
  --accent: var(--pink);
  --accent-2: var(--cyan);
  --grad: linear-gradient(120deg, #ff4fb3, #a855f7 55%, #22d3ee);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--text); color: var(--bg); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.placeholder { background: #fde047; color: #1a1a1a; padding: 0 0.25em; border-radius: 4px; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 32, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.theme-starrise .site-header { background: rgba(18, 10, 36, 0.85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; font-weight: 700; font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-text span { color: var(--text-2); font-weight: 500; }
.site-nav ul { list-style: none; display: flex; gap: 0.3rem; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 0.55rem 0.9rem; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 550; font-size: 0.98rem; }
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px var(--line); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; margin: 0 auto; position: relative; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .brand { font-size: 1rem; }
  .nav-toggle { display: block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 0.75rem 1.25rem 1.25rem; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav a { padding: 0.85rem 1rem; border-radius: 12px; font-size: 1.05rem; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.35rem; border-radius: 999px; font-weight: 650; text-decoration: none; font-size: 1rem; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #0b1020; box-shadow: 0 10px 30px -12px var(--accent-2); }
.theme-starrise .btn-primary { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.btn-ghost { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 2rem + 5vw, 6rem); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.9rem; }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-3); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }

/* Studio hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 2.5rem + 7vw, 8rem); isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.hero::before { width: 520px; height: 520px; right: -120px; top: -180px; background: radial-gradient(circle, rgba(168, 85, 247, 0.55), transparent 70%); }
.hero::after { width: 460px; height: 460px; left: -160px; bottom: -220px; background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 2rem; }
.hero-card { margin: 0; position: relative; border-radius: 22px; padding: 1.25rem; background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-card img { border-radius: 14px; }
.hero-card figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; color: var(--text-2); font-size: 0.95rem; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 650; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text); white-space: nowrap; }
.badge-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }

@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .brand-text span { display: none; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem; background: linear-gradient(140deg, rgba(34, 211, 238, 0.18), rgba(168, 85, 247, 0.22)); color: var(--text); }
.card-icon svg { width: 22px; height: 22px; }

/* Product feature (home) */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid rgba(236, 150, 255, 0.28); background: #160c2e; box-shadow: var(--shadow); }
.product-media { position: relative; min-height: 320px; background: #1d0f3a; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: clamp(1.75rem, 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.product-body .logo { width: min(320px, 80%); margin-bottom: 1.25rem; }
.product-body p { color: #d3c4ee; }
.product .btn-primary { background: linear-gradient(120deg, #ff4fb3, #a855f7 55%, #22d3ee); color: #fff; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product-media { min-height: 0; aspect-ratio: 16 / 9; } }

/* StarRise hero */
.sr-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem); }
.sr-hero-bg { position: absolute; inset: 0; z-index: -2; }
.sr-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.sr-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 10, 36, 0.92) 0%, rgba(18, 10, 36, 0.72) 50%, rgba(18, 10, 36, 0.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.sr-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.sr-hero .logo { width: min(520px, 100%); margin: 0 0 1.25rem -0.5rem; filter: drop-shadow(0 10px 30px rgba(255, 79, 179, 0.35)); }
.sr-hero .tagline { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); font-style: italic; letter-spacing: 0.12em; text-transform: uppercase; color: #f5d0fe; font-weight: 700; margin-bottom: 1rem; }
.sr-popstar { justify-self: center; max-height: 560px; width: auto; filter: drop-shadow(0 20px 40px rgba(168, 85, 247, 0.45)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 2rem; padding: 0; list-style: none; }
.facts li { margin: 0; }
@media (max-width: 860px) { .sr-hero-grid { grid-template-columns: 1fr; } .sr-popstar { display: none; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 6vw, 5rem); }
.feature.reverse .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.feature-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature p { color: var(--text-2); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature.reverse .feature-media { order: 0; } }

.specialities { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; list-style: none; padding: 0; margin: 0; }
.specialities li { margin: 0; padding: 1.1rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; font-weight: 650; }
.specialities span { display: block; font-size: 0.85rem; font-weight: 450; color: var(--text-3); margin-top: 0.2rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.5rem); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.card-glow { background: linear-gradient(150deg, rgba(255, 79, 179, 0.12), rgba(34, 211, 238, 0.06)); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.gallery li { margin: 0; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 0.6rem 0.9rem; font-size: 0.92rem; color: var(--text-2); }

/* Callouts */
.callout { border-radius: var(--radius); padding: 1.5rem 1.75rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.callout > :last-child { margin-bottom: 0; }
.callout-draft { border-left-color: #fde047; background: #2a2410; color: #fef3c7; }
.callout-draft a { color: #fde047; }

/* Long-form text (privacy policy, support) */
.prose { color: var(--text); }
.prose h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); margin-top: 2.4em; padding-top: 0.2em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.96rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 650; background: rgba(255, 255, 255, 0.04); }
.prose td { color: var(--text-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .prose table.stack thead { display: none; }
  .prose table.stack tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .prose table.stack td { display: block; border: 0; padding: 0.2rem 0; }
  .prose table.stack td::before { content: attr(data-label); display: block; font-weight: 650; color: var(--text); font-size: 0.85rem; }
}
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 2rem 0; }
.toc h2 { font-size: 1rem; margin: 0 0 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }
.toc ol { columns: 2 260px; margin: 0; padding-left: 1.2em; }
.toc li { color: var(--text-2); }
.summary-box { border-radius: var(--radius); padding: 1.5rem 1.75rem; background: linear-gradient(140deg, rgba(255, 79, 179, 0.12), rgba(34, 211, 238, 0.08)); border: 1px solid var(--line); margin: 1.5rem 0 2rem; }
.summary-box ul { margin: 0; }
.page-head { padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1rem; }
.page-head .meta { color: var(--text-3); font-size: 0.95rem; }

.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.contact-card .email { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); font-weight: 650; word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-block: 2.5rem; margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: start; }
.footer-brand { display: flex; gap: 0.8rem; align-items: flex-start; }
.footer-brand p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-small { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; color: var(--text-3); }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* Reveal on scroll (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(5rem, 4rem + 6vw, 9rem); }
.notfound .code { font-size: clamp(4rem, 3rem + 8vw, 8rem); font-weight: 800; line-height: 1; margin-bottom: 0.2em; }
.notfound .btn-row { justify-content: center; }

@media print {
  .site-header, .site-footer, .btn-row, .toc { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  h1, h2, h3, .prose p, .prose li, .prose td, .prose th, .prose strong, .meta, .eyebrow, .muted { color: #000 !important; }
  a { color: #000; }
  .summary-box, .callout, .prose th { background: none !important; border-color: #999 !important; color: #000 !important; }
  .placeholder { background: #ff0; }
}
