/* ============================================
   CliniRev Theme — Premium Dark SaaS Design
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Background */
    --bg-primary: #060B18;
    --bg-secondary: #0A1128;
    --bg-tertiary: #0F1A36;
    --bg-card: rgba(15, 26, 54, 0.6);
    --bg-card-hover: rgba(20, 35, 70, 0.7);
    --bg-glass: rgba(15, 26, 54, 0.4);
    --bg-footer: #040810;

    /* Accent */
    --accent: #00E18C;
    --accent-hover: #00C97D;
    --accent-glow: rgba(0, 225, 140, 0.35);
    --accent-subtle: rgba(0, 225, 140, 0.08);
    --accent-border: rgba(0, 225, 140, 0.2);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #B4C1D9;
    --text-muted: #6B7FA3;
    --text-accent: #00E18C;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(0, 225, 140, 0.15);

    /* Spacing */
    --section-pad: 100px;
    --container: 1200px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 20px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition: all 0.3s var(--ease);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Background gradient overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 225, 140, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(15, 26, 54, 0.5) 0%, transparent 50%),
        linear-gradient(180deg, #060B18 0%, #0A1128 50%, #060B18 100%);
    pointer-events: none;
    z-index: -1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

/* ---------- Container ---------- */
.cr-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.cr-container--wide {
    max-width: 1320px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
}

.cr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.cr-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.cr-section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.cr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.cr-btn--primary {
    background: var(--accent);
    color: #060B18;
    box-shadow: 0 0 20px rgba(0, 225, 140, 0.2);
}

.cr-btn--primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 40px rgba(0, 225, 140, 0.35), 0 0 80px rgba(0, 225, 140, 0.15);
    transform: translateY(-2px);
}

.cr-btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.cr-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cr-btn--large {
    padding: 18px 44px;
    font-size: 1.0625rem;
    border-radius: var(--radius);
}

.cr-btn--nav {
    padding: 10px 22px;
    font-size: 0.875rem;
}

/* ---------- Cards ---------- */
.cr-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.cr-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cr-card--glass {
    background: var(--bg-glass);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-light);
}

.cr-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--accent);
}

.cr-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.cr-card__text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- HEADER ---------- */
.cr-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.cr-header--scrolled {
    background: rgba(6, 11, 24, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.cr-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.cr-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.cr-logo__icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8125rem;
    color: #060B18;
    letter-spacing: -0.02em;
}

.cr-logo__text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Navigation */
.cr-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cr-nav-item {
    position: relative;
}

.cr-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: var(--transition);
}

.cr-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.cr-nav-link--active {
    color: var(--text-primary);
}

/* Dropdown */
.cr-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 220px;
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s var(--ease);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cr-nav-item:hover > .cr-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.cr-dropdown .cr-nav-link {
    padding: 10px 14px;
    font-size: 0.8125rem;
    border-radius: 8px;
    color: var(--text-muted);
}

.cr-dropdown .cr-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

/* Header CTA */
.cr-header__cta {
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle */
.cr-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.cr-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---------- HERO SECTION ---------- */
.cr-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.cr-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.cr-hero__content {
    position: relative;
    z-index: 2;
}

.cr-hero h1 {
    margin-bottom: 20px;
    max-width: 560px;
}

.cr-hero h1 span {
    color: var(--accent);
}

.cr-hero__text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 28px;
    line-height: 1.65;
}

.cr-hero__actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Hero Dashboard Mockup */
.cr-hero__visual {
    position: relative;
    z-index: 1;
}

/* Device Frame Dashboard */
.cr-device-frame {
    position: relative;
    perspective: 1200px;
}
.cr-device-screen {
    background: #080D1E;
    border: 1.5px solid rgba(0, 225, 140, 0.25);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 225, 140, 0.12),
        0 0 80px rgba(0, 225, 140, 0.06),
        0 40px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transform: rotateY(-4deg) rotateX(2deg);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cr-device-frame:hover .cr-device-screen {
    transform: rotateY(-1deg) rotateX(1deg);
}

/* Dashboard Nav */
.cr-dash-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}
.cr-dash-nav__left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cr-dash-nav__right {
    display: flex;
    align-items: center;
}
.cr-dash-logo {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00E18C;
    letter-spacing: -0.02em;
}
.cr-dash-nav-link {
    font-size: 0.6rem;
    color: #4A5578;
    font-weight: 500;
    cursor: default;
}
.cr-dash-nav-link--active {
    color: #B4C1D9;
}
.cr-dash-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00E18C 0%, #0A1128 100%);
    border: 1px solid rgba(0,225,140,0.3);
}

