:root {
    --bg-dark: #050507;
    --bg-card: rgba(14, 12, 13, 0.75);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(184, 16, 45, 0.25);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #8b0018;
    --accent-light: #b3102d;
    --accent-glow: rgba(179, 16, 45, 0.12);
    --accent-gradient: linear-gradient(135deg, #b3102d 0%, #8b0018 60%, #4a000c 100%);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Core Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 15%, rgba(184, 16, 45, 0.04) 0%, transparent 60%),
                radial-gradient(circle at 85% 75%, rgba(184, 16, 45, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.15;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.app-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 7.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    object-fit: cover;
}

.logo span {
    letter-spacing: -0.01em;
}

.logo svg {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(184, 16, 45, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(184, 16, 45, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-tertiary {
    color: var(--text-secondary);
    background: transparent;
    padding: 10px 0;
}

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

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(5, 5, 7, 0) 70%);
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

/* Floating background outline icons (matching left side of App Icon) */
.floating-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.02);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    animation: float-around 25s ease-in-out infinite alternate;
}

.floating-icon.icon-1 { top: 15%; left: 6%; animation-duration: 32s; }
.floating-icon.icon-2 { top: 48%; left: 3%; animation-duration: 24s; animation-delay: -7s; }
.floating-icon.icon-3 { top: 72%; left: 8%; animation-duration: 38s; animation-delay: -15s; }
.floating-icon.icon-4 { top: 22%; left: 38%; animation-duration: 28s; animation-delay: -4s; }

@keyframes float-around {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-20px) rotate(8deg);
    }
}

/* Large ambient curtain shape in the header */
.hero-bg-curtain {
    position: absolute;
    top: 0;
    right: 0;
    width: 48%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
}

.hero-bg-curtain svg {
    width: 100%;
    height: 100%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Mac Desktop Mockup (Visual Preview) */
.hero-visual {
    perspective: 1000px;
}

.mac-frame {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.mac-header {
    height: 32px;
    background: #141414;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.mac-menu-bar {
    position: absolute;
    left: 56px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #a0a0a0;
    font-weight: 500;
}

.menu-icon {
    width: 14px;
    height: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.menu-icon:hover {
    color: #fff;
}

.mac-screen {
    height: 340px;
    position: relative;
    overflow: hidden;
}

.desktop-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('SequoiaSunrise.jpeg');
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

/* Wallpapers */
.mac-screen.curtained .desktop-bg {
    filter: brightness(0.95);
}

.desktop-icons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-auto-flow: column;
    gap: 16px;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    text-align: center;
    cursor: pointer;
}

.desktop-icon-svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    margin-bottom: 6px;
    transition: var(--transition);
}

.desktop-icon-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.icon-item:hover .desktop-icon-svg {
    transform: translateY(-1px) scale(1.04);
}

.icon-item span {
    font-size: 0.68rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Active State to Hide Icons */
.mac-screen.curtained .desktop-icons {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.screen-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.toggle-trigger {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 99px;
    color: #fff;
    font-weight: 500;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-trigger:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
}

.toggle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffbd2e;
    transition: var(--transition);
}

.mac-screen.curtained .toggle-dot {
    background-color: #27c93f;
}

/* Curtain Sweep Overlay Styling */
.curtain-sweep {
    position: absolute;
    top: 0;
    left: 0;
    width: 115%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    transform: translateX(100%);
    background: linear-gradient(90deg, 
        #2c0005 0%, 
        #4a020d 15%, 
        #8a061a 35%, 
        #5c020f 55%, 
        #b80d22 75%, 
        #4a020d 90%,
        #2c0005 100%
    );
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.curtain-sweep.active {
    animation: sweepEffect 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes sweepEffect {
    0% {
        transform: translateX(105%);
    }
    45%, 55% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(105%);
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(184, 16, 45, 0.08);
    border: 1px solid rgba(184, 16, 45, 0.2);
    color: var(--accent-light);
    font-size: 1.5rem;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(184, 16, 45, 0.05);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* Pricing Section */
.pricing {
    padding: 100px 0 140px;
    border-top: 1px solid var(--border-color);
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(184, 16, 45, 0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pricing-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 40px 80px rgba(184, 16, 45, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pricing-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(184, 16, 45, 0.12);
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    margin: 24px 0 12px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.price .currency {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-right: 2px;
}

.price .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-left: 6px;
}

.pricing-desc {
    margin-bottom: 36px;
}

.pricing-list {
    text-align: left;
    list-style: none;
    margin-bottom: 36px;
    display: inline-block;
}

.pricing-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.checkout-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.05rem;
}

.secure-checkout {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: #030304;
}

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

.footer-content p {
    font-size: 0.9rem;
}

.footer-note {
    font-size: 0.85rem;
    color: #555;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.75rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
