:root {
    --primary: #2997ff;
    /* Apple-style vibrant blue */
    --primary-light: #52a9ff;
    --secondary: #bf48af;
    --accent: #0071e3;
    --bg-dark: #000000;
    --bg-card: rgba(29, 29, 31, 0.7);
    --text-main: #f5f5f7;
    /* High contrast SF-style white */
    --text-muted: #86868b;
    /* Apple Gray */
    --glass-border: rgba(255, 255, 255, 0.08);
    --gradient-1: linear-gradient(135deg, #2997ff 0%, #bf48af 100%);
    --gradient-2: linear-gradient(135deg, #0071e3 0%, #2997ff 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.47059;
    /* Apple-style lean line height */
    letter-spacing: -0.015em;
    overflow-x: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo span {
    font-family: 'Inter', 'Outfit', sans-serif;
    letter-spacing: -0.022em;
    /* Tighter headings */
    font-weight: 600;
}

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.section {
    padding: 10rem 0;
    /* Significant white space */
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    /* Extremely subtle */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    /* Reduced padding */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.5);
    /* Frosted look even at top */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.82);
    padding: 0.8rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 32px;
    /* Slightly smaller logo */
}

.logo span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    /* Smaller, cleaner nav links */
    font-weight: 400;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    list-style: none;
}

.btn-lang {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-lang:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    min-width: 120px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.lang-dropdown.show {
    display: flex;
}

.lang-dropdown button {
    background: none;
    border: none;
    color: var(--text-main);
    padding: 0.6rem 1rem;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.lang-dropdown button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

/* Buttons */
.btn-primary {
    background: #0071e3;
    /* Absolute Apple Blue */
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 980px;
    /* Fully rounded */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn-primary:hover {
    background: #0077ed;
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 980px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    /* Space for fixed navbar */
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4rem;
}

.hero-content {
    flex: 1.2;
}

.hero-visual {
    flex: 0.8;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.hero-mockup {
    max-width: 640px;
    /* Slightly larger */
    width: 100%;
    margin: 0 auto;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    filter: drop-shadow(0 0 50px rgba(79, 70, 229, 0.2));
}





.mockup-wrapper {
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
}

.mockup-frame {
    position: relative;
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}



.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen;
}

.mockup-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotateX(-2deg);
    }
}

@media (max-width: 768px) {
    .app-preview {
        padding: 0 0 4rem;
    }

    .mockup-frame {
        border-radius: 24px;
        padding: 8px;
    }

    .mockup-img {
        border-radius: 18px;
    }
}

/* Trust Section */
.trust-section {
    padding: 10rem 0;
    background: transparent;
    position: relative;
}

.trust-section .section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.trust-section .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.trust-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.trust-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-card:hover .trust-icon-container {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.25);
    transform: scale(1.1) rotate(-5deg);
}

.trust-icon-svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-card:hover .trust-icon-svg {
    transform: scale(1.15);
}

.trust-card h3 {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 1.4rem;
    font-weight: 700;
}

.trust-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Features Section */
.features {
    padding: 10rem 0;
    background: transparent;
}

.features .section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.features .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
    color: var(--text-muted);
    font-size: 1.25rem;
}

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

.feature-card {
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.feature-icon-container {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 211, 238, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(34, 211, 238, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon-container {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.2);
    transform: scale(1.08) rotate(-5deg);
}

.feature-icon {
    width: 36px;
    height: 36px;
    stroke: var(--accent);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Feature Cards (Legacy - keeping for compatibility) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-svg {
    width: 32px;
    height: 32px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .icon {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.15);
    transform: scale(1.05) rotate(5deg);
}

.feature-card:hover .feature-svg {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Architecture */
.architecture.bg-dark {
    background: transparent;
}

.arch-content {
    max-width: 900px;
    margin: 0 auto;
}

.arch-item {
    padding: 1rem 0;
}

.arch-item h4 {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 2rem 0;
}

/* Roadmap */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    margin-bottom: 4rem;
    margin-left: 50px;
    position: relative;
}

.timeline-item .dot {
    position: absolute;
    left: -40px;
    top: 30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-item.completed .dot {
    background: var(--primary);
    border-color: var(--primary);
}

.timeline-item.active .dot {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.timeline-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.7;
}

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

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 800;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .hero-btns {
        justify-content: center;
        width: 100%;
    }

    .hero-visual {
        min-height: 350px;
    }

    .grid {
        gap: 3rem;
    }

    .nav-links {
        display: none;
    }
}

/* Waitlist Popup Modal */
.waitlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.waitlist-overlay.show {
    opacity: 1;
    visibility: visible;
}

.waitlist-modal {
    background: #1d1d1f;
    /* Absolute Apple Dark Theme */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.waitlist-overlay.show .waitlist-modal {
    transform: scale(1);
}

.waitlist-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.waitlist-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: rotate(90deg);
}

.waitlist-modal h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.waitlist-modal p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.waitlist-input {
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.waitlist-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.waitlist-input::placeholder {
    color: var(--text-muted);
}

.waitlist-form .btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.waitlist-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.waitlist-message {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.waitlist-message.show {
    opacity: 1;
    transform: translateY(0);
}

.waitlist-message.success {
    background: rgba(41, 151, 255, 0.1);
    border: 1px solid rgba(41, 151, 255, 0.2);
    color: var(--primary);
}

.waitlist-message.error {
    background: rgba(255, 69, 58, 0.1);
    /* Apple Red */
    border: 1px solid rgba(255, 69, 58, 0.2);
    color: #ff453a;
}

@media (max-width: 768px) {
    .waitlist-modal {
        padding: 40px 30px;
        width: 95%;
    }

    .waitlist-modal h2 {
        font-size: 1.75rem;
    }
}