.home {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.home .hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
}

.home .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.home .hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
}

.home .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.home .hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-white, white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
}

.home .hero h1 span {
    display: block;
}

.home .hero h1 span.accent {
    color: var(--color-cta);
}

.home .hero h2 {
    color: var(--color-white, white);
    font-style: italic;
}

.home .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--color-white-alpha-85, rgba(255, 255, 255, 0.85));
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.home .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.home .hero-buttons .button-primary,
.home .hero-buttons .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home .hero-buttons .button-primary {
    background: var(--color-cta);
    border: none;
    color: var(--color-white, white);
    min-width: 180px;
}

.home .hero-buttons .button-primary:hover {
    background: var(--color-cta-hover);
    color: var(--color-white, white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-cta);
}

.home .hero-buttons .button-secondary {
    background: transparent;
    border: 2px solid var(--color-white-alpha-50, rgba(255, 255, 255, 0.5));
    color: var(--color-white, white);
    min-width: 180px;
}

.home .hero-buttons .button-secondary:hover {
    background: var(--color-white-alpha-10, rgba(255, 255, 255, 0.1));
    border-color: var(--color-white, white);
    color: var(--color-white, white);
    transform: translateY(-3px);
}

.home .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

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

.home .hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-cta);
}

.home .hero-stats .stat-label {
    font-size: 0.9rem;
    color: var(--color-white-alpha-70, rgba(255, 255, 255, 0.7));
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.home .welcome {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;


    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home .welcome h1 {
    font-size: 2.25rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.home .welcome p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1.1rem;
}

.home .value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home .value-prop {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home .value-prop:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.home .value-prop-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-cta-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .value-prop-icon i {
    font-size: 2rem;
    color: var(--color-cta);
}

.home .value-prop h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.home .value-prop p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

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

.home .segments h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.segments-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.home .segment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.home .segment-card {
    position: relative;
    padding: 2.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}


.home .segment-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: #f4f4f4;
}

.home .segment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home .segment-card > * {
    margin-bottom: 1rem;
}

.home .segment-card > *:last-child {
    margin-bottom: 0;
    margin-top: auto;
}

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

.home .segment-card.featured {
    border-color: var(--color-cta);
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-cta-light) 100%);
}

.home .segment-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-cta);
    color: var(--color-white, white);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.home .segment-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-surface-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .segment-card.featured .segment-icon {
    background: var(--color-cta);
}

.home .segment-icon i {
    font-size: 2rem;
    color: var(--color-text);
}

.home .segment-card.featured .segment-icon i {
    color: var(--color-white, white);
}

.home .segment-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.home .segment-card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.home .segment-products {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.home .segment-products li {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.home .segment-card .button-primary,
.home .segment-card .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
    min-height: 40px;
}

/* About Preview Section */
.home .about-preview {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-white) 100%);
}

.home .about-preview-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home .about-preview-text {
    text-align: center;
}

.home .about-preview-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.home .about-preview-text p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.home .about-preview-image {
    display: flex;
    justify-content: center;
}

.home .about-preview-image .image-placeholder {
    width: 300px;
    height: 400px;
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home .about-preview-image .image-placeholder i {
    font-size: 4rem;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .home .about-preview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* CTA Section */
.home .cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    text-align: center;
}

.home .cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.home .cta-section h2 {
    font-size: 2.5rem;
    color: var(--color-white, white);
    margin-bottom: 1rem;
}

.home .cta-section p {
    font-size: 1.2rem;
    color: var(--color-white-alpha-85, rgba(255, 255, 255, 0.85));
    margin-bottom: 2rem;
}

.home .cta-section .button-primary {
    background: var(--color-cta);
    display: inline-flex;
    min-width: 200px;
}

.home .cta-section .button-primary:hover {
    background: var(--color-cta-hover);
    color: var(--color-white, white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-cta);
}

/* Responsive */
@media (max-width: 768px) {
    .home .hero {
        min-height: 70vh;
        padding: 2rem 1rem;
    }

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

    .home .hero-stats {
        gap: 2rem;
    }

    .home .hero-stats .stat-number {
        font-size: 2rem;
    }

    .home .value-props,
    .home .segments {
        padding: 3rem 1rem;
    }

    .home .segments h2,
    .home .cta-section h2 {
        font-size: 1.75rem;
    }

    .home .cta-section {
        padding: 4rem 1rem;
    }
}

/* Newsletter Section */
.home .newsletter {
    padding: 4rem 1rem;
    background: var(--color-surface);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.home .newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.home .newsletter h3 {
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.home .newsletter > .newsletter-content > p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* Newsletter Form Layout */
.home .newsletter form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.home .newsletter form .field-group {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.home .newsletter form input[type="email"] {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.home .newsletter form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-cta);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
    background-color: var(--color-bg);
}

.home .newsletter form input[type="email"]::placeholder {
    color: var(--color-text-light);
}

/* Validation Rule Styling */
.home .newsletter .validation-rule {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.5rem;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.home .newsletter .validation-rule .validation-hint {
    opacity: 0.7;
}

.home .newsletter .validation-rule.valid {
    color: var(--color-text-muted);
}

.home .newsletter .validation-rule.valid .validation-hint {
    opacity: 1;
    text-decoration: line-through;
}

.home .newsletter .validation-rule.valid::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.home .newsletter .validation-rule.error {
    color: var(--color-error);
}

.home .newsletter .validation-rule.error .validation-hint {
    display: inline;
}

.home .newsletter .validation-rule.error::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 4px;
}

.home .newsletter .validation-rule.empty {
    color: var(--color-text-muted);
}

.home .newsletter .validation-rule.empty .validation-hint {
    display: inline;
}

.home .newsletter .validation-rule.empty::before {
    display: none;
}

/* Input border changes based on validation state */
.home .newsletter form .field-group:has(.validation-rule.valid) input[type="email"] {
    border-color: var(--color-success);
}

.home .newsletter form .field-group:has(.validation-rule.error) input[type="email"] {
    border-color: var(--color-error);
}

/* Button Loading State */
.home .newsletter form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 180px;
}

.home .newsletter form button[type="submit"] .btn-text {
    display: flex;
}

.home .newsletter form button[type="submit"] .btn-loading {
    display: none;
}

.home .newsletter form button[type="submit"].htmx-request .btn-text,
.home .newsletter form button[type="submit"][disabled] .btn-text {
    display: none;
}

.home .newsletter form button[type="submit"].htmx-request .btn-loading,
.home .newsletter form button[type="submit"][disabled] .btn-loading {
    display: flex;
}

[x-cloak] {
    display: none !important;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error Summary */
.home .newsletter .error-summary {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    background-color: var(--color-error-light);
    color: var(--color-error);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    text-align: left;
}

.home .newsletter .error-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

.home .newsletter .error-summary li {
    margin-bottom: 0.25rem;
}

/* Success Component */
.home .newsletter-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--color-success-light);
    border-radius: var(--radius-lg);
    max-width: 400px;
    margin: 0 auto;
}

.home .newsletter-success .success-icon {
    width: 64px;
    height: 64px;
    background-color: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.3s ease-out;
}

.home .newsletter-success .success-icon svg {
    color: white;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.home .newsletter-success h4 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-success);
}

.home .newsletter-success p {
    margin: 0;
    color: var(--color-text-muted);
}

.home .newsletter-success .success-email {
    font-size: 0.875rem;
}

/* Honeypot field - hidden from humans but visible to bots */
.home .hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Test Buttons - for development only */
.home .test-buttons {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--color-border);
}

.home .test-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.home .test-btn {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    font-size: 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.home .test-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-dark);
}
