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

/* CSS Variables */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-600: #525252;

    /* Highlighter accent colors */
    --yellow: #FFF176;
    --green: #AED581;
    --blue: #81D4FA;
    --pink: #F48FB1;

    --font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --container-max: 1120px;
    --container-padding: 24px;

    --transition: 0.2s ease;
}

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--black);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--yellow);
    z-index: -1;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    color: var(--black);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-large {
    font-size: 16px;
    padding: 16px 32px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
}

.header-cta {
    padding: 10px 20px;
}

/* Hero - Full viewport */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 0 0;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 24px;
    line-height: 1.15;
    text-wrap: balance;
}

.hero-title .highlight {
    background: linear-gradient(180deg, transparent 50%, var(--yellow) 50%);
    padding: 0 4px;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

/* Logo Slider */
.logo-slider {
    margin-top: 48px;
    width: 100%;
    max-width: 700px;
    overflow: hidden;
}

.logo-slider-label {
    font-size: 13px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-align: center;
}

.logo-slider-track {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-slider-logos {
    display: flex;
    gap: 48px;
    width: max-content;
}

.logo-item {
    height: 24px;
    width: auto;
    flex-shrink: 0;
    opacity: 0.5;
    filter: grayscale(100%);
}

.logo-item-large {
    height: 32px;
}

.logo-with-text {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 24px;
}

.logo-with-text img {
    height: 24px;
    width: auto;
}

.logo-with-text span {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.logo-slider-logos {
    align-items: center;
}


/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 14px;
    animation: bounce 2s infinite;
}

.scroll-hint svg {
    opacity: 0.6;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(8px);
    }
    60% {
        transform: translateX(-50%) translateY(4px);
    }
}

/* Sections Common */
.problem,
.solution {
    padding: 120px 0;
}

.problem {
    background-color: var(--gray-50);
}

.section-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    padding-top: 8px;
}

.section-content {
    max-width: 640px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 24px;
    text-wrap: balance;
}

.section-text {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
    text-wrap: pretty;
}

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

.highlight-inline {
    background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%);
    padding: 0 2px;
    font-weight: 500;
    color: var(--black);
}

.section-text.emphasis {
    font-weight: 500;
    color: var(--black);
}

/* Philosophy Section */
.philosophy {
    padding: 100px 0;
    background-color: var(--white);
}

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

.philosophy-card {
    padding: 32px;
    border-left: 3px solid var(--yellow);
}

.philosophy-card:nth-child(2) {
    border-left-color: var(--green);
}

.philosophy-card:nth-child(3) {
    border-left-color: var(--blue);
}

.philosophy-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    text-wrap: balance;
}

.philosophy-text {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.6;
    text-wrap: pretty;
}

/* Features */
.features {
    padding: 120px 0;
    background-color: var(--gray-50);
}

.features-header {
    margin-bottom: 64px;
    text-align: center;
}

/* Features Slider - Visual First Layout */
.features-slider {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.features-track {
    position: relative;
}

.feature-slide {
    display: flex;
    flex-direction: column;
    gap: 48px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.5s;
}

.feature-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
}

/* Screenshot - Hero Visual */
.feature-screenshot {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}


.feature-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15),
                0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

/* Content - Below Screenshot */
.feature-content {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: none;
}

.feature-marker {
    width: 6px;
    height: 100%;
    min-height: 80px;
    border-radius: 3px;
    flex-shrink: 0;
}

.feature-marker.yellow {
    background-color: var(--yellow);
}

.feature-marker.green {
    background-color: var(--green);
}

.feature-marker.blue {
    background-color: var(--blue);
}

.feature-marker.pink {
    background-color: var(--pink);
}

.feature-text-wrapper {
    flex: 1;
}

.feature-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    text-wrap: balance;
}

.feature-text {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.7;
    text-wrap: pretty;
    max-width: 600px;
}

.screenshot-placeholder {
    aspect-ratio: 16/10;
    background-color: var(--gray-100);
    border: 2px dashed var(--gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 14px;
}

/* Slider nav - Horizontal Centered */
.slider-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.slider-dots {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot:hover {
    background: var(--gray-400);
}

.slider-dot.active {
    background: var(--black);
    width: 32px;
    border-radius: 6px;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--black);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--black);
}

.slider-arrow:hover {
    background: var(--black);
    color: var(--white);
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

/* Difference Section */
.difference {
    padding: 120px 0;
    background-color: var(--white);
}

.difference-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.difference-list li {
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
    text-wrap: pretty;
}

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

.diff-yes,
.diff-no {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 0;
    flex-shrink: 0;
}

.diff-yes {
    background-color: var(--green);
    color: var(--black);
}

.diff-no {
    background-color: var(--gray-200);
    color: var(--gray-600);
}

/* CTA */
.cta {
    padding: 120px 0;
    text-align: center;
}

.cta-content {
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
    white-space: nowrap;
}

.cta-highlight {
    position: relative;
    display: inline-block;
}

.cta-highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 40%;
    background-color: var(--yellow);
    z-index: -1;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta.in-view .cta-highlight::before {
    width: 100%;
}

.cta-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    text-wrap: balance;
}

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

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo .logo-img {
    height: 24px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--black);
}

