/* Custom styles for C9云盾 - Minimalist White Theme */

:root {
    --brand-50: #fafafa;
    --brand-100: #f4f4f5;
    --brand-500: #000000;
    --brand-600: #000000;
    --brand-700: #18181b;
    --accent: #2563eb; /* Blue for subtle accents */
    --surface-main: #ffffff;
    --surface-muted: #fafafa;
    --border-light: #f4f4f5;
    --border-dark: #e4e4e7;
    --text-primary: #09090b;
    --text-secondary: #71717a;
}

html {
    scroll-behavior: smooth;
    background-color: var(--surface-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background-color: var(--surface-main);
}

/* Typography refinements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll Reveal Utility */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Clean Cards */
.clean-card {
    background: var(--surface-main);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.clean-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.clean-card:hover {
    border-color: rgba(37, 99, 235, 0.2); /* Subtle accent color border on hover */
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 0 20px rgba(37, 99, 235, 0.05);
    transform: translateY(-4px);
}

.clean-card:hover::before {
    opacity: 1;
}

/* Buttons */
.btn-solid {
    background: var(--brand-600);
    color: white;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-solid:hover {
    background: var(--brand-700);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

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

.btn-outline {
    background: transparent;
    color: var(--brand-600);
    border: 1px solid var(--border-dark);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.btn-outline:hover {
    border-color: var(--brand-600);
    background: var(--brand-50);
    transform: translateY(-1px);
}

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

/* Navbar */
.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(228, 228, 231, 0.5) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-600);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

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

/* Subtle Grid Background for Hero */
.bg-subtle-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-position: top center;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Minimalist Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4d4d8;
}
