/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font Loading - Ensure Neue Haas Grotesk Display Pro fallbacks work */
@font-face {
    font-family: 'NHaasGroteskDSPro-55Rg';
    src: local('NHaasGroteskDSPro-55Rg'),
         local('Neue Haas Grotesk Display Pro'),
         local('Helvetica Neue'),
         local('HelveticaNeue'),
         local('Helvetica'),
         local('Arial');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue Haas Grotesk Display Pro';
    src: local('NHaasGroteskDSPro-55Rg'),
         local('Neue Haas Grotesk Display Pro'),
         local('Helvetica Neue'),
         local('HelveticaNeue'),
         local('Helvetica'),
         local('Arial');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Ensure Inter-Light font is available for SVGs */
@font-face {
    font-family: 'Inter-Light';
    src: local('Inter-Light'),
         local('Inter Light'),
         local('Inter'),
         local('Helvetica Neue'),
         local('Arial');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: local('Inter'),
         local('Inter Regular'),
         local('Helvetica Neue'),
         local('Arial');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Color Palette - Modern Clean Design */
    --primary-coral: #FF7A7A;
    --primary-blue: #74C7EC;
    --light-coral: #FFB3B3;
    --text-primary: #2c3e50;
    --text-secondary: #718096;
    --text-light: #a0aec0;
    --background-white: #ffffff;
    --background-light: #f8fafc;
    --border-light: #e2e8f0;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-brand: 'Neue Haas Grotesk Display Pro', 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;

    /* Spacing */
    --header-height: 80px;
    --section-padding: 2rem;
    --border-radius: 12px;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.navbar {
    height: var(--header-height);
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 0.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0.5rem;
}

.brand-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.brand-svg {
    height: 40px;
    width: auto;
    /* Ensure SVG text uses fallback fonts if original isn't available */
    font-family: 'Neue Haas Grotesk Display Pro', 'NHaasGroteskDSPro-55Rg', 'Helvetica Neue', 'Arial', sans-serif;
}

/* Right side wrapper for navigation and user menu */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 0.5rem;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0;
}

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

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

/* Individual Navigation Tab Styling */

/* About Navigation */
.nav-about {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-height: 20px;
    padding: 0;
    margin: 0;
}

.nav-about img {
    height: 14px;
    width: auto;
    transition: opacity 0.2s ease;
    display: block;
    opacity: 1;
}

.nav-about:hover img {
    opacity: 0.8;
}

/* Documentation Navigation */
.nav-documentation {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-height: 20px;
    padding: 0;
    margin: 0;
}

.nav-documentation img {
    height: 14px;
    width: auto;
    transition: opacity 0.2s ease;
    display: block;
    opacity: 1;
}

.nav-documentation:hover img {
    opacity: 0.8;
}

/* Active Navigation States */
.nav-about.active,
.nav-documentation.active,
.nav-services.active,
.nav-partner.active {
    position: relative;
}

.nav-about.active::after,
.nav-documentation.active::after,
.nav-services.active::after,
.nav-partner.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-coral);
    border-radius: 1px;
}

/* Playground Navigation */
.nav-playground {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-height: 20px;
    padding: 0;
    margin: 0;
}

.nav-playground img,
#playground-nav-img {
    height: 14px;
    width: auto;
    transition: opacity 0.2s ease;
    display: block;
    opacity: 1;
    visibility: visible;
}

.nav-playground:hover img,
.nav-playground:hover #playground-nav-img {
    opacity: 0.8;
}

