﻿/* Index landing page — scoped styles (navbar uses auth.css) */
header.navbar,
header.navbar nav a,
header.navbar .nav-dropdown-toggle,
header.navbar .auth-buttons a {
    text-transform: none !important;
    letter-spacing: normal;
}

header.navbar .nav-dropdown-menu a {
    text-transform: none !important;
}

body:not(.index-logged-in) {
    display: block !important;
    min-height: 100% !important;
}

body.index-logged-in main {
    width: 100% !important;
    padding-left: 2%;
    padding-right: 2%;
}

body:not(.index-logged-in) main {
    display: block !important;
    flex: 0 0 auto !important;
    align-items: initial !important;
    justify-content: initial !important;
    width: 100% !important;
    padding-left: 2%;
    padding-right: 2%;
}

:root {
    --orange: #FF9900;
    --orange-2: #ffb74d;
    --orange-3: #ffd18b;
    --green: #207A4E;
    --green-soft: #dff6e9;
    --blue: #4f46e5;
    --text: #0b1020;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: rgba(148, 163, 184, 0.16);
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow-xs: 0 8px 20px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 16px 34px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 26px 70px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 42px 120px rgba(15, 23, 42, 0.12);
    --radius-sm: 18px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.index-landing {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 8%, rgba(255,153,0,0.10), transparent 22%),
        radial-gradient(circle at 90% 12%, rgba(32,122,78,0.08), transparent 18%),
        radial-gradient(circle at 18% 92%, rgba(255,153,0,0.05), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
}

.text-primary { color: var(--orange); }
.text-secondary { color: var(--green); }
.text-muted { color: var(--muted); }
.bg-soft { background-color: var(--soft); }
.border-stroke { border-color: var(--line); }

.noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 20% 20%, #000 0.6px, transparent 0.8px),
        radial-gradient(circle at 80% 30%, #000 0.5px, transparent 0.7px),
        radial-gradient(circle at 40% 80%, #000 0.5px, transparent 0.7px);
    background-size: 120px 120px, 140px 140px, 160px 160px;
}

.section-shell {
    position: relative;
    isolation: isolate;
}

.section-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,153,0,0.035), transparent 22%),
        radial-gradient(circle at 82% 76%, rgba(32,122,78,0.035), transparent 22%);
}

.nav-shell {
    background: rgba(255,255,255,0.74);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148,163,184,0.14);
    box-shadow: 0 8px 30px rgba(15,23,42,0.03);
}

.logo-box {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    box-shadow: 0 14px 32px rgba(255,153,0,0.24);
}

.nav-link {
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-2) 100%);
    color: #fff;
    border: 1px solid rgba(255,153,0,0.28);
    transition: all 0.3s ease;
    box-shadow: 0 16px 34px rgba(255,153,0,0.24);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(255,153,0,0.32);
}

.btn-primary:active {
    transform: translateY(0);
}

.hero-shell {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255,153,0,0.12), transparent 22%),
        radial-gradient(circle at bottom left, rgba(32,122,78,0.10), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-shell::before,
.hero-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.65;
}

.hero-shell::before {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -120px;
    background: rgba(255,153,0,0.18);
}

.hero-shell::after {
    width: 440px;
    height: 440px;
    left: -110px;
    bottom: -160px;
    background: rgba(32,122,78,0.14);
}

.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(148,163,184,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.08) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent);
}

.hero-badge {
    background: rgba(255,255,255,0.80);
    border: 1px solid rgba(148,163,184,0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 28px rgba(15,23,42,0.05);
}

.hero-title {
    letter-spacing: -0.06em;
    line-height: 0.96;
}

.hero-subtext {
    max-width: 860px;
}

.hero-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.70));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 90px rgba(15,23,42,0.08);
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.12));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-stat {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(148,163,184,0.16);
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.floating-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    animation: drift 8s ease-in-out infinite;
}

.floating-orb.one {
    width: 14px;
    height: 14px;
    top: 16%;
    left: 8%;
    background: rgba(255,153,0,0.48);
}

.floating-orb.two {
    width: 10px;
    height: 10px;
    top: 22%;
    right: 13%;
    background: rgba(32,122,78,0.42);
    animation-delay: 1.4s;
}

.floating-orb.three {
    width: 18px;
    height: 18px;
    bottom: 18%;
    left: 16%;
    background: rgba(255,153,0,0.18);
    animation-delay: 2.1s;
}