/* Revenue Header */
.cr-dash-revenue {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 16px 16px 12px;
}
.cr-dash-revenue__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cr-dash-revenue__label {
    font-size: 0.55rem;
    color: #4A5578;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.cr-dash-revenue__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.03em;
}
.cr-dash-revenue__change {
    font-size: 0.55rem;
    color: #00E18C;
    font-weight: 500;
}
.cr-dash-revenue__pills {
    display: flex;
    gap: 4px;
}
.cr-dash-pill {
    font-size: 0.5rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: #4A5578;
    font-weight: 500;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: default;
}
.cr-dash-pill--active {
    color: #00E18C;
    background: rgba(0,225,140,0.08);
    border-color: rgba(0,225,140,0.2);
}

/* Dashboard Grid */
.cr-dash-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 8px;
    padding: 0 10px 8px;
}
.cr-dash-grid--bottom {
    padding-top: 0;
    padding-bottom: 12px;
}

/* Dashboard Panels */
.cr-dash-panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
}
.cr-dash-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.cr-dash-panel__title {
    font-size: 0.6rem;
    font-weight: 600;
    color: #B4C1D9;
}
.cr-dash-panel__subtitle {
    font-size: 0.5rem;
    color: #4A5578;
}

/* Area Chart */
.cr-dash-area-chart {
    position: relative;
}
.cr-area-svg {
    width: 100%;
    height: 80px;
    display: block;
}
.cr-dash-chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 4px 2px 0;
}
.cr-dash-chart-labels span {
    font-size: 0.45rem;
    color: #3A4560;
    font-weight: 500;
}

/* Donut Charts */
.cr-dash-donuts {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 0;
}
.cr-dash-donut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.cr-donut-svg {
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
}
.cr-dash-donut__label {
    font-size: 0.45rem;
    color: #4A5578;
    font-weight: 500;
}
.cr-dash-donut__value {
    font-size: 0.6rem;
    color: #B4C1D9;
    font-weight: 700;
}

/* Bar Chart */
.cr-dash-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    padding-top: 4px;
}
.cr-dash-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, #00E18C 0%, rgba(0, 225, 140, 0.15) 100%);
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    transition: height 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cr-dash-bar span {
    position: absolute;
    bottom: -14px;
    font-size: 0.4rem;
    color: #3A4560;
    font-weight: 500;
}

/* Conversion Bars */
.cr-dash-conv-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px 0;
}
.cr-dash-conv-row {
    display: grid;
    grid-template-columns: 50px 1fr 28px;
    align-items: center;
    gap: 6px;
}
.cr-dash-conv-label {
    font-size: 0.5rem;
    color: #4A5578;
    font-weight: 500;
}
.cr-dash-conv-bar {
    height: 5px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    overflow: hidden;
}
.cr-dash-conv-fill {
    height: 100%;
    background: #00E18C;
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.cr-dash-conv-fill--blue {
    background: #6B8AFF;
}
.cr-dash-conv-fill--purple {
    background: #A06BFF;
}
.cr-dash-conv-val {
    font-size: 0.5rem;
    color: #B4C1D9;
    font-weight: 600;
    text-align: right;
}

/* Hero glow effect */
.cr-hero::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 225, 140, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ---------- SECTIONS ---------- */
.cr-section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* Section divider — radial gradient glow at bottom of each section */
.cr-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background:
        radial-gradient(ellipse at 30% 100%, hsl(155 100% 44% / 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, hsl(222 60% 20% / 0.25) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* CTA sections get the divider at top instead */
.cr-cta-section::after {
    bottom: auto;
    top: 0;
    transform: rotate(180deg);
}

.cr-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.cr-section__header p {
    margin: 0 auto;
}

/* ---------- Check Cards Grid (Section 2) ---------- */
.cr-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.cr-check-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.cr-check-card:hover {
    border-color: var(--accent-border);
    background: var(--bg-card-hover);
}

.cr-check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 6px;
    color: var(--accent);
    margin-top: 2px;
}

.cr-check-icon svg {
    width: 14px;
    height: 14px;
}

.cr-check-card span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---------- Feature Cards Grid (Section 3) ---------- */
.cr-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cr-feature-card {
    padding: 36px 32px;
}

.cr-feature-card .cr-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

/* ---------- Two Column Layout (Section 4) ---------- */
.cr-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cr-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cr-checklist-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.cr-checklist-item .cr-check-icon {
    width: 28px;
    height: 28px;
}

/* Calculator Card */
.cr-calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.cr-calc-card__label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 600;
}

.cr-calc-card__equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.cr-calc-card__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.cr-calc-card__operator {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.cr-calc-card__result {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.cr-calc-card__result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: 600;
}

.cr-calc-card__result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 40px rgba(0, 225, 140, 0.3);
}

/* ---------- Phase Cards (Section 5) ---------- */
.cr-phase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cr-phase-card {
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
}

.cr-phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: var(--transition);
}