/* Extra specific targeting for playground image */
img[src*="playground--18.svg"],
img[alt="Playground"],
a[href="#playground"] img {
    height: 14px !important;
    width: auto !important;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Force cache refresh for playground navigation */
#playground-nav-img {
    content: url("public/playground--18.svg?force=1") !important;
    height: 14px !important;
    width: auto !important;
    display: block !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Services Navigation */
.nav-services {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-height: 20px;
    padding: 0;
    margin: 0;
}

.nav-services img {
    height: 14px;
    width: auto;
    transition: opacity 0.2s ease;
    display: block;
    opacity: 1;
}

.nav-services:hover img {
    opacity: 0.8;
}

/* Partner Navigation */
.nav-partner {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-height: 20px;
    padding: 0;
    margin: 0;
}

.nav-partner img {
    height: 14px;
    width: auto;
    transition: opacity 0.2s ease;
    display: block;
    opacity: 1;
}

.nav-partner:hover img {
    opacity: 0.8;
}

.contact-btn {
    background: var(--primary-coral);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.contact-btn:hover {
    background: #ff6b6b;
    transform: translateY(-1px);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
}

.user-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.user-btn:hover {
    background: var(--background-light);
    color: var(--text-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Main Content */
.main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #FFFFFF;
}

.hero-container {
    max-width: 100%;
    margin: 0;
    padding: 0 1rem 0 5rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-title {
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: 100;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 540px;
}

.learn-more-btn {
    background: var(--primary-coral);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.learn-more-btn:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-artwork {
    width: 230%;
    height: 230%;
    object-fit: contain;
    object-position: center;
    max-width: 1200px;
}

/* Value Propositions Section */
.value-props {
    padding: 4rem 2rem;
    background: var(--background-light);
}

.value-props-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.value-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.value-card-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-coral);
    margin-bottom: 1rem;
}

.value-card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem;
    background: var(--primary-blue);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-btn {
    background: white;
    color: var(--primary-blue);
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Page Hero Section (for subpages) */
.page-hero {
    padding: 4rem 2rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-coral) 100%);
    color: white;
    text-align: center;
}

.page-hero-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    opacity: 0.95;
}

/* Content Sections */
.content-section {
    padding: 4rem 2rem;
}

.content-section.alt-bg {
    background: var(--background-light);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.section-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.section-text.large {
    font-size: 1.2rem;
    line-height: 1.9;
}

.section-text.emphasis {
    font-weight: 600;
    color: var(--primary-coral);
    font-size: 1.3rem;
}

.subsection-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-coral);
    font-weight: bold;
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Layer Grid for About Page */
.layer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.layer-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-coral);
}

.layer-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.layer-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Architecture Section */
.architecture-section {
    margin-bottom: 3rem;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.calendar-item {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-item strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.calendar-item span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Documentation Specific Styles */
.docs-nav-section {
    padding: 3rem 2rem;
    background: white;
}

.docs-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.docs-nav-card {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.docs-nav-card:hover {
    border-color: var(--primary-coral);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.docs-nav-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.docs-nav-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.code-block {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    color: #d4d4d4;
}

.architecture-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.doc-card {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border-top: 3px solid var(--primary-blue);
}

.doc-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.doc-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.calendar-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.calendar-doc-card {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-coral);
}

.calendar-doc-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.calendar-domain {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(116, 199, 236, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.calendar-doc-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.endpoint-card {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-blue);
}

.endpoint-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.http-method {
    background: var(--primary-coral);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.endpoint-card code {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--text-primary);
}

.endpoint-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.integration-card {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

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

.integration-card h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.integration-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.use-case-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case-card {
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--primary-blue);
}

.use-case-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.use-case-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Services Page Specific Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-tier-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border-top: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
    position: relative;
}

.service-tier-card.featured {
    border-top-color: var(--primary-coral);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: scale(1.02);
}

.service-tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.tier-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tier-badge.featured {
    background: var(--primary-coral);
}

.tier-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tier-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.tier-features-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.tier-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.tier-features li {
    padding: 0.6rem 0 0.6rem 1.75rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.tier-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-coral);
    font-weight: bold;
    font-size: 1.1rem;
}

.tier-cta-btn {
    width: 100%;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1.5rem;
}

.tier-cta-btn.featured {
    background: var(--primary-coral);
}

.tier-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.use-case-item {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary-coral);
}

.use-case-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.use-case-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Application Scale Section */
.application-scale {
    margin-top: 2.5rem;
}

.scale-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

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

.scale-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-coral);
    margin-bottom: 0.5rem;
}

