/* ==========================================================
   COLOURS
   ========================================================== */

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --purple: #7c3aed;
    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --light-blue: #eff6ff;
    --light-purple: #f5f3ff;
}


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

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark);
    background: white;
    line-height: 1.6;
}


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


/* ==========================================================
   NAVBAR
   ========================================================== */

.navbar {
    height: 74px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e8edf5;

    display: flex;
    align-items: center;

    position: sticky;
    top: 0;

    z-index: 1000;
}


.nav-container {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}


.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}


.nav-link {
    color: #475569;
    font-size: 14px;
    font-weight: 500;

    transition: 0.2s;
}


.nav-link:hover {
    color: var(--blue);
}


.nav-button-primary {
    background: var(--blue);
    color: white;

    padding: 10px 21px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}


.nav-button-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}


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

.hero {
    position: relative;
    overflow: hidden;

    padding: 95px 30px 90px;

    background:
        linear-gradient(
            135deg,
            #eef6ff 0%,
            #ffffff 45%,
            #f7f2ff 100%
        );
}


.hero-container {
    position: relative;
    z-index: 2;

    max-width: 1150px;
    margin: 0 auto;

    text-align: center;
}


.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.32;
}


.hero-glow-one {
    width: 420px;
    height: 420px;

    background: #60a5fa;

    top: -180px;
    left: -100px;
}


.hero-glow-two {
    width: 450px;
    height: 450px;

    background: #c084fc;

    right: -180px;
    bottom: -120px;
}


.hero-badge {
    display: inline-block;

    padding: 7px 16px;

    background: white;

    color: var(--blue);

    border: 1px solid #dbeafe;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 28px;

    box-shadow:
        0 5px 20px
        rgba(37, 99, 235, 0.08);
}


.hero h1 {
    max-width: 850px;

    margin: 0 auto;

    font-size: 58px;
    line-height: 1.08;

    letter-spacing: -2px;
}


.hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            var(--blue),
            var(--purple)
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.hero-text {
    max-width: 680px;

    margin: 24px auto 0;

    font-size: 19px;

    color: var(--muted);
}


.hero-buttons {
    margin-top: 34px;

    display: flex;
    justify-content: center;

    gap: 14px;
}


.btn-large {
    padding: 14px 26px;
}


.btn-primary {
    display: inline-block;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    color: white;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;

    box-shadow:
        0 8px 24px
        rgba(37, 99, 235, 0.25);

    transition: 0.2s;
}


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

    box-shadow:
        0 12px 28px
        rgba(37, 99, 235, 0.32);
}


.btn-secondary {
    display: inline-block;

    background: white;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    color: var(--dark);

    font-size: 15px;
    font-weight: 600;

    transition: 0.2s;
}


.btn-secondary:hover {
    border-color: #94a3b8;

    transform: translateY(-2px);
}


.hero-small-text {
    margin-top: 22px;

    color: #94a3b8;

    font-size: 13px;
}


/* ==========================================================
   PRODUCT PREVIEW
   ========================================================== */

.product-preview {
    max-width: 900px;

    margin: 65px auto 0;

    background: white;

    border: 1px solid #dfe7f1;

    border-radius: 16px;

    box-shadow:
        0 25px 70px
        rgba(15, 23, 42, 0.13);

    display: grid;

    grid-template-columns: 180px 1fr;

    overflow: hidden;

    text-align: left;
}


.preview-sidebar {
    background: #0f172a;

    color: white;

    padding: 25px 18px;
}


.preview-logo {
    width: 38px;
    height: 38px;

    background:
        linear-gradient(
            135deg,
            #3b82f6,
            #8b5cf6
        );

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: bold;

    margin-bottom: 30px;
}


.preview-menu {
    padding: 9px 11px;

    margin-bottom: 7px;

    border-radius: 6px;

    font-size: 12px;

    color: #94a3b8;
}


.preview-menu.active {
    background: #1e293b;

    color: white;
}


.preview-content {
    padding: 30px;
}


.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;
}


.preview-label {
    font-size: 11px;

    color: #94a3b8;
}


.preview-header h3 {
    font-size: 19px;

    margin-top: 3px;
}


.preview-button {
    background: var(--blue);

    color: white;

    padding: 8px 13px;

    font-size: 11px;

    border-radius: 6px;
}


.preview-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    margin-bottom: 25px;
}


.preview-stat {
    background: #f8fafc;

    border: 1px solid #edf2f7;

    border-radius: 9px;

    padding: 14px;
}


.preview-stat span {
    display: block;

    color: var(--muted);

    font-size: 10px;
}


.preview-stat strong {
    display: block;

    margin-top: 4px;

    font-size: 22px;
}


.preview-table {
    border: 1px solid #e5e7eb;

    border-radius: 8px;

    overflow: hidden;
}


.preview-row {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    padding: 11px 14px;

    border-bottom: 1px solid #eef2f7;

    font-size: 11px;

    align-items: center;
}


.preview-row:last-child {
    border-bottom: none;
}


