/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Colors inspired by the logo */
    --primary-orange: #FF7A3D;
    --primary-yellow: #FFB84D;
    --gradient-primary: linear-gradient(135deg, #FF7A3D 0%, #FFB84D 100%);
    --gradient-soft: linear-gradient(135deg, rgba(255, 122, 61, 0.1) 0%, rgba(255, 184, 77, 0.1) 100%);

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Semantic colors */
    --success: #10B981;
    --error: #EF4444;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Border radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(255, 122, 61, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
    color: var(--gray-900);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Layout
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 122, 61, 0.1);
    transition: all var(--transition-base);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-md);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header CTA Button - Gradient with visible text */
.cta-button-small {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background: linear-gradient(135deg, #FF7A3D 0%, #FFB84D 100%);
    color: #FFFFFF;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(255, 122, 61, 0.3);
    position: relative;
    z-index: 1000;
    transition: all 0.2s ease;
}

.cta-button-small:hover {
    background: linear-gradient(135deg, #FFB84D 0%, #FF7A3D 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 61, 0.4);
}

.cta-button-small:active {
    transform: translateY(0);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    background: linear-gradient(135deg, #fff5f0 0%, #fffbf5 50%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(255, 122, 61, 0.15) 0%, rgba(255, 184, 77, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 15s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite reverse;
}

@keyframes float-slow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.05);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
    font-weight: 400;
    max-width: 540px;
}

.hero-cta {
    margin-bottom: var(--spacing-lg);
}

/* Hero CTA Button - Gradient with visible text */
.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.125rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #FF7A3D 0%, #FFB84D 100%);
    color: #FFFFFF;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(255, 122, 61, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-large:hover {
    background: linear-gradient(135deg, #FFB84D 0%, #FF7A3D 100%);
    color: #FFFFFF;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 122, 61, 0.4), 0 10px 20px rgba(0, 0, 0, 0.15);
}

.cta-button-large svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-large:hover svg {
    transform: translateX(5px);
}

.app-store-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.launch-date {
    color: var(--gray-500);
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.app-store-badge {
    height: 50px;
    width: auto;
    transition: all var(--transition-base);
    filter: brightness(1);
}

.app-store-badge:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.app-mockup {
    width: 100%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
    position: relative;
    z-index: 2;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(255, 122, 61, 0.3) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray-400);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gray-400);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 122, 61, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.feature-card {
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 122, 61, 0.1);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 122, 61, 0.05) 0%, rgba(255, 184, 77, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 122, 61, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover::after {
    opacity: 1;
    transform: translate(10%, 10%);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 122, 61, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 122, 61, 0.3);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(255, 122, 61, 0.1) 0%, rgba(255, 184, 77, 0.1) 100%);
    border-radius: var(--radius-md);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(255, 122, 61, 0.2) 0%, rgba(255, 184, 77, 0.2) 100%);
    transform: scale(1.1) rotate(-5deg);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--gray-900);
    font-weight: 700;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1rem;
}

/* ===================================
   Waitlist Section
   =================================== */
.waitlist {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #fff8f0 0%, #fffbf7 50%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.waitlist::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.2) 0%, rgba(255, 122, 61, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 18s ease-in-out infinite;
}

.waitlist::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 122, 61, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 22s ease-in-out infinite reverse;
}

.waitlist-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.waitlist-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.waitlist-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.waitlist-form {
    margin-bottom: var(--spacing-lg);
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.email-input {
    flex: 1;
    padding: 1.125rem 1.75rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 122, 61, 0.15);
    border-radius: var(--radius-full);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.email-input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 122, 61, 0.1), 0 4px 15px rgba(255, 122, 61, 0.15);
    background: var(--white);
    transform: translateY(-1px);
}

.submit-button {
    padding: 1.125rem 2.5rem;
    background: linear-gradient(135deg, #FF7A3D 0%, #FFB84D 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(255, 122, 61, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: var(--font-sans);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FFB84D 0%, #FF7A3D 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-button:hover::before {
    opacity: 1;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 122, 61, 0.4), 0 8px 15px rgba(0, 0, 0, 0.15);
}

.submit-button:active {
    transform: translateY(-1px);
}

.submit-button > * {
    position: relative;
    z-index: 1;
}

.button-loading {
    display: none;
}

.submit-button.loading .button-text {
    visibility: hidden;
}

.submit-button.loading .button-loading {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-note {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.success-message,
.error-message {
    display: none;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
}

.success-message.show,
.error-message.show {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    border: 2px solid var(--success);
}

.error-message {
    border: 2px solid var(--error);
}

.success-icon,
.error-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto var(--spacing-md);
}

.success-icon {
    background: var(--success);
    color: var(--white);
}

.error-icon {
    background: var(--error);
    color: var(--white);
}

.success-message h3,
.error-message h3 {
    margin-bottom: var(--spacing-sm);
}

.success-message p,
.error-message p {
    color: var(--gray-600);
}

.error-message a {
    color: var(--primary-orange);
    font-weight: 600;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: var(--spacing-md);
}

.footer-tagline {
    color: var(--gray-400);
    max-width: 300px;
    margin-bottom: var(--spacing-md);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gray-400);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-yellow) 100%);
    color: var(--white);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 122, 61, 0.4);
}

.social-link:active {
    transform: translateY(-2px) scale(1.05);
}

.social-link svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

.social-link svg path {
    fill: currentColor;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-sans);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-section a:hover {
    color: var(--primary-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-image {
        order: -1;
    }

    .app-mockup {
        max-width: 280px;
    }

    .glow-effect {
        width: 320px;
        height: 480px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-group {
        flex-direction: column;
    }

    .submit-button {
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    }
}
