:root {
    /* Palette */
    --color-bg-light: #F8FAFC;
    --color-bg-white: #FFFFFF;
    --color-primary: #0F172A;
    /* Slate 900 */
    --color-secondary: #334155;
    /* Slate 700 */
    --color-accent: #005F73;
    /* G2M Teal */
    --color-accent-hover: #004655;
    /* Darker Teal */
    --color-text-main: #1E293B;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;

    /* Spacing */
    --spacing-container: 1200px;
    --section-padding: 5rem 2rem;

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(0, 95, 115, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 95, 115, 0.25);
}

.section-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-text .subheadline {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
}

.social-proof-micro {
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.social-proof-micro span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-image {
    background-color: #CBD5E1;
    height: 500px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    /* Placeholder for actual image */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .hero-image::after removed */

/* Pain Points */
.pain-points {
    padding: var(--section-padding);
    background-color: var(--color-bg-white);
}

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

.pain-card {
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #FFFCFC;
    /* Subtle warning tint */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center horizontally */
    text-align: center;
}

.pain-card:hover {
    transform: translateY(-5px);
    border-color: #FECACA;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    /* Add shadow on hover */
}

/* New Icon Box Styling */
.icon-box {
    width: 110px;
    /* Increased size */
    height: 110px;
    background-color: white;
    /* Fallback */
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: hidden;
    /* Ensure image corners are clipped */
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the box to hide background color mismatch */
    transform: scale(1.1);
    /* Slight zoom to better fill/center if needed */
}

.pain-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--color-primary);
    /* Removed flex/gap since icon is now separate */
}

.pain-card p {
    color: var(--color-secondary);
}

/* Solution Steps */
.solution {
    padding: var(--section-padding);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.step {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-border);
    line-height: 1;
}

/* Comparison Table */
.comparison {
    padding: var(--section-padding);
    background-color: var(--color-primary);
    color: white;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: white;
    color: var(--color-text-main);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background-color: var(--color-bg-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.highlight-col {
    background-color: #F0F9FF;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
    background-color: #F0F9FF;
    /* Highlight Ivan column */
    border-left: 2px solid var(--color-accent);
}

.section-heading.dark-mode h2 {
    color: white;
}

.section-heading.dark-mode p {
    color: #94A3B8;
}

/* Testimonials */
.testimonials {
    padding: var(--section-padding);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.author {
    font-weight: 600;
    color: var(--color-primary);
}

/* CTA Section */
.final-cta {
    padding: 6rem 1rem;
    text-align: center;
    background: var(--color-primary);
    color: white;
}

.final-cta h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.final-cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #CBD5E1;
}

/* Footer */
footer {
    padding: 3rem 1rem;
    background-color: #020617;
    color: #64748B;
    text-align: center;
    font-size: 0.9rem;
}

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

    .logo {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu todo */
    }

    .hero-content,
    .pain-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 100px;
    }
}

/* Thank You Page Redesign */
.thank-you-page {
    background-color: var(--color-bg-light);
    /* Professional light slate */
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-body);
    min-height: 100vh;
}

.ty-header {
    text-align: center;
    padding: 3rem 1rem 2rem;
}

.ty-header h1 {
    color: var(--color-primary);
    /* Slate 900 */
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.ty-sub {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1rem 0;
    color: var(--color-secondary);
}

.highlight-stop {
    color: #DC2626;
    /* Professional Red for Alert */
    font-weight: 800;
}

.ty-card-container {
    display: flex;
    background: white;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 4rem;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.ty-card-left {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.ty-card-right {
    flex: 1;
}

.ty-person-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ty-text {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ty-highlight-text {
    color: var(--color-primary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-accent);
    padding-left: 1rem;
    background: #F0F9FF;
    /* Very light blue/teal tint */
    padding: 1rem;
    border-radius: 0 4px 4px 0;
}

.whatsapp-btn-large {
    background-color: #25D366;
    /* WhatsApp Brand Color kept as is */
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 6px;
    /* More square professional button */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: transform 0.2s;
    width: 100%;
}

.whatsapp-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.ty-timer-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #EF4444;
    /* Urgent Red */
    font-weight: 600;
    text-align: center;
}

.ty-footer-bar {
    background-color: var(--color-primary);
    /* Slate 900 */
    color: white;
    width: 100%;
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.ty-footer-bar h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.whatsapp-btn-small {
    background-color: #25D366;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .ty-card-container {
        flex-direction: column;
    }

    .ty-card-right {
        height: 300px;
        /* Limit height on mobile */
    }
}

/* Modal Fixes */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    /* Dark slate overlay */
    backdrop-filter: blur(5px);
    z-index: 3000;
    /* Higher than everything */
    display: none;
    /* Changed via JS to flex */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
    /* Ensure it's above everything */
    padding: 5px;
    /* Increase click area */
}

.close-modal:hover {
    color: var(--color-primary);
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    margin-top: 1rem;
}

/* Error Messages */
.error-message {
    color: #DC2626;
    background-color: #FEF2F2;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #FECACA;
    display: none; /* Hidden by default */
}
.error-message.visible {
    display: block;
}