.preview-row-heading {
    background: #f8fafc;

    color: var(--muted);

    font-weight: 600;
}


.status-pill {
    width: fit-content;

    background: #dcfce7;

    color: #15803d;

    padding: 3px 8px;

    border-radius: 15px;

    font-size: 9px;
}


.status-pill.draft {
    background: #f1f5f9;

    color: #64748b;
}


/* ==========================================================
   VALUE STRIP
   ========================================================== */

.value-strip {
    background: #0f172a;

    color: white;

    padding: 28px 30px;
}


.value-strip-container {
    max-width: 950px;

    margin: 0 auto;

    display: flex;

    justify-content: space-around;

    align-items: center;
}


.value-item {
    text-align: center;
}


.value-item strong {
    display: block;

    font-size: 15px;
}


.value-item span {
    color: #94a3b8;

    font-size: 12px;
}


.value-divider {
    width: 1px;
    height: 40px;

    background: #334155;
}


/* ==========================================================
   GENERAL SECTIONS
   ========================================================== */

.section-container {
    max-width: 1100px;

    margin: 0 auto;
}


.features {
    padding: 95px 30px;
}


.section-heading {
    text-align: center;

    max-width: 700px;

    margin: 0 auto 55px;
}


.section-label {
    display: block;

    margin-bottom: 10px;

    color: var(--blue);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.4px;
}


.section-heading h2 {
    font-size: 38px;

    letter-spacing: -1px;

    margin-bottom: 13px;
}


.section-heading p {
    color: var(--muted);

    font-size: 17px;
}


/* ==========================================================
   FEATURE CARDS
   ========================================================== */

.feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 22px;
}


.feature-card {
    border-radius: 14px;

    padding: 32px;

    border: 1px solid var(--border);

    transition: 0.25s;
}


.feature-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px
        rgba(15, 23, 42, 0.08);
}


.feature-blue {
    background:
        linear-gradient(
            145deg,
            #eff6ff,
            #ffffff
        );
}


.feature-purple {
    background:
        linear-gradient(
            145deg,
            #f5f3ff,
            #ffffff
        );
}


.feature-green {
    background:
        linear-gradient(
            145deg,
            #ecfdf5,
            #ffffff
        );
}


.feature-icon {
    width: 48px;
    height: 48px;

    border-radius: 11px;

    background: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 14px;
    font-weight: 700;

    color: var(--blue);

    margin-bottom: 22px;

    box-shadow:
        0 5px 15px
        rgba(15, 23, 42, 0.08);
}


.feature-card h3 {
    font-size: 19px;

    margin-bottom: 11px;
}


.feature-card p {
    color: var(--muted);

    font-size: 14px;
}


.feature-link {
    margin-top: 20px;

    color: var(--blue);

    font-size: 13px;

    font-weight: 600;
}


/* ==========================================================
   HOW IT WORKS
   ========================================================== */

.how-section {
    background: #f8fafc;

    padding: 95px 30px;
}


.how-grid {
    display: grid;

    grid-template-columns:
        1.1fr 0.9fr;

    gap: 80px;

    align-items: center;
}


.how-content h2 {
    font-size: 40px;

    line-height: 1.15;

    letter-spacing: -1px;

    margin-bottom: 16px;
}


.how-content > p {
    color: var(--muted);

    margin-bottom: 34px;
}


.how-step {
    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 16px;

    margin-bottom: 25px;
}


.step-number {
    width: 38px;
    height: 38px;

    background: #dbeafe;

    color: var(--blue);

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 700;
}


.how-step h3 {
    font-size: 16px;

    margin-bottom: 4px;
}


.how-step p {
    color: var(--muted);

    font-size: 14px;
}


.how-panel {
    background:
        linear-gradient(
            150deg,
            #ffffff,
            #f5f3ff
        );

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    padding: 30px;

    box-shadow:
        0 20px 55px
        rgba(15, 23, 42, 0.09);
}


.how-panel-header {
    display: flex;

    justify-content: space-between;

    margin-bottom: 12px;

    font-size: 14px;
}


.progress-bar {
    width: 100%;

    height: 9px;

    background: #e2e8f0;

    border-radius: 20px;

    overflow: hidden;

    margin-bottom: 30px;
}


.progress-value {
    width: 72%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed
        );
}


.how-card {
    display: flex;

    justify-content: space-between;

    background: white;

    padding: 15px 16px;

    border-radius: 9px;

    border: 1px solid #e5e7eb;

    margin-bottom: 11px;

    font-size: 13px;
}


/* ==========================================================
   CTA
   ========================================================== */

.cta-section {
    padding: 90px 30px;
}


.cta-box {
    max-width: 1100px;

    margin: 0 auto;

    padding: 65px 40px;

    position: relative;

    overflow: hidden;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #6d28d9
        );

    color: white;

    text-align: center;
}


.cta-gradient {
    position: absolute;

    width: 400px;
    height: 400px;

    background: #60a5fa;

    opacity: 0.2;

    border-radius: 50%;

    filter: blur(60px);

    top: -250px;
    right: -100px;
}


