/* -------------------------------------------------------------------------- */
/*  PREMIUM REFINEMENTS & ANIMATIONS                                          */
/* -------------------------------------------------------------------------- */

:root {
    --primary: #0056b3;
    /* Corporate Blue from Business */
    --primary-dark: #003d7a;
    --accent: #e63946;
    /* Action Red for CTAs */
    --bg-light: #fbfbfa;
    --text-dark: #1a1b18;
    --text-muted: #6d7175;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.05);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------- */
/*  SIGNUP WIZARD                                                             */
/* -------------------------------------------------------------------------- */

.signup-wizard {
    padding: 80px 0;
    min-height: 80vh;
}

.wizard-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    gap: 40px;
}

.wizard-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.wizard-progress .step.active {
    opacity: 1;
}

.step-num {
    width: 40px;
    height: 40px;
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.step.active .step-num {
    background: var(--primary);
}

.wizard-container {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow-premium);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.domain-search-box {
    background: #f4f6f8;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 0;
    border: 2px solid #e1e3e5;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.input-group input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    outline: none;
}

.domain-ext {
    padding: 15px;
    background: #f4f6f8;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.domain-results {
    background: rgba(0, 86, 179, 0.05);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

.domain-status.success {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    padding: 12px 15px;
    border: 1px solid #e1e3e5;
    border-radius: 8px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

.wizard-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.order-summary {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e3e5;
    font-weight: 800;
    font-size: 1.2rem;
}

.payment-box {
    border: 1px solid #e1e3e5;
    padding: 30px;
    border-radius: 16px;
}

.btn-full {
    width: 100%;
    margin-top: 20px;
}

.trust-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Header Refinement */
header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

nav {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 35px;
    width: auto;
}

/* Ensure header doesn't hide content */
header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

#mobile-menu-check {
    display: none;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        /* Below header */
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition-smooth);
        overflow-y: auto;
    }

    #mobile-menu-check:checked~.container nav .nav-links {
        right: 0;
    }

    #mobile-menu-check:checked~.container nav .menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #mobile-menu-check:checked~.container nav .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu-check:checked~.container nav .menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

