:root {
    --bg: #050b13;
    --bg-soft: #081321;
    --panel: rgba(10, 24, 40, 0.78);
    --panel-strong: #0b1a2b;
    --line: rgba(157, 202, 240, 0.15);
    --line-gold: rgba(222, 170, 82, 0.32);
    --text: #f4f7fb;
    --muted: #a9b6c5;
    --gold: #e0ad5e;
    --gold-bright: #f2c878;
    --cyan: #52c7ff;
    --cyan-soft: rgba(82, 199, 255, 0.15);
    --success: #65d49b;
    --radius: 24px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 15%, rgba(25, 76, 116, 0.28), transparent 30%),
        radial-gradient(circle at 84% 42%, rgba(21, 87, 130, 0.16), transparent 28%),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { width: 1.15em; height: 1.15em; }
.container { width: var(--container); margin-inline: auto; }
.site-shell { overflow: clip; }

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    transform: translateY(-160%);
    padding: 10px 16px;
    color: #07111f;
    background: var(--gold-bright);
    border-radius: 10px;
    font-weight: 800;
}
.skip-link:focus { transform: none; }

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(4, 10, 18, 0.82);
    border-color: var(--line);
    backdrop-filter: blur(18px);
}
.header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 30px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: clamp(1.28rem, 2vw, 1.7rem);
    letter-spacing: .01em;
}
.brand-mark {
    width: 42px;
    aspect-ratio: 1;
    color: var(--gold-bright);
    filter: drop-shadow(0 0 16px rgba(224, 173, 94, .25));
}
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; }
.primary-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 18px;
}
.primary-nav a {
    color: #d7e0ea;
    font-size: .94rem;
    font-weight: 650;
    transition: color .2s ease;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--gold-bright); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switcher { position: relative; }
