/* ===== Howmio AI - Modern Aesthetics Design System (2026 Refactor) ===== */

/* 1. Variables & Tokens */
:root {
    /* Brand Colors - Refined Palette */
    --brand-primary: #2563EB;
    /* 更鲜亮的蓝 */
    --brand-dark: #1E40AF;
    --brand-light: #60A5FA;
    --accent-glow: #3B82F6;

    /* Neutral Colors - Clean & Sharp */
    --bg-page: #F8FAFC;
    /* 极淡的灰蓝背景 */
    --bg-surface: #FFFFFF;
    /* 纯白表面 */
    --bg-surface-glass: rgba(255, 255, 255, 0.7);

    /* Text Colors - High Contrast for Readability */
    --text-primary: #0F172A;
    /* 接近纯黑的深蓝灰 */
    --text-secondary: #475569;
    /* 中灰，用于说明文字 */
    --text-tertiary: #94A3B8;
    /* 浅灰，用于辅助信息 */

    /* Borders & Lines */
    --border-light: rgba(226, 232, 240, 0.8);
    --border-highlight: rgba(37, 99, 235, 0.15);

    /* Shadows - Soft & Ambient */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-glow: 0 0 40px -10px rgba(37, 99, 235, 0.3);

    /* Typography Scale - Modern & Balanced */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px - Standard Body */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 2rem;
    /* 32px */
    --text-4xl: 2.5rem;
    /* 40px */
    --text-5xl: 3.5rem;
    /* 56px - Hero Title */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    /* Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

/* 2. Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: var(--text-base);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 3. Typography Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-3xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.75;
    margin-bottom: 1rem;
}

/* 4. Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* 5. Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 36px;
    width: auto;
}

/* Hide Logo Text as requested */
.logo span {
    display: none !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* 6. Hero Section - Redesigned */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    /* Space for header */
    background:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(96, 165, 250, 0.08) 0%, transparent 40%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--brand-primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #0F172A, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Subtle gradient text */
    color: var(--text-primary);
    /* Fallback */
}

.hero h1 span {
    display: block;
    font-size: 0.5em;
    /* Smaller subtitle inside h1 */
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    letter-spacing: normal;
}

.hero-desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* 7. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--text-primary);
    /* Modern black/dark button style */
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #000;
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: var(--bg-page);
}

/* 8. Hero Visual - Glassmorphism Card (No Emoji) */
.hero-visual {
    position: relative;
    padding-left: 2rem;
}

.app-card {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    padding: 2rem;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Clean abstract graphic placeholders for where emojis were */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    /* Success Green */
    box-shadow: 0 0 8px #10B981;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-light));
    color: white;
}

/* SVG Icon styles */
.icon-box svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* 9. Feature Cards (Grid) */
.features-section {
    background: var(--bg-surface);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--border-highlight);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: var(--text-xl);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* 10. Footer - Fixed Typography */
footer {
    background: white;
    border-top: 1px solid var(--border-light);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    font-size: var(--text-sm);
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--brand-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: var(--text-xs);
    /* Fixed from 0.2rem */
    color: var(--text-tertiary);
}

/* 11. Responsive */
@media (max-width: 960px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        padding-left: 0;
        margin-top: 2rem;
    }

    .app-card {
        transform: none;
    }

    .app-card:hover {
        transform: none;
    }

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

@media (max-width: 768px) {
    :root {
        --text-5xl: 2.5rem;
        /* Smaller hero title on mobile */
    }

    .nav-links {
        display: none;
        /* Needs JS to toggle */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        padding: 0.5rem;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        margin-bottom: 6px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}
/* 12. Legal/Document Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.legal-content h1 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: var(--text-3xl);
}

.legal-meta {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.9rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.legal-content p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}
