/* ==========================================================================
   BAIG INNOVATIONS - REDESIGNED LAYOUT
   Professional, confident health tech startup design
   ========================================================================== */

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Primary Colors */
    --primary-purple: #8B7FA8;
    --purple-dark: #6B5F88;
    --purple-text: #6B5F88; /* Accessible purple for text on white (4.87:1 contrast) */
    --purple-light: #A89BC2;
    --purple-subtle: rgba(139, 127, 168, 0.08);
    --purple-glow: rgba(139, 127, 168, 0.2);

    /* Neutral Palette - Rich Slate */
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0F172A;
    --white: #FFFFFF;

    /* Typography */
    --font-headline: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Font Sizes - Fluid */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.75rem;
    --text-5xl: 3.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
    --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.12);
    --shadow-glow: 0 0 60px rgba(139, 127, 168, 0.2);
    --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.08);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;

    /* Layout */
    --max-width: 1200px;
    --header-height: 72px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.65;
    color: var(--slate-600);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--primary-purple);
    color: var(--white);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-headline);
    font-weight: 600;
    color: var(--slate-800);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: var(--text-lg);
    color: var(--slate-700);
    font-weight: 450;
}

a {
    color: var(--purple-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--purple-dark);
    text-decoration-thickness: 2px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

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

section {
    padding: var(--space-12) 0;
    position: relative;
}

/* Section Eyebrow */
.section-eyebrow {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--purple-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.section-header {
    margin-bottom: var(--space-10);
}

.section-header h2 {
    max-width: 600px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn var(--duration-slow) var(--ease-out) forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

/* Stagger delays */
.fade-in-up:nth-child(1) { transition-delay: 0ms; }
.fade-in-up:nth-child(2) { transition-delay: 100ms; }
.fade-in-up:nth-child(3) { transition-delay: 200ms; }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
}

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

.logo {
    text-decoration: none !important;
}

.logo-text {
    font-family: var(--font-headline);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--slate-800);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--primary-purple);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-8);
}

.nav-links a {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--slate-600);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width var(--duration-base) var(--ease-out);
}

.nav-links a:hover {
    color: var(--slate-800);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    position: relative;
    transition: background var(--duration-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--slate-700);
    transition: transform var(--duration-base) var(--ease-out);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ==========================================================================
   HERO SECTION - Two Column Layout
   ========================================================================== */

.hero-section {
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-12);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--purple-text);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--space-6);
}

.hero-section h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--slate-500);
    max-width: 480px;
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

/* Hero Visual - Gradient Orbs & Floating Cards */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-graphic {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Gradient Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    top: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 127, 168, 0.15) 0%, transparent 70%);
    bottom: 20%;
    right: 30%;
    animation: float 6s ease-in-out infinite;
    animation-delay: -2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(107, 95, 136, 0.12) 0%, transparent 70%);
    top: 40%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
    animation-delay: -4s;
}

/* Geometric Grid Lines */
.geometric-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    opacity: 0.15;
}

.grid-line {
    position: absolute;
    background: var(--primary-purple);
}

.grid-line-h {
    width: 100%;
    height: 1px;
}

.grid-line-h:nth-child(1) { top: 0; }
.grid-line-h:nth-child(2) { top: 50%; }
.grid-line-h:nth-child(3) { bottom: 0; }

.grid-line-v {
    width: 1px;
    height: 100%;
}

.grid-line-v:nth-child(4) { left: 0; }
.grid-line-v:nth-child(5) { left: 50%; }
.grid-line-v:nth-child(6) { right: 0; }

/* Floating Cards */
.floating-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-card);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--slate-700);
    animation: float 5s ease-in-out infinite;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--purple-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
}