@keyframes drift {
    0%, 100% { transform: translate3d(0,0,0); }
    50% { transform: translate3d(8px,-14px,0); }
}

.glass-card {
    background: rgba(255,255,255,0.74);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255,153,0,0.16);
}

.premium-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.90), rgba(255,255,255,0.74));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.76);
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 90px rgba(15,23,42,0.08);
}

.section-heading {
    letter-spacing: -0.04em;
}

.section-kicker {
    color: var(--orange);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,153,0,0.12), rgba(255,153,0,0.22));
    border: 1px solid rgba(255,153,0,0.16);
    box-shadow: 0 12px 28px rgba(255,153,0,0.10);
}

.engine-container { perspective: 1600px; }

.engine-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.66));
    border-radius: 42px;
    border: 1px solid rgba(148,163,184,0.15);
    box-shadow: 0 42px 120px rgba(15,23,42,0.10);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.data-grid {
    background-image: radial-gradient(rgba(148,163,184,0.32) 1px, transparent 1px);
    background-size: 26px 26px;
}

@keyframes scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scanning-bar {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    box-shadow: 0 0 22px rgba(255,153,0,0.8);
    position: absolute;
    animation: scan 4s ease-in-out infinite;
    z-index: 30;
}

@keyframes flow {
    0% { transform: translateY(-50px); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(150px); opacity: 0; }
}

.flow-line {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--orange), transparent);
    animation: flow 3s infinite linear;
    z-index: 5;
}

.impact-badge {
    z-index: 50;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px rgba(15,23,42,0.16);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.02); }
}

.table-shell {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.comparison-table tr:nth-child(even) {
    background-color: rgba(248,250,252,0.92);
}

.faq-card {
    background: rgba(255,255,255,0.80);
    border: 1px solid rgba(148,163,184,0.16);
    box-shadow: 0 12px 30px rgba(15,23,42,0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.28s ease;
}

.faq-card:hover {
    border-color: rgba(255,153,0,0.18);
    box-shadow: var(--shadow-sm);
}

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.dark-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(255,153,0,0.16), transparent 20%),
        radial-gradient(circle at 85% 85%, rgba(32,122,78,0.12), transparent 20%),
        linear-gradient(180deg, #07111e 0%, #091523 100%);
    box-shadow: 0 28px 90px rgba(15,23,42,0.18);
}

.dark-band::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 34px 34px;
}

.cta-dark-input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.divider-glow {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,153,0,0.55), transparent);
}

.mobile-menu-btn {
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(148,163,184,0.18);
    color: var(--text);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-xs);
}

body:not(.index-logged-in) .mobile-nav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(148,163,184,0.14);
    border-bottom: 1px solid rgba(148,163,184,0.14);
}

.mobile-nav-link {
    display: block;
    padding: 0.9rem 0;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid rgba(148,163,184,0.10);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.workflow-visual-pro {
    position: relative;
    min-height: 560px;
    border-radius: 36px;
    border: 1px solid rgba(148,163,184,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.86));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(15,23,42,0.07);
}

.workflow-pro-bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 20%, rgba(255,153,0,0.07), transparent 20%),
        radial-gradient(circle at 82% 78%, rgba(32,122,78,0.06), transparent 22%),
        linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px, 32px 32px;
}

.workflow-pro-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    border-radius: inherit;
    background-image:
        radial-gradient(circle at 20% 20%, #000 0.6px, transparent 0.8px),
        radial-gradient(circle at 80% 30%, #000 0.5px, transparent 0.7px);
    background-size: 140px 140px, 160px 160px;
}

.workflow-pro-kicker {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #94a3b8;
    margin-bottom: 0.55rem;
}

.workflow-pro-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    font-weight: 900;
    color: #020617;
    margin: 0;
}

.workflow-pro-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.78rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(148,163,184,0.12);
    box-shadow: 0 12px 24px rgba(15,23,42,0.05);
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    flex-shrink: 0;
}

.workflow-pro-stage {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.workflow-pro-top-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.workflow-pro-mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(148,163,184,0.10);
    box-shadow: 0 10px 22px rgba(15,23,42,0.04);
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
}

.workflow-pro-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-block;
}

