/**
 * ==============================================================================
 * PUBLIC WEBSITE STYLES — ALIGNED WITH TANGEM DESIGN SYSTEM MOCKUP
 * ==============================================================================
 */

/* Header & Navigation */
.site-header {
    background-color: rgba(8, 9, 13, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.9rem 0;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    text-decoration: none;
}

.nav-brand img {
    height: 28px;
    width: auto;
    display: block;
}

.nav-badge {
    background: rgba(0, 130, 251, 0.12);
    border: 1px solid rgba(0, 130, 251, 0.25);
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Hero Section with Split Card Visual */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 0 2rem 0;
}

@media (max-width: 860px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0 1.5rem 0;
    }
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-card-visual img {
    width: 100%;
    max-width: 440px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
    transition: transform 0.4s ease;
}
.hero-card-visual:hover img {
    transform: translateY(-4px) scale(1.02);
}

/* Light color circular border with dropdown arrow pointing downward (Mockup Screen 1) */
.hero-scroll-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-scroll-circle-btn:hover {
    border-color: var(--color-accent) !important;
    color: var(--color-accent);
    background: rgba(0, 130, 251, 0.08) !important;
    box-shadow: 0 0 16px rgba(0, 130, 251, 0.3);
    transform: translateY(2px);
}

.hero-scroll-circle-btn:active {
    transform: translateY(4px);
}

.hero-scroll-circle-btn svg {
    display: block;
    transition: transform var(--transition-fast);
}

.hero-scroll-circle-btn:hover svg {
    transform: translateY(1px);
}

/* Hero Downward Dropdown / Action Trigger (Matching Mockup Screen 1) */
.hero-dropdown-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 2.75rem; /* Generous top margin right under the diagnostic buttons */
}

@media (max-width: 860px) {
    .hero-dropdown-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 2.25rem;
    }
}

.hero-dropdown-trigger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(14, 17, 24, 0.9) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-base);
    animation: heroChevronFloat 2.8s infinite ease-in-out;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.hero-dropdown-trigger:hover,
.hero-dropdown-trigger.active {
    background: var(--color-bg-surface-elevated) !important;
    border-color: var(--color-accent) !important;
    color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 130, 251, 0.35);
    transform: translateY(3px);
    animation-play-state: paused;
}

.hero-dropdown-trigger:active {
    transform: translateY(5px);
}

.hero-dropdown-trigger svg {
    display: block;
    transition: transform var(--transition-fast);
}

.hero-dropdown-trigger.active svg {
    transform: rotate(180deg);
}

/* Floating Dropdown Menu */
.hero-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 280px;
    background: rgba(14, 17, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 130, 251, 0.15);
    padding: 0.5rem;
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
}

@media (max-width: 860px) {
    .hero-dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
    }
}

.hero-dropdown-menu.show {
    display: flex;
    animation: fadeInScale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.hero-dropdown-item:hover {
    background: rgba(0, 130, 251, 0.12);
    color: var(--color-accent);
}

.hero-dropdown-item svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.hero-dropdown-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.35rem 0.4rem;
}

@keyframes heroChevronFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Workflow Selection Grid */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

@media (max-width: 860px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
    }
}

.workflow-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.workflow-card:hover {
    background: var(--color-bg-surface-elevated);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 130, 251, 0.12);
}

.workflow-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-surface-subtle);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-accent);
}

.workflow-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.workflow-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Split Workflow Step Card Layouts (matching mockup rows) */
.step-container {
    max-width: 740px;
    margin: 1.5rem auto 3rem auto;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.step-split-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: center;
}

@media (max-width: 720px) {
    .step-container {
        padding: 1.5rem;
    }
    .step-split-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.step-header {
    margin-bottom: 1.75rem;
}

.step-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.step-header p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Glowing Circular Rings */
.circle-progress-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid rgba(0, 130, 251, 0.2);
    border-top-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 35px rgba(0, 130, 251, 0.2);
}

.circle-check-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--color-accent);
    box-shadow: 0 0 30px rgba(0, 130, 251, 0.25);
    background: rgba(0, 130, 251, 0.05);
}

.circle-sync-ring {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 130, 251, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--color-accent);
}

/* Word Count Selector Options */
.word-count-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .word-count-selector {
        grid-template-columns: 1fr;
    }
}

.word-count-option {
    background: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.word-count-option:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-surface-elevated);
}

.word-count-option.selected {
    border-color: var(--color-accent);
    background: rgba(0, 130, 251, 0.08);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.word-count-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.word-count-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Result / Outcome Card */
.result-card {
    text-align: center;
    padding: 3rem 2rem;
}

.result-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-icon-circle.success {
    background: var(--color-status-approved-bg);
    color: var(--color-status-approved);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.2);
}

.result-icon-circle.rejected {
    background: var(--color-status-rejected-bg);
    color: var(--color-status-rejected);
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.2);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: auto;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    background: rgba(8, 9, 13, 0.7);
}
