/* ============================================================
   NitroCache — Landing Page
   Layered navy · metallic gold accents · warm neutrals
   Vazirmatn type scale · no gradients · premium studio feel
   ============================================================ */

/* ---------- Design tokens ---------- */

:root {
    --nc-navy-950: #081120;
    --nc-navy-900: #0C1D30;
    --nc-navy-800: #12283F;
    --nc-navy-700: #1B3A5C;
    --nc-navy-ink: #1E2F40;

    --nc-gold: #C8A35C;
    --nc-gold-light: #DCBE7E;
    --nc-gold-dark: #9C7C33;
    --nc-gold-ivory: #EED59B;

    --nc-bg: #F2EEE4;
    --nc-bg-soft: #F7F4EC;
    --nc-card: #FFFFFF;
    --nc-border: #E2DCCB;
    --nc-border-soft: #ECE6D8;

    --nc-text: #22303E;
    --nc-text-soft: #4A5664;
    --nc-muted: #7C8490;
    --nc-white: #FFFFFF;

    --nc-success: #2F7D5B;
    --nc-success-bg: #E9F2EC;

    --nc-radius-sm: 10px;
    --nc-radius: 16px;
    --nc-radius-lg: 22px;

    --nc-shadow-sm: 0 1px 2px rgba(12, 29, 48, 0.05);
    --nc-shadow: 0 1px 2px rgba(12, 29, 48, 0.04), 0 14px 34px -22px rgba(12, 29, 48, 0.22);
    --nc-shadow-lift: 0 2px 4px rgba(12, 29, 48, 0.05), 0 22px 48px -26px rgba(12, 29, 48, 0.3);

    --nc-font: "Vazirmatn", "Segoe UI", Tahoma, -apple-system, BlinkMacSystemFont, sans-serif;
    --nc-wrap: 1180px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--nc-font);
    font-size: 16px;
    line-height: 1.85;
    color: var(--nc-text);
    background-color: var(--nc-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='%230C1D30' fill-opacity='0.045'/%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-weight: 800;
    line-height: 1.35;
    color: var(--nc-navy-900);
}

p { margin: 0 0 1em; }

a { color: var(--nc-navy-700); text-decoration: none; }

img { max-width: 100%; height: auto; }

::selection { background: var(--nc-gold); color: var(--nc-navy-950); }

.container { width: min(var(--nc-wrap), 92vw); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(8, 17, 32, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(200, 163, 92, 0.28);
    transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(8, 17, 32, 0.5); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand img { width: 40px; height: 40px; }

.brand-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--nc-white);
    letter-spacing: 0.2px;
}

.brand-name span { color: var(--nc-gold); }

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14.5px;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--nc-gold);
    transition: width 0.25s ease;
}

.nav a:hover { color: var(--nc-white); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(200, 163, 92, 0.45);
    color: var(--nc-gold);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--nc-radius-sm);
    cursor: pointer;
    font-family: var(--nc-font);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--nc-font);
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--nc-radius-sm);
    padding: 13px 26px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn-gold {
    background: var(--nc-gold);
    color: var(--nc-navy-950);
}

.btn-gold::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(200, 163, 92, 0.65); }
.btn-gold:hover::before { transform: translateX(120%); }

.btn-ghost {
    background: transparent;
    color: var(--nc-white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover { border-color: var(--nc-gold); color: var(--nc-gold); transform: translateY(-2px); }

.btn-dark {
    background: var(--nc-navy-900);
    color: var(--nc-white);
}

.btn-dark:hover { background: var(--nc-navy-800); transform: translateY(-2px); box-shadow: var(--nc-shadow-lift); }

/* ---------- Hero ---------- */

.hero {
    background: var(--nc-navy-950);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='%23C8A35C' fill-opacity='0.12'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-inner {
    position: relative;
    text-align: center;
    padding: 84px 0 72px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 163, 92, 0.12);
    border: 1px solid rgba(200, 163, 92, 0.45);
    color: var(--nc-gold-light);
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 999px;
    margin-bottom: 26px;
}

.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nc-gold);
    box-shadow: 0 0 0 4px rgba(200, 163, 92, 0.2);
}