.workflow-pro-dot.orange { background: #FF9900; }
.workflow-pro-dot.green { background: #207A4E; }
.workflow-pro-dot.blue { background: #4f46e5; }

.workflow-pro-center-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
}

.workflow-pro-beam {
    position: absolute;
    top: 50%;
    width: 90px;
    height: 2px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(255,153,0,0.08), rgba(255,153,0,0.55), rgba(32,122,78,0.12));
}

.workflow-pro-beam.beam-left {
    left: calc(50% - 220px);
}

.workflow-pro-beam.beam-right {
    right: calc(50% - 220px);
}

.workflow-pro-core {
    position: relative;
    width: min(100%, 340px);
    min-height: 250px;
    padding: 1.8rem 1.4rem 1.35rem;
    border-radius: 34px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
    border: 1px solid rgba(255,255,255,0.96);
    box-shadow: 0 28px 60px rgba(15,23,42,0.08);
    overflow: hidden;
}

.workflow-pro-core::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 24px;
    border: 1px dashed rgba(255,153,0,0.22);
    pointer-events: none;
}

.workflow-pro-core-glow {
    position: absolute;
    width: 170px;
    height: 170px;
    left: 50%;
    top: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255,153,0,0.14);
    filter: blur(34px);
    pointer-events: none;
}

.workflow-pro-core-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF9900, #ffb74d);
    box-shadow: 0 18px 40px rgba(255,153,0,0.28);
    position: relative;
    z-index: 1;
}

.workflow-pro-core-label {
    margin-top: 1rem;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #f97316;
    position: relative;
    z-index: 1;
}

.workflow-pro-core-title {
    margin-top: 0.8rem;
    margin-bottom: 0;
    font-size: 1.55rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #020617;
    position: relative;
    z-index: 1;
}

.workflow-pro-core-text {
    margin-top: 0.9rem;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #64748b;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.workflow-pro-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.workflow-pro-metric-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(148,163,184,0.10);
    box-shadow: 0 10px 24px rgba(15,23,42,0.04);
    min-width: 0;
}

.workflow-pro-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workflow-pro-metric-icon.orange {
    background: rgba(255,153,0,0.10);
    color: #FF9900;
    border: 1px solid rgba(255,153,0,0.14);
}

.workflow-pro-metric-icon.green {
    background: rgba(32,122,78,0.10);
    color: #207A4E;
    border: 1px solid rgba(32,122,78,0.14);
}

.workflow-pro-metric-icon.blue {
    background: rgba(79,70,229,0.10);
    color: #4f46e5;
    border: 1px solid rgba(79,70,229,0.14);
}

.workflow-pro-metric-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
    color: #94a3b8;
    margin-bottom: 0.22rem;
}

.workflow-pro-metric-value {
    font-size: 0.95rem;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
}

@media (min-width: 768px) {
    .mobile-menu-wrap {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        line-height: 1.02;
    }

    .engine-card {
        min-height: 560px !important;
    }

    .impact-badge {
        right: 0;
    }

    .workflow-pro-beam {
        display: none;
    }

    .workflow-pro-metrics {
        grid-template-columns: 1fr;
    }

    .workflow-visual-pro {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        line-height: 1.04;
        letter-spacing: -0.04em;
    }

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

    .hero-panel,
    .glass-card,
    .premium-card,
    .table-shell,
    .dark-band,
    .engine-card {
        border-radius: 24px;
    }

    .impact-badge {
        position: static;
        margin-top: 1.5rem;
        width: 100%;
        justify-content: center;
    }

    .engine-card {
        min-height: auto !important;
        padding: 1.5rem !important;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
        white-space: nowrap;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.4rem !important;
        line-height: 1.06;
    }

    .hero-panel {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .dark-band,
    .hero-panel,
    .engine-card,
    .workflow-visual-pro {
        border-radius: 24px;
    }

    .impact-badge {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .impact-badge p.text-4xl {
        font-size: 2rem !important;
    }

    .workflow-pro-core,
    .workflow-pro-metric-card {
        border-radius: 18px;
    }

    .workflow-pro-core::before {
        inset: 10px;
        border-radius: 14px;
    }

    .workflow-pro-pill {
        font-size: 0.82rem;
        padding: 0.6rem 0.8rem;
    }

    .workflow-pro-core-title {
        font-size: 1.28rem;
    }

    .workflow-pro-core-text {
        font-size: 0.85rem;
    }

    .workflow-pro-metric-value {
        font-size: 0.88rem;
    }
}
