/* ====== VIVID26 Homepage — Enterprise Design ====== */

/* ====== Design Tokens ====== */
:root {
    --v2-bg-primary: #F8FAFC;
    --v2-bg-secondary: #EEF2F6;
    --v2-bg-dark: #0B1220;
    --v2-bg-dark-light: #131C2E;
    --v2-accent: #2563EB;
    --v2-accent-hover: #1D4ED8;
    --v2-accent-light: rgba(37, 99, 235, 0.08);
    --v2-text-heading: #0F172A;
    --v2-text-body: #475569;
    --v2-text-light: #94A3B8;
    --v2-text-white: #FFFFFF;
    --v2-border: #E2E8F0;
    --v2-border-light: #F1F5F9;
    --v2-success: #059669;
    --v2-warning: #D97706;
    --v2-danger: #DC2626;
    --v2-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --v2-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --v2-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --v2-radius: 8px;
    --v2-radius-lg: 12px;
}

/* ====== Base Reset for Homepage ====== */
.homepage {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--v2-bg-primary);
    color: var(--v2-text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.homepage *,
.homepage *::before,
.homepage *::after {
    box-sizing: border-box;
}

.homepage .v2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== Typography ====== */
.homepage h1, .homepage h2, .homepage h3, .homepage h4 {
    color: var(--v2-text-heading);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.homepage p {
    color: var(--v2-text-body);
    line-height: 1.7;
}

.v2-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--v2-accent);
    margin-bottom: 12px;
    display: block;
}

/* ====== Navigation ====== */
.v2-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--v2-border);
    height: 64px;
}

.v2-nav .v2-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.v2-nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--v2-text-heading);
    text-decoration: none;
    letter-spacing: -0.03em;
}

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

.v2-nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--v2-text-body);
    text-decoration: none;
    transition: color 0.15s;
}

.v2-nav-links a:hover {
    color: var(--v2-text-heading);
}

.v2-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.v2-nav-login {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--v2-text-body);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    transition: color 0.15s;
}

.v2-nav-login:hover {
    color: var(--v2-text-heading);
}

/* ====== Buttons ====== */
.v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

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

.v2-btn-primary:hover {
    background: #1E293B;
}

.v2-btn-accent {
    background: var(--v2-accent);
    color: var(--v2-text-white);
}

.v2-btn-accent:hover {
    background: var(--v2-accent-hover);
}

.v2-btn-outline {
    background: transparent;
    color: var(--v2-text-heading);
    border: 1px solid var(--v2-border);
}

.v2-btn-outline:hover {
    border-color: var(--v2-text-heading);
    background: var(--v2-bg-secondary);
}

.v2-btn-lg {
    padding: 14px 28px;
    font-size: 0.9375rem;
}

.v2-btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

/* ====== Hero Section ====== */
.v2-hero {
    padding: 140px 0 80px;
    background: var(--v2-bg-primary);
}

.v2-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.v2-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
}

.v2-hero-content p {
    font-size: 1.125rem;
    color: var(--v2-text-body);
    margin-bottom: 32px;
    max-width: 480px;
    line-height: 1.7;
}

.v2-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.v2-hero-secondary {
    font-size: 0.875rem;
    color: var(--v2-text-light);
    text-decoration: none;
    transition: color 0.15s;
}

.v2-hero-secondary:hover {
    color: var(--v2-accent);
}

/* Hero Product Visual */
.v2-hero-visual {
    position: relative;
}

.v2-product-mock {
    background: var(--v2-text-white);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-lg);
    box-shadow: var(--v2-shadow-lg);
    overflow: hidden;
}

.v2-mock-toolbar {
    background: var(--v2-bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--v2-border);
}

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

.v2-mock-url {
    flex: 1;
    background: var(--v2-text-white);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--v2-text-light);
    margin-left: 8px;
}

.v2-mock-body {
    padding: 24px;
}

.v2-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.v2-mock-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--v2-text-heading);
}

.v2-mock-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(5, 150, 105, 0.1);
    color: var(--v2-success);
}

