/* ============================================
   Sulba Solutions - Blazor Design System
   Exact replica of the React/Tailwind design
   ============================================ */

/* === CSS Custom Properties === */
:root {
    /* Primary - Deep Navy Blue */
    --primary: hsl(215, 70%, 23%);
    --primary-foreground: hsl(0, 0%, 100%);

    /* Background & Foreground */
    --background: hsl(210, 20%, 98%);
    --foreground: hsl(215, 70%, 18%);

    /* Cards */
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(215, 70%, 18%);

    /* Secondary - Mid Navy */
    --secondary: hsl(210, 60%, 35%);
    --secondary-foreground: hsl(0, 0%, 100%);

    /* Muted */
    --muted: hsl(210, 20%, 95%);
    --muted-foreground: hsl(215, 40%, 45%);

    /* Accent - Teal/Cyan */
    --accent: hsl(185, 75%, 45%);
    --accent-foreground: hsl(215, 70%, 18%);
    --accent-glow: hsl(185, 80%, 55%);
    --accent-text: hsl(185, 100%, 23%);  /* WCAG AA contrast on white */

    /* Destructive */
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 100%);

    /* Border, Input, Ring */
    --border: hsl(210, 20%, 90%);
    --input: hsl(210, 20%, 90%);
    --ring: hsl(185, 75%, 45%);

    --radius: 0.75rem;

    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsla(215, 70%, 18%, 0.1);
    --shadow-elevated: 0 10px 40px -10px hsla(215, 70%, 18%, 0.2);
    --shadow-accent: 0 8px 30px -8px hsla(185, 75%, 45%, 0.3);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* === Container === */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === Text Gradient === */
