/* ==========================================================================
   GRCPro Landing — Enterprise Intelligence Design System
   Theme: Insights → Intelligence → Decisions → Impact
   ========================================================================== */

:root {
    --navy: #031B4E;
    --bg-dark: #071124;
    --bg-elevated: #0c1830;
    --bg-card: rgba(12, 24, 48, 0.55);
    --cyan: #00D9FF;
    --blue: #2563FF;
    --purple: #6D5BFF;
    --glow: #8AEFFF;
    --success: #00FFB2;
    --text-primary: #f0f4ff;
    --text-secondary: rgba(240, 244, 255, 0.72);
    --text-muted: rgba(240, 244, 255, 0.48);
    --border-glass: rgba(0, 217, 255, 0.12);
    --border-glow: rgba(0, 217, 255, 0.35);
    --gradient-hero: linear-gradient(135deg, #031B4E 0%, #071124 40%, #0a1628 100%);
    --gradient-accent: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%);
    --gradient-card: linear-gradient(145deg, rgba(0, 217, 255, 0.06) 0%, rgba(109, 91, 255, 0.04) 100%);
    --shadow-glow: 0 0 40px rgba(0, 217, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --nav-height: 88px;
    --nav-offset: calc(var(--nav-height) + 2rem);
    --section-pad: clamp(80px, 10vw, 140px);
    --container: min(1200px, 92vw);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
    width: var(--container);
    margin-inline: auto;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--gradient-accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header .section-subtitle {
    margin-inline: auto;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-dark);
    box-shadow: 0 4px 24px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.45);
    color: var(--bg-dark);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* ── Glass Card ─────────────────────────────────────────────────────────── */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-glow {
    position: relative;
}

.glass-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.4), rgba(109, 91, 255, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-glow:hover::before { opacity: 1; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(var(--container), calc(100% - 2rem));
    z-index: 1000;
    height: var(--nav-height);
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.nav.scrolled {
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding-inline: 1.25rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.nav-logo img {
    height: 72px;
    width: auto;
    display: block;
    transition: transform 0.3s var(--ease-out);
}

.nav-logo:hover img {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    border-radius: var(--radius-sm);
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
    color: var(--navy);
    background: rgba(3, 27, 78, 0.06);
}

.nav-cta { margin-left: 0.75rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-offset);
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
    animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 255, 0.15);
    top: -10%;
    right: -5%;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(109, 91, 255, 0.12);
    bottom: 10%;
    left: -10%;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(0, 217, 255, 0.1);
    top: 40%;
    left: 30%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-block: clamp(3rem, 8vw, 6rem);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 178, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(0, 255, 178, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-journey {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.journey-step {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.journey-step.active { color: var(--cyan); }
.journey-arrow { color: var(--text-muted); font-size: 0.7rem; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.trust-stat {
    text-align: left;
}

.trust-stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.trust-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border-glass);
}

/* Hero Dashboard Mockup */
.hero-visual {
    position: relative;
    perspective: 1200px;
}

.dashboard-mockup {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.6s var(--ease-out);
}

.hero-visual:hover .dashboard-mockup {
    transform: rotateY(-4deg) rotateX(2deg);
}

.dashboard-frame {
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.dashboard-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-glass);
}

.dashboard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dashboard-dot:nth-child(1) { background: #ff5f57; }
.dashboard-dot:nth-child(2) { background: #febc2e; }
.dashboard-dot:nth-child(3) { background: #28c840; }

.dashboard-body {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.dash-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.dash-widget.span-2 { grid-column: span 2; }

.dash-widget-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.dash-widget-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.dash-widget-value.cyan { color: var(--cyan); }
.dash-widget-value.success { color: var(--success); }
.dash-widget-value.purple { color: var(--purple); }

.dash-chart {
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 0.5rem;
}

.dash-bar {
    flex: 1;
    background: var(--gradient-accent);
    border-radius: 2px 2px 0 0;
    opacity: 0.7;
    animation: barGrow 1.5s var(--ease-out) backwards;
}

.dash-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.dash-bar:nth-child(2) { height: 65%; animation-delay: 0.2s; }
.dash-bar:nth-child(3) { height: 45%; animation-delay: 0.3s; }
.dash-bar:nth-child(4) { height: 80%; animation-delay: 0.4s; }
.dash-bar:nth-child(5) { height: 55%; animation-delay: 0.5s; }
.dash-bar:nth-child(6) { height: 90%; animation-delay: 0.6s; }
.dash-bar:nth-child(7) { height: 70%; animation-delay: 0.7s; }
.dash-bar:nth-child(8) { height: 95%; animation-delay: 0.8s; }

@keyframes barGrow {
    from { height: 0 !important; opacity: 0; }
}

.dash-line-chart {
    height: 50px;
    margin-top: 0.5rem;
    position: relative;
}

.dash-line-chart svg {
    width: 100%;
    height: 100%;
}

.dash-line-path {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 2s var(--ease-out) 0.5s forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Floating cards */
.float-card {
    position: absolute;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(12, 24, 48, 0.9);
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-glow);
    font-size: 0.8rem;
    animation: floatCard 6s ease-in-out infinite;
    z-index: 3;
}

.float-card-1 { top: -10%; right: -5%; animation-delay: 0s; }
.float-card-2 { bottom: 15%; left: -8%; animation-delay: -2s; }
.float-card-3 { top: 50%; right: -12%; animation-delay: -4s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.float-card-icon {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.float-card-value {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--cyan);
}

/* ── Solutions ──────────────────────────────────────────────────────────── */
.solutions {
    padding-block: var(--section-pad);
    position: relative;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.solution-card {
    padding: 2rem;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
    cursor: default;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.solution-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--gradient-card);
    border: 1px solid var(--border-glass);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--cyan);
    transition: all 0.35s ease;
}

.solution-card:hover .solution-icon {
    background: rgba(0, 217, 255, 0.12);
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.solution-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.solution-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Platform Showcase ──────────────────────────────────────────────────── */
.platform {
    padding-block: var(--section-pad);
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--navy) 50%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.platform-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.platform-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.platform-step {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
}

.platform-step.active {
    background: var(--bg-card);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.platform-step-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.1em;
    margin-bottom: 0.35rem;
}

.platform-step-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.platform-step-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.platform-step.active .platform-step-desc { display: block; }

.platform-preview {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid var(--border-glass);
}

.platform-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 8s ease;
}

.platform-preview:hover img {
    transform: scale(1.05);
}

.platform-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(7, 17, 36, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.platform-preview-label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cyan);
}

/* ── Why GRC Pro / Feature Matrix ───────────────────────────────────────── */
.why {
    padding-block: var(--section-pad);
}

.feature-matrix {
    display: grid;
    grid-template-columns: 1.4fr repeat(2, 1fr);
    gap: 1px;
    background: var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.matrix-header,
.matrix-row {
    display: contents;
}

.matrix-cell {
    background: var(--bg-elevated);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.matrix-cell.header {
    background: rgba(0, 217, 255, 0.06);
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cyan);
}

.matrix-cell.feature-name {
    font-weight: 500;
    color: var(--text-primary);
}

.matrix-cell.check {
    justify-content: center;
    color: var(--success);
    font-size: 1.1rem;
}

.matrix-cell.cross {
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.matrix-cell.highlight {
    background: rgba(0, 217, 255, 0.04);
}

.why-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.why-feature {
    padding: 1.75rem;
    text-align: center;
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 217, 255, 0.1);
    color: var(--cyan);
    font-size: 1.25rem;
}

.why-feature h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.why-feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Industries ───────────────────────────────────────────────────────────── */
.industries {
    padding-block: var(--section-pad);
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(3, 27, 78, 0.3) 100%);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.industry-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    background: linear-gradient(160deg, var(--navy) 0%, var(--bg-elevated) 100%);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.industry-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.industry-card:hover img { transform: scale(1.1); }

.industry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(7, 17, 36, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.industry-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.industry-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.industry-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.35s ease;
}

.industry-card:hover .industry-desc {
    opacity: 1;
    transform: translateY(0);
}

/* ── Stats ───────────────────────────────────────────────────────────────── */
.stats {
    padding-block: var(--section-pad);
    position: relative;
}

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

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.testimonials {
    padding-block: var(--section-pad);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--cyan);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    flex: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--bg-dark);
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing {
    padding-block: var(--section-pad);
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--navy) 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin-inline: auto;
}

.pricing-grid-multi {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 1180px;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.pricing-card {
    padding: 2.5rem;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    background: var(--gradient-accent);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pricing-tier {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .bi-check-circle-fill { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.pricing-features .bi-x-circle { color: var(--text-muted); flex-shrink: 0; margin-top: 2px; }

.pricing-card .btn { width: 100%; }

/* ── CTA ──────────────────────────────────────────────────────────────────── */
.cta {
    padding-block: var(--section-pad);
    position: relative;
    overflow: hidden;
}

.cta-inner {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem);
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 217, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    position: relative;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    position: relative;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

/* ── Contact ──────────────────────────────────────────────────────────────── */
.contact {
    padding-block: var(--section-pad);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 217, 255, 0.1);
    color: var(--cyan);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item p,
.contact-item a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-item a:hover { color: var(--cyan); }

.contact-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form-group select {
    padding-right: 2.5rem;
    cursor: pointer;
    color-scheme: dark;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23f0f4ff' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem;
}

.form-group select::-ms-expand {
    display: none;
}

.form-group select option {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-glow);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-group select:focus {
    background-color: rgba(3, 16, 40, 0.75);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-glass);
    background: rgba(3, 27, 78, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    max-width: 320px;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.25s ease;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.social-links a:hover {
    background: rgba(0, 217, 255, 0.15);
    color: var(--cyan);
}

/* ── Scroll to top ────────────────────────────────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.35s var(--ease-out);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-content,
    .platform-showcase,
    .contact-grid { grid-template-columns: 1fr; }

    .hero-visual { order: -1; max-width: 560px; margin-inline: auto; }
    .dashboard-mockup { transform: none; }
    .hero-visual:hover .dashboard-mockup { transform: none; }

    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .why-features { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav {
        top: 0.75rem;
        width: calc(100% - 1.5rem);
        border-radius: var(--radius-md);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        padding: 1rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        gap: 0.25rem;
    }

    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; padding: 0.75rem 1rem; color: #4b5563; }
    .nav-links a:hover { color: var(--navy); background: rgba(3, 27, 78, 0.06); }
    .nav-cta { margin-left: 0; width: 100%; }
    .nav-cta .btn { width: 100%; }
    .nav-toggle { display: flex; }

    .nav-logo img {
        height: 58px;
    }

    .solutions-grid,
    .testimonials-grid,
    .stats-grid,
    .pricing-grid,
    .why-features { grid-template-columns: 1fr; }

    .industries-grid { grid-template-columns: 1fr 1fr; }
    .industry-card { aspect-ratio: 4/3; }

    .feature-matrix { display: none; }

    .float-card { display: none; }
    .hero-trust { gap: 1.5rem; }
    .trust-divider { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
    .industries-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .cta-actions { flex-direction: column; }
    .cta-actions .btn { width: 100%; }
}

/* ── Legal pages ──────────────────────────────────────────────────────────── */
.legal-page {
    padding: calc(var(--nav-offset) + 2rem) 0 var(--section-pad);
    min-height: 70vh;
}

.legal-page-header {
    margin-bottom: 2.5rem;
    max-width: 760px;
}

.legal-page-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.legal-page-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
}

.legal-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: sticky;
    top: calc(var(--nav-offset) + 1rem);
}

.legal-sidebar-link {
    display: block;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.legal-sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(0, 217, 255, 0.06);
}

.legal-sidebar-link.is-active {
    color: var(--cyan);
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--border-glass);
}

.legal-document {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
}

.legal-disclaimer {
    padding: 1rem 1.15rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 217, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

.legal-section p + p {
    margin-top: 0.85rem;
}

.legal-section ul {
    list-style: disc;
    padding-left: 1.35rem;
    margin-top: 0.65rem;
}

.legal-section li + li {
    margin-top: 0.45rem;
}

.legal-section a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-section a:hover {
    color: var(--glow);
}

.legal-intro p {
    font-size: 1rem;
}

@media (max-width: 900px) {
    .legal-page-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