.footer-text {
    font-size: 14px;
    color: var(--gray-400);
}

/* Legal Pages */
.legal-page {
    padding: 140px 0 80px;
}

.legal-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 48px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.legal-section h3 {
    font-size: 18px;
    margin: 24px 0 12px;
}

.legal-section p {
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-section ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.legal-section li {
    color: var(--gray-600);
    margin-bottom: 8px;
    line-height: 1.7;
}

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

.hero-title,
.hero-subtitle,
.hero .btn {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-title {
    animation-delay: 0.1s;
}

.hero-subtitle {
    animation-delay: 0.2s;
}

.hero .btn {
    animation-delay: 0.3s;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-label {
        padding-top: 0;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .philosophy-card {
        padding: 24px;
    }

    .feature-screenshot {
        max-width: 100%;
    }

    .feature-content {
        gap: 20px;
    }

    .feature-marker {
        min-height: 60px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .difference-list li {
        font-size: 16px;
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    :root {
        --container-padding: 20px;
    }

    .header-inner {
        height: 64px;
    }

    .logo-img {
        height: 24px;
    }

    .header-cta {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero {
        padding-top: 64px;
    }

    .hero-subtitle {
        margin-bottom: 32px;
    }

    .scroll-hint {
        bottom: 24px;
        font-size: 12px;
    }

    .logo-slider {
        margin-top: 32px;
        max-width: 100%;
    }

    .logo-slider-label {
        font-size: 11px;
        margin-bottom: 16px;
    }

    .logo-item {
        height: 16px;
    }

    .logo-item-large {
        height: 22px;
    }

    .logo-with-text {
        height: 16px;
    }

    .logo-with-text img {
        height: 16px;
    }

    .logo-with-text span {
        font-size: 11px;
    }

    .logo-slider-logos {
        gap: 20px;
    }

    .btn-large {
        font-size: 15px;
        padding: 14px 28px;
        width: 100%;
    }

    .problem,
    .solution,
    .features {
        padding: 80px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .section-text {
        font-size: 16px;
    }

    .features-header {
        margin-bottom: 32px;
    }

    .feature-slide {
        gap: 32px;
    }

    .feature-content {
        gap: 16px;
    }

    .feature-marker {
        width: 4px;
        min-height: 50px;
    }

    .feature-title {
        font-size: 22px;
    }

    .feature-text {
        font-size: 16px;
    }

    .slider-nav {
        gap: 16px;
        margin-top: 32px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot.active {
        width: 28px;
    }

    .cta {
        padding: 80px 0;
    }

    .cta-title {
        white-space: normal;
    }

    .cta-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .philosophy {
        padding: 64px 0;
    }

    .philosophy-title {
        font-size: 18px;
    }

    .philosophy-text {
        font-size: 15px;
    }

    .difference {
        padding: 64px 0;
    }

    .difference-list li {
        font-size: 15px;
        padding: 12px 0;
        gap: 12px;
    }

    .diff-yes,
    .diff-no {
        font-size: 10px;
        padding: 3px 8px;
    }

    .footer {
        padding: 32px 0;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
    }

    .footer-logo .logo-img {
        height: 20px;
    }

    .footer-text {
        font-size: 13px;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 0;
    padding: 48px;
    max-width: 440px;
    width: 100%;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--black);
}

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

.modal-success {
    display: none;
}

.modal-success.active {
    display: block;
}

.modal-content:not(.active):has(~ .modal-success.active) {
    display: none;
}

#modalForm.hidden {
    display: none;
}

.modal-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-text {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.6;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.waitlist-input {
    font-family: var(--font-family);
    font-size: 16px;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 0;
    outline: none;
    transition: border-color var(--transition);
    width: 100%;
}

.waitlist-input:focus {
    border-color: var(--black);
}

.waitlist-input::placeholder {
    color: var(--gray-400);
}

.waitlist-submit {
    width: 100%;
    border-radius: 0;
}

.modal-disclaimer {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 16px;
}

/* Success Animation */
.success-icon {
    margin-bottom: 24px;
    color: var(--green);
}

.success-circle {
    stroke-dasharray: 188;
    stroke-dashoffset: 188;
    animation: drawCircle 0.6s ease forwards;
}

.success-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck 0.4s ease forwards 0.5s;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.modal-success .modal-title {
    animation: fadeInUp 0.4s ease forwards 0.3s;
    opacity: 0;
}

.modal-success .modal-text {
    animation: fadeInUp 0.4s ease forwards 0.4s;
    opacity: 0;
}

.modal-success .btn {
    animation: fadeInUp 0.4s ease forwards 0.5s;
    opacity: 0;
}

/* Mobile Modal */
@media (max-width: 640px) {
    .modal {
        padding: 32px 24px;
        border-radius: 0;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-text {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .waitlist-input {
        padding: 14px 16px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-title,
    .hero-subtitle,
    .hero .btn {
        animation: none;
    }

    .scroll-hint {
        animation: none;
    }

    .features-track {
        transition: none;
    }

    .success-circle,
    .success-check,
    .modal-success .modal-title,
    .modal-success .modal-text,
    .modal-success .btn {
        animation: none;
        opacity: 1;
        stroke-dashoffset: 0;
    }
}
