:root {
    color-scheme: dark;
    --background: #121116;
    --surface: #1b1921;
    --surface-hover: #24202e;
    --text: #f6f4f8;
    --silver: #cbcbcb;
    --muted: #b7b3c0;
    --primary: #442369;
    --violet: #a979ff;
    --lilac: #cfadff;
    --ink: #1a1028;
    --line: #35313c;
    --max-width: 80rem;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: .15rem solid var(--lilac); outline-offset: .24rem; }
[hidden] { display: none !important; }
.wrap { width: min(88%, var(--max-width)); margin-inline: auto; }
#page-header { height: 5.2rem; border-bottom: .0625rem solid var(--line); }
.header-inner, .footer-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .66rem; font-size: 1.47rem; font-weight: 650; letter-spacing: -.06em; white-space: nowrap; }
.brand img { width: 2.6rem; height: auto; border-radius: 20%; }
.header-inner nav { display: flex; gap: 2rem; align-items: center; }
.header-inner nav a { position: relative; font-size: .94rem; color: var(--muted); padding: .65rem 0; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--text); }
.header-inner nav a[aria-current]::after { content: ""; position: absolute; bottom: .13rem; inset-inline: 0; height: .13rem; background: var(--violet); }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; font-weight: 600; font-size: .95rem; }
.button { min-height: 3rem; padding: .7rem 1.25rem; border: .0625rem solid var(--line); border-radius: .55rem; color: var(--text); background: var(--surface); }
.button:hover { border-color: var(--violet); }
.button:disabled { cursor: wait; opacity: .7; }
.header-action { min-height: 2.55rem; background: transparent; border-color: #685b77; font-size: .88rem; }
.primary { border-color: var(--violet); background: var(--violet); color: var(--ink); }
.primary:hover { background: var(--lilac); border-color: var(--lilac); }
.button span, .text-link span { font: 1.25em/1 Arial, sans-serif; }
.text-link:hover { color: var(--lilac); }
.skip { position: absolute; z-index: 5; left: 1rem; top: .5rem; padding: .8rem; background: var(--primary); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.hero { overflow: hidden; border-bottom: .0625rem solid var(--line); background: radial-gradient(ellipse at 77% 55%, #231a34 0, var(--background) 53%); }
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; position: relative; padding-block: clamp(3.6rem, 5.5vw, 5.25rem); }
.hero-copy { position: relative; z-index: 1; }
h1 { font-size: clamp(3.1rem, 5.05vw, 5rem); line-height: 1.06; font-weight: 620; letter-spacing: -.061em; }
h1 em { color: var(--lilac); font-style: normal; background: linear-gradient(110deg, #d6adff, var(--violet) 80%); background-clip: text; -webkit-text-fill-color: transparent; }
.lead { max-width: 48ch; margin-top: 1.55rem; color: var(--silver); font-size: clamp(1rem, 1.23vw, 1.13rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.65rem; margin-top: 2rem; }
.hero-art { position: relative; align-self: stretch; min-height: 19rem; }
.hero-art img { position: absolute; inset: -8% -12%; width: 124%; height: 116%; object-fit: contain; mix-blend-mode: lighten; mask-image: radial-gradient(ellipse 70% 66% at center, black 58%, transparent 91%); }
.solutions { padding-block: 3.45rem 4.2rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.6rem; }
h2 { font-size: clamp(1.75rem, 2.55vw, 2.7rem); font-weight: 600; line-height: 1.18; letter-spacing: -.048em; }
.section-heading .text-link { color: var(--lilac); white-space: nowrap; font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { border: .0625rem solid var(--line); border-radius: 1rem; padding: clamp(1.3rem, 2.1vw, 2.15rem); background: linear-gradient(120deg, #211d28, var(--surface) 75%); }
.service { display: block; transition: background-color .2s, border-color .2s, transform .2s; }
.service:hover { transform: translateY(-.18rem); border-color: #78618e; background: var(--surface-hover); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.icon { display: inline-grid; place-items: center; width: 2.85rem; height: 2.85rem; border: .0625rem solid #533e6a; border-radius: .75rem; color: var(--lilac); background: linear-gradient(145deg, #3c2b52, #292033); }
.icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.corner-arrow { font: 1.3rem/1 Arial, sans-serif; color: var(--muted); }
h3, .card h2 { font-size: clamp(1.18rem, 1.55vw, 1.55rem); font-weight: 620; line-height: 1.26; letter-spacing: -.035em; }
.card h2, .card h3 { margin-top: 1.35rem; }
.card p, .invitation p, .catalog-body p { color: var(--muted); line-height: 1.65; }
.card p { margin-top: .7rem; font-size: .97rem; }
.invitation { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem clamp(1.4rem, 3vw, 3rem); margin-bottom: 4rem; border-radius: 1rem; background: linear-gradient(115deg, #352440, #211a2e 68%); border: .0625rem solid #493853; }
.invitation h2 { font-size: clamp(1.55rem, 2.15vw, 2.3rem); }
.invitation p { margin-top: .65rem; }
.invitation .button { flex-shrink: 0; }
#page-footer { height: 5.7rem; border-top: .0625rem solid var(--line); color: var(--muted); }
.footer-inner .brand { font-size: 1.07rem; color: var(--text); }
.footer-inner .brand img { width: 1.9rem; }
.footer-inner > span, .footer-inner > a:last-child { font-size: .84rem; }
.footer-inner > span { margin-right: auto; }

.page-intro { padding-block: clamp(3.5rem, 6vw, 6rem) 3rem; }
.page-intro .lead { max-width: 59ch; }
.catalog { display: grid; grid-template-columns: minmax(14rem, .65fr) 2fr; align-items: start; gap: clamp(2rem, 6vw, 7rem); padding-bottom: 3.5rem; }
.contents { display: grid; position: sticky; top: 1.5rem; border-top: .0625rem solid var(--line); }
.contents a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1rem .1rem; border-bottom: .0625rem solid var(--line); font-size: .96rem; }
.contents a:hover, .contents span { color: var(--lilac); }
.catalog-body section { scroll-margin-top: 1.4rem; margin-bottom: 2.7rem; }
.catalog-body section:last-child { margin: 0; }
.catalog-body h2 { margin-bottom: .8rem; }
.catalog-body section > p { margin-bottom: 1.25rem; }
details { background: var(--surface); border: .0625rem solid var(--line); border-radius: .6rem; margin-top: .55rem; }
summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--lilac); font-size: 1.3rem; }
details[open] summary::after { content: "−"; }
details p { padding: 0 1.25rem 1.2rem; }
.contact { padding-bottom: 5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.contact-grid .card { display: flex; align-items: flex-start; flex-direction: column; }
.contact-grid .card > p:first-of-type { flex-grow: 1; margin-bottom: 1.5rem; max-width: 51ch; }
.status:empty { display: none; }
#voice-widget { width: 100%; }
#voice-widget elevenlabs-convai {
    position: relative;
    inset: auto;
    z-index: auto;
    display: block;
    width: min(100%, 20.625rem);
    margin-inline: auto;
}
@media (max-width: 860px) {
    .wrap { width: 91%; }
    .header-inner nav { gap: 1.2rem; }
    .hero-inner { grid-template-columns: 1.1fr 1fr; }
    .card-grid { gap: .65rem; }
    .card { padding: 1.2rem; }
    .catalog { gap: 2rem; }
}
@media (max-width: 680px) {
    #page-header { height: 6.8rem; }
    .header-inner { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 3.8rem 3rem; gap: 0; }
    .header-inner nav { grid-column: 1 / -1; grid-row: 2; align-self: stretch; justify-content: space-between; }
    .header-action { grid-row: 1; grid-column: 2; min-height: 2.2rem; font-size: .8rem; padding: .4rem .75rem; }
    .brand { font-size: 1.22rem; }
    .brand img { width: 2.15rem; }
    .hero-inner { grid-template-columns: 1fr; padding-block: 2.8rem .8rem; }
    .hero-art { min-height: 0; height: clamp(14rem, 66vw, 23rem); }
    .hero-art img { inset: -3% -3%; width: 106%; height: 110%; }
    h1 { font-size: clamp(2.6rem, 9.4vw, 3.75rem); }
    .hero-copy h1 em br { display: none; }
    .actions { gap: 1.1rem; }
    .solutions { padding-block: 2.4rem; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: .7rem; }
    .card-grid, .contact-grid, .catalog { grid-template-columns: 1fr; }
    .card-grid { gap: .85rem; }
    .invitation { align-items: flex-start; flex-direction: column; margin-bottom: 2.5rem; gap: 1.5rem; }
    #page-footer { height: 5rem; }
    .footer-inner > span { display: none; }
    .contents { position: static; }
    .page-intro { padding-block: 2.8rem 2rem; }
    .contact { padding-bottom: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
    .service { transition: none; }
    .service:hover { transform: none; }
}
