:root {
    --primary: #2b2b2b;
    /* Dark Graphite/Warm Black */
    --primary-dark: #000000;
    --secondary: #9e7f56;
    /* Leather/Tan Accent */

    --text-main: #2b2b2b;
    --text-muted: #666666;

    --bg-body: #ffffff;
    --bg-surface: #f7f7f7;
    /* Light Gray for Cards */
    --bg-accent: #f4f2ed;
    /* Warm beige for Hero */

    --border: #e6e6e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);

    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
.brand {
    font-family: var(--font-serif);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    /* More squared for classic look */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
    gap: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-main);
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--secondary);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn.primary:hover::before {
    width: 100%;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn.outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-main);
}

.btn.outline:hover {
    border-color: var(--text-main);
    background: var(--bg-surface);
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Header */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand i {
    color: var(--text-main);
}

.brand span {
    color: var(--text-main);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(2deg);
    }

    50% {
        transform: translateY(-20px) rotate(3deg);
    }

    100% {
        transform: translateY(0px) rotate(2deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    padding: 6rem 5% 8rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    background-color: var(--bg-accent);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    /* Optional geometric shape */
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    transform: translateY(-50%);
}

.hero-content {
    flex: 1;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title {
    font-size: 3.5rem;
    /* Classic size */
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.highlight-text {
    /* Just standard serif italic emphasis */
    font-style: italic;
    color: var(--secondary);
    font-weight: 400;
    background: none;
    -webkit-text-fill-color: initial;
    position: relative;
    display: inline-block;
}

/* Add a subtle underline decoration */
.highlight-text::after {
    display: none;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    /* Delay */
    opacity: 0;
    /* Star hidden for animation */
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.art-display {
    width: 100%;
    max-width: 520px;
    border-radius: 24px;
    background: white;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
    /* Softer, deeper shadow */
    overflow: hidden;
    transform: rotate(2deg);
    border: 10px solid white;
    animation: float 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.art-display:hover {
    transform: rotate(0deg) scale(1.02) !important;
    /* Override animation transform on hover */
    box-shadow: 0 30px 60px -12px rgba(14, 165, 233, 0.15);
    animation-play-state: paused;
}

.art-display img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* Features */
.section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: transform 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-accent);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Steps */
.timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step-node {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--bg-body);
    padding: 0 1rem;
    flex: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* Footer */
.footer {
    background: #000000;
    /* Dark footer provides contrast */
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer ul li a {
    color: #a3a3a3;
}

.footer ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 2rem;
    text-align: center;
    color: #737373;
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 900px) {
    .landing-nav {
        padding: 1rem 5%;
        flex-wrap: wrap;
        /* Allow wrapping if needed */
        gap: 1rem;
    }

    .hero-section {
        flex-direction: column;
        padding: 2rem 5% 4rem;
        /* Reduced top padding */
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
        /* Further reduced */
    }

    .highlight-text::after {
        display: none;
        /* remove potential clutter */
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.1rem;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        /* Stack buttons on smaller screens for touch targets */
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        width: 100%;
    }

    .art-display {
        transform: rotate(0);
        max-width: 100%;
        margin: 0 auto;
    }

    /* Vertical Timeline */
    .timeline-steps {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
        /* Align left for timeline view */
        padding-left: 2rem;
    }

    .timeline-steps::before {
        width: 2px;
        height: 100%;
        left: 0;
        /* Move line to left */
        top: 0;
        right: auto;
        transform: none;
    }

    .step-node {
        width: 100%;
        max-width: 100%;
        padding-bottom: 2rem;
        background: transparent;
        text-align: left;
        /* Left align text */
        padding-left: 2rem;
        position: relative;
    }

    .step-number {
        position: absolute;
        left: -3rem;
        /* Position on the line */
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0;
        top: 0;
    }

    .section {
        padding: 3rem 5%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* Force single column */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .brand {
        font-size: 1.2rem;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* How It Works - Interactive */
.how-it-works-container {
    background: var(--bg-surface);
    border-radius: 24px;
    padding: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.steps-nav::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 40px;
    right: 40px;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.step-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
    opacity: 0.6;
    transition: all 0.3s;
    background: transparent;
    border: none;
    font-family: var(--font-main);
}

.step-tab.active {
    opacity: 1;
}

.step-icon-circle {
    width: 70px;
    height: 70px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.step-tab.active .step-icon-circle {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(158, 127, 86, 0.1);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.step-content-box {
    display: none;
    align-items: center;
    gap: 4rem;
    animation: fadeIn 0.5s ease;
}

.step-content-box.active {
    display: flex;
}

.step-text-content {
    flex: 1;
    padding: 0 2rem;
}

.step-text-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-text-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-image-content {
    flex: 1;
}

.step-image-content img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: block;
    aspect-ratio: 9 / 6;
    /* Desktop aspect ratio */
    object-fit: cover;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .how-it-works-container {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 1rem;
        /* Reduced padding for mobile */
    }

    /* Change active box to contents so its children become part of the main flex column */
    .step-content-box.active {
        display: contents;
    }

    /* 1. Image on Top */
    .step-image-content {
        order: 1;
        width: 100%;
        margin-bottom: 2rem;
    }

    .step-image-content img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    /* 2. Navigation Tabs in Middle - FIT ALL */
    .steps-nav {
        order: 2;
        /* Disable scroll, enable fit */
        display: flex;
        flex-wrap: nowrap;
        /* Keep on one line but shrink */
        justify-content: space-between;
        /* Spread evenly */
        overflow-x: visible;
        /* No scroll */
        gap: 0.5rem;
        /* Tiny gap */
        width: 100%;
        margin-bottom: 2rem;
        padding-bottom: 0;
    }

    .steps-nav::-webkit-scrollbar {
        display: none;
    }

    .steps-nav::before {
        display: none;
    }

    /* 3. Text on Bottom */
    .step-text-content {
        order: 3;
        padding: 0;
        text-align: center;
        width: 100%;
        /* Ensure full width for centering */
    }

    .step-text-content h3 {
        font-size: 1.75rem;
        margin-top: 1rem;
    }

    /* Tab styling adjustments for mobile */
    .step-tab {
        flex: 1;
        /* Grow evenly */
        min-width: auto;
        /* Allow shrinking below content size if needed */
        padding: 0;
    }

    .step-icon-circle {
        width: 45px;
        /* Smaller icons */
        height: 45px;
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .step-label {
        font-size: 0.6rem;
        /* Smaller text */
        line-height: 1.1;
        display: block;
        width: 100%;
        white-space: normal;
        /* Allow text wrapping if needed */
    }

    .step-tab.active .step-icon-circle {
        box-shadow: 0 0 0 2px rgba(158, 127, 86, 0.1);
        /* Thinner ring */
    }
}

/* Generator Process Section */
.generator-steps-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
}

.gen-step-item {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.phone-frame {
    width: 100%;
    background: transparent;
    /* pure image display */
}

.phone-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.gen-step-item p {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
    max-width: 200px;
}

@media (max-width: 1100px) {
    .generator-steps-grid {
        gap: 1.5rem;
    }

    .gen-step-item {
        min-width: 160px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .generator-steps-grid {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2rem;
        flex-wrap: nowrap;
        padding-left: 1rem;
        padding-right: 1rem;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
    }

    .gen-step-item {
        flex: 0 0 180px;
        /* Fixed width cards on scroll */
        min-width: 180px;
    }

    .phone-frame {
        border-width: 5px;
    }
}

/* Mobile Sidebar Styles */
.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar-overlay.active .mobile-sidebar {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.close-sidebar-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
}

.mobile-nav-links {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav-links a {
    padding: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

.mobile-nav-links a:hover {
    color: var(--secondary);
    background: var(--bg-surface);
}

@media (max-width: 900px) {
    .nav-links.desktop-only {
        display: none;
    }

    .mobile-toggle-btn {
        display: block;
    }

    .landing-nav {
        padding: 1rem 1.5rem;
    }
}