/* ================================================
   LunaMare AI — Corporate Website
   Design: Based on TheFastyle dark premium theme
   ================================================ */

:root {
    --bg: #09090b;
    --bg-elevated: #131316;
    --bg-card: #18181b;
    --border: rgba(255, 255, 255, 0.06);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --accent: #e4e4e7;
    --accent-gradient: linear-gradient(135deg, #f5f5f5 0%, #a1a1aa 50%, #f5f5f5 100%);
    --glow-color: rgba(255, 255, 255, 0.03);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --max-width: 1200px;
    --section-padding: clamp(80px, 12vw, 160px);
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

img {
    max-width: 100%;
    display: block;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

a img, .nav-logo-img, .footer-logo-img {
    pointer-events: auto;
}

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

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}

.nav-scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

.nav-cta {
    background: var(--text-primary) !important;
    color: var(--bg) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: opacity 0.2s ease !important;
}

.nav-cta:hover {
    opacity: 0.85;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Language Selector ---- */
.nav-lang {
    position: relative;
    margin-left: 8px;
}

.nav-lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 12px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-lang-toggle:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.18);
}

.nav-lang-chevron {
    transition: transform 0.2s ease;
}

.nav-lang.open .nav-lang-chevron {
    transform: rotate(180deg);
}

.nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(19, 19, 22, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s var(--transition), visibility 0.2s;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 1100;
}

.nav-lang.open .nav-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-lang-item {
    display: block;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-lang-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-lang-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--text-primary);
    color: var(--bg);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: opacity 0.2s ease, transform 0.2s var(--transition);
}

.btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-top: 24px;
}

