/* ============================================================
   Lightspeed Software — Main Stylesheet
   Design: Precision Futurism — Dark-first, high-contrast
   Typography: Bricolage Grotesque + Outfit
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=Outfit:wght@300;400;500;600&display=swap');

/* ---- Design Tokens ---- */

:root {
    --bg-dark: #08080c;
    --bg-dark-elevated: #111118;
    --bg-dark-card: #16161f;
    --bg-light: #fafaf9;
    --bg-light-alt: #f3f2ef;
    --bg-white: #ffffff;

    --text-primary: #f0efe8;
    --text-secondary: #9c9b93;
    --text-dark: #1a1917;
    --text-dark-muted: #6b6a63;

    --accent-cyan: #00d4ff;
    --accent-amber: #f5a623;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-red: #ef4444;

    --gradient-hero: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 50%, #f5a623 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    --gradient-warm: linear-gradient(135deg, #f5a623 0%, #ef4444 100%);

    --font-display: 'Bricolage Grotesque', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-glow-cyan: 0 0 30px rgba(0, 212, 255, 0.15);
    --shadow-glow-amber: 0 0 30px rgba(245, 166, 35, 0.15);

    --container-max: 1200px;
    --section-pad: 100px;
    --section-pad-mobile: 60px;
}

/* ---- Reset & Base ---- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* ---- Skip Link (a11y) ---- */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--accent-cyan);
    color: var(--bg-dark);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 10001;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 8px;
}

/* ---- Focus Styles (a11y) ---- */

*:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ---- Layout ---- */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

.section .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title.text-center,
.section .section-title {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dark-muted);
    font-size: 1.15rem;
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.7;
    font-weight: 300;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
    .section-title { font-size: 2.25rem; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --section-pad: var(--section-pad-mobile);
    }
    .section-title { font-size: 1.85rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 36px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}

.highlight {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Navigation ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.nav.scrolled {
    background: rgba(8, 8, 12, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 1px;
}

.nav-cta.btn {
    font-size: 0.85rem;
    padding: 10px 22px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 8, 12, 0.97);
        -webkit-backdrop-filter: blur(30px);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        z-index: 999;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
    }

    .nav-cta.btn {
        font-size: 1.1rem;
        padding: 16px 32px;
        width: auto;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow-cyan);
}

.btn-primary:hover {
    background: #33ddff;
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Light-background button variants */
.section-light .btn-primary,
.pricing-card .btn-primary {
    background: var(--bg-dark);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.section-light .btn-primary:hover,
.pricing-card .btn-primary:hover {
    background: var(--bg-dark-elevated);
    box-shadow: var(--shadow-lg);
}

.section-light .btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.15);
}

