/* ========================================
   Strom Landing Page - Organic Editorial Design
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Color Palette - Earthy, organic greens */
    --color-forest: #1a3a2f;
    --color-moss: #2d5a47;
    --color-sage: #4a7c59;
    --color-leaf: #6b9b7a;
    --color-mint: #a8d5ba;
    --color-cream: #f8f6f1;
    --color-paper: #fffdf8;
    --color-ink: #1a1a18;
    --color-muted: #6b6b68;
    --color-border: #e8e4db;

    /* Tree visualization colors */
    --color-trunk: #5c4a3d;
    --color-branch: #7a6555;
    --color-branch-faded: #a89888;
    --color-node-primary: var(--color-forest);
    --color-node-secondary: var(--color-moss);
    --color-node-tertiary: var(--color-sage);
    --color-node-faded: var(--color-leaf);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --max-width: 1200px;
    --header-height: 72px;

    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-soft: 0 2px 8px rgba(26, 58, 47, 0.06);
    --shadow-medium: 0 4px 24px rgba(26, 58, 47, 0.08);
    --shadow-strong: 0 8px 40px rgba(26, 58, 47, 0.12);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ========================================
   Reset & Base
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-ink);
    background-color: var(--color-paper);
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   Background Decoration
   ======================================== */

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.branch {
    position: absolute;
    background: var(--color-mint);
    opacity: 0.08;
    border-radius: 100px;
}

.branch-1 {
    width: 400px;
    height: 3px;
    top: 20%;
    left: -100px;
    transform: rotate(-15deg);
}

.branch-2 {
    width: 300px;
    height: 2px;
    top: 60%;
    right: -50px;
    transform: rotate(25deg);
}

.branch-3 {
    width: 200px;
    height: 2px;
    bottom: 30%;
    left: 10%;
    transform: rotate(-8deg);
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
}

/* ========================================
   Layout Utilities
   ======================================== */

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

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--color-forest);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--color-moss);
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-cream);
    color: var(--color-forest);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-paper);
    border-color: var(--color-sage);
}

.btn-ghost {
    color: var(--color-muted);
    padding: var(--space-md) var(--space-lg);
}

.btn-ghost:hover {
    color: var(--color-forest);
    background: var(--color-cream);
}

.btn-nav {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-forest);
    color: white;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.btn-nav:hover {
    background: var(--color-moss);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-large svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 253, 248, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-forest);
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--color-moss);
}

.logo-tree {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-forest);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    color: var(--color-muted);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-forest);
    transition: width var(--transition-base);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.lang-switcher:hover {
    color: var(--color-forest);
    background: var(--color-cream);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-ink);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-menu-btn.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-btn.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
    min-height: 100vh;
    padding: calc(var(--header-height) + var(--space-3xl)) var(--space-lg) var(--space-3xl);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid var(--color-sage);
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-forest);
    margin-bottom: var(--space-lg);
    box-shadow: 0 2px 8px rgba(74, 124, 89, 0.15);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--color-ink);
    margin-bottom: var(--space-lg);
}

.hero-title span {
    display: block;
}

.hero-title-accent {
    color: var(--color-forest);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 480px;
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-forest);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Hero Visual - Tree Illustration */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tree-illustration {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: var(--space-xl);
    background: var(--color-cream);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.tree-svg {
    width: 100%;
    height: auto;
}

.tree-label {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--color-muted);
    white-space: nowrap;
}

/* Node animations */
.node circle {
    transition: transform var(--transition-base);
}

.tree-illustration:hover .node-main circle {
    transform: scale(1.1);
    transform-origin: 200px 260px;
}

/* ========================================
   Section Styles
   ======================================== */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-sage);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-ink);
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: var(--space-5xl) var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--color-sage);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.feature-card.feature-highlight {
    background: linear-gradient(135deg, #22614c 0%, #2d7a5e 100%);
    border-color: transparent;
    color: #ffffff;
}

.feature-card.feature-highlight:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.feature-card.feature-highlight .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.feature-card.feature-highlight h3 {
    color: #ffffff;
    font-weight: 600;
}

.feature-card.feature-highlight p {
    color: #ffffff;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-cream);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--color-forest);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--color-ink);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* ========================================
   How It Works Section
   ======================================== */

.how-it-works {
    padding: var(--space-5xl) var(--space-lg);
    background: var(--color-cream);
    position: relative;
    z-index: 1;
}

.how-it-works .section-header,
.how-it-works .steps {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-forest);
    color: white;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--color-ink);
}

.step-content p {
    color: var(--color-muted);
    max-width: 400px;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: var(--color-border);
    margin-left: 23px;
}

/* ========================================
   Download Section
   ======================================== */

.download {
    padding: var(--space-5xl) var(--space-lg);
    position: relative;
    z-index: 1;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.download-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-ink);
    margin-bottom: var(--space-md);
}

.download-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    margin-bottom: var(--space-2xl);
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.download-note {
    font-size: 0.875rem;
    color: var(--color-muted);
}

/* ========================================
   Support/Donate Section
   ======================================== */

.support {
    padding: var(--space-4xl) var(--space-lg);
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-mint) 100%);
    position: relative;
    z-index: 1;
}

.support-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.support-text h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--color-forest);
    margin-bottom: var(--space-md);
}

.support-text p {
    color: var(--color-ink);
    max-width: 500px;
    opacity: 0.85;
}

.bmc-button {
    display: inline-block;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.bmc-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.bmc-button img {
    display: block;
    border-radius: var(--radius-md);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: var(--space-4xl) var(--space-lg) var(--space-xl);
    background: var(--color-forest);
    color: white;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    width: 32px;
    height: 32px;
    opacity: 0.9;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
}

.footer-tagline {
    display: block;
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-2xl);
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-bottom: var(--space-md);
}

.footer-col a {
    display: block;
    font-size: 0.9375rem;
    opacity: 0.85;
    padding: var(--space-xs) 0;
    transition: opacity var(--transition-fast);
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    max-width: var(--max-width);
    margin: var(--space-xl) auto 0;
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.6;
}

.footer-author {
    font-size: 0.875rem;
    opacity: 0.5;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Mobile: up to 640px */
@media (max-width: 640px) {
    :root {
        --space-lg: 1rem;
    }

    .nav-links,
    .nav-actions .btn-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-paper);
        padding: var(--space-lg);
        border-bottom: 1px solid var(--color-border);
        gap: var(--space-md);
    }

    .nav-links.active a {
        padding: var(--space-md);
        text-align: center;
    }

    .hero {
        padding-top: calc(var(--header-height) + var(--space-2xl));
        min-height: auto;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-lg);
    }

    .stat-divider {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .tree-illustration {
        padding: var(--space-md);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-connector {
        margin-left: 0;
    }

    .download-actions {
        flex-direction: column;
    }

    .download-actions .btn {
        width: 100%;
    }

    .footer-content {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        text-align: center;
    }
}

/* Tablet: 641px to 1024px */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-subtitle {
        max-width: 520px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .tree-illustration {
        max-width: 350px;
    }
}

/* Desktop: 1025px and up */
@media (min-width: 1025px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
    }

    .footer-content {
        grid-template-columns: 1fr 2fr;
    }

    .support-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Large Desktop: 1280px and up */
@media (min-width: 1280px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        max-width: 300px;
    }

    .step-connector {
        width: 80px;
        height: 2px;
        margin: 24px 0 0 0;
        align-self: flex-start;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge,
.hero-title,
.hero-subtitle,
.hero-actions,
.hero-stats {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-subtitle { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }
.hero-stats { animation-delay: 0.5s; }

.hero-visual {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
