/* StructuraDocs Home Page */

.home {
    scroll-behavior: smooth;
}

.home [id] {
    scroll-margin-top: 4rem;
}

.home .home-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--surface2);
}

.home .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home .nav-main {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.home .nav-main a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.home .nav-main a:hover {
    color: var(--accent);
}

.home .theme-toggle {
    background: none;
    border: none;
    color: var(--muted);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.25rem 0;
}

.home .theme-toggle:hover {
    color: var(--accent);
}

.home .nav-cta {
    color: #FFFFFF !important;
    background: var(--primary);
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-warm);
}

.home .nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* Hero */
.home .hero {
    text-align: center;
    padding: 4rem 1.5rem 4.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.home .hero-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 1.25rem 0;
    letter-spacing: 0.02em;
}

.home .hero h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.home .hero .tagline {
    color: var(--muted);
    margin: 0 0 1.75rem 0;
    font-size: 1.1rem;
    line-height: 1.65;
}

.home .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.home .btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.home .btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--surface2);
}

.home .btn-ghost:hover {
    color: var(--primary);
    border-color: var(--accent);
}

.home .hero-note {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

/* Stats */
.home .stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    padding: 2rem 1.5rem;
    background: var(--surface);
    border-top: 1px solid var(--surface2);
    border-bottom: 1px solid var(--surface2);
}

.home .stat {
    text-align: center;
}

.home .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

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

/* Section title */
.home .section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    color: var(--primary);
}

/* Features */
.home .features {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.home .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.home .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-warm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.home .feature-card:hover {
    border-color: rgba(91, 58, 41, 0.3);
    box-shadow: 0 4px 16px rgba(91, 58, 41, 0.12);
}

.home .feature-icon {
    display: block;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.home .feature-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}

.home .feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Citation styles */
.home .styles-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--surface2);
}

.home .styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.home .style-card {
    background: var(--card-bg);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-warm);
}

.home .style-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}

.home .style-card p {
    margin: 0 0 1rem 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.home .style-link {
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.home .style-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* How it works */
.home .how-it-works {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--surface2);
}

.home .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.home .step {
    text-align: center;
}

.home .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent-soft);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.home .step h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5rem 0;
    color: var(--primary);
}

.home .step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.home .how-cta {
    text-align: center;
    margin: 0;
}

/* Download section */
.home .download-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--surface2);
}

.home .download-intro {
    text-align: center;
    color: var(--muted);
    margin: 0 0 2.5rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.home .download-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 640px) {
    .home .download-cards {
        grid-template-columns: 1fr;
    }
}

.home .download-card {
    background: var(--card-bg);
    border: 2px solid var(--surface2);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow-warm), 0 4px 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

[data-theme="dark"] .home .download-card {
    box-shadow: var(--shadow-warm), 0 4px 24px rgba(0, 0, 0, 0.25);
    border-color: var(--surface2);
}

.home .download-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(91, 58, 41, 0.15), 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .home .download-card:hover {
    box-shadow: 0 8px 32px rgba(180, 83, 9, 0.2), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.home .download-card-badge {
    display: inline-block;
    align-self: flex-start;
    margin: 1rem 1.25rem 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary);
    background: var(--accent-soft);
    border-radius: 999px;
}

.home .download-card-hero {
    padding: 1.25rem 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 7rem;
}

.home .download-card-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .download-card-icon .bi {
    font-size: 2.5rem;
    margin: 0;
}

.home .download-card-title {
    font-size: 1.25rem;
    margin: 0 1.5rem 0.5rem;
    color: var(--text);
}

.home .download-card-desc {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 1.5rem 1rem;
}

.home .download-card-features {
    list-style: none;
    padding: 0 1.5rem;
    margin: 0 0 0.75rem 0;
    flex: 1;
}

.home .download-card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.home .download-card-features li .bi {
    color: var(--success);
    font-size: 1rem;
    margin: 0;
    flex-shrink: 0;
}

.home .download-card-requirements {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0 1.5rem 1.25rem;
}

.home .download-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    border-radius: 0;
    transition: background 0.2s, box-shadow 0.2s;
    margin: 0 1rem 1rem;
}

.home .download-card-cta.btn-primary {
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
    margin-top: auto;
    border-radius: var(--radius);
}

.home .download-card-cta .bi {
    margin: 0;
}

.home .download-card-coming-soon {
    width: calc(100% - 2rem);
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    background: var(--surface);
    border: 2px dashed var(--surface2);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.home .download-card-coming-soon .coming-soon-text {
    display: block;
}

/* Contact section */
.home .contact-section {
    max-width: 560px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--surface2);
}

.home .contact-intro {
    text-align: center;
    color: var(--muted);
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
}

.home .contact-section .alert {
    margin-bottom: 1rem;
}

.home .contact-form .form-group {
    margin-bottom: 1.25rem;
}

.home .contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 520px) {
    .home .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.home .contact-form-actions {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.home .contact-form .btn-contact-submit,
.home .contact-form .btn {
    display: inline-block;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    margin-top: 0;
    cursor: pointer;
}

/* About strip */
.home .about-strip {
    background: var(--surface);
    border-top: 1px solid var(--surface2);
    padding: 3rem 1.5rem;
}

.home .about-strip h2 {
    color: var(--primary);
}

.home .about-strip-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.home .about-strip h2 {
    font-size: 1.35rem;
    margin: 0 0 0.75rem 0;
}

.home .about-strip p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* CTA section */
.home .cta-section {
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--surface2);
}

.home .cta-inner {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.home .cta-inner h2 {
    font-size: 1.5rem;
    margin: 0 0 1.25rem 0;
    color: var(--primary);
}

.home .cta-sub {
    margin: 1rem 0 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.home .cta-sub a {
    color: var(--accent);
    text-decoration: none;
}

.home .cta-sub a:hover {
    text-decoration: underline;
}

/* Footer */
.home .home-footer {
    border-top: 1px solid var(--surface2);
    padding: 0;
}

.home .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .home .footer-inner {
        grid-template-columns: 1.2fr 2fr;
    }
}

.home .footer-brand .logo img {
    max-height: 2rem;
}

.home .footer-brand p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

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

.home .footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 0 0 0.75rem 0;
}

.home .footer-col a {
    display: block;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.home .footer-col a:hover {
    color: var(--accent);
}

.home .footer-col p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.home .footer-bottom {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--surface2);
    text-align: center;
}

.home .footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}
