/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll on the entire page */
    overflow-x: hidden;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
        sans-serif;
    color: #3a568e;
    line-height: 1.6;
    overflow-x: hidden;
    /* Critical: prevent any element from causing body-level horizontal scroll */
    width: 100%;
    max-width: 100vw;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    /* Ensure container itself doesn't overflow */
    width: 100%;
    box-sizing: border-box;
}

/* ===== HEADER / NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(58, 86, 142, 0.08);
    transition: box-shadow 0.3s ease;
    max-width: 100vw;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(58, 86, 142, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar .logo img {
    height: 30px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #3a568e;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3a568e;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #3a568e;
}

.download-btn {
    display: inline-block;
    background: #9954fc;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    border-radius: 50px;
    transition:
        background 0.3s ease,
        transform 0.2s ease;
}

.download-btn:hover {
    background: #8644e6;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.download-btn::after {
    display: none !important;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #3a568e;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO / CAROUSEL ===== */
.hero {
    padding-top: 72px;
    background: #5d1fa6;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 100vw;
}

.hero .container {
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 60px 0 48px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 24px;
    box-sizing: border-box;
}

.slide-content {
    flex: 1;
    max-width: 480px;
    min-width: 0;
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.slide-content h1 .highlight-green {
    color: #0eccc6;
}

.slide-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.7;
}

.slide-content .download-btn-hero {
    display: inline-block;
}

.slide-content .download-btn-hero img {
    height: 48px;
    width: auto;
}

.slide-image {
    flex: 0 0 auto;
    max-width: 580px;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image img {
    width: 100%;
    max-width: 580px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f7f3fe;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

/* ===== BOXES MAIN FEATURES ===== */
.boxes-features {
    padding: 80px 0;
    background: #ffffff;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-box {
    background: #f8f9fd;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
}

.feature-box .icon {
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
}

.feature-box .icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.feature-box h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0eccc6;
    margin-bottom: 12px;
}

.feature-box p {
    font-size: 0.95rem;
    color: #3a568e;
    opacity: 0.8;
    line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 80px 0;
    background: #f8f9fd;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5d1fa6;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.1rem;
    color: #3a568e;
    opacity: 0.7;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.step-block {
    display: flex;
    align-items: center;
    gap: 24px;
}

.step-block.reverse {
    flex-direction: row-reverse;
}

.step-block .step-content {
    flex: 0 0 420px;
    max-width: 420px;
    min-width: 0;
}

.step-block .step-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3a568e;
    margin-bottom: 16px;
}

.step-block .step-content p {
    font-size: 1.05rem;
    color: #3a568e;
    opacity: 0.75;
    line-height: 1.7;
}

.step-block .step-image {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.step-block.reverse .step-image {
    justify-content: flex-start;
}

.step-block .step-image img {
    width: 100%;
    max-width: 100%;
}

/* ===== HOW IT WORKS (TECHNICAL) ===== */
.how-it-works-tech {
    padding: 80px 0;
    background: #ffffff;
}

.tech-content {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-text p {
    font-size: 1.05rem;
    color: #3a568e;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 24px;
}

.tech-image {
    margin: 32px 0 40px;
    display: flex;
    justify-content: center;
}

.tech-image img {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-list li {
    font-size: 1rem;
    color: #3a568e;
    opacity: 0.85;
    line-height: 1.7;
    padding-left: 24px;
    position: relative;
}

.tech-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9954fc;
}

/* ===== SERVER REQUIREMENTS ===== */
.server-requirements {
    padding: 80px 0;
    background: #f8f9fd;
}

.server-req-content {
    max-width: 1000px;
    margin: 0 auto;
}

.server-req-content > p {
    font-size: 1.05rem;
    color: #3a568e;
    opacity: 0.85;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 40px;
}

.req-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(58, 86, 142, 0.06);
}

.req-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3a568e;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.req-box h3 .badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: #9954fc;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.req-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #f8f9fd;
    border-radius: 12px;
}

.req-item .req-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #9954fc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.req-item .req-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #3a568e;
    opacity: 0.6;
    margin-bottom: 2px;
}