.cr-phase-card:hover::before {
    opacity: 1;
}

.cr-phase-number {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.cr-phase-card h3 {
    margin-bottom: 14px;
}

.cr-phase-card ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cr-phase-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cr-phase-card li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ---------- CTA Section ---------- */
.cr-cta-section {
    padding: var(--section-pad) 0;
    text-align: center;
}

.cr-cta-section h2 {
    max-width: 600px;
    margin: 0 auto 16px;
}

.cr-cta-section p {
    margin: 0 auto 40px;
    text-align: center;
}

/* ---------- FOOTER ---------- */
.cr-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
}

.cr-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
}

.cr-footer__brand .cr-logo {
    margin-bottom: 20px;
}

.cr-footer__brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 300px;
}

.cr-footer__col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cr-footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cr-footer__links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.cr-footer__links a:hover {
    color: var(--accent);
}

.cr-footer__links a.cr-btn--primary {
    color: #060B18;
}

.cr-footer__links a.cr-btn--primary:hover {
    color: #060B18;
}

.cr-footer__bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ---------- PAGE HERO ---------- */
.cr-page-hero {
    padding: 160px 0 var(--section-pad);
    text-align: center;
    position: relative;
}

.cr-page-hero h1 {
    max-width: 700px;
    margin: 0 auto 20px;
}

.cr-page-hero h1 span {
    color: var(--accent);
}

.cr-page-hero p {
    margin: 0 auto;
    font-size: 1.125rem;
    max-width: 560px;
}

/* Top glow */
.cr-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(0, 225, 140, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Bottom gradient divider */
.cr-page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background:
        radial-gradient(ellipse at 30% 100%, hsl(155 100% 44% / 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, hsl(222 60% 20% / 0.25) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- OUR SYSTEM PAGE ---------- */
.cr-system-phase {
    padding: 0;
}

.cr-system-phase__header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
}

.cr-system-phase__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}

.cr-system-phase__content h3 {
    margin-bottom: 12px;
}

.cr-system-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cr-system-block {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cr-system-block__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--accent);
    transition: var(--transition);
}

.cr-system-block:hover .cr-system-block__icon {
    background: rgba(0, 225, 140, 0.12);
    box-shadow: 0 0 20px rgba(0, 225, 140, 0.1);
}

.cr-system-block h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.cr-system-block p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

@media (max-width: 768px) {
    .cr-system-blocks {
        grid-template-columns: 1fr;
    }
}

/* ---------- SOLUTIONS PAGE ---------- */
.cr-solution-section {
    padding: 0;
}

.cr-solution-section__header {
    margin-bottom: 40px;
}

.cr-solution-section__header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}

.cr-solution-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cr-solution-step {
    padding: 32px 28px;
    position: relative;
}

.cr-solution-step__label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.cr-solution-step__label--problem {
    color: #FF6B6B;
}

.cr-solution-step__label--system {
    color: var(--accent);
}

.cr-solution-step__label--impact {
    color: #6B8AFF;
}

.cr-solution-coming-soon {
    text-align: center;
    padding: 60px 0;
}

.cr-solution-coming-soon p {
    margin: 0 auto;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 400px;
}

/* ---------- RESOURCES PAGE ---------- */
.cr-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.cr-filter-btn {
    padding: 12px 28px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.cr-filter-btn:hover,
.cr-filter-btn--active {
    color: var(--accent);
    border-color: var(--accent-border);
    background: var(--accent-subtle);
}

.cr-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cr-blog-card {
    overflow: hidden;
    padding: 0;
}

.cr-blog-card__image {
    width: 100%;
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    overflow: hidden;
}

.cr-blog-card__image svg {
    width: 100%;
    height: 100%;
}

.cr-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cr-blog-card__body {
    padding: 24px;
}

.cr-blog-card__cat {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 10px;
}

.cr-blog-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.cr-blog-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.cr-blog-card__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cr-blog-card__link:hover {
    gap: 10px;
}

/* ---------- ABOUT PAGE ---------- */
.cr-about-section {
    padding: 0;
}

.cr-about-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
}

.cr-about-section p {
    max-width: 700px;
    margin-bottom: 16px;
}

.cr-about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* ---------- CONTACT PAGE ---------- */
.cr-contact-layout {
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: var(--section-pad);
}

.cr-contact-intro {
    text-align: center;
    margin-bottom: 48px;
}

.cr-contact-intro p {
    margin: 0 auto;
}

