/* ========================================
   LARGE TABLET AND SMALL LAPTOP
   Maximum width: 1199.98px
======================================== */
@media (max-width: 1199.98px) {

    /* Header navigation */
    .navbar-nav {
        gap: 2px;
    }

    .navbar-nav .nav-link {
        padding-right: 9px !important;
        padding-left: 9px !important;
        font-size: 13px;
    }

    /* Header buttons */
    .header-actions {
        gap: 12px;
    }

    .header-login {
        display: none;
    }

    .header-button {
        min-width: 154px;
    }

    /* Hero */
    .hero-title {
        font-size: 65px;
    }

    .hero-row {
        min-height: 620px;
    }

    .otp-demo-wrapper {
        padding: 25px;
    }

    .hero-support {
        gap: 10px 16px;
    }

    /* Products */
    .products-section {
        padding: 100px 0;
    }

    .product-card {
        min-height: 700px;
        padding: 21px;
    }

    .product-preview {
        right: 21px;
        bottom: 21px;
        left: 21px;
    }

    /* Workflow */
    .workflow-section {
        padding: 100px 0;
    }

    .workflow-board {
        padding: 22px;
    }

    .workflow-step {
        gap: 10px;
        padding: 13px;
    }

    /* Solutions */
    .solutions-section {
        padding: 100px 0;
    }

    .solution-card {
        padding: 20px;
    }

    .solution-card-featured,
    .solution-card-wide {
        min-height: 790px;
    }

    /* Developer */
    .developer-section {
        padding: 100px 0;
    }

    .api-code-window {
        min-height: 290px;
        padding: 20px;
    }

    /* Security */
    .security-section {
        padding: 100px 0;
    }

    .security-feature-card {
        min-height: 290px;
    }

    .security-feature-top {
        margin-bottom: 50px;
    }

}

