@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-v17-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('fonts/dm-serif-display-v17-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

#sib-form {
    scroll-margin-top: 1000px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    background: #1c1c1a;
    color: #b5b2ab;
    overflow-x: hidden;
    box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

/* ==========================================
   GLOBAL TEXT SAFETY
   ========================================== */

p, li, span, h1, h2, h3, h4, h5, h6 {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1,
h2,
h3 {
    margin: 0 0 1.5rem 0;
}

h1 {
    font-size: clamp(2.2rem, 3.8vw + 1rem, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fafafa;
    font-family: 'DM Serif Display', Georgia, serif;
}

h2 {
    font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
    color: #aaa;
}

h3 {
    font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.5rem);
    color: #fafafa;
}

li {
    font-size: clamp(0.95rem, 0.6vw + 0.85rem, 1.1rem);
    margin-top: 1rem;
}

p,
a {
    font-size: clamp(0.95rem, 0.6vw + 0.85rem, 1.1rem);
    line-height: 1.6;
    margin: 0 0 1rem 0;
    color: #E6E6E4;
}

section {
    padding: 0 0;
}

/* ==========================================
   CONTAINER GLOBAL
   ========================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: hidden;
  box-sizing: border-box;
}

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

@media (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 0.75rem;
  }
}

/* ==========================================
   TOP BAR / HEADER
   ========================================== */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.4s ease;
}

.logo {
    max-width: 200px;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
}

.top-bar-links a {
    font-size: 1.3rem;
    color: #66c2b4;
    margin: 0;
    text-decoration: none;
    white-space: nowrap;
}

.top-bar a:hover {
    text-decoration: underline;
}

body.scrolled .top-bar {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background-color: rgba(102, 194, 180, 0.1);
    transition: backdrop-filter 1s ease, background-color 0.3s ease;
}

.top-bar .cta-button {
    background-color: #1A1A1A;
    border: 2px solid #66c2b4;
    color: #66c2b4;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    background: #66c2b4;
    color: black;
    font-weight: 600;
    transition: 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #66c2b4;
    color: black;
    transform: translateY(-2px);
}

/* ==========================================
   HERO GRID BACKGROUND
   ========================================== */

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(93, 202, 165, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 202, 165, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
    pointer-events: none;
}

/* ==========================================
   NEWSLETTER HERO SECTION
   ========================================== */

.newsletter-hero {
    position: relative;
    min-height: 100dvh;
    display: grid;
    align-content: center;
    padding: 2rem 2rem;
}

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

.newsletter-badge {
    display: inline-block;
    background: rgba(102, 194, 180, 0.15);
    color: #66c2b4;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.newsletter-intro {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ==========================================
   NEWSLETTER FORM
   ========================================== */

.newsletter-form {
    background: #252523;
    border: 1px solid #333;
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.form-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.form-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-message--success {
    background: rgba(102, 194, 180, 0.1);
    border: 1px solid rgba(102, 194, 180, 0.3);
    color: #66c2b4;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    color: #ccc;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.required {
    color: #66c2b4;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #1c1c1a;
    border: 1px solid #444;
    border-radius: 0.75rem;
    color: #fafafa;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder {
    color: #666;
}

.form-group input:focus {
    outline: none;
    border-color: #66c2b4;
    box-shadow: 0 0 0 3px rgba(102, 194, 180, 0.15);
}

/* Checkbox Styling */
.form-group-checkbox {
    margin-bottom: 1.25rem;
    text-align: left;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #aaa;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: #1c1c1a;
    border: 2px solid #444;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: #66c2b4;
    border-color: #66c2b4;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid #1c1c1a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-text a {
    color: #66c2b4;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Submit Button */
.newsletter-submit {
    width: 100%;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.button-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.newsletter-hint {
    color: #666;
    font-size: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

/* Newsletter Features */
.newsletter-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.newsletter-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
}

.newsletter-feature .check-icon {
    width: 16px;
    height: 16px;
    color: #66c2b4;
}

/* ==========================================
   SECTION HEADER
   ========================================== */

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

.section-header h2 {
    margin-bottom: 0.5rem;
}

/* ==========================================
   NEWSLETTER PREVIEW SECTION
   ========================================== */

.newsletter-preview {
    padding: 5rem 0;
    background-color: #1e1e1c;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.preview-card {
    background: #252523;
    border: 1px solid #333;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.preview-card:hover {
    border-color: #444;
    transform: translateY(-4px);
}

.preview-icon {
    width: 48px;
    height: 48px;
    background: rgba(102, 194, 180, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.preview-icon svg {
    width: 24px;
    height: 24px;
    color: #66c2b4;
}

.preview-card h3 {
    font-size: 1.1rem;
    color: #fafafa;
    margin-bottom: 0.75rem;
}

.preview-card p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   NEWSLETTER ABOUT SECTION
   ========================================== */

.newsletter-about {
    padding: 5rem 0;
}

.about-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    background: #252523;
    border: 1px solid #333;
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.about-card-content h2 {
    color: #fafafa;
    margin-bottom: 1rem;
}

.about-card-content p {
    color: #aaa;
    margin-bottom: 1rem;
}

.about-card-content p:last-child {
    margin-bottom: 0;
}

.about-card-image .image-placeholder {
    width: 200px;
    height: 200px;
    background: #333;
    border-radius: 50%;
    overflow: hidden; 
}

.about-me-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center top;
}

/* ==========================================
   NEWSLETTER CTA SECTION
   ========================================== */

.newsletter-cta {
    padding: 4rem 0 6rem;
}

.cta-card {
    background: linear-gradient(to bottom right, rgba(102, 194, 180, 0.1), transparent);
    border: 1px solid rgba(102, 194, 180, 0.3);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-card h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2rem;
    color: #fafafa;
    margin-bottom: 0.75rem;
}

.cta-card p {
    color: #aaa;
    margin-bottom: 1.5rem;
}

/* ==========================================
   SUCCESS PAGE
   ========================================== */

.success-hero {
    position: relative;
    min-height: 100dvh;
    display: grid;
    align-content: center;
    padding: 0 2rem;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(102, 194, 180, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: #66c2b4;
}

.success-content h1 {
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.success-hint {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Success Steps */
.success-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.success-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #252523;
    border: 1px solid #333;
    border-radius: 1rem;
    padding: 1.25rem;
}

.step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #66c2b4;
    color: #1c1c1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-text strong {
    color: #fafafa;
    font-size: 1rem;
}

.step-text span {
    color: #888;
    font-size: 0.9rem;
}

.success-button {
    margin-top: 1rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-box {
    color: #666;
    text-decoration: none;
}

.footer-box:hover {
    color: #999;
    text-decoration: underline;
}

.linkedin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.linkedin-link:hover {
    background: #66c2b4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-link svg {
    width: 25px;
    height: 25px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-card-image {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .newsletter-features {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 130px;
    }

    .top-bar {
        padding: 0.875rem 1rem;
    }

    .top-bar-links {
        gap: 1rem;
    }

    .top-bar-links a {
        font-size: 0.9rem;
    }

    .top-bar .cta-button {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }

    .newsletter-hero,
    .success-hero {
        padding: 5rem 1rem;
    }

    .newsletter-form {
        padding: 1.5rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .success-icon {
        width: 64px;
        height: 64px;
    }

    .success-icon svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 600px) {
    .top-bar {
        padding: 0.75rem 1rem;
    }

    .top-bar-links a {
        font-size: 0.85rem;
    }

    .top-bar .cta-button {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }

    h1 {
        font-size: clamp(1.6rem, 5vw, 2rem);
    }

    h2 {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
}

@media (max-width: 400px) {
    .top-bar {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }

    .logo {
        max-width: 100px;
    }

    .top-bar-links {
        gap: 0.625rem;
    }

    .top-bar-links a {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    .top-bar .cta-button {
        padding: 0.4rem 0.625rem;
        font-size: 0.7rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .newsletter-hero,
    .success-hero {
        padding: 5rem 0.5rem;
    }

    .newsletter-form {
        padding: 1.25rem;
        border-radius: 1rem;
    }

    .newsletter-preview,
    .newsletter-about {
        padding: 3rem 0;
    }

    .newsletter-cta {
        padding: 3rem 0 4rem;
    }

    .preview-card {
        padding: 1.25rem;
    }

    .about-card {
        padding: 1.25rem;
    }

    .cta-card {
        padding: 1.5rem;
    }

    .success-step {
        padding: 1rem;
    }

    .footer {
        flex-direction: column;
        gap: 1rem;
    }
}