.text-gradient {
    background-image: linear-gradient(135deg, hsl(185, 75%, 45%), hsl(185, 80%, 55%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === Background Patterns === */
.bg-hero-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, hsla(185, 75%, 45%, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, hsla(185, 80%, 55%, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, hsla(215, 70%, 25%, 0.1) 0%, transparent 30%);
}

.geometric-pattern {
    background-image:
        linear-gradient(30deg, hsla(185, 75%, 45%, 0.03) 12%, transparent 12.5%, transparent 87%, hsla(185, 75%, 45%, 0.03) 87.5%, hsla(185, 75%, 45%, 0.03)),
        linear-gradient(150deg, hsla(185, 75%, 45%, 0.03) 12%, transparent 12.5%, transparent 87%, hsla(185, 75%, 45%, 0.03) 87.5%, hsla(185, 75%, 45%, 0.03)),
        linear-gradient(30deg, hsla(185, 75%, 45%, 0.03) 12%, transparent 12.5%, transparent 87%, hsla(185, 75%, 45%, 0.03) 87.5%, hsla(185, 75%, 45%, 0.03)),
        linear-gradient(150deg, hsla(185, 75%, 45%, 0.03) 12%, transparent 12.5%, transparent 87%, hsla(185, 75%, 45%, 0.03) 87.5%, hsla(185, 75%, 45%, 0.03));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* === Gradient Backgrounds === */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
}

.bg-gradient-muted {
    background: linear-gradient(to bottom, var(--muted), var(--background));
}

.bg-gradient-muted-via {
    background: linear-gradient(to bottom, var(--muted), var(--muted), var(--background));
}

.bg-gradient-muted-reverse {
    background: linear-gradient(to bottom, var(--background), var(--muted));
}

/* === Glow Orbs === */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
}

.glow-orb-accent-sm {
    width: 400px;
    height: 400px;
    background: hsla(185, 75%, 45%, 0.05);
}

.glow-orb-accent-md {
    width: 500px;
    height: 500px;
    background: hsla(185, 75%, 45%, 0.05);
}

.glow-orb-accent-lg {
    width: 600px;
    height: 600px;
    background: hsla(185, 75%, 45%, 0.10);
}

.glow-orb-accent-glow {
    width: 500px;
    height: 500px;
    background: hsla(185, 80%, 55%, 0.10);
}

.glow-orb-accent-15 {
    width: 400px;
    height: 400px;
    background: hsla(185, 75%, 45%, 0.15);
}

.glow-orb-primary {
    width: 400px;
    height: 400px;
    background: hsla(215, 70%, 23%, 0.05);
}

/* === Layout === */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    padding-top: 5rem;
}

/* === Header === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: all 0.3s ease;
    background: hsla(0, 0%, 100%, 0.95);
    backdrop-filter: blur(4px);
}

.site-header.scrolled {
    background: var(--card);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid hsla(210, 20%, 90%, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo img {
    height: 3rem;
    width: auto;
}

.header-logo span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s;
    position: relative;
}

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

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

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: var(--accent-foreground);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.header-cta:hover {
    background: hsla(185, 75%, 45%, 0.9);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid hsla(210, 20%, 90%, 0.5);
    animation: fadeIn 0.3s ease;
}

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

.mobile-nav a {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    color: var(--muted-foreground);
    transition: color 0.2s;
}

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

@media (max-width: 768px) {
    .header-nav,
    .header-cta-wrapper {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-foreground);
    box-shadow: 0 4px 14px hsla(185, 75%, 45%, 0.25);
}

.btn-primary:hover {
    background: var(--accent-glow);
    box-shadow: 0 4px 14px hsla(185, 75%, 45%, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid hsla(185, 75%, 45%, 0.6);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: hsla(185, 75%, 45%, 0.15);
    border-color: var(--accent);
}

.btn-full {
    width: 100%;
}

.btn .icon-arrow {
    transition: transform 0.2s;
}

.btn:hover .icon-arrow {
    transform: translateX(4px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: hsla(185, 75%, 45%, 0.2);
    border: 1px solid hsla(185, 75%, 45%, 0.4);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-foreground);
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: hsla(0, 0%, 100%, 0.7);
    max-width: 42rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
}

.trust-label {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: hsla(185, 75%, 45%, 0.2);
    border: 1px solid hsla(185, 75%, 45%, 0.4);
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.trust-item:hover {
    background: hsla(185, 75%, 45%, 0.3);
}

.trust-item span {
    color: var(--primary-foreground);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
}

/* Animated Geometric Elements */
.hero-geom {
    position: absolute;
    pointer-events: none;
}

.hero-geom-circle {
    width: 16rem;
    height: 16rem;
    border: 2px solid hsla(185, 75%, 45%, 0.3);
    border-radius: 50%;
    opacity: 0.4;
    top: 25%;
    right: 25%;
    animation: float1 6s ease-in-out infinite;
}

.hero-geom-square {
    width: 12rem;
    height: 12rem;
    border: 1px solid hsla(185, 75%, 45%, 0.2);
    transform: rotate(45deg);
    bottom: 33%;
    left: 25%;
    animation: float2 8s ease-in-out infinite;
}

.hero-geom-rect {
    width: 8rem;
    height: 8rem;
    background: hsla(185, 75%, 45%, 0.1);
    border-radius: 0.5rem;
    transform: rotate(12deg);
    top: 50%;
    right: 33%;
    animation: float3 5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(50deg) translateY(15px); }
}

@keyframes float3 {
    0%, 100% { transform: rotate(12deg) translateY(0) scale(1); }
    50% { transform: rotate(12deg) translateY(-10px) scale(1.05); }
}

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

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

/* === Page Hero (inner pages) === */
.page-hero {
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.page-hero-title {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    font-weight: 700;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    color: hsla(0, 0%, 100%, 0.8);
    max-width: 48rem;
    line-height: 1.7;
}

/* === Sections === */
.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* === Cards === */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
    height: 100%;
}

.card:hover {
    border-color: hsla(185, 75%, 45%, 0.4);
    box-shadow: 0 20px 40px hsla(185, 75%, 45%, 0.1);
}

.card-xl {
    border-radius: 1rem;
    padding: 2.5rem;
}

/* Icon Box */
.icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-box svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--primary-foreground);
}

.icon-box-sm {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
}

.icon-box-sm svg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-box-lg {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.icon-box-lg svg {
    width: 2rem;
    height: 2rem;
}

.card:hover .icon-box {
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
}

.card:hover .icon-box-nohover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.card-title-lg {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.card-text-base {
    font-size: 1rem;
}

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

/* === Feature Tags === */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: hsla(185, 75%, 45%, 0.1);
    border: 1px solid hsla(185, 75%, 45%, 0.2);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-text);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* === Feature List (checkmarks) === */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--foreground);
}

.feature-list li svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* === Grids === */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* === CTA Sections === */
.cta-section {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-foreground);
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.125rem;
    color: hsla(0, 0%, 100%, 0.8);
    margin-bottom: 2rem;
}