.language-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(8, 20, 34, .72);
    border-radius: 12px;
    cursor: pointer;
}
.language-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(6, 16, 28, .96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s ease;
}
.language-switcher.is-open .language-menu { opacity: 1; visibility: visible; transform: none; }
.language-label {
    display: block;
    padding: 8px 10px 6px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.language-menu a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #dce7f1;
}
.language-menu a:hover, .language-menu a[aria-current="page"] { background: var(--cyan-soft); color: #fff; }
.language-menu small { color: var(--gold); font-weight: 800; }
.menu-toggle { display: none; }

.button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 800;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold {
    color: #07111f;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    box-shadow: 0 14px 36px rgba(224, 173, 94, .22);
}
.button-gold:hover { box-shadow: 0 18px 44px rgba(224, 173, 94, .33); }
.button-ghost { border-color: rgba(255,255,255,.2); background: rgba(4, 13, 23, .55); color: #fff; }
.button-ghost:hover { border-color: var(--cyan); background: rgba(33, 105, 148, .18); }
.button-small { min-height: 42px; padding: 9px 15px; font-size: .88rem; }

.hero {
    position: relative;
    min-height: 890px;
    display: flex;
    align-items: center;
    isolation: isolate;
    border-bottom: 1px solid var(--line);
}
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { z-index: -3; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(3, 9, 16, .97) 0%, rgba(3, 9, 16, .88) 27%, rgba(3, 9, 16, .34) 54%, rgba(3, 9, 16, .08) 78%),
        linear-gradient(0deg, #050b13 0%, transparent 24%, rgba(4, 10, 18, .28) 100%);
}
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 240px;
    background: linear-gradient(transparent, var(--bg));
}
.hero-content { padding-top: 100px; }
.hero-copy { width: min(650px, 58vw); }
.eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-bright);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.eyebrow::before, .section-kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin-top: 20px; max-width: 760px; font-size: clamp(3.1rem, 6.2vw, 6.2rem); letter-spacing: -.045em; }
h2 { margin-top: 14px; font-size: clamp(2.25rem, 4.3vw, 4.35rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
.hero-lead { max-width: 630px; margin: 26px 0 0; color: #d1dbe5; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--muted); font-size: .9rem; }
.hero-note svg { color: var(--success); }
.trust-strip {
    position: absolute;
    left: 50%; bottom: 34px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding: 1px;
    border: 1px solid var(--line);
    background: rgba(5, 13, 23, .68);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}
.trust-strip span { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 62px; padding: 14px 18px; color: #dce7f1; font-size: .91rem; font-weight: 700; }
.trust-strip span + span { border-left: 1px solid var(--line); }
.trust-strip svg { color: var(--gold); }

.section { position: relative; padding: 120px 0; }
.section-heading { max-width: 680px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading.centered .section-kicker::before { display: none; }
.section-heading p, .product-copy > p, .developer-copy > p { margin: 22px 0 0; color: var(--muted); font-size: 1.05rem; }
.section-intro { padding-top: 110px; }
.feature-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 58px; }
.feature-card {
    min-height: 280px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(13, 30, 49, .8), rgba(6, 16, 28, .72));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.icon-box {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    margin-bottom: 25px;
    color: var(--gold-bright);
    background: rgba(224, 173, 94, .1);
    border: 1px solid rgba(224, 173, 94, .2);
    border-radius: 15px;
}
.icon-box svg { width: 27px; height: 27px; }
.feature-card p { margin: 15px 0 0; color: var(--muted); }

.product-section, .developer-section { background: linear-gradient(180deg, transparent, rgba(7, 23, 39, .52), transparent); }
.product-grid, .developer-grid, .modules-grid { display: grid; grid-template-columns: .85fr 1.35fr; align-items: center; gap: 70px; }
.check-list { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.check-list li, .module-list div { display: flex; align-items: flex-start; gap: 11px; color: #dce5ee; }
.check-list svg, .module-list svg { flex: 0 0 auto; margin-top: .2em; color: var(--success); }
.image-card {
    position: relative;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    background: #071321;
    box-shadow: var(--shadow);
}
.image-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), inset 0 -80px 100px rgba(1,6,11,.22); }
.image-card img { width: 100%; }
.image-card figcaption { position: absolute; z-index: 2; right: 14px; bottom: 12px; padding: 7px 11px; color: #c6d2dd; background: rgba(4, 11, 19, .75); border: 1px solid var(--line); border-radius: 9px; font-size: .72rem; backdrop-filter: blur(10px); }
.image-card-wide { transform: perspective(1300px) rotateY(-2deg); }

.workflow-section { padding-top: 100px; }
.workflow-image { margin-top: 55px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 25px; }
.step-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(8, 21, 36, .62); }
.step-card > span { color: var(--gold); font-size: .76rem; font-weight: 900; letter-spacing: .14em; }
.step-card h3 { margin-top: 11px; }
.step-card p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

.modules-section { border-block: 1px solid var(--line); background: rgba(5, 17, 29, .68); }
.modules-grid { grid-template-columns: 1fr 1fr; }
.module-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.module-list div { min-height: 72px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13, 30, 48, .62); }


.admin-section {
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 14% 18%, rgba(224, 173, 94, .09), transparent 28%),
        radial-gradient(circle at 86% 72%, rgba(82, 199, 255, .1), transparent 32%),
        linear-gradient(180deg, rgba(4, 13, 23, .55), rgba(7, 22, 37, .72), rgba(4, 13, 23, .45));
}
.admin-intro {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    align-items: end;
    gap: 70px;
}
.admin-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.admin-points span {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: #dce7f1;
    background: rgba(10, 26, 44, .7);
}
.admin-points svg {
    flex: 0 0 auto;
    color: var(--success);
}
.admin-showcase {
    display: grid;
    gap: 42px;
    margin-top: 62px;
}
.admin-preview {
    position: relative;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(12, 29, 48, .9), rgba(5, 14, 25, .92));
    box-shadow: 0 26px 80px rgba(0, 0, 0, .28);
}
.admin-preview:nth-child(2) {
    border-color: var(--line-gold);
}
.admin-image {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .34);
}
.admin-preview-copy {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 10px 7px;
}
.admin-preview-copy > span {
    min-width: 46px;
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-gold);
    border-radius: 14px;
    color: var(--gold-bright);
    background: rgba(224, 173, 94, .09);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .1em;
}
.admin-preview-copy h3 {
    font-size: 1.45rem;
}
.admin-preview-copy p {
    margin: 8px 0 0;
    color: var(--muted);
}