.nav-links a,
.nav-item>span {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 15px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.nav-link:hover,
.nav-item:hover>span {
    color: var(--primary);
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(10px);
    background: white;
    width: 650px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mega-menu-list {
    display: grid;
    gap: 10px;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.3s;
}

.mega-menu-item:hover {
    background: #f8f9fa;
}

.mega-menu-item i {
    width: 32px;
    height: 32px;
    background: rgba(0, 86, 179, 0.05);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.mega-menu-text b {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.mega-menu-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.3s;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item i {
    width: 35px;
    height: 35px;
    background: rgba(0, 86, 179, 0.05);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.dropdown-item-text b {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.dropdown-item-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 40px;
        overflow-y: auto;
        transition: var(--transition-smooth);
    }

    .nav-item {
        width: 100%;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-item>span {
        font-size: 1.2rem;
        padding: 15px 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .mega-menu,
    .dropdown-menu {
        position: static;
        width: 100% !important;
        transform: none !important;
        box-shadow: none;
        padding: 0 0 20px 20px;
        display: none;
        opacity: 1;
        visibility: visible;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-item:hover .mega-menu,
    .nav-item:hover .dropdown-menu {
        display: grid;
    }

    .mega-menu-col h4 {
        margin-top: 20px;
    }
}

.pos-feature {
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.pos-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
}

.btn-accent:hover {
    background: #c1121f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2);
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: inline-block;
}

.nav-links .btn-primary,
header .btn-primary,
.btn-primary {
    background: var(--text-dark) !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    /* Prevent 'bollo nero' effect if text is short */
    text-align: center;
    white-space: nowrap;
    text-decoration: none !important;
}

.nav-links .btn-primary * {
    color: #ffffff !important;
}

.nav-links .btn-primary:hover,
header .btn-primary:hover,
.btn-primary:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

.btn-outline {
    border: 2px solid #e1e3e5;
    background: transparent;
    color: var(--primary);
    /* Keep original color for outline */
}

.btn-outline:hover {
    background: #f1f2f3;
    border-color: var(--text-dark);
    color: var(--text-dark);
    /* Adjust color on hover for outline */
}

/* Hero Section - Premium Business Look */
.hero {
    padding: 120px 0;
    background: linear-gradient(180deg, #f0f4f2 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--text-dark) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-text p {
        font-size: 1.1rem;
    }
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 110%;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #f4f6f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--primary);
}

/* POS Section */
.pos-section {
    background: var(--text-dark);
    color: white;
    border-radius: 40px;
    padding: 100px 0;
    margin: 80px 0;
}

.pos-content {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-direction: row-reverse;
}

.pos-text {
    flex: 1;
}

.pos-image {
    flex: 1;
}

.pos-image img {
    max-width: 100%;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.pricing-card {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    border: 1px solid #e1e3e5;
    text-align: center;
    transition: var(--transition-smooth);
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    position: relative;
    background: white;
    z-index: 2;
}

.badge-popular {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 30px 0;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-banner {
    background: var(--primary);
    padding: 80px 0;
    color: white;
    text-align: center;
    border-radius: 30px;
    margin: 50px 0;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background: var(--bg-light);
    padding: 80px 0 40px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

/* Media Queries */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image img {
        width: 100%;
        transform: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .pos-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .pricing-card.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Industry Grid for SEO */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.industry-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

.industry-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.industry-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* FAQ Accordion */
.faq-container {
    max-width: 900px;
    margin: 50px auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.3s;
}

/* Signup Wizard */
.signup-wizard {
    padding: 100px 0;
    min-height: 80vh;
    background: #fdfdfd;
}

.wizard-progress {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.wizard-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.wizard-progress .step.active {
    opacity: 1;
}

.wizard-progress .step-num {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.wizard-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.wizard-header {
    text-align: center;
    margin-bottom: 40px;
}

.wizard-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.input-group {
    display: flex;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #eee;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 1.1rem;
}

.domain-ext {
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.domain-results {
    margin-top: 30px;
    padding: 20px;
    background: #e7f5ff;
    border-radius: 12px;
    text-align: center;
}

.domain-status.success {
    color: #0b7285;
    font-weight: 700;
    margin-bottom: 10px;
}

.wizard-form {
    display: grid;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wizard-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.order-summary {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-weight: 800;
    font-size: 1.2rem;
}

.payment-box {
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 12px;
}

#card-element {
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
}

/* ============================================================ */
/*  RESPONSIVE — TABLET (≤ 900px)                               */
/* ============================================================ */
@media (max-width: 900px) {

    /* Hero */
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .hero-image {
        order: -1;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    /* Generic 2-col grids → 1 col */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1.2fr"],
    [style*="grid-template-columns: 1.1fr 1fr"],
    [style*="grid-template-columns: 1.2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* 3-col grids → 2 col */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 4-col score cards → 2 col */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Reorder reversed grid */
    [style*="order: 2"] {
        order: unset !important;
    }

    [style*="order: 1"] {
        order: unset !important;
    }

    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Comparison table */
    table {
        font-size: 0.85rem;
    }

    table td,
    table th {
        padding: 12px 15px !important;
    }

    /* Section padding */
    section {
        padding: 60px 0 !important;
    }

    .section {
        padding: 60px 0 !important;
    }

    /* Font sizes */
    h1,
    h2 {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    }

    /* Wizard */
    .wizard-container {
        padding: 30px 20px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .wizard-progress {
        gap: 20px !important;
        flex-wrap: wrap;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Architecture flow bar */
    [style*="display: flex; justify-content: center; gap: 0;"] {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
}

/* ============================================================ */
/*  RESPONSIVE — INNER PAGES (≤ 768px)                          */
/*  Targets the inline-style heavy comparison/industry pages    */
/* ============================================================ */
@media (max-width: 768px) {

    /* 2-col pillar grids with 80px gap */
    [style*="grid-template-columns: 1fr 1fr"][style*="gap: 80px"],
    [style*="grid-template-columns: 1fr 1fr"][style*="gap: 60px"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* un-order reversed pillar columns */
    [style*="order: 2"],
    [style*="order: 1"] {
        order: unset !important;
    }

    /* Hero div with 100px top padding */
    [style*="padding: 100px 0; text-align: center"] {
        padding: 60px 20px !important;
    }

    [style*="padding: 100px 0; background"] {
        padding: 60px 20px !important;
    }

    /* Score cards: 4-col → 2-col at 768 */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Industry use-case 80px+30px grid */
    [style*="grid-template-columns: 80px 1fr"] {
        grid-template-columns: 50px 1fr !important;
        gap: 15px !important;
    }

    /* Migration steps cards row */
    [style*="display: flex; gap: 20px; align-items: flex-start"] {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* Max-width containers in page body */
    [style*="max-width: 860px"],
    [style*="max-width: 800px"],
    [style*="max-width: 750px"],
    [style*="max-width: 700px"] {
        max-width: 100% !important;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Comparison table scrollable */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Section paddings on inner pages */
    [style*="padding: 100px 0"] {
        padding: 50px 0 !important;
    }

    [style*="padding: 80px 0"] {
        padding: 40px 0 !important;
    }

    [style*="padding: 120px 0"] {
        padding: 55px 0 !important;
    }

    /* h1 hero on inner pages */
    [style*="font-size: clamp(2"] {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
    }

    [style*="font-size: 2.5rem; margin: 20px 0"] {
        font-size: 1.5rem !important;
    }

    [style*="font-size: 2.5rem; margin-bottom"] {
        font-size: 1.5rem !important;
    }

    /* Migration check badges */
    [style*="display: flex; gap: 15px; justify-content: center"] {
        flex-direction: column;
        align-items: stretch;
    }

    /* Comparison calc boxes */
    [style*="grid-template-columns: repeat(3, 1fr)"][style*="max-width: 750px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================ */
/*  RESPONSIVE — MOBILE (≤ 600px)                               */
/* ============================================================ */
@media (max-width: 600px) {

    /* Container */
    .container {
        padding: 0 16px !important;
    }

    /* Nav */
    .nav-container {
        padding: 0 16px;
    }

    .navbar {
        padding: 12px 16px;
    }

    /* Hero */
    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 1.9rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .hero-form {
        padding: 20px !important;
    }

    /* All grids → 1 col */
    [style*="grid-template-columns: repeat(2, 1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"],
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    /* Display grid overrides used in page body too */
    [style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Platform architecture bar */
    [style*="display: flex; justify-content: center; gap: 0"] {
        flex-direction: column;
        align-items: center;
    }

    [style*="border-radius: 12px 0 0 12px"],
    [style*="border-radius: 0 12px 12px 0"] {
        border-radius: 12px !important;
    }

    /* Sections */
    section,
    .section {
        padding: 50px 0 !important;
    }

    [style*="padding: 100px 0"],
    [style*="padding: 120px 0"] {
        padding: 50px 0 !important;
    }

    [style*="padding: 80px 0"] {
        padding: 40px 0 !important;
    }

    /* Font scale */
    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.2rem !important;
    }

    [style*="font-size: 2.5rem"] {
        font-size: 1.6rem !important;
    }

    [style*="font-size: 2.8rem"] {
        font-size: 1.6rem !important;
    }

    [style*="font-size: 3rem"] {
        font-size: 1.7rem !important;
    }

    [style*="font-size: 3.5rem"] {
        font-size: 1.9rem !important;
    }

    /* CTA buttons */
    .btn {
        padding: 14px 25px !important;
        font-size: 0.95rem !important;
    }

    [style*="padding: 18px 50px"],
    [style*="padding: 20px 60px"] {
        padding: 14px 30px !important;
        font-size: 1rem !important;
    }

    /* Cards horizontal pill badges */
    [style*="display: flex; gap: 15px; flex-wrap: wrap"] {
        flex-direction: column;
    }

    /* Score badge numbers */
    [style*="font-size: 3rem; font-weight: 900"] {
        font-size: 2rem !important;
    }

    /* Comparison table on mobile — hide 3rd col, show toggle */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Code blocks */
    code,
    pre {
        font-size: 0.75rem !important;
        word-break: break-all;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-col {
        margin-bottom: 20px !important;
    }

    /* Comparison coloured boxes side by side → stack */
    [style*="display: grid; grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Padding overrides for inner cards */
    [style*="padding: 40px"],
    [style*="padding: 50px"] {
        padding: 25px !important;
    }

    [style*="padding: 35px"] {
        padding: 20px !important;
    }

    [style*="padding: 30px"] {
        padding: 18px !important;
    }

    /* Hero inline-flex badge bars → wrap */
    [style*="display: inline-flex; align-items: center; gap: 20px"] {
        flex-wrap: wrap;
        font-size: 0.85rem;
    }

    /* Wizard */
    .wizard-container {
        padding: 20px 15px !important;
    }

    .wizard-progress {
        gap: 10px !important;
    }

    .step-num {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

/* ============================================================ */
/*  GOLD CTA BUTTON                                             */
/* ============================================================ */
.btn-gold {
    background: linear-gradient(135deg, #FDA401 0%, #F59E0B 100%);
    color: #ffffff !important;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(253, 164, 1, 0.35);
    border: none;
    display: inline-block;
    white-space: nowrap;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #FFB224 0%, #FDA401 100%);
    box-shadow: 0 6px 20px rgba(253, 164, 1, 0.5);
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ============================================================ */
/*  HAMBURGER BUTTON (hidden by default, shown on mobile)       */
/* ============================================================ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
    z-index: 10000;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-dark);
}

/* -------------------------------------------------------------------------- */
/*  UTILITY GRIDS                                                             */
/* -------------------------------------------------------------------------- */
.grid-2-col,
.grid-3-col,
.grid-4-col {
    display: grid;
    gap: 40px;
}

.grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4-col {
    grid-template-columns: repeat(4, 1fr);
}

@media screen and (max-width: 991px) {

    .grid-3-col,
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {

    .grid-2-col,
    .grid-3-col,
    .grid-4-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
/* MOBILE MENU & OVERFLOW PATCH */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

@media (max-width: 1024px) {
    .nav-links .btn-primary {
        white-space: normal !important;
        height: auto;
        text-align: center;
        line-height: 1.4;
        padding: 15px;
    }
}