.cta-content {
    position: relative;
    z-index: 2;
}


.cta-label {
    font-size: 11px;

    letter-spacing: 1.5px;

    font-weight: 700;

    color: #dbeafe;
}


.cta-box h2 {
    max-width: 650px;

    margin: 12px auto;

    font-size: 39px;
}


.cta-box p {
    color: #dbeafe;

    margin-bottom: 28px;
}


.btn-white {
    display: inline-block;

    background: white;

    color: #1d4ed8;

    padding: 13px 25px;

    border-radius: 8px;

    font-weight: 700;

    font-size: 14px;

    transition: 0.2s;
}


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


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

.footer {
    border-top: 1px solid #e5e7eb;

    padding: 40px 30px;

    background: white;
}


.footer-container {
    max-width: 1100px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.footer strong {
    font-size: 16px;
}


.footer p {
    color: var(--muted);

    font-size: 12px;

    margin-top: 4px;
}


.footer-links {
    display: flex;

    gap: 25px;

    color: var(--muted);

    font-size: 13px;
}


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

@media (max-width: 800px) {

    .nav-links .nav-link {
        display: none;
    }


    .hero {
        padding-top: 65px;
    }


    .hero h1 {
        font-size: 42px;
    }


    .hero-text {
        font-size: 17px;
    }


    .hero-buttons {
        flex-direction: column;
    }


    .product-preview {
        display: block;
    }


    .preview-sidebar {
        display: none;
    }


    .preview-stats {
        grid-template-columns: 1fr;
    }


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


    .how-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .value-strip-container {
        flex-direction: column;

        gap: 20px;
    }


    .value-divider {
        width: 50px;
        height: 1px;
    }


    .footer-container {
        flex-direction: column;

        text-align: center;

        gap: 20px;
    }

}
/* ==========================================================
   LOGIN / REGISTER
   ========================================================== */

.auth-page {
    min-height: calc(100vh - 72px);
    background: #f5f7fa;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 50px 20px;
}


.auth-card {
    width: 100%;
    max-width: 430px;

    background: white;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    padding: 38px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


.register-card {
    max-width: 520px;
}


.auth-header {
    text-align: center;
    margin-bottom: 30px;
}


.auth-header h1 {
    font-size: 27px;
    margin-bottom: 7px;
}


.auth-header p {
    color: #6b7280;
    font-size: 14px;
}


.form-group {
    margin-bottom: 18px;
}


.form-group label {
    display: block;
    margin-bottom: 6px;

    font-size: 14px;
    font-weight: 500;
}


.form-control {
    width: 100%;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    padding: 11px 12px;

    font-size: 14px;

    outline: none;
}


.form-control:focus {
    border-color: #1677ff;
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}


.password-wrapper {
    display: flex;
    align-items: stretch;
}


.password-wrapper .form-control {
    border-radius: 6px 0 0 6px;
}


.password-toggle {
    width: 65px;

    border: 1px solid #d1d5db;
    border-left: none;

    background: #f9fafb;

    border-radius: 0 6px 6px 0;

    cursor: pointer;
}


.password-toggle:hover {
    background: #f3f4f6;
}


.auth-submit {
    width: 100%;

    background: #1677ff;
    color: white;

    border: none;
    border-radius: 6px;

    padding: 12px;

    font-size: 16px;
    font-weight: 500;

    cursor: pointer;

    margin-top: 7px;
}


.auth-submit:hover {
    background: #0867e8;
}


.auth-divider {
    border: 0;
    border-top: 1px solid #e5e7eb;

    margin: 25px 0;
}


.auth-footer {
    text-align: center;
    font-size: 14px;
}


.auth-footer p {
    margin-bottom: 10px;
}


.error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 5px;
}


.flash-message {
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 20px;
    font-size: 14px;
}


.flash-danger {
    background: #fef2f2;
    color: #991b1b;
}


.flash-success {
    background: #f0fdf4;
    color: #166534;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* =========================================================
   HOME PAGE HERO FIX
   ========================================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: auto;
    height: auto;
    padding: 90px 24px 80px;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

/* Main heading */
.hero h1 {
    position: relative;
    margin: 28px auto 20px;
    max-width: 950px;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    z-index: 2;
}

/* Hero supporting text */
.hero-text {
    max-width: 720px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Small text below buttons */
.hero-small-text {
    margin: 18px auto 45px;
}

/* Product preview must remain inside hero */
.product-preview {
    position: relative;
    z-index: 2;
    margin: 45px auto 0;
    max-width: 1100px;
}

/* Dark value strip must flow AFTER hero */
.value-strip {
    position: relative;
    z-index: 3;
    width: 100%;
    margin: 0;
    clear: both;
}

/* Prevent accidental absolute/fixed positioning */
.value-strip-container {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
}


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

@media (max-width: 768px) {

    .hero {
        padding: 65px 20px 55px;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 1.08;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .product-preview {
        margin-top: 35px;
    }
}