.scale-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.scale-section .use-cases-grid {
    margin-top: 0;
}

/* Service Categories Section */
.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-category-card {
    padding: 2.5rem;
    background: var(--background-light);
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.category-icon {
    color: var(--primary-coral);
    margin-bottom: 1.5rem;
}

.service-category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-category-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-coral);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

/* API Hierarchy Section */
.api-hierarchy {
    margin-top: 2.5rem;
}

.api-tier {
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.api-tier-primary {
    background: linear-gradient(135deg, rgba(255, 122, 122, 0.1) 0%, rgba(255, 122, 122, 0.05) 100%);
    border: 2px solid var(--primary-coral);
}

.api-tier-secondary {
    background: var(--background-light);
    border: 1px solid var(--border-light);
}

.tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tier-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: var(--primary-coral);
    color: white;
}

.api-tier-secondary .tier-badge {
    background: var(--text-secondary);
}

.tier-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.api-tier p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.endpoint-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.endpoint-preview code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.api-tier-connector {
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
}

.api-tier-connector::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-coral), var(--border-light));
    transform: translateX(-50%);
}

.api-tier-connector span {
    position: relative;
    background: white;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.api-tier-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Output Categories Grid */
.output-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.output-card {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 12px;
    border-left: 3px solid var(--primary-coral);
}

.output-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.output-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Source Cards */
.source-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.source-card {
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.source-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: var(--primary-coral);
    color: white;
    margin-bottom: 1rem;
}

.source-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.source-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Intelligence Sections */
.intelligence-header {
    margin-bottom: 2.5rem;
}

.intelligence-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.intelligence-badge.macro {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.intelligence-badge.micro {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
}

.intelligence-badge.coordinate {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

.intelligence-badge.bms {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
}

/* Output Grid Compact - for Vortex/SIPS outputs */
.output-heading {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    margin-top: 0;
}

.output-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.output-item {
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border-left: 3px solid var(--primary-coral);
}

.alt-bg .output-item {
    background: var(--background-light);
}

.output-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.output-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Signal Outputs */
.signal-outputs {
    margin-top: 1.5rem;
}

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

.signal-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    background: white;
    color: var(--text-primary);
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.alt-bg .signal-tag {
    background: var(--background-light);
}

.intelligence-outputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.output-block {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.alt-bg .output-block {
    background: var(--background-light);
}

.output-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 10px;
    color: var(--primary-coral);
}

.alt-bg .output-icon {
    background: white;
}

.output-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.output-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.elements-showcase {
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.alt-bg .elements-showcase {
    background: var(--background-light);
}

.elements-showcase h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.element-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    background: var(--background-light);
    color: var(--text-primary);
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

.alt-bg .element-tag {
    background: white;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.spec-card {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.spec-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.spec-list {
    list-style: none;
    padding-left: 0;
}

.spec-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.spec-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Lumina I/O Widget */
.lumina-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 300px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border: 1px solid var(--border-light);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--background-light);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.widget-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.widget-minimize {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.widget-minimize:hover {
    background: var(--background-white);
}

.widget-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-messages {
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 4px;
}

.widget-messages::-webkit-scrollbar {
    width: 4px;
}

.widget-messages::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 2px;
}

.widget-messages::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.widget-welcome {
    background: var(--background-light);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.widget-welcome p {
    margin: 0;
}

.widget-message {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 90%;
    word-wrap: break-word;
}

.widget-message h4, .widget-message h5 {
    margin: 8px 0 4px 0;
    font-size: 13px;
}

.widget-message li {
    margin-left: 16px;
}

.widget-message-user {
    background: var(--primary-coral);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.widget-message-ai {
    background: var(--background-light);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.widget-typing {
    display: flex;
    gap: 4px;
    padding: 12px;
    align-self: flex-start;
}

.widget-typing span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: widgetTyping 1.4s infinite ease-in-out;
}

.widget-typing span:nth-child(1) { animation-delay: 0s; }
.widget-typing span:nth-child(2) { animation-delay: 0.2s; }
.widget-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes widgetTyping {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.widget-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.widget-input {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.widget-input:focus {
    border-color: var(--primary-coral);
}

.widget-send-btn {
    background: var(--primary-coral);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.widget-send-btn:hover {
    background: #ff6b6b;
}

/* About Page Specific Styles */
.about-hero {
    background: #FFFFFF;
    padding: 6rem 0;
}

.about-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

.about-hero-visual {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.about-artwork {
    max-width: 600px;
    width: 100%;
    height: auto;
}

.about-hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 2rem;
}

.about-hero-who-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.about-hero-who-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 500px;
}

.about-section {
    padding: 5rem 0;
}

.about-section.alt-bg {
    background: var(--background-light);
}

.about-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.about-section-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* About Intro Grid */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro-visual {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-artwork {
    width: 100%;
    height: auto;
    display: block;
}

.about-intro-content {
    padding: 1rem 0;
}

.about-intro-content .section-title {
    margin-bottom: 1.5rem;
}

.about-intro-content .section-text {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-intro-visual {
        order: -1;
    }
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-member {
    text-align: center;
}

.team-photo-wrapper {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-coral), var(--primary-blue));
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.team-photo-wrapper img {
    border-radius: 50%;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: transparent;
    font-size: 0;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-role {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-designation {
    font-size: 0.9rem;
    color: var(--primary-coral);
    font-weight: 400;
    font-style: italic;
}

/* Calendars Section */
.calendars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.calendar-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
    text-align: center;
}

.calendar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.calendar-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    color: var(--primary-coral);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.calendar-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-soft);
    }

    .nav-menu.active {
        display: flex;
    }

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

    .user-menu {
        order: -1;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-visual {
        height: 600px;
        order: -1;
    }

    .homepage-artwork {
        max-width: 100%;
        height: auto;
    }

    .lumina-widget {
        width: calc(100% - 2rem);
        margin: 0 1rem;
        right: 0;
        left: 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .about-artwork {
        max-width: 100%;
    }

    .about-hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }

    .about-hero-title {
        text-align: center;
    }

    .about-hero-left {
        align-items: center;
    }

    .about-hero-visual {
        justify-content: center;
    }

    .about-hero-right {
        padding-right: 0;
        text-align: center;
    }

    .about-hero-who-text {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .lumina-widget {
        bottom: 1rem;
        width: calc(100% - 1rem);
    }
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Focus states */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-coral);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--light-coral);
    color: white;
}

/* Documentation Tables */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.docs-table th,
.docs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.docs-table th {
    background: var(--background-light);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.docs-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.docs-table td code {
    background: var(--background-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--primary-coral);
}

.docs-table tbody tr:hover {
    background: var(--background-light);
}

.docs-table tbody tr:last-child td {
    border-bottom: none;
}

/* HTTP Method Badges */
.http-method.post {
    background: #10b981;
}

.http-method.get {
    background: #3b82f6;
}

/* Documentation Card Lists */
.doc-card ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.doc-card ul li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Ordered list styling for documentation */
ol.feature-list {
    padding-left: 1.5rem;
}

ol.feature-list li {
    margin-bottom: 0.75rem;
}

/* ========================================
   SERVICES PAGE - BMS SIGNAL STYLES
   ======================================== */

/* Signal Cards Grid */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.signal-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.signal-card:hover {
    border-color: var(--primary-coral);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.signal-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.signal-badge {
    background: var(--primary-coral);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.signal-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Signal Calculation Display */
.signal-calculation {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    text-align: center;
}

.calculation-formula {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Space Grotesk', monospace;
}

.calculation-formula strong {
    color: var(--primary-coral);
    font-size: 1.4rem;
}

/* Architecture Grid */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.architecture-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
}

.architecture-card:hover {
    border-color: var(--primary-coral);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.arch-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    border-radius: 50%;
    color: var(--primary-coral);
}

.architecture-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.arch-endpoint {
    display: inline-block;
    background: var(--background-light);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Pipeline Steps */
.pipeline-steps {
    margin-top: 2rem;
}

.pipeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.pipeline-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-coral);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Endpoint Grid */
.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.endpoint-card-large {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.endpoint-card-large:hover {
    border-color: var(--primary-coral);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.endpoint-card-large .endpoint-header code {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.endpoint-card-large p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.endpoint-params span {
    background: var(--background-light);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Space Grotesk', monospace;
    color: var(--text-secondary);
}

/* Platform Highlights Grid */
.platform-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.2s ease;
}

.highlight-card:hover {
    border-color: var(--primary-coral);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f3 0%, #ffeee9 100%);
    border-radius: 50%;
    color: var(--primary-coral);
}

.highlight-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* Archetypes Grid */
.archetypes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.archetype-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.archetype-item:hover {
    border-color: var(--primary-coral);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.archetype-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-coral);
}

.archetype-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Performance Metrics */
.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    text-align: center;
}

.metric-item {
    padding: 1.5rem;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-coral);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

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

/* Temporal OS Platform Section */
.temporal-os-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}

.temporal-os-container {
    max-width: 1200px;
    margin: 0 auto;
}

.temporal-os-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.temporal-os-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.temporal-os-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.temporal-os-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.temporal-os-card:hover {
    border-color: var(--primary-coral);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(255, 122, 122, 0.15);
}

.temporal-os-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-coral);
}

.temporal-os-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.temporal-os-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.metric-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-coral);
    line-height: 1.2;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nine Calendar Systems Section */
.calendars-section {
    padding: 5rem 2rem;
    background: white;
}

.calendars-container {
    max-width: 1200px;
    margin: 0 auto;
}

.calendars-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.calendars-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calendars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.calendar-card {
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.calendar-card:hover {
    border-color: var(--primary-coral);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 122, 122, 0.12);
}

.calendar-card .calendar-domain {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-coral);
    background: rgba(255, 122, 122, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.calendar-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Homepage Features Section */
.features-section {
    padding: 4rem 2rem;
    background: var(--background-light);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.2s ease;
}

.feature-item:hover {
    border-color: var(--primary-coral);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-item h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .signals-grid {
        grid-template-columns: 1fr;
    }

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

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

    .pipeline-step {
        flex-direction: column;
        gap: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }
}

/* ========================================
   CONTACT MODAL STYLES
   ======================================== */

.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.contact-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.contact-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.contact-modal-overlay.active .contact-modal-content {
    transform: translateY(0);
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.contact-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--background-light);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.contact-modal-close:hover {
    background: var(--primary-coral);
    color: white;
}

.contact-modal-body {
    padding: 2rem;
}

.contact-form-group {
    margin-bottom: 1.5rem;
}

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

.contact-form-group input,
.contact-form-group textarea,
.contact-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

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

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

.contact-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.contact-btn-cancel {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-btn-cancel:hover {
    background: var(--background-light);
}

.contact-btn-submit {
    padding: 0.75rem 1.5rem;
    background: var(--primary-coral);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-btn-submit:hover {
    background: #e55a5a;
}

.contact-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .contact-modal-content {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    .contact-modal-header {
        padding: 1rem 1.5rem;
    }

    .contact-modal-body {
        padding: 1.5rem;
    }

    .contact-form-actions {
        flex-direction: column;
    }

    .contact-form-actions button {
        width: 100%;
    }
}