:root {
    --bg-color: #0D0D0D;
    --surface-color: #1A1A1A;
    --accent-gold: #EBB05E;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --accent-sage: #8B9A8B;
    --accent-terra: #B35A47;
    --accent-slate: #4A525A;
    --container-max-width: 1200px;
    --border-radius: 20px;
    --transition-speed: 0.5s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

h1,
h2,
h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Navbar */
.navbar {
    padding: 2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding var(--transition-speed), background-color var(--transition-speed);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--accent-gold);
}

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

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

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links .btn-primary:hover {
    color: #000;
}

.nav-links .btn-primary {
    color: #fff;
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.accent {
    color: var(--accent-gold);
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    cursor: pointer;
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: #000;
    color: #fff;
    border: 2px solid var(--accent-gold);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(235, 176, 94, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(235, 176, 94, 0.4);
    background-color: var(--accent-gold);
    color: #000;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    /* Add padding to ensure shadow isn't clipped by grid container */
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    filter: drop-shadow(0 40px 100px rgba(196, 167, 125, 0.2)) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    border-radius: 40px;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

/* Features */
.features {
    padding: 8rem 0;
    background-color: #0a0a0a;
}

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

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

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 8rem;
    justify-content: space-between;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

.feature-tag {
    color: var(--accent-gold);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.feature-content h3 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 2000px;
}

.mockup-frame {
    width: 320px;
    background: #0D0D0D;
    border-radius: 45px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6), 0 0 40px rgba(235, 176, 94, 0.1);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.feature-row.reverse .mockup-frame {
    transform: rotateY(15deg) rotateX(5deg);
}

.feature-row.reverse .mockup-frame:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-20px);
    border-color: rgba(235, 176, 94, 0.3);
}

.mockup-frame:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-20px);
    border-color: rgba(235, 176, 94, 0.3);
}

.mockup-frame img {
    width: 100%;
    height: auto;
    border-radius: 35px;
    display: block;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Glass effect for the frame */
.mockup-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 45px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* Comparison Section */
.comparison {
    padding: 10rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
}

.comparison-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.comparison-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--accent-gold);
    font-weight: bold;
}

/* Comparison Slider */
.comparison-slider {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/5;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid rgba(196, 167, 125, 0.2);
    margin: 0 auto;
}

.slider-container .img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.background-img {
    background-image: url('assets/hero.png');
}

.foreground-img {
    background-image: url('assets/hero.png');
    filter: sepia(0.5) contrast(1.2);
    /* Visual representation of comparison */
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    /* Initial state: half visible */
}

.slider {
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10;
    cursor: ew-resize;
    outline: none;
    margin: 0;
}

.slider-button {
    pointer-events: none;
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: var(--accent-gold);
    left: 50%;
    top: 0;
    z-index: 5;
    transform: translateX(-50%);
}

/* Custom Range Input Styling */
.slider {
    opacity: 0;
    cursor: ew-resize;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    background: transparent;
    /* Actual visible handle is the .slider-button::after */
    cursor: ew-resize;
}

.slider::-moz-range-thumb {
    width: 40px;
    height: 40px;
    background: transparent;
    cursor: ew-resize;
    border: none;
}

.slider-button::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: var(--accent-gold);
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* CTA */
.cta {
    padding: 8rem 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--surface-color) 0%, #2a2218 100%);
    padding: 6rem;
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(196, 167, 125, 0.1);
}

.cta-card h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.cta-card p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--surface-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero .container,
    .comparison-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p,
    .hero-btns {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-image img {
        max-width: 100%;
        transform: none;
    }

    .feature-rows {
        gap: 6rem;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

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

    .feature-content h3 {
        font-size: 2.5rem;
    }

    .mockup-frame {
        width: 280px;
        transform: none !important;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .comparison-content h2 {
        font-size: 2rem;
    }

    .comparison-content p {
        font-size: 1rem;
    }

    .feature-list li {
        font-size: 1rem;
    }

    .slider-container {
        max-width: 300px;
    }

    .cta-card {
        padding: 3rem 2rem;
    }

    .cta-card h2 {
        font-size: 2rem;
    }

    .cta-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .features,
    .comparison {
        padding: 5rem 0;
    }

    .cta {
        padding: 5rem 0;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
        border-radius: 25px;
    }

    .cta-card h2 {
        font-size: 1.75rem;
    }

    .feature-list {
        text-align: left;
    }

    .slider-container {
        max-width: 250px;
    }

    footer {
        padding: 3rem 0;
    }
}

/* Landscape phone */
@media (max-width: 667px) and (orientation: landscape) {
    .hero {
        padding: 7rem 0 3rem;
    }

    .hero .container {
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-image img {
        max-height: 40vh;
    }

    .nav-links {
        width: 100%;
        max-width: none;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image img {
        max-width: 400px;
    }

    .feature-card {
        padding: 2rem;
    }

    .cta-card {
        padding: 4rem 3rem;
    }

    .cta-card h2 {
        font-size: 2.5rem;
    }
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}