/* Reset & Base Styles */
:root {
    --bg-color: #FAF9F6;
    --text-color: #1A1A1A;
    --text-muted: #666666;
    --accent-color: #3B82F6;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.font-light {
    font-weight: 300;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through around the pill */
    transition: transform 0.4s ease;
}

.navbar.hidden-nav {
    transform: translateY(-150%);
}

.nav-pill {
    pointer-events: auto;
    background: transparent;
    padding: 12px 32px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 32px;
    transition: all 0.3s ease;
}

.nav-pill.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: #000;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-color);
}

.nav-links a {
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Mobile Navbar Styles */
@media (max-width: 768px) {
    .nav-pill {
        padding: 10px 20px;
        gap: 16px;
        width: 90%;
        max-width: 400px;
        justify-content: space-between;
    }

    .nav-links {
        gap: 12px;
        font-size: 0.65rem;
    }

    .nav-logo {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    position: relative;
    background-color: #ffffff;
    /* pure white for seamless blend */
    padding-top: 100px;
    /* Offset for navbar */
    overflow: hidden;
    /* Prevent image spill */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        /* Equal split for better balance */
        gap: 64px;
    }
}

.hero-text-side {
    z-index: 10;
}

.hero-image-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating animation for hero image */
@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-image-img {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    animation: floatHero 8s ease-in-out infinite;
    /* Slower, smoother float */
}



.badge {
    display: inline-block;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 9999px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
    max-width: 550px;
    margin-bottom: 48px;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.3;
    z-index: 20;
}

/* Vision Section */
.vision {
    background: #fff;
    border-bottom: 1px solid #f4f4f4;
    overflow: hidden;
}

.vision-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

@media (min-width: 768px) {
    .vision-container {
        flex-direction: row;
        justify-content: center;
    }
}

.vision-text {
    max-width: 500px;
}

.vision-text h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.vision-text p {
    margin-bottom: 24px;
    font-weight: 300;
    color: #444;
}

.vision-image {
    width: 300px;
    /* Slightly larger for better visibility */
    opacity: 0.9;
    /* Increased opacity */
    mix-blend-mode: normal;
    /* Removed multiply to show the slice clearly if it has own bg */
    transition: transform 0.5s ease-out;
    /* "Sliced" corners: Top-Left and Bottom-Right */
    clip-path: polygon(40px 0, 100% 0,
            100% calc(100% - 40px),
            calc(100% - 40px) 100%,
            0 100%,
            0 40px);
}

/* Innovations Section */
.innovations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 64px;
}

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

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

.card {
    background: #fff;
    /* Removed border for cleaner look */
    border: none;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    /* Initial state for rounded corners if not hovered? Let's make it permanent */
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    /* Subtle baseline shadow */
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    /* Deeper shadow on hover */
}

.card-image {
    height: 240px;
    /* Taller image */
    overflow: hidden;
    background: #f0f0f0;
    /* Removed border-bottom */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-meta .category {
    color: #999;
    font-weight: 700;
}

.card-meta .status {
    background: #f4f4f4;
    padding: 4px 8px;
    border-radius: 99px;
    color: #666;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 500;
}

.card p {
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 32px;
    flex: 1;
}

.card-link {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
    padding-top: 24px;
    border-top: 1px solid #f9f9f9;
}

.card:hover .card-link {
    color: #000;
}

/* Flagship (Hatch) Section */
.flagship {
    background-color: #0A0A0A;
    color: #fff;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.flagship-bg-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.1);
    filter: blur(120px);
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

.flagship-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

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

.flagship-content h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.flagship-text {
    font-size: 1.25rem;
    color: #999;
    font-weight: 300;
    margin-bottom: 48px;
}

.flagship-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
    color: #666;
    font-weight: 300;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #000;
    padding: 16px 40px;
    border-radius: 99px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #e5e5e5;
}

.flagship-preview {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.flagship-preview img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    /* border-radius removed as clip-path overrides it */
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
    /* Use drop-shadow for clipped shape */
    transition: transform 0.5s ease;
    /* Sliced corners: Top-Left and Bottom-Right */
    clip-path: polygon(60px 0, 100% 0,
            100% calc(100% - 60px),
            calc(100% - 60px) 100%,
            0 100%,
            0 60px);
}

.flagship-preview:hover img {
    transform: scale(1.02);
}

/* Pulsing Dot Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.flagship-glass-card {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 320px;
    /* More "glassy" background with slight gradient hint */
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(10, 10, 10, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border-top-left-radius: 60px;
    border-bottom-right-radius: 60px;
    padding: 24px;
    /* Subtle glowing border */
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Inset shadow for glass edge + drop shadow */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flagship-glass-card:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 30px 60px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.7) 0%, rgba(15, 15, 15, 0.85) 100%);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    /* Pulse animation */
    animation: pulse 2s infinite;
}