.req-item .req-value {
    font-size: 1rem;
    font-weight: 600;
    color: #3a568e;
}

/* ===== DOWNLOAD CTA ===== */
.download-cta {
    padding: 80px 0;
    background: #ffffff;
}

/* Split layout variant (image left, content right) */
.download-cta-image {
    background: #ffffff;
}

.cta-split {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-image {
    flex: 0 0 auto;
    max-width: 420px;
}

.cta-image img {
    width: 100%;
}

.cta-split .cta-content {
    flex: 1;
    text-align: left;
    max-width: none;
    margin: 0;
}

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

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #5d1fa6;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 1.1rem;
    color: #3a568e;
    opacity: 0.75;
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-btn {
    display: inline-block;
}

.cta-btn img {
    height: 52px;
    width: auto;
}

/* ===== COMPARE SECTION ===== */
.compare-section {
    padding: 80px 0;
    background: #f8f9fd;
}

.compare-content {
    max-width: 1000px;
    margin: 0 auto;
}

.compare-content > p {
    font-size: 1.05rem;
    color: #3a568e;
    opacity: 0.85;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 48px;
}

.compare-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Prevent wrapper from pushing body width */
    max-width: 100%;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(58, 86, 142, 0.06);
    background: #ffffff;
}

.compare-table thead {
    background: #e8e8ed;
}

.compare-table thead th {
    padding: 20px 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #3a568e;
    text-align: center;
}

.compare-table thead th:first-child {
    text-align: left;
    padding-left: 24px;
}

.compare-table thead th.highlight-col {
    background: #9954fc;
    color: #ffffff;
}

.compare-table tbody tr {
    border-bottom: 1px solid rgba(58, 86, 142, 0.06);
}

.compare-table tbody tr:last-child {
    border-bottom: none;
}

.compare-table tbody td {
    padding: 16px;
    font-size: 0.95rem;
    color: #3a568e;
    text-align: center;
    vertical-align: middle;
}

.compare-table tbody td:first-child {
    text-align: left;
    padding-left: 24px;
    font-weight: 500;
    background: #ffffff;
}

.compare-table tbody td.highlight-col {
    background: rgba(153, 84, 252, 0.05);
}

.compare-table .check {
    color: #0eccc6;
    font-size: 1.2rem;
    font-weight: 700;
}

.compare-table .cross {
    color: #e74c3c;
    font-size: 1.1rem;
}

.compare-table .sharoo-badge {
    display: inline-block;
    background: #0eccc6;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

.compare-note {
    text-align: center;
    font-size: 0.7rem;
    color: #3a568e;
    opacity: 0.5;
    margin-top: 16px;
}

/* ===== SUPPORT / FAQ ===== */
.support-section {
    padding: 80px 0;
    background: #ffffff;
}

.support-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.support-block h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3a568e;
    margin-bottom: 24px;
}

.support-block > p {
    font-size: 1.05rem;
    color: #3a568e;
    opacity: 0.75;
    line-height: 1.7;
    margin-bottom: 28px;
}

.support-block.troubleshooting {
    display: flex;
    align-items: center;
    gap: 48px;
}

.support-block.troubleshooting .troubleshooting-text {
    flex: 1;
}

.support-block.troubleshooting .troubleshooting-image {
    flex: 0 0 auto;
    max-width: 120px;
}

.support-block.troubleshooting .troubleshooting-text p {
    margin-bottom: 32px;
}

.support-block.troubleshooting .troubleshooting-image img {
    width: 100%;
}

.troubleshooting-btn {
    display: inline-block;
    background: #9954fc;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 50px;
    transition:
        background 0.3s ease,
        transform 0.2s ease;
}

.troubleshooting-btn:hover {
    background: #8644e6;
    transform: translateY(-1px);
}

.faq-content {
    max-width: none;
    margin: 0;
}

.faq-item {
    border-bottom: 1px solid rgba(58, 86, 142, 0.08);
    padding: 20px 0;
}