.v2-mock-score-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.v2-mock-score-card {
    flex: 1;
    background: var(--v2-bg-primary);
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.v2-mock-score-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--v2-text-heading);
    display: block;
}

.v2-mock-score-label {
    font-size: 0.6875rem;
    color: var(--v2-text-light);
    margin-top: 2px;
    display: block;
}

.v2-mock-findings {
    border-top: 1px solid var(--v2-border-light);
    padding-top: 16px;
}

.v2-mock-findings-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--v2-text-light);
    margin-bottom: 10px;
}

.v2-mock-finding {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.75rem;
    color: var(--v2-text-body);
    border-bottom: 1px solid var(--v2-border-light);
}

.v2-mock-finding:last-child {
    border-bottom: none;
}

.v2-mock-sev {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.v2-mock-sev.critical { background: var(--v2-danger); }
.v2-mock-sev.high { background: var(--v2-warning); }
.v2-mock-sev.medium { background: var(--v2-accent); }
.v2-mock-sev.low { background: var(--v2-success); }

/* ====== Scanner Section (inline in hero) ====== */
.v2-scanner-section {
    padding: 0 0 80px;
    background: var(--v2-bg-primary);
}

.v2-scanner-box {
    max-width: 680px;
    margin: 0 auto;
}

.v2-scanner-input {
    display: flex;
    background: var(--v2-text-white);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    padding: 6px;
    box-shadow: var(--v2-shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.v2-scanner-input:focus-within {
    border-color: var(--v2-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.v2-scanner-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--v2-text-heading);
    outline: none;
}

.v2-scanner-input input::placeholder {
    color: var(--v2-text-light);
}

.v2-scanner-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--v2-text-light);
    margin-top: 12px;
}

/* Scanning state */
.v2-scanning {
    text-align: center;
    padding: 100px 0;
}

.v2-scanning h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.v2-scanning p {
    font-size: 0.9375rem;
}

.v2-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid var(--v2-border);
    border-radius: 50%;
    border-top-color: var(--v2-accent);
    animation: v2spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes v2spin {
    to { transform: rotate(360deg); }
}

/* ====== Product Value Sections ====== */
.v2-section {
    padding: 80px 0;
}

.v2-section-alt {
    background: var(--v2-bg-secondary);
}

.v2-section-dark {
    background: var(--v2-bg-dark);
}

.v2-section-dark h2,
.v2-section-dark h3,
.v2-section-dark h4 {
    color: var(--v2-text-white);
}

.v2-section-dark p {
    color: #94A3B8;
}

.v2-section-dark .v2-label {
    color: #60A5FA;
}

.v2-section-header {
    max-width: 640px;
    margin-bottom: 48px;
}

.v2-section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.v2-section-header h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.v2-section-header p {
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Two-column section layout */
.v2-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.v2-split-reverse {
    direction: rtl;
}

.v2-split-reverse > * {
    direction: ltr;
}

/* ====== Features Grid ====== */
.v2-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.v2-feature-card {
    background: var(--v2-text-white);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius);
    padding: 28px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.v2-feature-card:hover {
    box-shadow: var(--v2-shadow-md);
    transform: translateY(-2px);
}

.v2-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.v2-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--v2-text-heading);
    stroke-width: 1.5;
    fill: none;
}

.v2-feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.v2-feature-card p {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--v2-text-body);
}

/* ====== Data / Credibility Section ====== */
.v2-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.v2-data-block {
    background: var(--v2-bg-dark-light);
    border-radius: var(--v2-radius);
    padding: 28px;
    border: 1px solid rgba(255,255,255,0.06);
}

.v2-data-block h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    color: var(--v2-text-light);
}

.v2-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v2-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: #CBD5E1;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.v2-checklist li:last-child {
    border-bottom: none;
}

.v2-check {
    color: var(--v2-success);
    font-weight: 700;
    font-size: 0.75rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ====== Pricing Section ====== */
.v2-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.v2-pricing-card {
    background: var(--v2-text-white);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-lg);
    padding: 32px 28px;
    position: relative;
}

.v2-pricing-card.featured {
    border-color: var(--v2-accent);
    box-shadow: 0 0 0 1px var(--v2-accent);
}