.hero h1 {
    color: var(--nc-white);
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 0.45em;
    letter-spacing: -0.5px;
}

.hero h1 .accent { color: var(--nc-gold); }

.hero-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(16px, 2vw, 19px);
    max-width: 720px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.hero-banner-wrap {
    position: relative;
    margin-top: 56px;
}

.hero-banner {
    display: block;
    width: 100%;
    border-radius: var(--nc-radius-lg);
    border: 1px solid rgba(200, 163, 92, 0.4);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-banner:hover { transform: translateY(-4px); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.8); }

/* ---------- Section shell ---------- */

.section { padding: 92px 0; }

.section-alt { background: var(--nc-bg-soft); }

.section-navy {
    background: var(--nc-navy-900);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='%23C8A35C' fill-opacity='0.08'/%3E%3C/svg%3E");
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.section-kicker {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--nc-gold-dark);
    letter-spacing: 0.3px;
    margin-bottom: 12px;
    position: relative;
    padding-inline-start: 0;
}

.section-kicker::after {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    background: var(--nc-gold);
    margin: 10px auto 0;
}

.section h2 { font-size: clamp(27px, 3.5vw, 38px); font-weight: 900; }

.section-head p { color: var(--nc-muted); font-size: 16.5px; }

.section-navy .section-kicker { color: var(--nc-gold-light); }
.section-navy h2 { color: var(--nc-white); }
.section-navy .section-head p { color: rgba(255, 255, 255, 0.66); }

/* ---------- Value props (3 cards) ---------- */

.props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.prop-card {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prop-card::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--nc-gold);
    transition: height 0.3s ease;
}

.prop-card:hover { transform: translateY(-6px); box-shadow: var(--nc-shadow-lift); }
.prop-card:hover::after { height: 100%; }

.prop-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--nc-radius-sm);
    background: var(--nc-navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--nc-gold);
    transition: transform 0.3s ease;
}

.prop-card:hover .prop-icon { transform: rotate(-8deg) scale(1.06); }

.prop-card h3 { font-size: 18.5px; margin-bottom: 10px; }

.prop-card p { color: var(--nc-muted); font-size: 14.5px; margin: 0; }

/* ---------- Features ---------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    padding: 30px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--nc-shadow-lift);
    border-color: rgba(200, 163, 92, 0.6);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--nc-radius-sm);
    border: 1px solid rgba(200, 163, 92, 0.5);
    background: #FBF6E9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--nc-gold-dark);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon { transform: translateY(-4px); }

.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--nc-muted); font-size: 14px; margin: 0; }

/* ---------- Screenshot tabs ---------- */

.shot-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.shot-tab {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    color: var(--nc-text-soft);
    font-family: var(--nc-font);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.22s ease;
}

.shot-tab:hover { border-color: var(--nc-gold); color: var(--nc-navy-900); }

.shot-tab.is-active {
    background: var(--nc-navy-900);
    border-color: var(--nc-navy-900);
    color: var(--nc-white);
}

.shot-panel {
    display: none;
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-lg);
    padding: 10px;
    box-shadow: var(--nc-shadow);
    animation: fadeUp 0.4s ease both;
}

.shot-panel.is-active { display: block; }

.shot-panel img {
    display: block;
    width: 100%;
    border-radius: calc(var(--nc-radius-lg) - 8px);
}

