/* ALDRALABS: Soft Premium (Apple-Inspired) Dark Theme */
:root {
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --card-surface: rgba(28, 28, 30, 0.5); /* Soft translucent dark grey */
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --nav-glass: rgba(0, 0, 0, 0.7);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary); /* prevent white flash */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Layout Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 10rem 0;
}

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

.section__header--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.section__text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.5;
    font-weight: 400;
}

.lead-text {
    font-size: 1.5rem;
    max-width: 700px;
}

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

.grid-2-approach {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

/* Glass Panels */
.glass-panel {
    background: var(--card-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.75rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn--nav {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn--nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn--primary {
    background-color: var(--text-primary);
    color: #000;
}

.btn--primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.btn--outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn--large {
    padding: 1.2rem 2.5rem;
    font-size: 1.125rem;
}

.btn--full {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container--nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.navbar__logo {
    display: flex;
    align-items: center;
}

.navbar__logo-img {
    height: 28px; /* Slightly taller to look crisp */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 85vh; /* Increased height for better presence */
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero__headline {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero__subheadline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 400;
}

.hero__ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero__visual {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%; /* Covers more than half the screen on the right */
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
    pointer-events: none; /* Let clicks pass to content if overlapping */
}

.hero__image {
    width: 100%;
    height: 120%; /* Slightly larger for movement room */
    object-fit: contain;
    position: relative;
    right: -10%; /* Bleed off screen */
    opacity: 0.8;
    filter: saturate(1.2);
    animation: fabricMovement 20s ease-in-out infinite;
    /* Soft edges instead of sharp bottom mask */
    mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

@keyframes fabricMovement {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-2%, 2%) scale(1.05) rotate(1deg); }
    66% { transform: translate(1%, -1%) scale(1.02) rotate(-1deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

/* Trust Section */
.trust {
    padding: 6rem 0;
    position: relative;
    z-index: 3;
}

.trust__list {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    font-weight: 500;
}

/* Capabilities Section */
.capabilities__card {
    padding: 3rem 2rem;
    transition: transform var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.capabilities__card:hover {
    transform: translateY(-8px);
}

.card__icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.card__icon {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
}

.card__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.card__text {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* Problem / Approach Section */
.approach-wrapper {
    margin-bottom: 6rem;
}

.problem__content {
    padding-right: 2rem;
}

.problem__list {
    margin-top: 3rem;
}

.problem__list li {
    font-size: 1.25rem;
    color: var(--text-secondary);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

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

.li-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
    border-radius: 50%;
    margin-right: 1.5rem;
    opacity: 0.4;
}

.soft-panel {
    padding: 4rem;
}

.solution__title {
    font-size: 2.25rem;
}

.solution__timeline {
    margin-top: 3rem;
    border-left: 1px solid var(--border-color);
    padding-left: 2.5rem;
}

.step {
    position: relative;
    margin-bottom: 3rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step::before {
    content: '';
    position: absolute;
    left: -2.85rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    background: var(--text-primary);
    border-radius: 50%;
    border: 3px solid #1c1c1e; /* matches soft surface bg generally */
}

.step__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step__text {
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: opacity var(--transition-fast);
}

.footer__logo:hover {
    opacity: 0.7;
}

.footer__logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer__copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Base Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grid items */
.grid-3 > *:nth-child(1) { transition-delay: 0.1s; }
.grid-3 > *:nth-child(2) { transition-delay: 0.2s; }
.grid-3 > *:nth-child(3) { transition-delay: 0.3s; }

.solution__timeline > *:nth-child(1) { transition-delay: 0.1s; }
.solution__timeline > *:nth-child(2) { transition-delay: 0.2s; }
.solution__timeline > *:nth-child(3) { transition-delay: 0.3s; }
.solution__timeline > *:nth-child(4) { transition-delay: 0.4s; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .grid-2-approach, .waitlist__wrapper, .hero__container {
        grid-template-columns: 1fr;
    }
    
    .hero__headline {
        font-size: 4rem;
    }
    
    .soft-panel, .waitlist__wrapper {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
        min-height: auto;
    }

    .hero__headline {
        font-size: 2.8rem;
    }
    
    .hero__subheadline {
        font-size: 1.15rem;
    }

    .hero__ctas {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 3rem;
        align-items: stretch;
    }

    .hero__visual {
        position: relative;
        width: 100%;
        height: auto;
        right: auto;
        top: auto;
        margin-top: 2rem;
        display: block;
    }

    .hero__image {
        width: 100%;
        height: auto;
        right: 0;
        margin-top: -30px; /* pull up slightly for better integration */
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    }

    .section {
        padding: 5rem 0;
    }
}