/* ========================================
   TABLET AND MOBILE
   Maximum width: 991.98px
======================================== */
@media (max-width: 991.98px) {

    :root {
        --header-height: 64px;
    }

    /* Main container */
    .custom-container {
        padding-right: 15px;
        padding-left: 15px;
    }

    /* Header */
    .site-header {
        padding-top: 12px;
    }

    .site-header.header-scrolled {
        padding-top: 7px;
    }

    .site-header .navbar {
        min-height: var(--header-height);
        padding: 7px 9px 7px 16px;
        border-radius: 15px;
    }

    /* Logo */
    .header-logo {
        width: 155px;
    }

    /* Mobile navigation */
    .navbar-collapse {
        max-height: calc(100vh - 100px);
        margin-top: 10px;
        padding: 12px 4px 8px;
        overflow-y: auto;
        border-top: 1px solid var(--color-border);
    }

    .navbar-nav {
        align-items: stretch;
        gap: 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 13px 10px !important;
        border-bottom: 1px solid rgba(25, 19, 30, 0.07);
        font-size: 14px;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }

    /* Products dropdown */
    .dropdown-menu {
        min-width: 100%;
        margin-top: 5px !important;
        margin-bottom: 8px;
        padding: 7px;
        border: 0;
        background: #f8f5f7;
        box-shadow: none;
    }

    .dropdown-item {
        padding: 11px;
    }

    /* Header buttons */
    .header-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 14px;
    }

    .header-login {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        border: 1px solid var(--color-border);
        border-radius: 12px;
    }

    .header-button {
        justify-content: center;
        min-width: 0;
        min-height: 48px;
    }

    /* Hero */
    .hero-section {
        padding-top: calc(var(--header-height) + 70px);
    }

    .hero-row {
        min-height: auto;
        padding-top: 35px;
        padding-bottom: 70px;
    }

    .hero-content {
        max-width: 680px;
        margin: 0 auto 55px;
        text-align: center;
    }

    .hero-eyebrow {
        justify-content: center;
    }

    .hero-title {
        max-width: 680px;
        margin-right: auto;
        margin-left: auto;
        font-size: clamp(55px, 9vw, 75px);
    }

    .hero-description {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-support {
        justify-content: center;
    }

    .otp-demo-wrapper {
        max-width: 680px;
        margin: 0 auto;
    }

    .hero-orbit-one {
        right: -390px;
    }

    .hero-orbit-two {
        right: -230px;
    }

    /* Products */
    .section-heading-row {
        margin-bottom: 45px;
    }

    .section-description {
        max-width: 650px;
        margin: 25px 0 0;
    }

    .product-card {
        min-height: 660px;
    }

    .product-card-whatsapp {
        min-height: 570px;
    }

    .product-card-whatsapp .product-preview {
        max-width: 450px;
    }

    /* Workflow */
    .workflow-content {
        max-width: 680px;
        margin-bottom: 25px;
    }

    .workflow-board {
        max-width: 760px;
        margin: 0 auto;
    }

    /* Solutions */
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solution-card-featured,
    .solution-card-wide {
        grid-row: auto;
        min-height: 620px;
    }

    .solution-card {
        min-height: 430px;
    }

    /* Developer */
    .developer-content {
        max-width: 680px;
        margin-bottom: 25px;
    }

    .api-code-panel {
        max-width: 780px;
        margin: 0 auto;
    }

    .api-endpoints {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 70px;
    }

    /* Security */
    .security-description {
        max-width: 650px;
        margin: 25px 0 0;
    }

    .security-control-panel {
        min-height: auto;
    }

    .security-feature-grid {
        margin-top: 5px;
    }

    .security-feature-card {
        min-height: 250px;
    }

    /* faq */
    .faq-section {
        padding: 90px 0;
    }

    .faq-intro {
        position: static;
        max-width: 650px;
    }

    .faq-section .section-title,
    .faq-section .section-description {
        max-width: 650px;
    }

    /* contact sale */
    .contact-modal .modal-dialog {
        max-width: 680px;
    }

    .contact-modal-info {
        padding: 42px 35px 34px;
    }

    .contact-modal-info h2 {
        max-width: 520px;
    }

    .contact-modal-footer-note {
        margin-top: 30px;
    }

    .contact-modal-form-wrap {
        padding: 38px 35px 34px;
    }

    /* cta */
    .final-cta-section {
        padding: 90px 0;
    }

    .final-cta-card {
        padding: 62px 50px 28px;
    }

    .final-cta-actions {
        flex-direction: row;
    }

    .final-cta-primary,
    .final-cta-secondary {
        flex: 1;
    }

    .final-cta-bottom {
        margin-top: 50px;
    }

    /* footer */
    .site-footer {
        padding-top: 70px;
    }

    .footer-brand {
        max-width: 560px;
    }

    .footer-divider {
        margin-top: 55px;
    }

    /* legal page */
    .legal-page-hero {
        padding: 75px 0 70px;
    }

    .legal-page-content {
        padding: 75px 0 90px;
    }

    .legal-page-sidebar {
        position: static;
    }

    .legal-page-sidebar nav {
        grid-template-columns: repeat(2, 1fr);
    }

}