.section-light .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.25);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 40px;
    background: var(--bg-dark) url('../assets/images/backgrounds/warp-speed.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

/* Dark overlay + colored gradient on top of warp speed photo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 212, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(8, 8, 12, 0.55) 0%, rgba(8, 8, 12, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes heroGlow {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.05); }
}

/* Subtle noise texture */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Grid lines overlay */
.hero .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 200px 100%;
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero .highlight {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 64px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats .stat,
.hero-stat {
    text-align: center;
}

.hero-stats .stat-number,
.hero-stat .stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.hero-stats .stat-label,
.hero-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero.hero-small {
    min-height: auto;
    padding: 140px 24px 80px;
}

.hero.hero-small::after {
    display: none;
}

@media (max-width: 768px) {
    .hero { min-height: auto; padding: 100px 0 48px; }
    .hero h1 { font-size: clamp(1.6rem, 7vw, 2.5rem); }
    .hero h1 br { display: inline; }
    .hero h1 br::before { content: ' '; }
    .hero .container { padding: 0 20px; }
    .hero .container::before { display: none; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 320px; }
    .hero-stats { gap: 24px; }
    .hero-stats .stat-number,
    .hero-stat .stat-number { font-size: 2rem; }
    .hero-stats .stat-label,
    .hero-stat .stat-label { font-size: 0.7rem; letter-spacing: 0.05em; }
    .hero.hero-small { padding: 120px 20px 60px; }
}

@media (max-width: 420px) {
    .hero h1 { font-size: 1.85rem; }
    .hero-stats { gap: 16px; }
    .hero-stats .stat-number,
    .hero-stat .stat-number { font-size: 1.75rem; }
    .hero .container::before { display: none; }
}

/* ---- Comparison Section ---- */

.comparison {
    background: var(--bg-dark);
    padding: 80px 0;
    position: relative;
    color: var(--text-primary);
}

.comparison::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 50% at 0% 50%, rgba(239, 68, 68, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 100% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.comparison .container {
    position: relative;
    z-index: 1;
}

.comparison .section-title {
    color: var(--text-primary);
}

.comparison .section-subtitle {
    color: var(--text-secondary);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.comparison-card {
    background: var(--bg-dark-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.comparison-old {
    border-color: rgba(239, 68, 68, 0.2);
}

.comparison-old:hover {
    box-shadow: 0 8px 40px rgba(239, 68, 68, 0.08);
}

.comparison-new {
    border-color: rgba(16, 185, 129, 0.2);
}

.comparison-new:hover {
    box-shadow: 0 8px 40px rgba(16, 185, 129, 0.08);
}

.comparison-card h3 {
    margin-bottom: 20px;
    font-size: 1.35rem;
}

.comparison-old h3 { color: var(--accent-red); }
.comparison-new h3 { color: var(--accent-green); }

.comparison-card p {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.comparison-card p:last-child { border-bottom: none; }

.comparison-card p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.comparison-label-old {
    background: rgba(239, 68, 68, 0.12);
    color: var(--accent-red);
}

.comparison-label-new {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
}

.comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .comparison-grid { grid-template-columns: 1fr; }
    .comparison-arrow { display: none; }
}

/* ---- Steps / How It Works ---- */

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

.step-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--accent-cyan);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-dark-muted);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .steps-grid { grid-template-columns: 1fr; }
}

/* ---- Platform Cards ---- */

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

.platform-card {
    background: var(--bg-dark-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-glow-cyan);
}

.platform-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.platform-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.platform-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .platforms-grid { grid-template-columns: 1fr; }
}

/* ---- Pricing Cards ---- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.pricing-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dark-muted);
    margin-bottom: 12px;
}

.pricing-tier {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dark-muted);
    margin-bottom: 12px;
}

.pricing-price,
.pricing-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.pricing-price span,
.pricing-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-dark-muted);
}

.pricing-card > p {
    color: var(--text-dark-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    min-height: 48px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.pricing-features li::before {
    content: '\2713';
    color: var(--accent-green);
    font-weight: 700;
    flex-shrink: 0;
}

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

.badge {
    display: inline-block;
    background: var(--accent-cyan);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 100px;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-6px); }
}

/* ---- Portfolio Cards ---- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.portfolio-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.portfolio-image {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.6);
}

.portfolio-card h3 {
    padding: 20px 24px 4px;
    font-size: 1.25rem;
}

.portfolio-category {
    padding: 0 24px;
    font-size: 0.8rem;
    color: var(--text-dark-muted);
    font-weight: 500;
}

.portfolio-card > p {
    padding: 8px 24px 16px;
    font-size: 0.9rem;
    color: var(--text-dark-muted);
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 24px 16px;
}

.portfolio-tag {
    background: var(--bg-light-alt);
    color: var(--text-dark-muted);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
}

.portfolio-meta {
    display: flex;
    gap: 16px;
    padding: 0 24px;
    font-size: 0.8rem;
    color: var(--text-dark-muted);
}

.portfolio-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px 24px;
}

.portfolio-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 10px 16px;
}

.portfolio-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark-muted);
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 44px;
}

.filter-btn:hover {
    border-color: var(--bg-dark);
    color: var(--text-dark);
}

.filter-btn.active {
    background: var(--bg-dark);
    color: var(--text-primary);
    border-color: var(--bg-dark);
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* ---- Testimonials ---- */

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

.testimonial-card {
    background: var(--bg-dark-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-primary);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-text::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent-cyan);
    display: block;
    line-height: 0.5;
    margin-bottom: 12px;
}

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

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}

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

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

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
    min-height: 48px;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent-cyan);
}

