:root {
    /* Theme Colors */
    --earth-light: #F4F1EB;
    --earth-base: #DCD5C6;
    --earth-green: #6B7A64;
    --earth-dark-green: #4A5744;
    --earth-text: #2C332A;
    --white: #ffffff;
}

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

body {
    background-color: var(--earth-light);
    color: var(--earth-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    background-color: var(--earth-green);
    color: var(--white);
}

/* Typography */
.font-serif { font-family: 'PT Serif', Georgia, serif; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* Layout */
header {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.align-left {
    text-align: left;
}

.container {
    max-width: 48rem; /* 3xl */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Components */
.logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-svg {
    fill: var(--earth-dark-green);
    color: var(--earth-dark-green);
}

.brand-name {
    font-size: 1.25rem;
    letter-spacing: 0.025em;
    color: var(--earth-dark-green);
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--earth-green);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(107, 122, 100, 0.3);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background-color: rgba(107, 122, 100, 0.05);
}

h1 {
    font-size: clamp(2.25rem, 8vw, 4.5rem);
    color: var(--earth-dark-green);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.125rem;
    color: rgba(44, 51, 42, 0.8);
    max-width: 42rem;
    line-height: 1.625;
    margin-bottom: 2.5rem;
}

/* Form Styling */
.form-container {
    width: 100%;
    max-width: 28rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid var(--earth-base);
    position: relative;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.mail-icon {
    position: absolute;
    left: 1rem;
    color: rgba(44, 51, 42, 0.4);
}

input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: transparent;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--earth-text);
}

input::placeholder { color: rgba(44, 51, 42, 0.4); }

.submit-btn {
    background-color: var(--earth-green);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    min-width: 120px;
}

.submit-btn:hover { background-color: var(--earth-dark-green); }

.success-overlay {
    display: none;
    inset: 0;
    background: var(--white);
    border-radius: 1rem;
    align-items: center;
    justify-content: center;
    color: var(--earth-green);
    font-weight: 500;
    gap: 0.5rem;
    border: 1px solid rgba(107, 122, 100, 0.2);
    padding: 16px 24px;
}

.success-overlay.active { display: flex; }

.disclaimer {
    font-size: 0.75rem;
    color: rgba(44, 51, 42, 0.5);
    margin-top: 1rem;
    max-width: 24rem;
}

/* Footer */
footer {
    width: 100%;
    padding: 2rem 1.5rem;
    background-color: var(--earth-dark-green);
    color: rgba(244, 241, 235, 0.7);
    font-size: 0.75rem;
}

.footer-content {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-text {
    max-width: 48rem;
    line-height: 1.6;
    font-size: 11px;
    text-align: center;
}

.legal-text a {
    color: rgba(244, 241, 235, 0.7);
    font-size: 0.75rem;
}

.copyright { opacity: 0.75; text-align: center; }

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

.opacity-25 {
    opacity: 25%;
}

.opacity-75 {
    opacity: 75%;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.spinner {
    height: 16px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (min-width: 768px) {
    header { padding: 1.5rem 3rem; }
    main { padding: 3rem; }
    .newsletter-form { flex-direction: row; }
    .footer-content { flex-direction: row; justify-content: space-between; align-items: center; }
    .legal-text { text-align: left; }
    .copyright { text-align: right; }
    .hidden-mobile { display: block; }
}

.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: block; } }