.shot-caption {
    text-align: center;
    color: var(--nc-muted);
    font-size: 13.5px;
    padding: 14px 10px 6px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Compatibility ---------- */

.compat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.compat-card {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compat-card:hover { transform: translateY(-4px); box-shadow: var(--nc-shadow-lift); }

.compat-badge {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: var(--nc-radius-sm);
    background: var(--nc-bg-soft);
    border: 1px solid var(--nc-border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nc-gold-dark);
}

.compat-card h3 { font-size: 16px; margin-bottom: 5px; }
.compat-card p { color: var(--nc-muted); font-size: 13.5px; margin: 0; }

/* ---------- Steps (3-step how it works) ---------- */

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }

.step-card {
    position: relative;
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    padding: 36px 28px 30px;
}

.step-card::before {
    counter-increment: step;
    content: "۰" counter(step);
    font-size: 13px;
    font-weight: 800;
    color: var(--nc-white);
    background: var(--nc-gold-dark);
    border-radius: 999px;
    padding: 5px 14px;
    position: absolute;
    top: -15px;
    right: 26px;
}

.step-card h3 { font-size: 18px; margin-bottom: 10px; }
.step-card p { color: var(--nc-muted); font-size: 14.5px; margin: 0; }

.step-arrow {
    position: absolute;
    top: 34px;
    left: -18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nc-navy-900);
    color: var(--nc-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
    border: 2px solid var(--nc-bg-soft);
}

.step-arrow:last-of-type { display: none; }

/* ---------- Stats ---------- */

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.stat-card { text-align: center; padding: 30px 20px; }

.stat-value {
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 900;
    color: var(--nc-gold);
    line-height: 1.2;
    margin-bottom: 6px;
}

.stat-label { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; font-weight: 500; }

/* ---------- Compare table ---------- */

.compare-wrap { overflow-x: auto; }

.compare {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius-lg);
    overflow: hidden;
    box-shadow: var(--nc-shadow);
}

.compare th, .compare td {
    padding: 16px 20px;
    text-align: center;
    font-size: 14.5px;
    border-bottom: 1px solid var(--nc-border-soft);
}

.compare th { background: var(--nc-navy-900); color: var(--nc-white); font-weight: 800; }

.compare th:first-child, .compare td:first-child { text-align: right; font-weight: 600; color: var(--nc-text); }

.compare tr:last-child td { border-bottom: none; }

.compare .brand-col { color: var(--nc-gold); font-size: 17px; }

.compare td:not(:first-child) { color: var(--nc-muted); }

.compare .yes { color: var(--nc-success); font-weight: 700; }
.compare .no { color: #B3473F; font-weight: 700; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
    background: var(--nc-card);
    border: 1px solid var(--nc-border);
    border-radius: var(--nc-radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.faq-item.is-open { border-color: rgba(200, 163, 92, 0.65); }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    font-family: var(--nc-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--nc-navy-900);
    padding: 19px 22px;
    cursor: pointer;
    text-align: right;
}

.faq-q .icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--nc-gold);
    color: var(--nc-gold-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.faq-item.is-open .faq-q .icon {
    transform: rotate(45deg);
    background: var(--nc-gold);
    color: var(--nc-navy-950);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-a-inner { padding: 0 22px 22px; color: var(--nc-muted); font-size: 14.5px; }

/* ---------- CTA band ---------- */

.cta-band {
    text-align: center;
    background: var(--nc-navy-900);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1.1' fill='%23C8A35C' fill-opacity='0.1'/%3E%3C/svg%3E");
    border-top: 1px solid rgba(200, 163, 92, 0.3);
    border-bottom: 1px solid rgba(200, 163, 92, 0.3);
}

.cta-band h2 { color: var(--nc-white); font-size: clamp(26px, 3.4vw, 38px); }
.cta-band p { color: rgba(255, 255, 255, 0.72); max-width: 620px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--nc-navy-950);
    color: rgba(255, 255, 255, 0.6);
    padding: 54px 0 30px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(200, 163, 92, 0.22);
    margin-bottom: 26px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--nc-white); font-weight: 800; font-size: 17px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand span { color: var(--nc-gold); }

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--nc-gold); }

.footer-bottom { text-align: center; color: rgba(255, 255, 255, 0.45); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--nc-navy-950);
        border-top: 1px solid rgba(200, 163, 92, 0.25);
        padding: 8px 24px 20px;
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .nav a::after { display: none; }
    .nav-toggle { display: inline-flex; }
    .props-grid, .features-grid, .compat-grid, .steps-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .step-arrow { display: none; }
    .section { padding: 64px 0; }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .header-inner { height: 64px; }
    .brand-name { font-size: 17px; }
    .hero-inner { padding: 56px 0 48px; }
    .btn { width: 100%; }
    .hero-ctas { flex-direction: column; }
}
