
/* =========================================
   CALQUBE — PREMIUM ASHTAKOOTA EXPERIENCE
   ========================================= */

:root {
    --cq-ink: #21183d;
    --cq-purple: #35215f;
    --cq-purple-light: #56358b;
    --cq-gold: #c69b4b;
    --cq-gold-light: #f3dfaa;
    --cq-cream: #fffaf0;
    --cq-paper: #ffffff;
    --cq-text: #39364a;
    --cq-muted: #777287;
    --cq-border: #eee7dc;
    --cq-shadow: 0 12px 36px rgba(43, 28, 76, 0.07);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: #fbf9ff;
    color: var(--cq-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* Selection */
::selection {
    background: var(--cq-gold-light);
    color: var(--cq-ink);
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(20px, 6vw, 90px);
    background: rgba(255, 250, 240, 0.94);
    border-bottom: 1px solid rgba(198, 155, 75, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand {
    color: var(--cq-ink);
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
}

.brand::after {
    content: ".";
    color: var(--cq-gold);
}

header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

header nav a {
    color: var(--cq-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

header nav a:hover {
    color: var(--cq-purple-light);
}

/* Page width and breadcrumb */
main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.crumb {
    padding: 22px 0 12px;
    color: var(--cq-muted);
    font-size: 13px;
}

.crumb a,
main a:not(.cta) {
    color: var(--cq-purple-light);
    text-underline-offset: 4px;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 12px 0 30px;
    padding: clamp(36px, 6vw, 76px);
    border: 1px solid rgba(243, 223, 170, 0.22);
    border-radius: 30px;
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(198, 155, 75, 0.24),
            transparent 28%
        ),
        radial-gradient(
            circle at 8% 100%,
            rgba(126, 93, 190, 0.3),
            transparent 35%
        ),
        linear-gradient(135deg, #211438 0%, #35215f 58%, #493174 100%);
    box-shadow: 0 24px 65px rgba(43, 28, 76, 0.16);
    color: #fffaf0;
}

.hero::before {
    content: "✧";
    position: absolute;
    z-index: -1;
    top: 10px;
    right: 38px;
    color: rgba(243, 223, 170, 0.3);
    font-size: clamp(100px, 18vw, 220px);
    line-height: 1;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    right: -120px;
    bottom: -160px;
    border: 1px solid rgba(243, 223, 170, 0.25);
    border-radius: 50%;
    box-shadow:
        0 0 0 24px rgba(243, 223, 170, 0.035),
        0 0 0 48px rgba(243, 223, 170, 0.025);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cq-gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--cq-gold);
}

.hero h1 {
    max-width: 780px;
    margin: 22px 0;
    color: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5.4vw, 66px);
    font-weight: 500;
    line-height: 1.13;
    letter-spacing: -1.8px;
}

.hero .lead {
    max-width: 670px;
    color: #e6dfef;
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.85;
}

/* Buttons */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    margin-top: 18px;
    padding: 13px 23px;
    border: 1px solid var(--cq-gold-light);
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #f5dfa6,
        #d7b264
    );
    box-shadow: 0 8px 22px rgba(198, 155, 75, 0.18);
    color: #261a39 !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 13px 28px rgba(198, 155, 75, 0.28);
    filter: brightness(1.04);
}

.cta:focus-visible,
header a:focus-visible,
main a:focus-visible {
    outline: 3px solid var(--cq-gold);
    outline-offset: 4px;
}

/* Main content cards */
.card {
    margin: 24px 0;
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid var(--cq-border);
    border-radius: 24px;
    background: var(--cq-paper);
    box-shadow: var(--cq-shadow);
}

.card h2 {
    margin: 0 0 18px;
    color: var(--cq-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 3.5vw, 37px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.7px;
}

.card h2:not(:first-child) {
    margin-top: 38px;
}

.card p {
    margin: 12px 0 18px;
}

.card p strong {
    color: var(--cq-ink);
}

.card li {
    padding-left: 3px;
}

.koota-section {
    scroll-margin-top: 90px;
}

/* Eight Koota cards */
.card > article.koota-section {
    position: relative;
    overflow: hidden;
    margin: 22px 0;
    padding: 25px 28px;
    border: 1px solid var(--cq-border);
    border-radius: 18px;
    background:
        linear-gradient(135deg, #ffffff 0%, #fffdf8 100%);
    box-shadow: 0 4px 18px rgba(43, 28, 76, 0.035);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.card > article.koota-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(
        180deg,
        var(--cq-gold),
        #e8d7ae
    );
}

.card > article.koota-section:hover {
    transform: translateY(-3px);
    border-color: #ddc58e;
    box-shadow: 0 14px 32px rgba(43, 28, 76, 0.09);
}

.card > article.koota-section h3 {
    margin: 0 0 14px;
    color: var(--cq-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(21px, 2.6vw, 26px);
    line-height: 1.4;
}

/* Highlight point values */
.koota-points {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 7px 13px;
    border: 1px solid #ebddb8;
    border-radius: 999px;
    background: #fff7e5;
    color: #75551c;
    font-size: 13px;
    font-weight: 800;
}

/* Lists */
.koota-list {
    padding-left: 24px;
}

.koota-list li {
    margin-bottom: 9px;
}

.koota-list li::marker {
    color: var(--cq-gold);
}

/* Tables */
.koota-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--cq-border);
    border-radius: 16px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.koota-table {
    width: 100%;
    min-width: 460px;
    border-collapse: collapse;
    text-align: left;
}

.koota-table thead {
    background: #f4effb;
}

.koota-table th {
    color: var(--cq-ink);
    font-weight: 800;
}

.koota-table th,
.koota-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #eee8f3;
    vertical-align: top;
}

.koota-table tbody tr {
    transition: background 0.18s ease;
}

.koota-table tbody tr:hover {
    background: #fffaf0;
}

.koota-table tbody tr:last-child th,
.koota-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Example and important notes */
.koota-note,
.card .koota-note {
    padding: 20px 22px;
    border: 1px solid #e8d8aa;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff9e9, #fffdf8);
    color: #5c4b2e;
}

.koota-note strong {
    color: #4b3514;
}

/* FAQ */
.koota-faq {
    padding: 22px 0;
    border-bottom: 1px solid var(--cq-border);
}

.koota-faq:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.koota-faq h3 {
    margin: 0 0 10px;
    color: var(--cq-ink);
    font-size: 17px;
    line-height: 1.55;
}

.koota-faq p {
    margin-bottom: 0;
    color: #5e596c;
}

/* Internal links */
.card a:not(.cta) {
    font-weight: 600;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.card a:not(.cta):hover {
    color: var(--cq-gold);
}

/* Footer */
footer {
    margin-top: 48px;
    padding: 30px 20px;
    border-top: 1px solid var(--cq-border);
    background: #f5f0fa;
    color: var(--cq-muted);
    text-align: center;
    font-size: 13px;
}

footer a {
    color: var(--cq-purple-light);
    font-weight: 700;
    text-underline-offset: 4px;
}

/* Mobile layout */
@media (max-width: 700px) {
    header {
        position: relative;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    header nav {
        gap: 12px 20px;
    }

    header nav a {
        font-size: 13px;
    }

    main {
        width: min(100% - 24px, 1120px);
    }

    .crumb {
        padding-top: 16px;
    }

    .hero {
        margin-top: 8px;
        padding: 30px 23px;
        border-radius: 22px;
    }

    .hero h1 {
        letter-spacing: -0.8px;
    }

    .hero::before {
        top: 18px;
        right: 15px;
        font-size: 100px;
    }

    .card {
        padding: 22px 18px;
        border-radius: 19px;
    }

    .card > article.koota-section {
        padding: 22px 19px;
        border-radius: 15px;
    }

    .koota-table th,
    .koota-table td {
        padding: 12px;
        font-size: 13px;
    }

    .cta {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

