/* ==========================================================================
   AppIncome Landing Page Design System
   Coulee Moon Studio - Crafted with Prairie Passion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography & Global Reset
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette matching the real app screenshot exactly */
    var(--color-bg): hsl(230, 24%, 6%);
    --color-gold: hsl(38, 78%, 57%);

    /* macOS App Colors from screenshot */
    --app-bg: #0d0e12;
    /* Outer macOS canvas */
    --app-card-bg: #181921;
    /* Slate dark card background */
    --app-sidebar-bg: #121319;
    /* Sleeker, darker sidebar */
    --app-blue: #0A84FF;
    /* Active native macOS blue */
    --app-blue-hover: #0076E5;
    --app-green: #30D158;
    /* Vibrant green proceeds */
    --app-green-dark: #195C27;
    /* Muted green fees */
    --app-purple: #5856D6;
    /* Sales this year accent */
    --app-text-primary: #ffffff;
    --app-text-secondary: rgba(255, 255, 255, 0.45);
    --app-border: rgba(255, 255, 255, 0.05);

    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    background-color: hsl(230, 24%, 6%);
    color: #ffffff;
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: hsl(230, 24%, 6%);
}

::-webkit-scrollbar-thumb {
    background: hsl(230, 15%, 20%);
    border-radius: var(--border-radius-sm);
    border: 2px solid hsl(230, 24%, 6%);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--app-blue);
}

/* --------------------------------------------------------------------------
   2. Layout & Typography Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.text-gradient {
    background: linear-gradient(135deg, hsl(38, 78%, 57%) 0%, hsl(45, 90%, 65%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* --------------------------------------------------------------------------
   3. Ambient Decorative Elements
   -------------------------------------------------------------------------- */
.ambient-glows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.glow-bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: floatGlow 15s infinite ease-in-out alternate;
}

.glow-bubble-1 {
    width: 450px;
    height: 450px;
    top: -100px;
    right: -100px;
    background-color: hsl(38, 78%, 57%);
    animation-duration: 20s;
}

.glow-bubble-2 {
    width: 350px;
    height: 350px;
    bottom: -50px;
    left: -100px;
    background-color: var(--app-blue);
    animation-duration: 25s;
    animation-delay: 2s;
}

.glow-bubble-3 {
    width: 500px;
    height: 500px;
    top: 40%;
    left: 30%;
    background-color: hsl(230, 20%, 30%);
    opacity: 0.04;
    filter: blur(150px);
}

/* --------------------------------------------------------------------------
   4. Header Navigation
   -------------------------------------------------------------------------- */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(9, 10, 15, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

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

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 32px;
    color: #ffffff;
    opacity: 0.95;
    letter-spacing: -0.02em;
    transition: var(--transition-smooth);
}

.logo-text:hover {
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.65;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.nav-btn-back:hover {
    opacity: 1;
    border-color: var(--app-blue);
    color: var(--app-blue);
    background: rgba(10, 132, 255, 0.05);
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.05);
}

/* --------------------------------------------------------------------------
   5. Hero Section & Waitlist Form
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: 120px;
    padding-bottom: 50px;
    position: relative;
    z-index: 10;
    min-height: 98vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
}

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

.studio-pill {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    background: rgba(10, 132, 255, 0.08);
    border: 1px solid rgba(10, 132, 255, 0.15);
    color: var(--app-blue);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(10, 132, 255, 0.05);
}

.studio-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--app-blue);
    box-shadow: 0 0 8px var(--app-blue);
}

.hero-title {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 15.5px;
    font-weight: 400;
    color: hsl(230, 10%, 75%);
    margin-bottom: 28px;
    max-width: 520px;
    line-height: 1.6;
}

/* Waitlist Form Containers */
.newsletter-form-container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.newsletter-form-container:hover {
    border-color: rgba(10, 132, 255, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 25px rgba(10, 132, 255, 0.03);
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100% !important;
}

.newsletter-form-input {
    flex: 1;
    height: 42px;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    padding: 0 14px !important;
    box-shadow: none !important;
    outline: none;
    transition: var(--transition-smooth);
}

.newsletter-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.newsletter-form-input:focus {
    border-color: var(--app-blue) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 0 15px rgba(10, 132, 255, 0.08) !important;
}

.newsletter-form-button,
.newsletter-loading-button {
    height: 42px;
    background: var(--app-blue) !important;
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 0 20px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    white-space: nowrap !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.2) !important;
}

