:root {
    --ink: #07111f;
    --panel: #101d2d;
    --panel-2: #14253a;
    --line: rgba(213, 177, 87, .24);
    --gold: #e9bd59;
    --gold-light: #ffe6a1;
    --ice: #8fd7f4;
    --text: #edf4fb;
    --muted: #aab9ca;
    --green: #69d994;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--ink);
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.hero {
    min-height: 780px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(3, 10, 20, .96) 0%, rgba(4, 13, 27, .78) 40%, rgba(4, 13, 27, .15) 75%),
        linear-gradient(0deg, var(--ink) 0%, transparent 30%),
        url("img/kalidaya-hero.png") center/cover no-repeat;
}
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(transparent, var(--ink));
    pointer-events: none;
}
.nav {
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255,255,255,.11);
}
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand span {
    font-family: Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: .15em;
    color: var(--gold-light);
}
.brand small { margin-top: 8px; font-size: 9px; letter-spacing: .45em; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; color: #d6e0eb; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--gold-light); }
.nav-login { border: 1px solid var(--line); padding: 10px 18px; border-radius: 8px; }

.hero-content { position: relative; z-index: 1; padding-top: 130px; max-width: 1160px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .22em; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 6.6vw, 82px); font-weight: 500; letter-spacing: -.035em; }
h1 span { color: var(--gold-light); }
.hero-copy { max-width: 610px; margin: 30px 0 34px; font-size: 19px; color: #c5d2df; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 750;
    font-size: 14px;
}
.button.primary { color: #241a08; background: linear-gradient(135deg, var(--gold-light), #dca63a); box-shadow: 0 12px 34px rgba(217,160,46,.22); }
.button.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button.ghost { border: 1px solid rgba(255,255,255,.27); background: rgba(7,17,31,.38); }
.button.ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.button.disabled { color: #8090a1; background: #263548; cursor: wait; }
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 64px;
    padding: 12px 17px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 99px;
    background: rgba(4,12,24,.62);
    backdrop-filter: blur(12px);
    font-size: 13px;
}
.live-pill i { width: 9px; height: 9px; border-radius: 50%; background: #df6f6f; box-shadow: 0 0 15px currentColor; }
.live-pill.is-online i { background: var(--green); }
.live-pill span { color: var(--muted); border-left: 1px solid rgba(255,255,255,.15); padding-left: 11px; }

.realm-section { padding: 90px 0 110px; }
.section-heading { max-width: 670px; margin-bottom: 45px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .download-panel h2, .portal-strip h2 { margin: 0 0 16px; font-size: clamp(36px, 4.5vw, 54px); font-weight: 500; }
.section-heading > p:last-child { color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
    min-height: 205px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(20,37,58,.96), rgba(12,27,44,.82));
}
.stat-icon { display: block; margin-bottom: 22px; color: var(--gold); font-size: 21px; }
.stat-card small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.stat-card strong { display: block; margin: 4px 0 3px; font-family: Georgia, serif; font-size: 31px; font-weight: 500; }
.stat-card strong.compact { min-height: 42px; font-size: 21px; display: flex; align-items: center; }
.stat-card p { margin: 0; color: var(--muted); font-size: 13px; }
.green { color: var(--green); }
.red { color: #ef8a8a; }

.start-section {
    padding: 100px 0;
    background:
        radial-gradient(circle at 50% -10%, rgba(72,151,190,.15), transparent 42%),
        #0b1726;
    border-block: 1px solid rgba(255,255,255,.06);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps article {
    position: relative;
    min-height: 285px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 15px;
    background: rgba(255,255,255,.025);
}
.steps article > span { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 16px; }
.steps h3 { margin: 42px 0 13px; font-size: 27px; font-weight: 500; }
.steps p { color: var(--muted); font-size: 14px; }
.steps a { color: var(--gold-light); font-size: 13px; font-weight: 700; text-decoration: none; }

.download-section { padding: 115px 0; }
.download-panel {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 60px;
    align-items: center;
    padding: 55px 65px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% 0%, rgba(91,177,219,.19), transparent 35%),
        linear-gradient(135deg, var(--panel-2), #0e1c2e);
}
.download-panel > div > p { color: var(--muted); }
.download-panel ul { display: grid; gap: 7px; padding: 0; list-style: none; color: #c9d5e1; font-size: 14px; }
.download-panel li::before { content: "✓"; margin-right: 10px; color: var(--green); }
.download-action { display: flex; flex-direction: column; align-items: center; text-align: center; }
.file-orb {
    display: grid;
    width: 92px;
    height: 92px;
    margin-bottom: 24px;
    place-items: center;
    border: 1px solid rgba(143,215,244,.28);
    border-radius: 50%;
    color: var(--ice);
    background: rgba(95,181,220,.1);
    font-size: 38px;
}
.download-button { width: 100%; }
.download-action small { margin-top: 11px; color: var(--muted); }

.portal-strip { padding: 80px 0; background: #102238; border-top: 1px solid rgba(255,255,255,.07); }
.portal-content { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.portal-content > div { max-width: 720px; }
.portal-content p:last-child { color: var(--muted); }
footer { padding: 36px 0; background: #050c16; border-top: 1px solid rgba(255,255,255,.07); }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #77889a; font-size: 12px; }
.footer-content .brand span { font-size: 17px; }
.footer-content .brand small { font-size: 6px; }
.footer-content div:last-child { display: flex; gap: 20px; }
.footer-content a { text-decoration: none; }

@media (max-width: 900px) {
    .hero { min-height: 720px; background-position: 62% center; }
    .nav-links > a:not(.nav-login) { display: none; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .steps article { min-height: auto; }
    .steps h3 { margin-top: 24px; }
    .download-panel { grid-template-columns: 1fr; padding: 42px; }
}
@media (max-width: 620px) {
    .shell { width: min(100% - 28px, 1160px); }
    .hero { min-height: 700px; background-position: 68% center; }
    .nav { height: 85px; }
    .brand span { font-size: 21px; }
    .hero-content { padding-top: 90px; }
    h1 { font-size: 45px; }
    .hero-copy { font-size: 16px; }
    .hero-actions .button { width: 100%; }
    .live-pill { margin-top: 45px; flex-wrap: wrap; border-radius: 14px; }
    .live-pill span { width: 100%; border: 0; padding: 0 0 0 20px; }
    .realm-section, .download-section { padding-block: 75px; }
    .stat-grid { grid-template-columns: 1fr; }
    .download-panel { padding: 30px 22px; }
    .portal-content, .footer-content { flex-direction: column; align-items: flex-start; }
}