/* Roadmap Section */
.roadmap {
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    margin-top: 40px;
    padding-bottom: 80px;
}

/* The vertical line container */
.timeline-line-container {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
    z-index: 0;
    /* Lower z-index so dots sit on top */
}

/* The animated progress line */
.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent-color);
    transition: height 0.1s linear;
}

@media (min-width: 768px) {
    .timeline-line-container {
        left: 50%;
        transform: translateX(-50%);
    }
}

.milestone {
    position: relative;
    width: 100%;
    margin-bottom: 64px;
    display: flex;
    justify-content: flex-start;
    z-index: 5;
    /* Ensure milestone (and dot) stays on top of the line */
}

/* Dot Styles */
.milestone-dot {
    position: absolute;
    left: 20px;
    top: 24px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 50%;
    z-index: 6;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

/* The active visual: Blue center, white cut-out border, blue halo */
.milestone.active .milestone-dot {
    background: var(--accent-color);
    border: 4px solid #ffffff;
    /* Cuts visually through the line */
    box-shadow: 0 0 0 2px var(--accent-color);
    /* The outer halo */
    width: 24px;
    height: 24px;
}

.milestone-content {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    width: calc(100% - 60px);
    margin-left: 60px;
    position: relative;
    transition: all 0.5s ease;
}

.milestone:hover .milestone-content {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.08);
}

/* Desktop layout: alternating sides */
@media (min-width: 768px) {
    .milestone {
        justify-content: center;
    }

    .milestone-dot {
        left: 50%;
    }

    .milestone-content {
        width: 42%;
        margin-left: 0;
    }

    /* Odd items (Left side) */
    .milestone:nth-child(odd) {
        justify-content: flex-start;
    }

    .milestone:nth-child(odd) .milestone-content {
        margin-left: auto;
        margin-right: 50%;
        transform-origin: right center;
        margin-right: calc(50% + 40px);
        /* 50% line + gap */
    }

    /* Even items (Right side) */
    .milestone:nth-child(even) {
        justify-content: flex-end;
    }

    .milestone:nth-child(even) .milestone-content {
        margin-right: auto;
        margin-left: calc(50% + 40px);
        /* 50% line + gap */
        transform-origin: left center;
        text-align: left;
    }
}

.milestone-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.milestone h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.milestone p {
    font-size: 1rem;
    color: #666;
    font-weight: 300;
}

/* About Section */
.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 64px;
}

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

.leader-card {
    background: transparent;
}

.leader-image {
    aspect-ratio: 16/9;
    background: #f4f4f4;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Added to clip image*/
    position: relative;
    /* Added for positioning if needed */
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    /* Optional: blends white bg of image with card bg */
}

/* Fallback for text if image fails or isn't there yet - this styling applies to the text node directly if no img tag */
.leader-image-text {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: #ddd;
}

.leader-card:hover .leader-image img {
    transform: scale(1.05);
    /* Slight zoom on hover */
    transition: transform 0.6s ease;
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-icon {
    padding: 12px;
    background: #fff;
    border: 1px solid #f4f4f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 4px;
}

.contact-value {
    font-family: var(--font-serif);
    font-size: 1.25rem;
}

/* Footer */
footer {
    background: #FAF9F6;
    border-top: 1px solid #eee;
    padding: 80px 0;
    font-size: 0.85rem;
    color: #666;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .footer-links {
        flex-direction: row;
        gap: 64px;
    }
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-group span {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 8px;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll Reveal Utilities */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Scroll Animation Wrappers */
.parallax-container {
    overflow: hidden;
    position: relative;
}

.parallax-img {
    width: 100%;
    height: 120%;
    /* Taller than container for parallax movement */
    object-fit: cover;
    transform: translateY(0);
    will-change: transform;
}

.scale-reveal-img {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-reveal-img.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Research / Legal Page Styles */
.research-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 160px 24px 120px;
}

.research-header {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 48px;
    margin-bottom: 64px;
}

.research-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 4rem);
    color: #000;
    margin-bottom: 24px;
    line-height: 1.1;
}

.research-meta {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    gap: 32px;
}

.research-content {
    counter-reset: section;
}

.research-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 32px;
    font-weight: 300;
}

.research-content h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-top: 64px;
    margin-bottom: 24px;
    color: #000;
    position: relative;
    /* Counter for automatic numbering like a paper */
}

.research-content h2::before {
    counter-increment: section;
    content: "0" counter(section) ".";
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #999;
    margin-right: 12px;
    font-weight: 400;
}