.faq-toggle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- Section Variants ---- */

/* Dark section */
.section-dark {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.section-dark .section-title { color: var(--text-primary); }
.section-dark .section-subtitle { color: var(--text-secondary); }

/* Light section (default) */
.section-light {
    background: var(--bg-light);
}

/* Section with dots (light) */
.section-dots {
    background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Section gradient */
.section-gradient {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.section-gradient .section-title { color: var(--text-primary); }
.section-gradient .section-subtitle { color: var(--text-secondary); }

/* Section blobs */
.section-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.section-blob-right {
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
}

.section-blob-left {
    bottom: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
}

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

.footer-cta-section {
    background: var(--bg-dark);
    color: var(--text-primary);
    text-align: center;
    padding: 100px 24px;
    position: relative;
    overflow: hidden;
}

.footer-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 30% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.footer-cta-section::after {
    display: none;
}

.footer-cta-section .container {
    position: relative;
    z-index: 1;
}

.footer-cta-section h2 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.footer-cta-section p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0 auto 36px;
    font-weight: 300;
}

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

.footer {
    background: var(--bg-dark-elevated);
    color: var(--text-primary);
    padding: 64px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer h3, .footer h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-links li { margin-bottom: 10px; }

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

.footer-links a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-legal {
    margin-top: 8px;
}

.footer-legal a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---- Forms ---- */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

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

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

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    min-height: 44px;
}

.checkbox-label:hover {
    background: var(--bg-light-alt);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-cyan);
    cursor: pointer;
}

@media (max-width: 768px) {
    .form-row, .checkbox-group { grid-template-columns: 1fr; }
}

/* ---- Comparison Table (Pricing Page) ---- */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th {
    background: var(--bg-light-alt);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark-muted);
}

.comparison-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-dark);
}

.comparison-table .check { color: var(--accent-green); font-weight: 700; }
.comparison-table .cross { color: var(--text-dark-muted); }

.highlight-col {
    background: rgba(0, 212, 255, 0.04);
}

/* ---- Timeline (How It Works Page) ---- */

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -60px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--accent-cyan);
    font-family: var(--font-display);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-cyan);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.timeline-content h3 { margin-bottom: 4px; }

.timeline-content .timeline-day {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-dark-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline { padding-left: 48px; }
    .timeline::before { left: 18px; }
    .timeline-marker { left: -48px; width: 36px; height: 36px; font-size: 0.85rem; }
}

/* ---- Tech Grid (How It Works Page) ---- */

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

.tech-card {
    background: var(--bg-dark-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
}

.tech-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

@media (max-width: 1024px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .tech-grid { grid-template-columns: 1fr; }
}

/* ---- Tier Selector & Estimate (Pricing Page) ---- */

.tier-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.tier-btn {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.tier-btn:hover {
    border-color: var(--bg-dark);
    color: var(--text-dark);
}

.tier-btn.active {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--text-primary);
}

.estimate-display {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    margin-top: 24px;
}

.estimate-display .estimate-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.estimate-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: -0.03em;
}

.estimate-display .estimate-breakdown {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

@media (max-width: 768px) {
    .tier-selector { flex-direction: column; }
}

/* ---- Overlay / Confirmation ---- */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
}

.overlay-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}