.btn-outline-sm:hover {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-sm svg {
    pointer-events: none;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    text-align: center;
    overflow: hidden;
}

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

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center top, rgba(9, 9, 11, 0.3) 0%, rgba(9, 9, 11, 0.7) 60%, var(--bg) 100%),
        linear-gradient(180deg, transparent 40%, var(--bg) 100%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 8vw, 88px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title-accent {
    background: var(--accent-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

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

/* hero-visual removed — hero now uses full-bleed background */

/* ---- Stats ---- */
.stats {
    padding: 60px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

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

/* ---- Section Commons ---- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 80px;
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.text-accent {
    font-style: italic;
    background: var(--accent-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Features / Solution Pillars ---- */
.features {
    padding: var(--section-padding) 24px;
}

.feature-row {
    max-width: var(--max-width);
    margin: 0 auto 120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row-reverse {
    direction: rtl;
}

.feature-row-reverse > * {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.feature-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

.feature-visual {
    position: relative;
}

.feature-image-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s var(--transition);
}

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

.feature-image {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 4;
    object-fit: cover;
}

/* ---- Solutions Gallery Carousel ---- */
.solutions-gallery {
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.solutions-gallery .section-header {
    padding: 0 24px;
}

.solutions-carousel {
    overflow: hidden;
    position: relative;
    padding: 16px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.solutions-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
}

.solutions-track-1 {
    animation: solutionsScroll 45s linear infinite;
}

.solutions-carousel:hover .solutions-track {
    animation-play-state: paused;
}

@keyframes solutionsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.solution-card {
    flex-shrink: 0;
    width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s var(--transition), box-shadow 0.3s ease;
    cursor: default;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
}

.solution-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.solution-card-content {
    padding: 20px;
}

.solution-card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.solution-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- Demo Showcase ---- */
.demo-showcase {
    padding: 80px 0 var(--section-padding);
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.demo-showcase .section-header {
    padding: 0 24px;
}

.demo-carousel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    padding: 16px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.demo-track {
    display: flex;
    gap: 12px;
    width: max-content;
    will-change: transform;
}

.demo-track-1 {
    animation: demoScrollLeft 60s linear infinite;
}

.demo-track-2 {
    animation: demoScrollRight 55s linear infinite;
}

.demo-carousel:hover .demo-track {
    animation-play-state: paused;
}

@keyframes demoScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes demoScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.demo-thumb {
    flex-shrink: 0;
    width: 220px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s var(--transition), box-shadow 0.3s ease;
    cursor: default;
}

.demo-thumb:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.5);
}

.demo-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.demo-thumb:hover img {
    transform: scale(1.06);
}

.demo-thumb span {
    display: none;
}

.demo-thumb-text {
    padding: 10px 14px;
    background: var(--bg-card);
}

.demo-thumb-text h5 {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.demo-thumb-text p {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* ---- Product Showcase ---- */
.product-showcase {
    padding: var(--section-padding) 24px;
    border-top: 1px solid var(--border);
}

.product-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: transform 0.4s var(--transition);
}

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

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.product-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #22c55e;
    padding: 4px 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 6px;
}

.product-platform {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card-body {
    margin-bottom: 32px;
}

.product-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.product-card-body h4 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
}

.product-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.product-card-stats div {
    text-align: center;
}

.product-card-stats strong {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.product-card-stats span {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- Approach ---- */
.approach {
    padding: var(--section-padding) 24px;
    border-top: 1px solid var(--border);
}

.approach-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.approach-card {
    padding: 40px 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.3s var(--transition), border-color 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
}

.approach-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.approach-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.approach-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Technology Trust Bar */
.tech-trust {
    max-width: var(--max-width);
    margin: 60px auto 0;
    text-align: center;
}

.tech-trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-badge {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

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

/* ---- About Section ---- */
.about-section {
    position: relative;
    padding: var(--section-padding) 24px;
    overflow: hidden;
}

.about-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.about-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}

.about-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
}

.about-desc em {
    color: var(--text-primary);
    font-style: italic;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.about-value {
    padding: 28px 24px;
    background: rgba(19, 19, 22, 0.8);
    border: 1px solid var(--border);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.about-value strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.about-value p {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

.about-principles {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.principle-tag {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.principle-tag:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* ---- Enterprise / Contact ---- */
.enterprise {
    padding: var(--section-padding) 24px;
    border-top: 1px solid var(--border);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--text-primary);
}

.contact-link svg {
    flex-shrink: 0;
    pointer-events: none;
}

.btn-enterprise {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-enterprise:hover {
    background: var(--bg-card);
    border-color: rgba(255, 255, 255, 0.2);
}

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

/* Demo Form Toggle */
.demo-form-trigger {
    text-align: center;
}

.btn-demo-toggle {
    letter-spacing: 0.02em;
}

/* Demo Form Collapse/Expand */
.demo-form-section {
    max-width: 720px;
    margin: 32px auto 0;
    padding: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease, padding 0.4s ease;
}

.demo-form-collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-color: transparent;
    border-width: 0;
}

.demo-form-header {
    text-align: center;
    margin-bottom: 36px;
}

.demo-form-title {
    font-family: var(--font-serif);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 8px;
}

.demo-form-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.demo-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.demo-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.demo-field label .required {
    color: #ef4444;
}

.demo-field input,
.demo-field select,
.demo-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-field input::placeholder,
.demo-field textarea::placeholder {
    color: var(--text-tertiary);
}

.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.demo-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.demo-field select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.demo-field-full {
    margin-bottom: 24px;
}

.demo-field textarea {
    resize: vertical;
    min-height: 80px;
}

.demo-form-footer {
    display: flex;
    align-items: center;
    gap: 20px;
}

.demo-form-footer .btn-enterprise {
    flex-shrink: 0;
}

.demo-form-privacy {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.demo-form-privacy a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.1);
    text-underline-offset: 2px;
}

.demo-form-status {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 22px;
}

.demo-form-status.success {
    color: #22c55e;
}

.demo-form-status.error {
    color: #ef4444;
}

.demo-field.field-error input,
.demo-field.field-error select,
.demo-field.field-error textarea {
    border-color: #ef4444;
}

/* ---- CTA ---- */
.cta {
    position: relative;
    padding: var(--section-padding) 24px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 24px 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-socials a:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

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

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.3s var(--transition), opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-links.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

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

    .nav-cta {
        text-align: center;
        width: 100%;
        display: block !important;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hide-mobile {
        display: none;
    }

    .stats-inner {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        flex: 0 0 40%;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
    }

    .feature-row-reverse {
        direction: ltr;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .tech-trust-inner {
        flex-direction: column;
        gap: 12px;
    }

    .trust-divider-h {
        width: 40px;
        height: 1px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .demo-form-section {
        margin-left: 16px;
        margin-right: 16px;
        padding: 32px 24px;
    }

    .demo-form-grid {
        grid-template-columns: 1fr;
    }

    .demo-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .demo-form-privacy {
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .stat-label {
        font-size: 16px;
    }

    .solution-card {
        width: 260px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .about-principles {
        gap: 8px;
    }

    .principle-tag {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* ---- Legal Page Specifics ---- */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.legal-page h1 {
    font-size: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.legal-page h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.legal-page p, .legal-page li {
    font-size: 17px;
    line-height: 1.5;
    color: #d2d2d7;
    margin-bottom: 16px;
}

.legal-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #424245;
}

.legal-page th, .legal-page td {
    border: 1px solid #424245;
    padding: 12px;
    text-align: left;
}

.legal-page th {
    background-color: #2d2d2f;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}