.newsletter-form-button:hover {
    transform: translateY(-2px);
    background: var(--app-blue-hover) !important;
    box-shadow: 0 6px 20px rgba(10, 132, 255, 0.3) !important;
}

/* Success State Styles */
.newsletter-success {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    text-align: center;
    animation: fadeInScale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.3);
    color: var(--app-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.newsletter-success-message {
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 4px;
}

.success-subtext {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 300px;
}

/* Reset / Back Button */
.newsletter-back-button {
    font-family: var(--font-body) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 12px !important;
    margin: 8px auto 0 !important;
    display: none;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
}

.newsletter-back-button:hover {
    color: var(--app-blue) !important;
    text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   6. High-Fidelity macOS App Window Mockup (Optimized Ratios)
   -------------------------------------------------------------------------- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.visual-glow-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.app-mockup-img {
    width: 100%;
    max-width: 620px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.7);
    animation: float 6s infinite ease-in-out;
    transform: perspective(1000px) rotateY(-3deg) rotateX(1.5deg);
    transition: var(--transition-smooth);
    z-index: 5;
    position: relative;
}

.app-mockup-img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.85);
}

/* --------------------------------------------------------------------------
   7. Features Grid Section
   -------------------------------------------------------------------------- */
.features-section {
    position: relative;
    z-index: 10;
    padding: 60px 0;
    /* border-top: 1px solid rgba(255, 255, 255, 0.03); */
    background: linear-gradient(180deg, transparent 0%, rgba(9, 10, 15, 0.5) 100%);
}

.features-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px;
}

.features-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: var(--app-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.features-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.features-header-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(10, 132, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(10, 132, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 5;
}

.feature-icon-box.blue {
    background: rgba(10, 132, 255, 0.08);
    border: 1px solid rgba(10, 132, 255, 0.2);
    color: var(--app-blue);
}

.feature-icon-box.emerald {
    background: rgba(48, 209, 88, 0.08);
    border: 1px solid rgba(48, 209, 88, 0.2);
    color: var(--app-green);
}

.feature-icon-box.purple {
    background: rgba(88, 86, 214, 0.08);
    border: 1px solid rgba(88, 86, 214, 0.2);
    color: var(--app-purple);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-card p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Footer Section
   -------------------------------------------------------------------------- */
footer {
    position: relative;
    z-index: 10;
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    background: var(--color-bg);
}

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

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

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

.footer-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* --------------------------------------------------------------------------
   9. Animation Definitions
   -------------------------------------------------------------------------- */
@keyframes float {
    0% {
        transform: perspective(1000px) rotateY(-3deg) rotateX(1.5deg) translateY(0px);
    }

    50% {
        transform: perspective(1000px) rotateY(-1.5deg) rotateX(0.75deg) translateY(-8px);
    }

    100% {
        transform: perspective(1000px) rotateY(-3deg) rotateX(1.5deg) translateY(0px);
    }
}

@keyframes floatGlow {
    0% {
        transform: translate(0px, 0px);
    }

    50% {
        transform: translate(-30px, 40px);
    }

    100% {
        transform: translate(20px, -20px);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {

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

    20%,
    60% {
        transform: translateX(-6px);
    }

    40%,
    80% {
        transform: translateX(6px);
    }
}

/* --------------------------------------------------------------------------
   10. Media Queries (Responsive Design)
   -------------------------------------------------------------------------- */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .studio-pill {
        align-self: center;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-description {
        margin: 0 auto 28px;
    }

    .newsletter-form-container {
        margin: 0 auto;
    }

    .hero-visual {
        order: -1;
    }

    .app-mockup-img {
        max-width: 520px;
        height: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .feature-card {
        padding: 28px 24px;
    }
}

@media (max-width: 520px) {
    .hero-title {
        font-size: 30px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-form-input {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        height: 46px !important;
    }

    .newsletter-form-button,
    .newsletter-loading-button {
        width: 100% !important;
        max-width: 100% !important;
        height: 46px !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-left {
        align-items: center;
    }
}