/* Global Styles */
:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-600: #475569;
    --color-slate-100: #f1f5f9;
    --color-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-slate-900);
    background-color: var(--color-slate-100);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Navigation - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 60px;
    width: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-slate-900);
    /* Prevent shrinking */
    white-space: nowrap;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Premium dark overlay on nature background */
    background-image: url('assets/nature-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.4;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--color-slate-100);
}

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

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

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-slate-800);
}

.card p {
    color: var(--color-slate-600);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--color-white);
    padding: 3rem 0;
    border-top: 1px solid var(--color-slate-100);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 30px;
    filter: grayscale(100%);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-slate-600);
    font-weight: 600;
    transition: color 0.2s;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .logo-text {
        display: none;
    }

    .nav-content {
        gap: 1rem;
    }

    .nav-content a:not(.btn):not(.logo-link) {
        display: none;
    }

    .hero-title {
        font-size: 2.75rem;
        margin-top: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 0.5rem;
    }

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

    .footer-brand {
        flex-direction: column;
    }
}

/* App Preview Section */
.app-preview {
    padding: 6rem 0;
    background-color: var(--color-slate-900);
    color: var(--color-white);
    overflow: hidden;
    position: relative;
}

/* Add a subtle background pattern or gradient for depth */
.app-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 40%);
    pointer-events: none;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

/* Mock App Cards */
.app-card {
    background: rgba(30, 41, 59, 0.7);
    /* slate-800 with opacity */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.app-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.025em;
}

.app-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    background: rgba(37, 99, 235, 0.2);
    /* primary with opacity */
    color: #60a5fa;
    /* lighter blue */
    border-radius: 9999px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Workout Visualization Mockup */
.workout-visual {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 140px;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.workout-bar {
    flex: 1;
    background: var(--color-primary);
    opacity: 0.4;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s ease-out;
}

.workout-bar.active {
    opacity: 1;
    background: linear-gradient(to top, var(--color-primary), #60a5fa);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.workout-bar.recovery {
    background: var(--color-slate-600);
    opacity: 0.3;
}

.workout-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-family: 'SF Mono', 'Roboto Mono', monospace;
    color: #94a3b8;
    /* slate-400 */
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
}

/* Habit Tracker Mockup */
.habit-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.habit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.habit-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.habit-icon {
    font-size: 1.2rem;
}

.habit-dots {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dot.completed {
    background: #10b981;
    /* emerald-500 */
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    transform: scale(1.1);
}

/* How It Works / Get Started Section */
.how-it-works {
    padding: 8rem 0;
    background-color: var(--color-white);
}

.steps-container {
    max-width: 900px;
    margin: 4rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.step {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-slate-900);
}

.step-content p {
    color: var(--color-slate-600);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.step-image {
    flex: 1;
    background: var(--color-slate-100);
    border-radius: 1.5rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Specific button for Step 1 */
.step-content .btn-template {
    background: #0f9d58;
    /* Google Sheets Green */
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.step-content .btn-template:hover {
    background: #0b8043;
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    .step,
    .step:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }
}

/* Dual Workflow Layout */
.workflow-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.workflow-card {
    background: var(--color-slate-100);
    padding: 3rem 2rem;
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.workflow-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.workflow-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sub-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sub-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.sub-step-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.sub-step-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.sub-step-text p {
    font-size: 0.95rem;
    color: var(--color-slate-600);
}

.shared-outcome {
    margin-top: 4rem;
    padding: 4rem 2rem;
    background: var(--color-slate-900);
    color: white;
    border-radius: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shared-outcome h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.shared-outcome p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .workflow-options {
        grid-template-columns: 1fr;
    }
}

.step-image.small {
    min-height: 100px;
    height: auto;
    background: white;
    box-shadow: none;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mission Section */
.mission {
    padding: 6rem 0;
    background: var(--color-slate-900);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mission-quote-icon {
    font-size: 8rem;
    line-height: 1;
    position: absolute;
    top: -4rem;
    left: -2rem;
    opacity: 0.1;
    font-family: serif;
    pointer-events: none;
}

.mission-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.mission-hammer {
    display: block;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mission-text {
    font-size: 1.75rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-style: italic;
    max-width: 750px;
    margin: 0 auto 3rem auto;
}

.mission-footer {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mission-text strong {
    color: var(--color-white);
    border-bottom: 2px solid var(--color-primary);
}

@media (max-width: 768px) {
    .mission {
        padding: 6rem 1rem;
    }

    .mission-title {
        font-size: 2.5rem;
    }

    .mission-hammer {
        font-size: 1.5rem;
    }

    .mission-text {
        font-size: 1.25rem;
    }

    .mission-quote-icon {
        font-size: 5rem;
        top: -2rem;
        left: 0;
    }
}

/* Quote Rotator Section */
.quote-rotator-section {
    background: var(--color-slate-900);
    padding: 4rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    text-align: center;
}

.quote-rotator {
    position: relative;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-content {
    position: absolute;
    width: 100%;
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.quote-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.quote-content.exit {
    opacity: 0;
    transform: translateY(-20px);
}

@media (max-width: 768px) {
    .quote-rotator-section {
        padding: 3rem 1rem;
    }

    .quote-rotator {
        height: 6rem;
        /* More height for wrapped text on mobile */
    }

    .quote-content {
        font-size: 1.125rem;
        line-height: 1.4;
    }
}

/* Comparison Table */
.comparison-section {
    padding: 6rem 0;
    background-color: var(--color-white);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    box-shadow: var(--shadow-sm);
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: var(--color-white);
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
    font-weight: 800;
    color: var(--color-slate-900);
    background: rgba(0, 0, 0, 0.02);
    font-size: 1.1rem;
}

.comparison-table td {
    color: var(--color-slate-600);
    line-height: 1.5;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.highlight-col {
    background: rgba(37, 99, 235, 0.03);
    /* very subtle primary tint */
}

.comparison-table td strong {
    color: var(--color-primary);
}