.overlay-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.overlay-content p {
    color: var(--text-dark-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.overlay-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ---- Toast Notifications ---- */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease;
    color: var(--text-primary);
}

.toast-success {
    background: var(--bg-dark);
    border-left: 3px solid var(--accent-green);
}

.toast-error {
    background: var(--bg-dark);
    border-left: 3px solid var(--accent-red);
}

.toast-dismiss {
    margin-left: auto;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 4px;
    background: none;
    border: none;
    transition: color 0.2s;
}

.toast-dismiss:hover {
    color: var(--text-primary);
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ---- Utilities ---- */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-dark-muted); }
.text-small { font-size: 0.875rem; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.hidden { display: none; }
.visible { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Word break for long content */
.step-card p,
.platform-card p,
.tech-card p,
.faq-answer p,
.portfolio-card > p,
.timeline-content p,
.comparison-card p,
.testimonial-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 65ch;
}

/* ---- Print Styles ---- */

@media print {
    .nav, .footer-cta-section, .toast-container, .overlay, .mobile-menu-btn,
    .skip-link, .hero::before, .hero::after { display: none !important; }
    body { color: #000; background: #fff; }
    .hero { background: #fff !important; color: #000 !important; min-height: auto !important; padding: 40px 0 !important; }
    .hero h1, .hero .highlight { color: #000 !important; -webkit-text-fill-color: #000 !important; }
    .hero-subtitle { color: #333 !important; }
    .section { padding: 32px 0; }
    .comparison, .section-dark, .section-gradient, .footer { background: #fff !important; color: #000 !important; }
    .comparison-card, .step-card, .platform-card, .tech-card, .pricing-card, .portfolio-card {
        border: 1px solid #ddd !important; background: #fff !important; color: #000 !important;
        break-inside: avoid; page-break-inside: avoid;
    }
    a[href]::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #666; }
}

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ---- No-JS Fallback ---- */

@supports (animation: none) {
    @keyframes fade-in-fallback {
        to { opacity: 1; transform: none; }
    }
}

/* ---- Dark Mode ---- */

@media (prefers-color-scheme: dark) {
    .section-light,
    .section-dots {
        background-color: var(--bg-dark-elevated);
        color: var(--text-primary);
    }

    .section-dots {
        background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    }

    .section-light .section-title,
    .section-dots .section-title { color: var(--text-primary); }

    .section-light .section-subtitle,
    .section-dots .section-subtitle { color: var(--text-secondary); }

    .step-card,
    .portfolio-card,
    .pricing-card,
    .timeline-content {
        background: var(--bg-dark-card);
        border-color: rgba(255,255,255,0.06);
        color: var(--text-primary);
    }

    .step-card p,
    .portfolio-card > p,
    .pricing-card > p,
    .timeline-content p { color: var(--text-secondary); }

    .pricing-price, .pricing-amount,
    .step-card h3, .portfolio-card h3,
    .pricing-card h3, .timeline-content h3 { color: var(--text-primary); }

    .pricing-name, .pricing-tier,
    .pricing-price span, .pricing-period,
    .form-label, .portfolio-category,
    .portfolio-meta, .portfolio-tag { color: var(--text-secondary); }

    .form-input, .form-textarea, .form-select {
        background: var(--bg-dark-card);
        border-color: rgba(255,255,255,0.1);
        color: var(--text-primary);
    }

    .form-input:focus, .form-textarea:focus {
        border-color: var(--accent-cyan);
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
    }

    .filter-btn {
        border-color: rgba(255,255,255,0.1);
        color: var(--text-secondary);
    }

    .filter-btn:hover {
        border-color: var(--text-primary);
        color: var(--text-primary);
    }

    .comparison-table th { background: var(--bg-dark-card); color: var(--text-secondary); }
    .comparison-table td { border-color: rgba(255,255,255,0.06); color: var(--text-primary); }

    .tier-btn {
        background: var(--bg-dark-card);
        border-color: rgba(255,255,255,0.1);
        color: var(--text-secondary);
    }

    .tier-btn:hover {
        border-color: var(--text-primary);
        color: var(--text-primary);
    }

    .overlay-content {
        background: var(--bg-dark-card);
        color: var(--text-primary);
    }

    .overlay-title { color: var(--text-primary); }
    .overlay-content p { color: var(--text-secondary); }

    .checkbox-label:hover { background: var(--bg-dark-card); }
    .portfolio-tag { background: var(--bg-dark-card); color: var(--text-secondary); }

    .pricing-features li { color: var(--text-primary); border-color: rgba(255,255,255,0.05); }
}

/* ---- Fieldset/Legend (a11y) ---- */

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

fieldset legend {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* ---- Noscript ---- */

noscript .noscript-msg {
    background: var(--accent-amber);
    color: var(--bg-dark);
    text-align: center;
    padding: 12px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ---- Legal Pages ---- */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 32px 0 12px;
    text-align: left;
}

.legal-content p,
.legal-content li {
    font-size: 0.95rem;
    color: var(--text-dark-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content ul {
    padding-left: 20px;
    list-style: disc;
}