/* === Case Study Cards === */
.case-study-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.case-study-card:hover {
    border-color: hsla(185, 75%, 45%, 0.4);
    box-shadow: 0 20px 40px hsla(185, 75%, 45%, 0.1);
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .case-study-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.case-study-content {
    padding: 2rem;
}

@media (min-width: 768px) {
    .case-study-content {
        padding: 3rem;
    }
}

.case-study-results {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .case-study-results {
        padding: 3rem;
    }
}

.capability-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.capability-badge-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, hsla(185, 75%, 45%, 0.2), hsla(185, 80%, 55%, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
}

.capability-badge-icon svg {
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}

.capability-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.result-icon {
    width: 3rem;
    height: 3rem;
    background: hsla(185, 75%, 45%, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid hsla(185, 75%, 45%, 0.3);
    flex-shrink: 0;
}

.result-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent);
}

.result-metric {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.result-label {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.8);
}

/* === Contact Form === */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-input,
.form-textarea {
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--foreground);
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px hsla(185, 75%, 45%, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted-foreground);
    opacity: 0.7;
}

.form-textarea {
    resize: none;
    min-height: 8rem;
}

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

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Contact Info */
.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-foreground);
}

.contact-title {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.contact-text {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
}

.contact-text a {
    transition: color 0.2s;
}

.contact-text a:hover {
    color: var(--accent);
}

/* Success state */
.success-box {
    background: hsla(185, 75%, 45%, 0.15);
    border: 1px solid hsla(185, 75%, 45%, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.success-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-glow));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px hsla(185, 75%, 45%, 0.3);
}

.success-icon-wrapper svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent-foreground);
}

/* FAQ Preview */
.faq-card {
    margin-top: 3rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--muted), hsla(210, 20%, 95%, 0.5));
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.faq-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.faq-item + .faq-item {
    margin-top: 1rem;
}

.faq-question {
    font-weight: 500;
    color: var(--foreground);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.faq-answer {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* === Privacy Policy === */
.privacy-hero {
    position: relative;
    padding: 5rem 0 7rem;
    overflow: hidden;
}

.privacy-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, hsla(185, 75%, 45%, 0.05), transparent);
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: hsla(185, 75%, 45%, 0.1);
    border: 1px solid hsla(185, 75%, 45%, 0.2);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
}

.privacy-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
}

.privacy-date {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* Opt-out card */
.opt-out-card {
    background: hsla(185, 75%, 45%, 0.05);
    border: 1px solid hsla(185, 75%, 45%, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.opt-out-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.opt-out-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
}

.opt-out-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.opt-out-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.opt-out-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--background);
    border: 1px solid var(--border);
}

.opt-out-toggle-label {
    font-weight: 500;
}

.opt-out-toggle-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

.opt-out-confirm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #16a34a;
    margin-top: 1rem;
}

/* Privacy content prose */
.privacy-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 2.5rem 0 1rem;
}

.privacy-content p {
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.privacy-content a {
    color: var(--primary);
    transition: color 0.2s;
}

.privacy-content a:hover {
    text-decoration: underline;
}

.privacy-content strong {
    color: var(--foreground);
}

/* Info cards for privacy */
.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.info-card-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary);
}

.info-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--foreground);
}

.info-card-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* === Toggle Switch === */
.toggle-switch {
    position: relative;
    width: 2.75rem;
    height: 1.5rem;
    background: var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
    flex-shrink: 0;
}

.toggle-switch.active {
    background: var(--accent);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active::after {
    transform: translateX(1.25rem);
}

/* === Founder Card === */
.founder-card {
    max-width: 56rem;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-elevated);
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.founder-photo {
    flex-shrink: 0;
    position: relative;
}

.founder-photo::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    z-index: 0;
    opacity: 0.6;
}

.founder-photo img {
    position: relative;
    z-index: 1;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card);
    display: block;
}

.founder-info {
    text-align: left;
    flex: 1;
    min-width: 0;
}

@media (max-width: 640px) {
    .founder-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .founder-photo img {
        width: 120px;
        height: 120px;
    }

    .founder-info {
        text-align: center;
    }

    .founder-info > div:last-child {
        justify-content: center;
    }
}

