/* ============================================================
   index.css — Landing Page Stylesheet
   CCH SureTax Developer Portal · Home
   Full-page scrollable layout with hero, section cards,
   quick-start guide, stats, and legal footer.
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --wk-blue: #007AC3;
    --wk-blue-medium: #409BD2;
    --wk-blue-light: #A6D0EA;
    --wk-blue-ultra-light: #E8F4FB;
    --wk-green: #5A8A15;
    --wk-teal: #00A3A1;
    --wk-orange: #FF6B35;
    --wk-red: #E5202E;
    --wk-purple: #6B21A8;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --header-height: 56px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

a { color: var(--wk-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.header-logo:hover { text-decoration: none; }

.logo-img {
    height: 28px;
    width: auto;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    color: rgba(255,255,255,0.8);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.primary-nav a:hover { color: white; background: rgba(255,255,255,0.1); text-decoration: none; }
.primary-nav a.active { color: white; background: rgba(255,255,255,0.15); }

.nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    margin: 0 6px;
}

.help-link {
    color: rgba(255,255,255,0.7);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.help-link:hover { color: white; background: rgba(255,255,255,0.1); text-decoration: none; }
.help-link svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Main ---------- */
main {
    margin-top: var(--header-height);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 40%, #16213e 100%);
    color: white;
    padding: 72px 48px 56px;
    text-align: center;
}

.hero h1 {
    font-size: 32pt;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero h1 .accent { color: var(--wk-blue-light); }

.hero .tagline {
    font-size: 14pt;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 11pt;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-btn:hover { text-decoration: none; }

.hero-btn.primary {
    background: var(--wk-blue);
    color: white;
}

.hero-btn.primary:hover { background: #0068a8; }

.hero-btn.secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-btn.secondary:hover { background: rgba(255,255,255,0.2); }

/* ---------- Section Container ---------- */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 48px;
}

.section-title {
    font-size: 20pt;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 11pt;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 36px;
}

/* ---------- Explore Cards (4 portal sections) ---------- */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.explore-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px 20px;
    text-decoration: none;
    color: var(--gray-800);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.explore-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.explore-card.products::before { background: linear-gradient(90deg, #0f3460, #1a6fb5); }
.explore-card.apis::before { background: linear-gradient(90deg, var(--wk-blue), var(--wk-teal)); }
.explore-card.integrations::before { background: linear-gradient(90deg, #3F51B5, var(--wk-blue-medium)); }
.explore-card.imports::before { background: linear-gradient(90deg, #00897B, #26A69A); }
.explore-card.exports::before { background: linear-gradient(90deg, #7B1FA2, #AB47BC); }
.explore-card.reference::before { background: linear-gradient(90deg, var(--wk-orange), #ffb347); }

.explore-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.card-icon svg { width: 24px; height: 24px; fill: white; }

.card-icon.products { background: linear-gradient(135deg, #0f3460, #1a6fb5); }
.card-icon.apis { background: linear-gradient(135deg, var(--wk-blue), var(--wk-teal)); }
.card-icon.integrations { background: linear-gradient(135deg, #3F51B5, var(--wk-blue-medium)); }
.card-icon.imports { background: linear-gradient(135deg, #00897B, #26A69A); }
.card-icon.exports { background: linear-gradient(135deg, #7B1FA2, #AB47BC); }
.card-icon.reference { background: linear-gradient(135deg, var(--wk-orange), #ffb347); }

.explore-card h3 {
    font-size: 13pt;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.explore-card p {
    font-size: 9.5pt;
    color: var(--gray-600);
    line-height: 1.6;
    flex: 1;
}

.card-stat {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
    font-size: 8.5pt;
    color: var(--gray-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 9.5pt;
    font-weight: 600;
    color: var(--wk-blue);
}

/* ---------- Quick Start ---------- */
.quickstart-bg {
    background: white;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding-left: 0;
    text-align: center;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wk-blue);
    color: white;
    font-weight: 700;
    font-size: 14pt;
    margin: 0 auto 12px;
}

.step h4 {
    font-size: 11pt;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.step p {
    font-size: 9pt;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ---------- Stats Banner ---------- */
.stats-banner {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: white;
    padding: 36px 48px;
}

.stats-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 28pt;
    font-weight: 800;
    color: var(--wk-blue-light);
}

.stat-item .stat-label {
    font-size: 9pt;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.6);
    padding: 36px 48px 24px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    gap: 40px;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-brand .footer-logo:hover { text-decoration: none; }
.footer-brand .footer-logo img { height: 22px; width: auto; }

.footer-brand p {
    font-size: 9pt;
    line-height: 1.5;
    max-width: 320px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col h4 {
    color: white;
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-col a {
    color: rgba(255,255,255,0.6);
    font-size: 9pt;
    transition: color 0.15s;
    text-decoration: none;
}

.footer-col a:hover { color: white; text-decoration: none; }

/* ---------- Legal Disclaimer ---------- */
.legal-section {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 0;
}

.legal-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 8pt;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin-bottom: 0;
    transition: color 0.15s;
    font-family: inherit;
}

.legal-toggle:hover { color: rgba(255,255,255,0.8); }

.legal-toggle .chevron {
    display: inline-block;
    transition: transform 0.2s;
    font-size: 10px;
}

.legal-toggle.open .chevron { transform: rotate(90deg); }

.legal-text {
    display: none;
    margin-top: 14px;
    font-size: 7pt;
    line-height: 1.7;
    color: rgba(255,255,255,0.35);
    max-width: 900px;
}

.legal-text.visible { display: block; }

.legal-text p { margin-bottom: 10px; }

/* ---------- Copyright ---------- */
.copyright {
    text-align: center;
    font-size: 8pt;
    color: rgba(255,255,255,0.35);
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero { padding: 48px 24px 36px; }
    .hero h1 { font-size: 22pt; }
    .section { padding: 32px 24px; }
    .explore-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { flex-direction: column; }
    .footer-links { gap: 24px; }
    .primary-nav a { font-size: 12px; padding: 6px 10px; }
}

@media (max-width: 600px) {
    .explore-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .primary-nav { display: none; }
}
