/* Lux Invicta Power Solutions */
:root {
    --bg: #0E0D0B;
    --bg-2: #13120F;
    --card: #1A1814;
    --card-hover: #201D18;
    --line: #2A2620;
    --line-gold: #5A4A28;
    --gold: #C9A24B;
    --gold-light: #F0DCA0;
    --gold-deep: #9C7A2E;
    --champagne: #E8D9B5;
    --ivory: #F5F1E8;
    --muted: #A9A398;
    --dim: #8C867B;
    --error: #E39A86;
    --success: #9FC9A0;
    --gold-gradient: linear-gradient(135deg, #F3DFA2 0%, #D8B562 38%, #C9A24B 60%, #9C7A2E 100%);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-roman: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1160px;
    --radius: 3px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ivory);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--champagne); text-decoration-color: var(--line-gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-light); text-decoration-color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 200;
    background: var(--gold); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius);
    font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

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

h1, h2, h3 { color: var(--ivory); margin: 0 0 0.75rem; }
h1, h2 { font-family: var(--font-display); font-variant-numeric: lining-nums; font-weight: 500; line-height: 1.12; letter-spacing: 0.2px; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
p { margin: 0 0 1rem; }

.eyebrow {
    font-family: var(--font-roman); font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold); margin: 0 0 0.9rem;
}
.rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 1.25rem 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.gold-text {
    background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 1.5rem; border-radius: var(--radius); font-family: var(--font-body);
    font-size: 0.98rem; font-weight: 600; letter-spacing: 0.3px; text-decoration: none;
    border: 1px solid transparent; cursor: pointer; transition: filter 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
    line-height: 1.3; text-align: center;
}
.btn-gold { background: var(--gold-gradient); color: #17130A; }
.btn-gold:hover { filter: brightness(1.08); color: #17130A; }
.btn-outline { border-color: var(--line-gold); color: var(--champagne); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Nav */
.nav {
    position: sticky; top: 0; z-index: 100; background: rgba(14, 13, 11, 0.94);
    border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
.nav-container {
    max-width: var(--container); margin: 0 auto; padding: 0.85rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-name {
    display: block; font-family: var(--font-roman); font-weight: 600; font-size: 1.15rem; letter-spacing: 3px; line-height: 1.2;
}
.brand-sub { display: block; font-size: 0.66rem; letter-spacing: 2.6px; color: var(--gold); text-transform: uppercase; line-height: 1.4; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--champagne); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--gold); }
.nav-links .btn { color: #17130A; padding: 0.6rem 1.1rem; font-size: 0.9rem; box-shadow: none; }
.nav-links a.btn[aria-current="page"] { color: #17130A; box-shadow: none; }
.nav-toggle {
    display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius);
    width: 44px; height: 44px; padding: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--champagne); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Grid background used behind heroes */
.cells {
    position: relative; overflow: hidden;
}
.cells::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.16;
    background-image:
        linear-gradient(var(--gold) 1px, transparent 1px),
        linear-gradient(90deg, var(--gold) 1px, transparent 1px),
        linear-gradient(rgba(201, 162, 75, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 75, 0.5) 1px, transparent 1px);
    background-size: 64px 64px, 64px 64px, 32px 32px, 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse at 85% 30%, #000 0%, transparent 62%);
    mask-image: radial-gradient(ellipse at 85% 30%, #000 0%, transparent 62%);
}
.cells > * { position: relative; }

/* Hero */
.hero { padding: 5.5rem 0 4.5rem; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem; align-items: center; }
.hero h1 { max-width: 640px; }
.hero-emblem { display: flex; justify-content: center; }
.hero-emblem svg { width: min(320px, 100%); height: auto; }
.hero-facts {
    list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
}
.hero-facts li { border-top: 1px solid var(--line-gold); padding-top: 0.9rem; font-size: 0.92rem; color: var(--muted); }
.hero-facts strong { display: block; color: var(--champagne); font-weight: 600; font-size: 0.98rem; }

.page-hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 0.5rem; }

/* Sections */
.section { padding: 5rem 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head p { color: var(--muted); }

.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.6rem;
    display: flex; flex-direction: column; transition: border-color 0.2s, background-color 0.2s;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--line-gold); background: var(--card-hover); }
.card p { color: var(--muted); font-size: 0.96rem; }
.card .card-link { margin-top: auto; color: var(--gold); font-size: 0.9rem; font-weight: 600; }
.icon { width: 40px; height: 40px; margin-bottom: 1.1rem; color: var(--gold); }
.icon svg { width: 100%; height: 100%; }

.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { border-top: 1px solid var(--line-gold); padding-top: 1.25rem; }
.step-num { font-family: var(--font-roman); color: var(--gold); font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

.cta-band { padding: 4.5rem 0; text-align: center; }
.cta-band .lead { margin: 0 auto 1.75rem; }
.cta-band .btn-row { justify-content: center; }

/* Products page */
.product {
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem;
    padding: 4rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px;
}
.product:last-child { border-bottom: 0; }
.product-label { display: flex; gap: 1.1rem; align-items: flex-start; }
.product-label .icon { flex: none; margin: 0.35rem 0 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; color: var(--muted); }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: 0.68em; width: 8px; height: 8px;
    border: 1px solid var(--gold); transform: rotate(45deg);
}
.ticks strong { color: var(--champagne); font-weight: 600; }

.note {
    border: 1px solid var(--line-gold); background: rgba(201, 162, 75, 0.06); border-radius: var(--radius);
    padding: 1.4rem 1.5rem; color: var(--muted);
}
.note h3 { color: var(--champagne); }
.note p:last-child { margin-bottom: 0; }

/* Sizer */
.sizer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); }
.sizer-inputs { padding: 2rem; border-right: 1px solid var(--line); }
.sizer-results { padding: 2rem; background: var(--card); }
.field-label { display: block; font-weight: 600; margin-bottom: 0.6rem; color: var(--ivory); }
.presets { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; border: 0; padding: 0; }
.presets legend { padding: 0; margin-bottom: 0.6rem; font-weight: 600; }
.preset {
    background: transparent; border: 1px solid var(--line-gold); color: var(--champagne);
    border-radius: 999px; padding: 0.5rem 1rem; font: inherit; font-size: 0.9rem; cursor: pointer;
}
.preset:hover { border-color: var(--gold); }
.preset[aria-pressed="true"] { background: var(--gold-gradient); color: #17130A; border-color: transparent; font-weight: 600; }
.range-row { margin-bottom: 1.75rem; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.range-top output { color: var(--gold); font-weight: 600; font-size: 0.95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.range-ends { display: flex; justify-content: space-between; color: var(--dim); font-size: 0.8rem; }
input[type="range"] { width: 100%; accent-color: var(--gold); margin: 0.5rem 0 0.25rem; height: 28px; }
.check-row { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--muted); font-size: 0.95rem; }
.check-row input { width: 18px; height: 18px; margin-top: 0.25rem; accent-color: var(--gold); flex: none; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0 1.5rem; }
.result { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--bg-2); }
.result-label { font-family: var(--font-roman); font-size: 0.7rem; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }
.result-value { font-family: var(--font-display); font-variant-numeric: lining-nums; font-size: 2rem; line-height: 1.15; margin: 0.2rem 0; color: var(--ivory); }
.result-note { font-size: 0.85rem; color: var(--muted); }
.fine { font-size: 0.88rem; color: var(--dim); }
details.math { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
details.math summary { cursor: pointer; color: var(--champagne); font-weight: 600; }
details.math ul { color: var(--muted); }

/* About */
.name-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; }
.name-latin { font-family: var(--font-roman); font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: 6px; line-height: 1.2; margin: 0; }
.name-english { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; color: var(--champagne); margin: 0.5rem 0 0; }
.pull { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.4; color: var(--champagne); border-left: 1px solid var(--gold); padding-left: 1.25rem; margin: 1.5rem 0; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer; list-style: none; padding: 1.35rem 2.5rem 1.35rem 0; position: relative;
    font-weight: 600; font-size: 1.05rem; color: var(--ivory);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+"; position: absolute; right: 0.25rem; top: 1.1rem; color: var(--gold); font-size: 1.4rem; font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-right: 2.5rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; scroll-margin-top: 90px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.4rem; }
.form-group .hint { font-weight: 400; color: var(--dim); font-size: 0.85rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%; background: var(--bg); color: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.8rem 0.9rem; font: inherit; font-size: 1rem; transition: border-color 0.2s;
}
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9A24B' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1rem center; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 1px var(--gold); }
textarea { resize: vertical; min-height: 130px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px solid rgba(159, 201, 160, 0.45); background: rgba(159, 201, 160, 0.08); color: var(--success); }
.form-status.is-error { border-color: rgba(227, 154, 134, 0.5); background: rgba(227, 154, 134, 0.08); color: var(--error); }
.contact-side h3 { margin-top: 0.25rem; }
.contact-side .side-item { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.contact-side .side-item:last-child { border-bottom: 0; }
.contact-side p { color: var(--muted); }

/* Footer */
.footer { padding: 3.5rem 0 2rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) minmax(0, 1fr); gap: 2.5rem; }
.footer-motto { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 0.75rem 0 0; }
.footer h2 { font-family: var(--font-roman); font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.45rem; color: var(--muted); font-size: 0.95rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--champagne); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.85rem; color: var(--dim); }

/* 404 */
.not-found { padding: 7rem 0; text-align: center; }
.not-found .btn-row { justify-content: center; }

/* Responsive */
@media (max-width: 960px) {
    .hero-grid, .product, .name-block, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .hero-emblem { display: none; }
    .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sizer { grid-template-columns: minmax(0, 1fr); }
    .sizer-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
    .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 1.5rem 1.25rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
    .nav-links a[aria-current="page"] { box-shadow: none; color: var(--gold); }
    .nav-links .btn { margin-top: 1rem; border-bottom: 0; padding: 0.85rem 1rem; }
}

@media (max-width: 560px) {
    body { font-size: 15.5px; }
    .container, .nav-container { padding-left: 1.15rem; padding-right: 1.15rem; }
    .hero { padding: 3.5rem 0 3rem; }
    .page-hero { padding: 3rem 0 2.5rem; }
    .section { padding: 3.5rem 0; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-name { font-size: 0.98rem; letter-spacing: 2.2px; }
    .brand-sub { font-size: 0.6rem; letter-spacing: 2px; }
    .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .btn-row .btn { width: 100%; }
    .form-row, .result-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .result-grid { gap: 0.75rem; }
    .form-card, .sizer-inputs, .sizer-results { padding: 1.4rem; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