.floating-card-1 {
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.floating-card-2 {
    top: 50%;
    left: 0;
    animation-delay: -1.5s;
}

.floating-card-3 {
    bottom: 15%;
    right: 15%;
    animation-delay: -3s;
}

/* ==========================================================================
   WHO WE ARE SECTION - Two Column with Visual
   ========================================================================== */

.who-we-are-section {
    background: var(--slate-100);
    padding: var(--space-12) 0;
    border-top: 1px solid var(--slate-200);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-content {
    max-width: 540px;
    justify-self: end;
}

.about-content h2 {
    line-height: 1.25;
    margin-bottom: var(--space-6);
}

.mission-content p {
    color: var(--slate-600);
}

.mission-content .lead {
    margin-bottom: var(--space-4);
}

/* About Visual - Connection Diagram */
.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    order: -1;
    overflow: hidden;
}

.about-graphic {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection-diagram {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    position: relative;
    z-index: 1;
}

.node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.node-icon {
    width: 64px;
    height: 64px;
    background: var(--white);
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-500);
    box-shadow: var(--shadow-md);
    transition: all var(--duration-base) var(--ease-out);
}

.node:hover .node-icon {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.node-icon-accent {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    border-color: var(--primary-purple);
    color: var(--white);
}

.node:hover .node-icon-accent {
    color: var(--white);
}

.node span {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--slate-600);
}

.connection-line {
    width: 60px;
    height: 2px;
    background: var(--slate-200);
    position: relative;
    overflow: hidden;
}

.connection-pulse {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, var(--primary-purple) 50%, transparent 100%);
    animation: pulse-move 2s ease-in-out infinite;
}

@keyframes pulse-move {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* About Orbs */
.about-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
}

.about-orb-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    top: 0;
    right: 20%;
    opacity: 0.5;
}

.about-orb-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(139, 127, 168, 0.15) 0%, transparent 70%);
    bottom: 10%;
    left: 10%;
    opacity: 0.5;
}

/* ==========================================================================
   TEAM SECTION - Horizontal Cards
   ========================================================================== */

.team-section {
    background: var(--white);
    padding: var(--space-12) 0;
}

.founders-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.founder-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.founder-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.founder-photo {
    position: relative;
}

.photo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.02em;
    box-shadow: 0 8px 24px rgba(139, 127, 168, 0.3);
}

.founder-accent {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    background: var(--purple-subtle);
    border-radius: var(--radius-md);
    z-index: -1;
}

.founder-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.founder-header {
    margin-bottom: var(--space-4);
}

.founder-header h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-1);
}

.founder-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--purple-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.founder-bio p {
    font-size: var(--text-base);
    color: var(--slate-600);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.founder-bio p:last-child {
    margin-bottom: 0;
}

.founder-personal {
    color: var(--slate-500);
    font-style: italic;
    padding-top: var(--space-3);
    border-top: 1px solid var(--slate-100);
}

.founder-contact {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--slate-100);
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--slate-50);
    color: var(--slate-500);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
}

.contact-link:hover {
    background: var(--purple-subtle);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

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

/* ==========================================================================
   PRODUCTS SECTION - With App Mockup
   ========================================================================== */

.products-section {
    background: var(--slate-100);
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--slate-200);
}

.products-section::before {
    display: none;
}

/* Product Card - Full Width Layout */
.product-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Product Content */
.product-content {
    text-align: center;
}

.product-header {
    margin-bottom: var(--space-6);
}

.product-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
}

.product-logo {
    margin-bottom: var(--space-2);
}

.penny-logo {
    font-family: var(--font-headline);
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--slate-800);
}

.penny-p {
    color: var(--primary-purple);
}

.product-tagline {
    font-size: var(--text-sm);
    color: var(--slate-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.product-body {
    margin-bottom: var(--space-6);
}

.product-description {
    font-size: var(--text-lg);
    color: var(--slate-600);
    margin-bottom: var(--space-6);
}

.product-features {
    list-style: none;
    display: grid;
    gap: var(--space-4);
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--slate-600);
    font-size: var(--text-base);
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple-subtle);
    border-radius: var(--radius-md);
    color: var(--primary-purple);
}

.product-footer {
    padding-top: var(--space-6);
    border-top: 1px solid var(--slate-100);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    text-decoration: none !important;
}

.btn-primary {
    background: var(--slate-800);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--slate-900);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary svg {
    opacity: 0.7;
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn-primary:hover svg {
    transform: translateX(2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-12);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    font-family: var(--font-headline);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--white);
}

.footer-logo .logo-accent {
    color: var(--primary-purple);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--slate-400);
    margin-top: var(--space-3);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: var(--space-8);
}