.developer-grid { grid-template-columns: 1.25fr .85fr; }
.developer-image { transform: perspective(1300px) rotateY(2deg); }
.lead-copy { color: #dfe8f0 !important; font-size: 1.16rem !important; }
.developer-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.developer-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #d9e4ee; background: rgba(10, 25, 42, .74); font-size: .84rem; }
.developer-badges svg { color: var(--gold); }

.clan-section { background: radial-gradient(circle at 50% 35%, rgba(40, 113, 160, .13), transparent 38%); }
.clan-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: 55px auto 0; }
.clan-card { position: relative; min-height: 350px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(12, 29, 48, .86), rgba(6, 15, 27, .9)); overflow: hidden; }
.clan-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(82, 199, 255, .18), transparent 68%); }
.clan-card-live { border-color: var(--line-gold); }
.clan-card-top { display: flex; align-items: center; gap: 8px; color: var(--success); font-size: .76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.clan-card-top.muted { color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 16px currentColor; }
.clan-symbol { width: 78px; height: 78px; display: grid; place-items: center; margin-top: 34px; color: #06101c; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); border-radius: 22px; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 900; box-shadow: 0 14px 40px rgba(224,173,94,.2); }
.clan-symbol.generic { color: var(--cyan); background: var(--cyan-soft); border: 1px solid rgba(82,199,255,.28); }
.clan-symbol-hhc { color: #f7d994; background: linear-gradient(145deg, #4c291c, #171421); border: 1px solid rgba(224, 173, 94, .45); box-shadow: 0 14px 40px rgba(112, 48, 26, .28); }
.clan-symbol svg { width: 34px; height: 34px; }
.clan-card h3 { margin-top: 25px; font-size: 1.5rem; }
.clan-card p { margin: 15px 0 0; color: var(--muted); }
.clan-card a { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--gold-bright); font-weight: 800; }

.cta-section { padding: 0 0 100px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 46px; border: 1px solid var(--line-gold); border-radius: 28px; background: linear-gradient(110deg, rgba(19, 47, 72, .85), rgba(9, 20, 34, .94)); box-shadow: var(--shadow); }
.cta-inner h2 { max-width: 700px; font-size: clamp(2rem, 3.6vw, 3.5rem); }
.cta-inner p { max-width: 690px; margin: 14px 0 0; color: var(--muted); }
.cta-inner .button { flex: 0 0 auto; }
.cta-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

.site-footer { border-top: 1px solid var(--line); background: #03080f; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .55fr 1.1fr; gap: 70px; padding: 70px 0 55px; }
.footer-brand { margin-bottom: 18px; }
.footer-grid p { max-width: 430px; margin: 0; color: var(--muted); }
.footer-grid h3 { margin-bottom: 16px; color: #e3ebf2; font-size: .87rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:nth-child(2) { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid a:not(.brand) { color: var(--muted); }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-disclaimer { font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 30px; border-top: 1px solid var(--line); color: #78889a; font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
    .header-inner { grid-template-columns: auto auto 1fr; gap: 16px; }
    .menu-toggle {
        display: inline-flex;
        width: 44px; height: 44px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(8,20,34,.75);
        cursor: pointer;
    }
    .menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 999px; transition: .2s ease; }
    .primary-nav {
        position: absolute;
        top: 74px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(5,15,26,.97);
        box-shadow: var(--shadow);
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 12px; border-radius: 10px; }
    .primary-nav a:hover { background: var(--cyan-soft); }
    .header-actions { justify-self: end; }
    .feature-cards { grid-template-columns: repeat(2, 1fr); }
    .product-grid, .developer-grid, .admin-intro { grid-template-columns: 1fr; }
    .developer-copy { order: -1; }
    .product-copy, .developer-copy { max-width: 740px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .clan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    :root { --container: min(100% - 28px, 1180px); --radius: 20px; }
    .site-header { background: rgba(4,10,18,.78); backdrop-filter: blur(16px); }
    .header-inner { min-height: 70px; grid-template-columns: 1fr auto auto; }
    .brand { font-size: 1.2rem; }
    .brand-mark { width: 36px; }
    .header-actions .button { display: none; }
    .language-button { width: 44px; padding: 0; justify-content: center; }
    .language-button span { display: none; }
    .hero { min-height: 920px; align-items: flex-start; }
    .hero-media img { object-position: 62% center; }
    .hero-overlay { background: linear-gradient(180deg, rgba(3,9,16,.88) 0%, rgba(3,9,16,.65) 42%, rgba(3,9,16,.9) 72%, #050b13 100%); }
    .hero-content { padding-top: 130px; }
    .hero-copy { width: 100%; }
    h1 { font-size: clamp(2.75rem, 13vw, 4.7rem); }
    h2 { font-size: clamp(2.1rem, 10vw, 3.4rem); }
    .hero-lead { font-size: 1.02rem; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .trust-strip { bottom: 28px; grid-template-columns: 1fr; }
    .trust-strip span { justify-content: flex-start; min-height: 50px; }
    .trust-strip span + span { border-left: 0; border-top: 1px solid var(--line); }
    .section { padding: 85px 0; }
    .section-intro { padding-top: 75px; }
    .feature-cards, .steps-grid, .module-list, .clan-cards, .footer-grid, .admin-points { grid-template-columns: 1fr; }
    .feature-card { min-height: auto; }
    .modules-grid { grid-template-columns: 1fr; gap: 42px; }
    .image-card-wide, .developer-image { transform: none; }
    .developer-grid, .product-grid { gap: 42px; }
    .workflow-image { margin-top: 38px; }
    .cta-inner { flex-direction: column; align-items: flex-start; padding: 30px; }
    .cta-actions { width: 100%; flex-direction: column; }
    .cta-inner .button { width: 100%; }
    .admin-preview { padding: 10px; border-radius: 22px; }
    .admin-preview-copy { padding: 20px 8px 8px; }
    .footer-grid { gap: 38px; padding: 55px 0 40px; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