/* ========================================
   MOBILE
   Maximum width: 767.98px
======================================== */
@media (max-width: 767.98px) {

    .custom-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    /* Logo */
    .header-logo {
        width: 145px;
    }

    /* Dropdown content */
    .dropdown-icon {
        width: 39px;
        height: 39px;
        font-size: 16px;
    }

    .dropdown-item strong {
        font-size: 12px;
    }

    .dropdown-item small {
        font-size: 10px;
    }

    /* Hero */
    .hero-section {
        padding-top:
            calc(var(--header-height) + 52px);
    }

    .hero-row {
        padding-top: 30px;
        padding-bottom: 55px;
    }

    .hero-eyebrow {
        margin-bottom: 20px;
        font-size: 10px;
    }

    .hero-title {
        font-size: clamp(45px, 12vw, 62px);
        line-height: 1;
    }

    .hero-description {
        margin: 24px auto;
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-support {
        margin-top: 28px;
    }

    .otp-demo-wrapper {
        padding: 22px;
        border-radius: 22px;
    }

    .demo-header {
        margin-bottom: 23px;
    }

    .hero-channel-strip {
        padding: 22px 0;
    }

    .channel-strip-content {
        gap: 12px 15px;
    }

    .channel-strip-label {
        width: 100%;
        margin-right: 0;
        text-align: center;
    }

    /* Products */
    .products-section {
        padding: 80px 0;
    }

    .section-title {
        font-size: clamp(40px, 10vw, 56px);
    }

    .section-description {
        font-size: 15px;
    }

    .product-card {
        min-height: 650px;
        border-radius: 20px;
    }

    /* Workflow */
    .workflow-section {
        padding: 80px 0;
    }

    .workflow-title {
        font-size: clamp(40px, 10vw, 55px);
    }

    .workflow-board {
        padding: 18px;
        border-radius: 20px;
    }

    /* Solutions */
    .solutions-section {
        padding: 80px 0;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .solution-card,
    .solution-card-featured,
    .solution-card-wide {
        min-height: 420px;
        border-radius: 19px;
    }

    .solution-card-featured,
    .solution-card-wide {
        min-height: 600px;
    }

    /* Developer */
    .developer-section {
        padding: 80px 0;
    }

    .developer-title {
        font-size: clamp(40px, 10vw, 55px);
    }

    .api-code-panel {
        border-radius: 18px;
    }

    .api-endpoint-item {
        grid-template-columns: 50px 1fr auto;
    }

    .endpoint-name {
        display: none;
    }

    /* Security */
    .security-section {
        padding: 80px 0;
    }

    .security-title {
        font-size: clamp(40px, 10vw, 55px);
    }

    .security-control-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .security-feature-card {
        min-height: 235px;
    }

    /* faq */
    .faq-section {
        padding: 72px 0;
    }

    .faq-section::before {
        display: none;
    }

    .faq-contact-btn {
        width: 100%;
    }

    .faq-accordion .accordion-button {
        padding: 20px 54px 20px 20px;
        font-size: 0.95rem;
    }

    .faq-accordion .accordion-button::after {
        right: 18px;
    }

    .faq-accordion .accordion-button::before {
        right: 25px;
    }

    .faq-accordion .accordion-body {
        padding: 0 54px 21px 20px;
        font-size: 0.92rem;
    }

    /* cta */
    .final-cta-section {
        padding: 72px 0;
    }

    .final-cta-card {
        padding: 50px 30px 26px;
        border-radius: 22px;
    }

    .final-cta-content h2 {
        font-size: clamp(2.5rem, 11vw, 4rem);
    }

    .final-cta-actions {
        flex-direction: column;
    }

    .final-cta-bottom {
        flex-wrap: wrap;
        gap: 15px 20px;
        margin-top: 42px;
    }

    .cta-bottom-line {
        display: none;
    }

    .cta-domain {
        width: 100%;
        padding-top: 5px;
    }

    /* footer */
    .site-footer {
        padding: 62px 0 25px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .back-to-top {
        justify-content: center;
    }

}

/* ========================================
   SMALL MOBILE
   Maximum width: 575.98px
======================================== */
@media (max-width: 575.98px) {

    html {
        scroll-padding-top: 82px;
    }

    body {
        font-size: 15px;
    }

    .custom-container {
        padding-right: 17px;
        padding-left: 17px;
    }

    section {
        overflow-x: clip;
    }

    .modal {
        padding-right: 0 !important;
    }

    .site-header {
        padding-top: 8px;
    }

    .site-header .navbar {
        padding: 6px 7px 6px 13px;
        border-radius: 13px;
    }

    /* Logo */
    .header-logo {
        width: 137px;
    }

    /* Mobile menu button */
    .navbar-toggler {
        width: 43px;
        height: 43px;
        padding: 11px;
    }

    /* Header action buttons */
    .header-actions {
        grid-template-columns: 1fr;
    }

    .header-login,
    .header-button {
        width: 100%;
    }

    /* Dropdown */
    .dropdown-menu {
        padding: 6px;
    }

    .dropdown-item {
        padding: 10px 8px;
    }

    /* Hero */
    .hero-content {
        margin-bottom: 42px;
    }

    .hero-title {
        font-size: clamp(41px, 13vw, 54px);
        letter-spacing: -0.055em;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .primary-button,
    .secondary-button {
        justify-content: center;
        width: 100%;
    }

    .primary-button {
        justify-content: space-between;
    }

    .hero-support {
        display: grid;
        justify-content: flex-start;
        max-width: 280px;
        margin-right: auto;
        margin-left: auto;
        text-align: left;
    }

    .otp-demo-wrapper {
        padding: 19px 14px;
        border-radius: 18px;
    }

    .demo-header {
        align-items: flex-start;
    }

    .demo-header h2 {
        font-size: 21px;
    }

    .demo-status {
        padding: 7px 9px;
        font-size: 8px;
    }

    .channel-selector {
        gap: 5px;
    }

    .channel-button {
        display: grid;
        gap: 3px;
        min-height: 56px;
        font-size: 10px;
    }

    .channel-button i {
        font-size: 15px;
    }

    .destination-prefix {
        padding: 0 11px;
    }

    .destination-field input {
        padding: 14px 10px;
    }

    .otp-result.show {
        padding: 15px 10px;
    }

    .otp-code {
        gap: 5px;
    }

    .otp-digit {
        border-radius: 7px;
        font-size: 15px;
    }

    .delivery-content strong {
        font-size: 10px;
    }

    .response-code {
        font-size: 8px;
    }

    .strip-separator {
        display: none;
    }

    .channel-strip-item {
        width: calc(50% - 10px);
        text-align: center;
    }

    /* Products */
    .products-section {
        padding: 65px 0;
    }

    .section-heading-row {
        margin-bottom: 35px;
    }

    .section-eyebrow {
        font-size: 9px;
    }

    .section-line {
        width: 26px;
    }

    .section-title {
        font-size: clamp(36px, 11vw, 46px);
    }

    .product-card,
    .product-card-whatsapp {
        min-height: 650px;
        padding: 18px;
    }

    .product-card h3 {
        font-size: 26px;
    }

    .product-preview {
        right: 18px;
        bottom: 18px;
        left: 18px;
    }

    /* Workflow */
    .workflow-section {
        padding: 65px 0;
    }

    .workflow-channel-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }

    .workflow-tab {
        padding: 9px 6px;
    }

    .workflow-board {
        padding: 15px 11px;
    }

    .workflow-board-header {
        align-items: flex-start;
    }

    .workflow-board-status {
        font-size: 7px;
    }

    .workflow-step {
        grid-template-columns: auto auto 1fr;
        gap: 8px;
    }

    .workflow-step-number {
        display: none;
    }

    .workflow-step-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .workflow-step-result {
        grid-column: 2 / 4;
        width: max-content;
        margin-top: 2px;
    }

    .workflow-connector {
        margin-left: 27px;
    }

    .workflow-step-content strong {
        font-size: 10px;
    }

    .workflow-step-content small {
        font-size: 8px;
    }

    /* Solutions */
    .solutions-section {
        padding: 65px 0;
    }

    .solution-card {
        min-height: 410px;
        padding: 18px;
    }

    .solution-card-featured,
    .solution-card-wide {
        min-height: 570px;
    }

    .solution-card-header {
        margin-bottom: 38px;
    }

    .solution-card-featured h3 {
        font-size: 29px;
    }

    .login-preview-digits {
        gap: 4px;
    }

    .login-preview-digits span {
        font-size: 13px;
    }

    /* Developer */
    .developer-section {
        padding: 65px 0;
    }

    .api-panel-environment {
        display: none;
    }

    .api-panel-header {
        grid-template-columns: 1fr auto 1fr;
    }

    .api-language-tabs {
        padding: 8px;
    }

    .api-language-tab {
        padding: 8px 7px;
    }

    .copy-code-button span {
        display: none;
    }

    .api-code-window {
        min-height: 280px;
        padding: 17px 13px;
    }

    .api-code-window pre,
    .api-response pre {
        font-size: 9px;
    }

    .api-response {
        margin: 0 10px 12px;
        padding: 12px;
    }

    .api-demo-notice {
        padding: 0 12px 15px;
    }

    .api-endpoints {
        margin-top: 55px;
        padding-top: 35px;
    }

    .api-endpoint-item {
        grid-template-columns: 45px 1fr auto;
        gap: 8px;
    }

    .api-endpoint-item code {
        font-size: 9px;
    }

    /* Security */
    .security-section {
        padding: 65px 0;
    }

    .security-control-panel {
        padding: 17px 12px;
    }

    .security-panel-header {
        align-items: flex-start;
    }

    .security-policy-status {
        padding: 7px 8px;
        font-size: 7px;
    }

    .security-panel-header h3 {
        font-size: 19px;
    }

    .security-setting {
        grid-template-columns: auto 1fr;
        gap: 9px;
        padding: 12px;
    }

    .security-setting-value,
    .security-setting-toggle {
        grid-column: 2 / 3;
        margin-top: 4px;
    }

    .security-policy-footer {
        display: grid;
    }

    .security-save-button {
        justify-content: center;
        width: 100%;
    }

    .security-feature-grid {
        grid-template-columns: 1fr;
    }

    .security-feature-card {
        min-height: 230px;
    }

    .security-feature-top {
        margin-bottom: 45px;
    }

    /* faq */
    .faq-section {
        padding: 60px 0;
    }

    .faq-accordion .accordion-item {
        border-radius: 13px;
    }

    .faq-accordion .accordion-button {
        padding-left: 17px;
    }

    .faq-accordion .accordion-body {
        padding-left: 17px;
    }

    /* contact sale */
    .contact-modal .modal-dialog {
        margin: 8px;
        padding: 0;
    }

    .contact-modal .modal-content {
        border-radius: 18px;
    }

    .contact-modal-close {
        position: fixed;
        top: 17px;
        right: 17px;
    }

    .contact-modal-info {
        padding: 42px 23px 30px;
    }

    .contact-modal-info h2 {
        padding-right: 32px;
        font-size: 2rem;
    }

    .contact-modal-info>p {
        margin-bottom: 26px;
    }

    .contact-modal-form-wrap {
        padding: 31px 23px 27px;
    }

    .contact-form-heading {
        padding-right: 0;
    }

    .contact-modal .form-control,
    .contact-modal .form-select {
        min-height: 47px;
    }

    /* login */
    .login-modal .modal-dialog {
        margin: 8px;
        padding: 0;
    }

    .login-modal .modal-content {
        padding: 34px 22px 27px;
        border-radius: 18px;
    }

    .login-modal-close {
        top: 15px;
        right: 15px;
    }

    .login-brand-icon {
        width: 44px;
        height: 44px;
    }

    .login-modal-header h2 {
        font-size: 1.9rem;
    }

    .login-modal-footer {
        flex-wrap: wrap;
    }

    /* cta */
    .final-cta-section {
        padding: 60px 0;
    }

    .final-cta-card {
        padding: 43px 21px 24px;
        border-radius: 18px;
    }

    .final-cta-content h2 {
        font-size: 2.6rem;
    }

    .final-cta-content p {
        font-size: 0.88rem;
    }

    .final-cta-primary,
    .final-cta-secondary {
        min-height: 52px;
    }

    .final-cta-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    /* footer */
    .site-footer {
        padding-top: 54px;
    }

    .footer-logo {
        height: 34px;
    }

    .footer-column h3 {
        margin-bottom: 17px;
    }

    .footer-divider {
        margin: 45px 0 24px;
    }

    .footer-contact-button {
        width: 100%;
        justify-content: space-between;
    }

    .footer-credit {
        display: block;
        margin-top: 7px;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    /* LEGAL MODAL */
    .legal-page-logo img {
        height: 32px;
    }

    .legal-back-button span {
        display: none;
    }

    .legal-back-button {
        justify-content: center;
        width: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .legal-page-hero {
        padding: 60px 0 55px;
    }

    .legal-page-hero h1 {
        font-size: 3.15rem;
    }

    .legal-page-content {
        padding: 60px 0 72px;
    }

    .legal-page-sidebar nav {
        grid-template-columns: 1fr;
    }

    .legal-article section {
        padding-bottom: 31px;
        margin-bottom: 31px;
    }

    .legal-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-footer-inner div {
        gap: 12px 18px;
    }

    .cookie-table-row {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 17px;
    }

    .cookie-table-row>div {
        align-items: center;
    }

}

/* ========================================
   EXTRA SMALL MOBILE
   Maximum width: 374.98px
======================================== */
@media (max-width: 374.98px) {

    .header-logo {
        width: 125px;
    }

    .navbar-toggler {
        width: 40px;
        height: 40px;
    }

}

/* ========================================
   REDUCED MOTION ACCESSIBILITY
======================================== */
@media (prefers-reduced-motion: reduce) {

    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            scroll-behavior: auto !important;
            transition-duration: 0.01ms !important;
        }
    }

}