.cr-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cr-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cr-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cr-form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.cr-form-group input,
.cr-form-group select,
.cr-form-group textarea {
    padding: 14px 18px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.cr-form-group input:focus,
.cr-form-group select:focus,
.cr-form-group textarea:focus {
    border-color: var(--accent-border);
    box-shadow: 0 0 0 3px rgba(0, 225, 140, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.cr-form-group input::placeholder {
    color: var(--text-muted);
}

.cr-form-submit {
    margin-top: 12px;
}

.cr-form-success {
    text-align: center;
    padding: 24px;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 24px;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.cr-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.cr-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.cr-reveal--delay-1 { transition-delay: 0.1s; }
.cr-reveal--delay-2 { transition-delay: 0.2s; }
.cr-reveal--delay-3 { transition-delay: 0.3s; }
.cr-reveal--delay-4 { transition-delay: 0.4s; }
.cr-reveal--delay-5 { transition-delay: 0.5s; }

/* Hero elements animate on load, not on scroll */
.cr-hero .cr-reveal {
    animation: crHeroFadeIn 0.8s var(--ease) forwards;
    opacity: 0;
    transform: translateY(30px);
}
.cr-hero .cr-reveal.cr-reveal--delay-1 { animation-delay: 0.1s; }
.cr-hero .cr-reveal.cr-reveal--delay-2 { animation-delay: 0.2s; }
.cr-hero .cr-reveal.cr-reveal--delay-3 { animation-delay: 0.35s; }

@keyframes crHeroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    :root {
        --section-pad: 80px;
    }

    .cr-features-grid,
    .cr-phase-grid,
    .cr-solution-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .cr-hero__inner,
    .cr-two-col {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cr-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cr-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 60px;
    }

    .cr-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(6, 11, 24, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        z-index: 999;
    }

    .cr-nav--open {
        display: flex;
    }

    .cr-nav-link {
        font-size: 1.125rem;
        padding: 14px 24px;
    }

    .cr-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
    }

    .cr-dropdown .cr-nav-link {
        font-size: 0.9375rem;
        padding-left: 32px;
    }

    .cr-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .cr-menu-toggle--active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .cr-menu-toggle--active span:nth-child(2) {
        opacity: 0;
    }

    .cr-menu-toggle--active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .cr-header__cta {
        display: none;
    }

    .cr-hero {
        min-height: auto;
        padding: 120px 0 60px;
    }

    .cr-hero__inner {
        grid-template-columns: 1fr;
    }

    .cr-features-grid,
    .cr-phase-grid,
    .cr-solution-flow,
    .cr-blog-grid {
        grid-template-columns: 1fr;
    }

    .cr-check-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cr-footer__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cr-form-row {
        grid-template-columns: 1fr;
    }

    .cr-about-grid {
        grid-template-columns: 1fr;
    }

    .cr-device-screen {
        transform: none;
    }
    .cr-device-frame:hover .cr-device-screen {
        transform: none;
    }
    .cr-dash-grid {
        grid-template-columns: 1fr;
    }
    .cr-dash-revenue__value {
        font-size: 1.25rem;
    }

    .cr-calc-card__equation {
        flex-wrap: wrap;
    }

    .cr-calc-card__number {
        font-size: 1.75rem;
    }

    .cr-calc-card__result-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cr-check-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .cr-btn--large {
        width: 100%;
    }

    .cr-hero__actions {
        flex-direction: column;
    }

    .cr-hero__actions .cr-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* Divider line */
.cr-divider {
    width: 100%;
    height: 1px;
    background: var(--border);
}

/* Grid line accent on section edges */
.cr-section--lined::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--border-light) 50%, transparent 90%);
    z-index: 1;
}

/* ---------- Post Content Styles ---------- */
.cr-post-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.cr-post-content h2 {
    font-size: 1.75rem;
    margin: 48px 0 16px;
}

.cr-post-content h3 {
    font-size: 1.375rem;
    margin: 40px 0 12px;
}

.cr-post-content h4 {
    font-size: 1.125rem;
    margin: 32px 0 10px;
}

.cr-post-content p {
    margin-bottom: 20px;
    max-width: 100%;
}

.cr-post-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cr-post-content a:hover {
    color: var(--accent-hover);
}

.cr-post-content ul,
.cr-post-content ol {
    margin: 0 0 20px 24px;
    list-style: disc;
}

.cr-post-content ol {
    list-style: decimal;
}

.cr-post-content li {
    margin-bottom: 8px;
}

.cr-post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-primary);
}

.cr-post-content img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.cr-post-content pre {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 0.875rem;
}

.cr-post-content code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
}

/* ---------- Pagination ---------- */
.navigation.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
    color: var(--accent);
    border-color: var(--accent-border);
    background: var(--accent-subtle);
}

.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
    width: auto;
    padding: 0 16px;
}