/* === Patent List === */
.patent-list {
    background: linear-gradient(135deg, hsla(185, 75%, 45%, 0.06), hsla(215, 70%, 23%, 0.04));
    border: 1px solid hsla(185, 75%, 45%, 0.15);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.5rem;
}

.patent-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.patent-list li {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 1.25rem;
    position: relative;
}

.patent-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* === Customer Card === */
.customer-card {
    text-align: left;
}

.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

@media (max-width: 640px) {
    .customer-details {
        grid-template-columns: 1fr;
    }
}

.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

/* === Customer Impact === */
.customer-outcomes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

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

.customer-impact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, hsla(185, 75%, 45%, 0.08), hsla(215, 70%, 23%, 0.06));
    border: 1px solid hsla(185, 75%, 45%, 0.2);
    border-radius: var(--radius);
}

.impact-metric {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 5rem;
    color: var(--accent);
}

.impact-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.impact-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* === Footer === */
.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--primary-foreground);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-brand p {
    color: hsla(0, 0%, 100%, 0.7);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: hsla(185, 75%, 45%, 0.2);
    border: 1px solid hsla(185, 75%, 45%, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary-foreground);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--accent-foreground);
    transform: scale(1.05);
}

.footer-column h4,
.footer-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.7);
    transition: color 0.2s;
}

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

.footer-cta-text {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.7);
    margin-bottom: 1rem;
}

.footer-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--accent-foreground);
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 14px hsla(185, 75%, 45%, 0.3);
}

.footer-cta-btn:hover {
    background: var(--accent-glow);
    transform: scale(1.05);
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid hsla(185, 75%, 45%, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.75);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.75);
    transition: color 0.2s;
}

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

/* === Legal Pages (Privacy, Terms) === */
.legal-content {
    max-width: 48rem;
    margin: 0 auto;
}

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

.legal-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.legal-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-section li {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    padding-left: 1.25rem;
    position: relative;
}

.legal-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

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

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

/* === 404 Page === */
.not-found {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--muted);
    text-align: center;
}

.not-found h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.not-found p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.not-found a {
    color: var(--primary);
    text-decoration: underline;
}

.not-found a:hover {
    opacity: 0.9;
}

/* === Utility: space-y === */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-16 > * + * { margin-top: 4rem; }

/* === Two-column layout for contact === */
.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

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

/* CTA centered button */
.text-center {
    text-align: center;
}

/* === Animations === */
.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-fade-in-delay-1 {
    animation: fadeInUp 0.5s ease 0.1s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.5s ease 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 0.5s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-4 {
    animation: fadeInUp 0.5s ease 0.4s forwards;
    opacity: 0;
}

.stagger-children > *:nth-child(1) { animation: fadeInUp 0.5s ease 0.1s forwards; opacity: 0; }
.stagger-children > *:nth-child(2) { animation: fadeInUp 0.5s ease 0.2s forwards; opacity: 0; }
.stagger-children > *:nth-child(3) { animation: fadeInUp 0.5s ease 0.3s forwards; opacity: 0; }
.stagger-children > *:nth-child(4) { animation: fadeInUp 0.5s ease 0.4s forwards; opacity: 0; }

/* Blazor validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 0.8rem;
}

/* Blazor error boundary */
.blazor-error-boundary {
    background: var(--destructive);
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Hide all Blazor circuit-error / reconnect UI — this is a mostly-static
   marketing site; a lost WebSocket is not worth alarming visitors about. */
#blazor-error-ui,
#components-reconnect-modal,
#components-reconnect-modal *,
div[data-blazor-reconnect],
.components-reconnect-hide,
.components-reconnect-show,
.components-reconnect-failed,
.components-reconnect-rejected {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* ============================================
   Accessibility (ADA / WCAG 2.1 AA)
   ============================================ */

/* --- Skip to content link --- */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0 0 var(--radius) 0;
    text-decoration: underline;
}

.skip-to-content:focus {
    position: fixed;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* --- Focus styles for all interactive elements --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Ensure cards with focus-within show outline */
.card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- Improved color contrast for muted text --- */
/* Original: hsl(215, 40%, 45%) → boosted to pass 4.5:1 on white */
:root {
    --muted-foreground: hsl(215, 40%, 38%);
}

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

    html {
        scroll-behavior: auto;
    }

    .stagger-children > * {
        opacity: 1 !important;
        animation: none !important;
    }

    .hero-geom {
        animation: none !important;
    }
}