.footer-column h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-2);
}

.footer-column a {
    font-size: var(--text-sm);
    color: var(--slate-400);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-column a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: var(--space-10);
    font-size: var(--text-sm);
    color: var(--slate-500);
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .hero-visual {
        height: 360px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .about-content {
        justify-self: start;
    }

    .about-visual {
        min-height: 300px;
        order: 0;
    }

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

@media (max-width: 768px) {
    :root {
        --text-5xl: 2.5rem;
        --text-4xl: 2rem;
        --text-3xl: 1.5rem;
    }

    section {
        padding: var(--space-10) 0;
    }

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-4);
        gap: 0;
        border-bottom: 1px solid var(--slate-200);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-base) var(--ease-out);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        border-bottom: 1px solid var(--slate-100);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: var(--space-4) 0;
    }

    .nav-links a::after {
        display: none;
    }

    /* Hero */
    .hero-section {
        padding-top: calc(var(--header-height) + var(--space-8));
    }

    .hero-visual {
        height: 300px;
    }

    .floating-card {
        padding: var(--space-3);
        font-size: var(--text-sm);
    }

    .card-icon {
        width: 32px;
        height: 32px;
    }

    .floating-card-2 {
        left: 5%;
        top: 45%;
    }

    .floating-card-1 {
        top: 5%;
        right: 5%;
    }

    .floating-card-3 {
        bottom: 5%;
        right: 10%;
    }

    /* About */
    .connection-diagram {
        flex-direction: column;
        gap: var(--space-3);
    }

    .connection-line {
        width: 2px;
        height: 40px;
    }

    .node-icon {
        width: 56px;
        height: 56px;
    }

    /* Reduce about orbs on tablet */
    .about-orb-1 {
        width: 140px;
        height: 140px;
    }

    .about-orb-2 {
        width: 100px;
        height: 100px;
    }

    /* Team */
    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--space-6);
    }

    .founder-photo {
        display: flex;
        justify-content: center;
    }

    .photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .founder-accent {
        display: none;
    }

    .founder-personal {
        text-align: left;
    }

    .founder-bio p {
        text-align: left;
    }

    .founder-contact {
        justify-content: center;
    }

    /* Product */
    .product-card {
        padding: var(--space-6);
    }

    .product-features {
        text-align: left;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    section {
        padding: var(--space-12) 0;
    }

    .hero-visual {
        height: 280px;
    }

    /* Keep geometric grid prominent - same layout as desktop, just scaled */
    .geometric-grid {
        width: 180px;
        height: 180px;
    }

    /* Compact floating cards but keep desktop-like positioning around the grid */
    .floating-card {
        padding: var(--space-2);
        font-size: var(--text-xs);
        gap: var(--space-2);
        border-radius: var(--radius-md);
    }

    .floating-card .card-icon {
        width: 24px;
        height: 24px;
    }

    .floating-card .card-icon svg {
        width: 14px;
        height: 14px;
    }

    /* Same relative positions as desktop */
    .floating-card-1 {
        top: 10%;
        right: 2%;
    }

    .floating-card-2 {
        top: 45%;
        left: 2%;
    }

    .floating-card-3 {
        bottom: 10%;
        right: 12%;
    }

    .orb-1 {
        width: 160px;
        height: 160px;
        top: 5%;
        right: 5%;
    }

    .orb-2 {
        width: 100px;
        height: 100px;
    }

    .orb-3 {
        width: 80px;
        height: 80px;
    }

    /* Hide about orbs on small screens */
    .about-orb {
        display: none;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .product-features li {
        font-size: var(--text-sm);
    }

    .feature-icon {
        width: 36px;
        height: 36px;
    }

    .feature-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Product footer stacking on small screens */
    .product-footer {
        flex-direction: column;
    }

    .product-badge {
        font-size: var(--text-xs);
        padding: var(--space-3) var(--space-6);
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

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

    .floating-card,
    .orb {
        animation: none;
    }

    .connection-pulse {
        animation: none;
        opacity: 0;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--slate-800);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    z-index: 9999;
}

.skip-link:focus {
    top: var(--space-4);
}
