/* =====================================================
   DIGITALHUB - PREMIUM WEBSITE DESIGN
   Version: 1.0
   Responsive: Mobile / Tablet / Desktop
===================================================== */

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

:root {
    --primary: #6258f5;
    --primary-dark: #4f46e5;
    --secondary: #a855f7;
    --accent: #06b6d4;

    --dark: #111827;
    --text: #475569;
    --muted: #64748b;

    --white: #ffffff;
    --light: #f8faff;
    --border: #e8ecf4;

    --gradient: linear-gradient(
        135deg,
        #6258f5 0%,
        #9333ea 100%
    );

    --shadow: 0 12px 35px rgba(20, 25, 70, 0.07);

    --radius: 18px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;

    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font: inherit;
    cursor: pointer;
}

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

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.section-padding {
    padding: 90px 0;
}

/* ================= BUTTONS ================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 6px 18px rgba(98, 88, 245, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 10px 24px rgba(98, 88, 245, 0.28);
}

.btn-outline {
    background: white;
    border-color: var(--border);
    color: var(--dark);
}

.btn-light {
    background: white;
    border-color: var(--border);
    color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-large {
    padding: 15px 26px;
    font-size: 15px;
}

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 9999;
    background: white;
    padding: 10px 16px;
    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.025);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient);
    color: white;
    font-size: 23px;
    font-weight: 800;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--primary);
}

.desktop-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-login {
    font-size: 14px;
    font-weight: 700;
}

.mobile-menu-toggle,
.mobile-navigation {
    display: none;
}

/* ================= HERO ================= */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 115px 0 120px;
    background: linear-gradient(
        150deg,
        #f5f4ff 0%,
        #ffffff 50%,
        #eef5ff 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 18px;
    border-radius: 100px;
    background: #eeedff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.hero-content h1 {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.14;
    letter-spacing: -2.5px;
    font-weight: 850;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 680px;
    margin: auto;
    font-size: 17px;
    line-height: 1.85;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.hero-highlights {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 35px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.hero-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.2;
    pointer-events: none;
}

.hero-glow-one {
    left: -150px;
    top: -100px;
    background: #a855f7;
}

.hero-glow-two {
    right: -130px;
    bottom: -130px;
    background: #6366f1;
}

/* ================= SECTION TITLES ================= */

.section-heading {
    max-width: 680px;
}

.section-heading.center {
    margin: 0 auto 45px;
    text-align: center;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 13px;
}

.section-heading h2 {
    font-size: clamp(28px, 3.5vw, 43px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -1px;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading p {
    margin-top: 15px;
    color: var(--muted);
    font-size: 15px;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 35px;
}

.section-view-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

/* ================= PLATFORM CARDS ================= */

.platform-section {
    background: white;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.platform-card {
    display: block;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    transition: 0.25s ease;
}

.platform-card:hover {
    transform: translateY(-6px);
    border-color: #d9d4ff;
    box-shadow: var(--shadow);
}

.platform-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 30px;
    margin-bottom: 25px;
}

.store-icon {
    background: #f1edff;
}

.tools-icon {
    background: #eaf4ff;
}

.blog-icon {
    background: #fff2e6;
}

.platform-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.platform-card p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px;
}

.platform-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

/* ================= DIGITAL PRODUCTS ================= */

.products-section {
    background: var(--light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    min-width: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-thumbnail {
    position: relative;
    height: 215px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #efedff, #e8f3ff);
}

.product-card:nth-child(2) .product-thumbnail {
    background: linear-gradient(135deg, #e4f8ff, #e8ebff);
}

.product-card:nth-child(3) .product-thumbnail {
    background: linear-gradient(135deg, #fff0f1, #fff5e6);
}

.product-image-icon {
    font-size: 76px;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: white;
    color: var(--primary);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

.product-info {
    padding: 22px;
}

.product-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.product-info h3 {
    margin: 9px 0 15px;
    font-size: 17px;
    line-height: 1.45;
}

.product-pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.product-pricing strong {
    font-size: 20px;
    font-weight: 800;
}

.product-pricing del {
    color: #94a3b8;
    font-size: 14px;
}

.btn-product {
    width: 100%;
    background: #f0efff;
    color: var(--primary);
}

.btn-product:hover {
    background: var(--primary);
    color: white;
}

/* ================= TOOLS ================= */

.tools-section {
    background: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tool-card {
    min-width: 0;
    display: block;
    padding: 28px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: 0.25s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border-radius: 14px;
    font-size: 28px;
}

.tool-purple {
    background: #f0ebff;
}

.tool-red {
    background: #fff0f0;
}

.tool-blue {
    background: #eaf4ff;
}

.tool-green {
    background: #e8f8f0;
}

.tool-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
}

.tool-card p {
    min-height: 62px;
    color: var(--muted);
    font-size: 13px;
}

.tool-arrow {
    display: inline-block;
    margin-top: 18px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.section-bottom-action {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

/* ================= BLOG ================= */

.blog-section {
    background: var(--light);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    min-width: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.blog-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 195px;
    background: linear-gradient(135deg, #e6edff, #f1e8ff);
}

.blog-card:nth-child(2) .blog-thumbnail {
    background: linear-gradient(135deg, #e5f6ff, #ddf3f0);
}

.blog-card:nth-child(3) .blog-thumbnail {
    background: linear-gradient(135deg, #fff0e6, #f9e8ff);
}

.blog-thumbnail span {
    font-size: 72px;
}

.blog-content {
    padding: 24px;
}

.blog-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.blog-content h3 {
    margin: 12px 0;
    font-size: 19px;
    line-height: 1.45;
}

.blog-content p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

.blog-read-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
}

/* ================= FEATURES ================= */

.features-section {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-item {
    padding: 20px;
    text-align: center;
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: #f1efff;
    font-size: 28px;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 17px;
}

.feature-item p {
    color: var(--muted);
    font-size: 13px;
}

/* ================= CALL TO ACTION ================= */

.cta-section {
    padding: 35px 0 95px;
}

.cta-box {
    padding: 80px 25px;
    border-radius: 25px;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 650px;
    margin: auto;
}

.cta-label {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.cta-box h2 {
    margin-bottom: 18px;
    font-size: clamp(28px, 4vw, 43px);
    line-height: 1.25;
}

.cta-box p {
    margin-bottom: 30px;
    color: #eeeaff;
    font-size: 15px;
}

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

.site-footer {
    padding-top: 75px;
    background: #101827;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 65px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    color: white;
}

.footer-brand p {
    max-width: 350px;
    color: #9ba7ba;
    font-size: 14px;
}

.footer-social {
    margin-top: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #202b3c;
    color: white;
    border-radius: 9px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.footer-column h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-column a {
    color: #9ba7ba;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid #273345;
    color: #94a3b8;
    font-size: 13px;
}

/* ================= TABLET ================= */

@media (max-width: 1100px) {

    .desktop-navigation {
        gap: 16px;
    }

    .tools-grid,
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ================= MOBILE ================= */

@media (max-width: 800px) {

    .container {
        width: min(1200px, calc(100% - 28px));
    }

    .section-padding {
        padding: 65px 0;
    }

    .header-inner {
        min-height: 66px;
    }

    .logo-icon {
        width: 37px;
        height: 37px;
        font-size: 20px;
    }

    .logo-text {
        font-size: 21px;
    }

    .desktop-navigation,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        width: 43px;
        height: 43px;

        background: white;
        border: 1px solid var(--border);
        border-radius: 10px;
    }

    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--dark);
    }

    .mobile-navigation:not([hidden]) {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 12px 0 22px;
        border-top: 1px solid var(--border);
    }

    .mobile-navigation > a {
        padding: 12px;
        border-radius: 9px;
        color: var(--text);
        font-size: 15px;
        font-weight: 600;
    }

    .mobile-navigation > a.active,
    .mobile-navigation > a:hover {
        color: var(--primary);
        background: #f2f0ff;
    }

    .mobile-auth {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 15px;
    }

    .hero-section {
        padding: 78px 0 85px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 8vw, 52px);
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 340px;
    }

    .hero-highlights {
        gap: 12px;
        font-size: 12px;
    }

    .platform-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .platform-card {
        padding: 25px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-thumbnail {
        height: 135px;
    }

    .product-image-icon {
        font-size: 50px;
    }

    .product-info {
        padding: 14px;
    }

    .product-info h3 {
        min-height: 42px;
        font-size: 14px;
    }

    .product-pricing {
        gap: 7px;
    }

    .product-pricing strong {
        font-size: 17px;
    }

    .product-pricing del {
        font-size: 12px;
    }

    .btn-product {
        padding: 11px 6px;
        font-size: 12px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tool-card {
        padding: 20px 15px;
    }

    .tool-card h3 {
        font-size: 15px;
    }

    .tool-card p {
        min-height: 76px;
        font-size: 12px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .feature-item {
        padding: 15px 8px;
    }

    .feature-item h3 {
        font-size: 15px;
    }

    .section-heading-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cta-section {
        padding-bottom: 65px;
    }

    .cta-box {
        padding: 55px 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ================= SMALL MOBILE ================= */

@media (max-width: 380px) {

    .hero-content h1 {
        font-size: 34px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .btn-product {
        font-size: 11px;
    }

    .product-pricing strong {
        font-size: 16px;
    }
}

/* ================= ACCESSIBILITY ================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}