.v2-pricing-card.featured::before {
    content: "Recommended";
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--v2-accent);
    color: var(--v2-text-white);
    padding: 3px 14px;
    border-radius: 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.v2-pricing-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--v2-text-heading);
    margin-bottom: 6px;
}

.v2-pricing-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--v2-text-heading);
    margin-bottom: 4px;
    line-height: 1.2;
}

.v2-pricing-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--v2-text-light);
}

.v2-pricing-desc {
    font-size: 0.8125rem;
    color: var(--v2-text-body);
    margin-bottom: 24px;
    line-height: 1.5;
}

.v2-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.v2-pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.8125rem;
    color: var(--v2-text-body);
}

.v2-pricing-features li::before {
    content: "";
    width: 16px;
    height: 16px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5L4 7L8 3' stroke='%23059669' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.v2-pricing-cta {
    width: 100%;
}

/* ====== Footer ====== */
.v2-footer {
    background: var(--v2-bg-dark);
    padding: 64px 0 32px;
    color: #94A3B8;
}

.v2-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.v2-footer-brand {
    max-width: 260px;
}

.v2-footer-brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--v2-text-white);
    margin-bottom: 12px;
    display: block;
}

.v2-footer-brand p {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #64748B;
}

.v2-footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748B;
    margin-bottom: 16px;
}

.v2-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v2-footer-col li {
    margin-bottom: 10px;
}

.v2-footer-col a {
    font-size: 0.8125rem;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.15s;
}

.v2-footer-col a:hover {
    color: var(--v2-text-white);
}

.v2-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #475569;
}

/* ====== Scroll Animations ====== */
.v2-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.v2-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Modals (scoped for homepage) ====== */
.homepage .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.homepage .modal-overlay.active {
    display: flex;
}

.homepage .modal {
    background: var(--v2-text-white);
    border-radius: var(--v2-radius-lg);
    padding: 40px;
    max-width: 400px;
    width: 100%;
    position: relative;
    border: 1px solid var(--v2-border);
    box-shadow: var(--v2-shadow-lg);
}

.homepage .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--v2-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.homepage .modal-close:hover {
    color: var(--v2-text-heading);
}

.homepage .modal-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--v2-accent-light);
    border-radius: var(--v2-radius);
    margin: 0 auto 20px;
    color: var(--v2-accent);
}

.homepage .modal h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: var(--v2-text-heading);
}

.homepage .modal > p {
    color: var(--v2-text-body);
    text-align: center;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.homepage .modal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.homepage .modal input {
    background: var(--v2-bg-primary);
    border: 1px solid var(--v2-border);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--v2-text-heading);
    font-size: 0.9375rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.homepage .modal input:focus {
    border-color: var(--v2-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.homepage .modal input::placeholder {
    color: var(--v2-text-light);
}

.homepage .modal .btn-full {
    width: 100%;
    margin-top: 4px;
}

.homepage .modal-note {
    text-align: center;
    color: var(--v2-text-light);
    font-size: 0.75rem;
    margin-top: 16px;
}

/* ====== Toast (scoped for homepage) ====== */
.homepage .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--v2-text-white);
    padding: 14px 24px;
    border-radius: var(--v2-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--v2-danger);
    box-shadow: var(--v2-shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
    color: var(--v2-text-heading);
    font-size: 0.875rem;
}

.homepage .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.homepage .toast.success-toast {
    border-color: var(--v2-success);
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
    .v2-hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .v2-hero-content h1 {
        font-size: 2.5rem;
    }

    .v2-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .v2-split-reverse {
        direction: ltr;
    }

    .v2-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v2-footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

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

@media (max-width: 768px) {
    .v2-hero-content h1 {
        font-size: 2rem;
    }

    .v2-section-header h2 {
        font-size: 1.5rem;
    }

    .v2-features-grid {
        grid-template-columns: 1fr;
    }

    .v2-data-grid {
        grid-template-columns: 1fr;
    }

    .v2-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .v2-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .v2-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .v2-scanner-input {
        flex-direction: column;
    }

    .v2-scanner-input .v2-btn {
        width: 100%;
    }
}