.faq-item:first-child {
    border-top: 1px solid rgba(58, 86, 142, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 16px;
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3a568e;
    line-height: 1.4;
    flex: 1;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-toggle svg {
    width: 18px;
    height: 18px;
    stroke: #3a568e;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle svg {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.4s ease,
        padding 0.4s ease;
    padding: 0;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-top: 16px;
}

.faq-answer p {
    font-size: 1rem;
    color: #3a568e;
    opacity: 0.75;
    line-height: 1.7;
}

/* ===== LEGAL PAGES (Terms, Privacy, Troubleshooting) ===== */
.legal-section {
    padding: 120px 0 80px;
    background: #ffffff;
}

.legal-section.legal-alt {
    background: #f8f9fd;
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
}

.legal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3a568e;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3a568e;
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-content p {
    font-size: 1rem;
    color: #3a568e;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content ul ul {
    margin-bottom: 8px;
}

.legal-content li {
    font-size: 1rem;
    color: #3a568e;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 4px;
}

.legal-content a {
    color: #9954fc;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: #8644e6;
}

.legal-content code {
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    font-size: 0.9em;
    background: #f0f0f5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Troubleshooting accordion overrides */
.legal-content .faq-item.open .faq-answer {
    max-height: 5000px;
}

.legal-content .faq-answer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3a568e;
    margin-top: 28px;
    margin-bottom: 10px;
}

.legal-content .faq-answer p {
    font-size: 1rem;
    color: #3a568e;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content .faq-answer ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content .faq-answer li {
    font-size: 1rem;
    color: #3a568e;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 4px;
}

.legal-content .faq-answer code {
    font-family: "SF Mono", Monaco, "Cascadia Code", monospace;
    font-size: 0.9em;
    background: #f0f0f5;
    padding: 2px 6px;
    border-radius: 4px;
}

.legal-content .faq-answer strong {
    font-weight: 600;
}

/* ===== CONTACTS ===== */
.contacts-section {
    padding: 80px 0;
    background: #f8f9fd;
}

.contacts-content {
    max-width: 1000px;
    margin: 0 auto;
}

.form-message {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 20px;
    text-align: center;
}

.form-message.form-success {
    background: #e8f8f0;
    color: #1a7a4c;
    border: 1px solid #b7e4cf;
}

.form-message.form-error {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3a568e;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid rgba(58, 86, 142, 0.15);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #3a568e;
    background: #ffffff;
    outline: none;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #9954fc;
    box-shadow: 0 0 0 3px rgba(153, 84, 252, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #3a568e;
    opacity: 0.4;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: #9954fc;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.2s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #8644e6;
    transform: translateY(-1px);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ===== FOOTER ===== */
.footer {
    padding: 32px 0;
    background: #5d1fa6;
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer p a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.footer p a:hover {
    color: #ffffff;
}

/* ===== PRIVACY ===== */
.privacy-section {
    padding: 80px 0;
    background: #f8f9fd;
}

.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-content > p {
    font-size: 1.05rem;
    color: #3a568e;
    opacity: 0.85;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 40px;
}

.privacy-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.privacy-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(58, 86, 142, 0.06);
    text-align: center;
}

.privacy-card .privacy-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #5d1fa6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.privacy-card .privacy-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.privacy-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #3a568e;
    margin-bottom: 8px;
}

.privacy-card p {
    font-size: 0.95rem;
    color: #3a568e;
    opacity: 0.75;
    line-height: 1.6;
}

/* =================================================================
   RESPONSIVE — TABLET (≤1024px)
   ================================================================= */
@media (max-width: 1024px) {
    .boxes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .carousel-slide {
        flex-direction: column;
        text-align: center;
    }

    .slide-content {
        max-width: 100%;
        text-align: center;
    }

    .slide-content .download-btn-hero {
        display: flex;
        justify-content: center;
    }

    .carousel-slide {
        gap: 32px;
    }

    .slide-image {
        max-width: 420px;
    }

    .slide-image img {
        max-width: 100%;
    }

    .slide-content h1 {
        font-size: 2.4rem;
    }

    .step-block {
        flex-direction: column !important;
        text-align: center;
        gap: 24px;
    }

    .step-block .step-content {
        flex: 0 0 auto;
        max-width: 100%;
        text-align: center;
    }

    .step-block .step-image,
    .step-block.reverse .step-image {
        justify-content: center;
        max-width: 100%;
    }

    .tech-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tech-text {
        max-width: 100%;
    }

    .tech-list li {
        text-align: left;
    }

    .tech-image {
        max-width: 100%;
    }

    .req-grid {
        grid-template-columns: 1fr;
    }

    .req-box {
        padding: 28px 20px;
    }

    .privacy-highlights {
        grid-template-columns: 1fr 1fr;
    }
}

/* =================================================================
   RESPONSIVE — MOBILE (≤768px)
   ================================================================= */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
        border-bottom: 1px solid rgba(58, 86, 142, 0.08);
        max-width: 100vw;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding-top: 72px;
    }

    .hero .container {
        max-width: 100%;
    }

    .carousel-wrapper {
        padding: 40px 0;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* Step content headings MUST be smaller than section title */
    .step-block .step-content h3 {
        font-size: 1.35rem;
    }

    .step-block .step-content p {
        font-size: 1rem;
    }

    .boxes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-box {
        padding: 28px 20px;
    }

    .privacy-highlights {
        grid-template-columns: 1fr;
    }

    /* Steps container — tighten gaps */
    .steps-container {
        gap: 36px;
    }

    .step-block {
        gap: 20px;
    }

    /* Compare table — card layout on mobile */
    .compare-wrapper {
        overflow-x: visible;
        max-width: 100%;
    }

    .compare-table {
        min-width: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 24px rgba(58, 86, 142, 0.06);
        background: #ffffff;
    }

    .compare-table,
    .compare-table thead,
    .compare-table tbody,
    .compare-table tr,
    .compare-table th,
    .compare-table td {
        display: block;
    }

    /* Hide thead */
    .compare-table thead {
        display: none;
    }

    /* Each row becomes a card */
    .compare-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        padding: 0;
        border-bottom: 1px solid rgba(58, 86, 142, 0.08);
    }

    .compare-table tbody tr:last-child {
        border-bottom: none;
    }

    /* First td = card title (the feature name) — full width */
    .compare-table tbody td:first-child {
        display: block;
        width: 100%;
        text-align: left;
        font-weight: 700;
        font-size: 0.9rem;
        color: #3a568e;
        padding: 16px 16px 10px;
        background: #f8f9fd;
        border-bottom: 1px solid rgba(58, 86, 142, 0.06);
    }

    /* Remaining tds = three-column comparison row */
    .compare-table tbody td:not(:first-child) {
        display: block;
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
        padding: 12px 6px;
        font-size: 0.78rem;
        color: #3a568e;
        box-sizing: border-box;
        position: relative;
    }

    /* Column labels via pseudo-element */
    .compare-table tbody td:nth-child(2)::before {
        content: "Sharoo";
    }

    .compare-table tbody td:nth-child(3)::before {
        content: "WeTransfer";
    }

    .compare-table tbody td:nth-child(4)::before {
        content: "Smash";
    }

    .compare-table tbody td:not(:first-child)::before {
        display: block;
        font-size: 0.6rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #9e9fa0;
        margin-bottom: 4px;
    }

    /* Sharoo column highlight */
    .compare-table tbody td.highlight-col {
        background: rgba(153, 84, 252, 0.05);
    }

    .compare-table tbody td.highlight-col::before {
        color: #9954fc;
    }

    .compare-table .sharoo-badge {
        font-size: 0.55rem;
        padding: 1px 6px;
        margin-left: 2px;
        vertical-align: middle;
    }

    .compare-table .check {
        font-size: 1rem;
    }

    .compare-table .cross {
        font-size: 0.95rem;
    }

    /* Form */
    .form-row {
        flex-direction: column;
    }

    .contact-form {
        gap: 16px;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    /* Tech section */
    .tech-list li {
        font-size: 0.95rem;
    }

    /* CTA button */
    .cta-btn img {
        height: 44px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Split CTA stacks on mobile */
    .cta-split {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .cta-split .cta-content {
        text-align: center;
    }

    .cta-image {
        max-width: 320px;
    }

    /* FAQ */
    .faq-question h4 {
        font-size: 1rem;
    }

    .support-content {
        gap: 48px;
    }

    .support-block h3 {
        font-size: 1.35rem;
    }

    .support-block.troubleshooting {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .support-block.troubleshooting .troubleshooting-image {
        max-width: 80px;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }

    .legal-section {
        padding: 100px 0 60px;
    }

    .legal-content h3 {
        font-size: 1.3rem;
    }

    .legal-content h4 {
        font-size: 1rem;
    }

    /* Server requirements */
    .server-req-content > p {
        font-size: 1rem;
    }

    /* Sections padding */
    .boxes-features,
    .how-it-works,
    .how-it-works-tech,
    .server-requirements,
    .download-cta,
    .compare-section,
    .support-section,
    .contacts-section,
    .privacy-section {
        padding: 56px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .carousel-dots {
        margin-top: 32px;
    }

    /* Keep slide from forcing horizontal overflow */
    .carousel-slide {
        padding: 0 20px;
        gap: 28px;
    }

    .slide-image {
        max-width: 320px;
    }
}

/* =================================================================
   RESPONSIVE — SMALL PHONE (≤480px)
   ================================================================= */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .slide-content h1 {
        font-size: 1.6rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .slide-content .download-btn-hero img {
        height: 40px;
    }

    .slide-image {
        max-width: 100%;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    /* Step headings smaller than section title */
    .step-block .step-content h3 {
        font-size: 1.2rem;
    }

    .step-block .step-content p {
        font-size: 0.9rem;
    }

    /* Boxes */
    .feature-box {
        padding: 24px 16px;
    }

    .feature-box h3 {
        font-size: 1.2rem;
    }

    .feature-box .icon img {
        width: 52px;
        height: 52px;
    }

    /* Steps */
    .steps-container {
        gap: 28px;
    }

    .step-block {
        gap: 16px;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 1.5rem;
    }

    .cta-content p {
        font-size: 0.95rem;
    }

    .cta-btn img {
        height: 40px;
    }

    .cta-split {
        gap: 24px;
    }

    .cta-image {
        max-width: 260px;
    }

    /* Compare table */
    .compare-content > p {
        font-size: 0.9rem;
    }

    .compare-table tbody td:not(:first-child) {
        font-size: 0.72rem;
        padding: 10px 4px;
    }

    .compare-table tbody td:first-child {
        font-size: 0.85rem;
        padding: 14px 14px 8px;
    }

    /* FAQ */
    .faq-question h4 {
        font-size: 0.95rem;
    }

    .support-content {
        gap: 36px;
    }

    .support-block h3 {
        font-size: 1.2rem;
    }

    .support-block > p {
        font-size: 0.9rem;
    }

    .troubleshooting-btn {
        font-size: 0.9rem;
        padding: 10px 22px;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    .legal-section {
        padding: 96px 0 48px;
    }

    .legal-content h3 {
        font-size: 1.2rem;
    }

    .legal-content h4 {
        font-size: 0.95rem;
    }

    .legal-content p,
    .legal-content li {
        font-size: 0.9rem;
    }

    /* Form */
    .form-group input,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    /* Server requirements */
    .req-box {
        padding: 20px 16px;
    }

    .req-box h3 {
        font-size: 1.05rem;
    }

    .req-item {
        padding: 12px;
        gap: 10px;
    }

    .req-item .req-value {
        font-size: 0.9rem;
    }

    .server-req-content > p {
        font-size: 0.9rem;
    }

    /* Privacy */
    .privacy-card {
        padding: 24px 16px;
    }

    .privacy-card h3 {
        font-size: 1.05rem;
    }

    .privacy-content > p {
        font-size: 0.9rem;
    }

    /* Tech section */
    .tech-text p {
        font-size: 0.9rem;
    }

    .tech-list li {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer p {
        font-size: 0.8rem;
    }

    /* Sections spacing */
    .boxes-features,
    .how-it-works,
    .how-it-works-tech,
    .server-requirements,
    .download-cta,
    .compare-section,
    .support-section,
    .contacts-section,
    .privacy-section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 28px;
    }

    .carousel-dots {
        margin-top: 24px;
        gap: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .carousel-slide {
        padding: 0 16px;
        gap: 20px;
    }

    .carousel-wrapper {
        padding: 32px 0;
    }
}
