/* ========================================
   Gad AI - 官网样式 v2.0
   ======================================== */

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

:root {
    --primary: #7c6bff;
    --primary-light: #a78bfa;
    --primary-dark: #6d5df7;
    --accent: #22d3ee;
    --accent-light: #67e8f9;
    --accent-dark: #0891b2;
    /* 深空星空主题 */
    --bg: #05060f;
    --bg-deep: #03040a;
    --bg-card: rgba(20, 24, 48, 0.62);
    --bg-card-hover: rgba(30, 36, 66, 0.72);
    --bg-card-solid: #12162e;
    --text: #e8ecff;
    --text-muted: #8a93c4;
    --border: rgba(124, 107, 255, 0.18);
    --border-hover: rgba(124, 107, 255, 0.5);
    --input-border: rgba(124, 107, 255, 0.22);
    --gradient-1: linear-gradient(135deg, #7c6bff 0%, #b36bff 40%, #22d3ee 100%);
    --gradient-2: linear-gradient(135deg, #1a1f45 0%, #12173a 100%);
    --gradient-3: linear-gradient(135deg, rgba(124,107,255,.16) 0%, rgba(34,211,238,.16) 100%);
    --glow-purple: rgba(124, 107, 255, 0.28);
    --glow-cyan: rgba(34, 211, 238, 0.22);
    --radius: 14px;
    --radius-lg: 24px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.35);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 120% 80% at 50% -10%, #141a3a 0%, transparent 55%),
        radial-gradient(ellipse 90% 70% at 85% 110%, #0f1f3d 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 5% 90%, #1b1440 0%, transparent 55%);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #05060f; }
::-webkit-scrollbar-thumb { background: #2a2f55; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4f46e5; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Header --- */
#header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(5, 6, 15, 0.65);
    border-bottom: 1px solid rgba(124, 107, 255, 0.14);
    box-shadow: 0 1px 0 rgba(124, 107, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: var(--transition);
}
#header.scrolled {
    background: rgba(5, 6, 15, 0.85);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(124, 107, 255, 0.08);
}

#header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}

.logo {
    font-size: 25px; font-weight: 800; letter-spacing: -0.5px;
    display: flex; align-items: center; gap: 6px;
    position: relative;
}
.logo-icon { font-size: 26px; transition: transform .3s; }
.logo:hover .logo-icon { transform: scale(1.15) rotate(-5deg); }
.logo-highlight {
    background: var(--gradient-1); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}

#nav { display: flex; gap: 4px; }
.nav-link {
    font-size: 14.5px; color: #aab3d8; transition: var(--transition);
    position: relative; padding: 8px 16px; border-radius: 8px;
    font-weight: 500;
}
.nav-link:hover { color: #ffffff; background: rgba(124, 107, 255, 0.16); }
.nav-link.active {
    color: #ffffff; background: rgba(124, 107, 255, 0.22);
    box-shadow: 0 0 18px rgba(124, 107, 255, 0.25);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none; background: none; border: none; color: #aab3d8;
    font-size: 24px; cursor: pointer; padding: 8px; border-radius: 8px;
    transition: background .2s;
}
.mobile-menu-btn:hover { background: rgba(124, 107, 255, 0.16); }

/* --- Ambient Background (星空层) --- */
.starfield {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    overflow: hidden;
}
.star {
    position: absolute; background: #ffffff; border-radius: 50%;
    animation: twinkle var(--tw-duration, 3s) ease-in-out infinite;
    animation-delay: var(--tw-delay, 0s);
}
.star.glow { box-shadow: 0 0 6px 1px rgba(167, 139, 250, 0.8); }
.star.blue { background: #67e8f9; box-shadow: 0 0 6px 1px rgba(103, 232, 249, 0.7); }
.star.purple { background: #a78bfa; box-shadow: 0 0 6px 1px rgba(167, 139, 250, 0.8); }
@keyframes twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.15); }
}
.shooting-star {
    position: absolute; width: 140px; height: 1.5px;
    background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(124,107,255,.4), transparent);
    border-radius: 2px; opacity: 0; transform: rotate(-35deg);
    filter: drop-shadow(0 0 4px rgba(167,139,250,.8));
}
.shooting-star::after {
    content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 8px 2px rgba(167,139,250,.9);
}
@keyframes shoot {
    0% { transform: translate(0, 0) rotate(-35deg); opacity: 0; }
    5% { opacity: 1; }
    60% { opacity: 1; }
    100% { transform: translate(-520px, 380px) rotate(-35deg); opacity: 0; }
}

.ambient-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: radial-gradient(circle at 25% 25%, rgba(124,107,255,.07) 1px, transparent 1px),
                      radial-gradient(circle at 75% 75%, rgba(34,211,238,.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 90% 80% at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at center, black 20%, transparent 80%);
}

/* --- Hero --- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden; padding: 100px 0 80px;
    z-index: 1;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse 800px 500px at 25% 50%, rgba(124, 107, 255, 0.16), transparent),
                radial-gradient(ellipse 600px 400px at 80% 30%, rgba(34, 211, 238, 0.12), transparent),
                radial-gradient(ellipse 500px 400px at 50% 80%, rgba(179, 107, 255, 0.10), transparent);
    pointer-events: none; animation: bgShift 20s ease-in-out infinite;
}
@keyframes bgShift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(2%, -1%); }
    66% { transform: translate(-1%, 2%); }
}

.hero .container {
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 2;
}
.hero-content {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; width: 100%;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124, 107, 255, 0.12);
    border: 1px solid rgba(124, 107, 255, 0.32);
    padding: 7px 18px; border-radius: 50px;
    font-size: 13.5px; color: var(--text); margin-bottom: 28px; animation: fadeInUp 0.6s ease;
    box-shadow: 0 0 20px rgba(124, 107, 255, 0.15);
}
.hero-badge .badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
}

.hero-content h1 {
    font-size: clamp(40px, 6vw, 62px); font-weight: 800; line-height: 1.12;
    margin-bottom: 20px; animation: fadeInUp 0.6s 0.1s ease both;
    letter-spacing: -1px;
}
.gradient-text {
    background: var(--gradient-1); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-content > p {
    font-size: 18px; color: var(--text-muted); max-width: 560px;
    margin: 0 auto 36px; animation: fadeInUp 0.6s 0.2s ease both;
    line-height: 1.7;
}

.hero-buttons {
    display: flex; gap: 16px; margin-bottom: 52px;
    justify-content: center;
    animation: fadeInUp 0.6s 0.3s ease both;
}

.hero-stats {
    display: flex; gap: 40px;
    justify-content: center;
    animation: fadeInUp 0.6s 0.4s ease both;
    padding-top: 28px; border-top: 1px solid rgba(124, 107, 255, 0.16);
}

.stat-item {
    display: flex; flex-direction: column; position: relative;
}
.stat-number { font-size: 34px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-plus, .stat-percent { font-size: 26px; font-weight: 700; color: var(--primary-light); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* Hero Visual */
.hero-visual {
    position: relative; height: 480px;
    animation: fadeInRight 0.8s 0.3s ease both;
}

.hero-orb {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 320px; height: 320px; border-radius: 50%;
    background: var(--gradient-1); opacity: 0.12;
    filter: blur(100px); animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.12; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.22; }
}

.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(124, 107, 255, 0.10) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(124, 107, 255, 0.10) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at center, black 30%, transparent 70%);
}

.hero-ring {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 380px; height: 380px; border-radius: 50%;
    border: 1px solid rgba(124, 107, 255, 0.16);
    box-shadow: 0 0 30px rgba(124, 107, 255, 0.10);
    animation: ringSpin 30s linear infinite;
}
.hero-ring:nth-child(4) {
    width: 440px; height: 440px;
    border-color: rgba(34, 211, 238, 0.14);
    animation-duration: 40s; animation-direction: reverse;
}
@keyframes ringSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-core {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 260px; z-index: 3;
}
.core-glow {
    position: absolute; inset: -40px; background: radial-gradient(circle, rgba(99,102,241,.35) 0%, rgba(6,182,212,.15) 40%, transparent 70%);
    filter: blur(30px); animation: coreGlow 4s ease-in-out infinite;
}
@keyframes coreGlow {
    0%, 100% { opacity: .8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
.core-card {
    position: relative; background: rgba(20, 24, 48, 0.82);
    border: 1px solid rgba(124, 107, 255, 0.28);
    border-radius: 20px; padding: 22px;
    box-shadow: 0 8px 40px rgba(0,0,0,.5), 0 0 30px rgba(124, 107, 255, 0.12);
    backdrop-filter: blur(20px);
    overflow: hidden;
}
.core-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,.6), transparent);
    animation: scanLine 3s linear infinite;
}
@keyframes scanLine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.core-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
    font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.core-dots { display: flex; gap: 5px; }
.core-dots span { width: 8px; height: 8px; border-radius: 50%; }
.core-dots span:nth-child(1) { background: #ef4444; }
.core-dots span:nth-child(2) { background: #f59e0b; }
.core-dots span:nth-child(3) { background: #22c55e; }
.core-metric { margin-bottom: 14px; }
.core-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.core-value { font-size: 30px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.core-sparkline { height: 48px; margin-bottom: 16px; }
.core-sparkline svg { width: 100%; height: 100%; }
.core-status { display: flex; gap: 10px; flex-wrap: wrap; }
.cs-item {
    display: flex; align-items: center; gap: 5px; font-size: 11px;
    color: var(--text-muted); background: rgba(99,102,241,.06);
    padding: 5px 10px; border-radius: 50px;
}
.cs-dot { width: 6px; height: 6px; border-radius: 50%; }
.cs-dot.green { background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.cs-dot.cyan { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }
.cs-dot.purple { background: #a855f7; box-shadow: 0 0 6px #a855f7; }

.hero-floating-card {
    position: absolute; background: rgba(20, 24, 48, 0.82);
    border: 1px solid rgba(124, 107, 255, 0.28);
    border-radius: var(--radius); padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(124, 107, 255, 0.10);
    backdrop-filter: blur(16px);
    font-size: 14px; font-weight: 600; color: var(--text);
    z-index: 4;
}

.card-1 {
    top: 50px; right: 10px;
    display: flex; align-items: center; gap: 14px;
    animation: floatCard 5s ease-in-out infinite;
}
.mini-chart { display: flex; gap: 5px; align-items: flex-end; height: 44px; }
.mini-chart .bar {
    width: 7px; background: var(--gradient-1); border-radius: 4px;
    animation: barGrow 1.5s ease-out both;
}
.mini-chart .bar:nth-child(1) { animation-delay: 0s; height: 60%; }
.mini-chart .bar:nth-child(2) { animation-delay: 0.1s; height: 85%; }
.mini-chart .bar:nth-child(3) { animation-delay: 0.2s; height: 45%; }
.mini-chart .bar:nth-child(4) { animation-delay: 0.3s; height: 90%; }
.mini-chart .bar:nth-child(5) { animation-delay: 0.4s; height: 70%; }
@keyframes barGrow { from { height: 0; } }

.card-2 {
    bottom: 90px; left: 0;
    display: flex; align-items: center; gap: 10px;
    animation: floatCard 5s 2.5s ease-in-out infinite;
}
.pulse-dot {
    width: 9px; height: 9px; background: #22c55e; border-radius: 50%;
    display: inline-block; box-shadow: 0 0 0 0 rgba(34,197,94,.7);
    animation: pulse 2s infinite;
}

.card-3 {
    top: 130px; left: 25px;
    display: flex; align-items: center; gap: 12px;
    animation: floatCard 6s 1.2s ease-in-out infinite;
    font-size: 13px;
}
.trophy-icon { font-size: 24px; filter: drop-shadow(0 0 10px rgba(251,191,36,.4)); }

.card-4 {
    bottom: 40px; right: 40px;
    display: flex; align-items: center; gap: 12px;
    animation: floatCard 5.5s 0.8s ease-in-out infinite;
}

.card-5 {
    top: 230px; right: 0;
    display: flex; align-items: center; gap: 12px;
    animation: floatCard 6.5s 3s ease-in-out infinite;
}

.card-6 {
    bottom: 200px; right: 90px;
    display: flex; align-items: center; gap: 8px;
    animation: floatCard 4.5s 1.8s ease-in-out infinite;
}
.card-icon { font-size: 22px; }
.typing-cursor {
    width: 2px; height: 16px; background: var(--primary-light);
    animation: typingBlink 1s step-end infinite;
}
@keyframes typingBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.hero-connections {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 2;
}
.conn-line {
    fill: none; stroke: rgba(124,107,255,.28);
    stroke-width: 1.5; stroke-dasharray: 8 8;
    animation: connFlow 2s linear infinite;
}
@keyframes connFlow { to { stroke-dashoffset: -16; } }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 13px 30px; border-radius: 50px;
    font-size: 15px; font-weight: 600; cursor: pointer; border: none;
    transition: var(--transition); position: relative; overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1); color: #fff;
    box-shadow: 0 4px 24px rgba(124, 107, 255, 0.45);
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 50%);
    opacity: 0; transition: opacity .3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124, 107, 255, 0.6); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent; border: 1px solid rgba(124, 107, 255, 0.35); color: var(--text);
}
.btn-outline:hover {
    border-color: var(--primary); background: rgba(124, 107, 255, 0.12);
    box-shadow: 0 0 20px rgba(124, 107, 255, 0.2);
    transform: translateY(-1px);
}

.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* --- Sections --- */
section { padding: 100px 0; position: relative; z-index: 1; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; padding: 6px 16px;
    background: rgba(124, 107, 255, 0.12);
    border: 1px solid rgba(124, 107, 255, 0.32);
    border-radius: 50px; font-size: 13px; color: var(--primary-light);
    margin-bottom: 20px; letter-spacing: 1.5px; font-weight: 600;
    box-shadow: 0 0 18px rgba(124, 107, 255, 0.14);
}
.section-header h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-header p { color: var(--text-muted); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* --- Services --- */
.services {
    background: rgba(255, 255, 255, 0.015);
    position: relative;
}
.services::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.15;
}

.services-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}

.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 28px;
    transition: var(--transition); position: relative; overflow: hidden;
    cursor: default;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.service-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(124,107,255,.16), transparent 40%);
    opacity: 0; transition: opacity .4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 28px rgba(124, 107, 255, 0.22);
}

.service-icon {
    font-size: 44px; margin-bottom: 20px; display: block;
    transition: transform .3s;
}
.service-card-link { cursor: pointer; }
.service-card-anchor {
    display: block; color: inherit; text-decoration: none;
}
.service-link-badge {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 16px; padding: 6px 14px;
    font-size: 13px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(124, 107, 255, 0.35);
    transition: transform .25s, box-shadow .25s;
}
.service-card-link:hover .service-link-badge {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 107, 255, 0.5);
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* --- About --- */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

.about-content h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 14px 0 18px; }
.about-content > p { color: var(--text-muted); margin-bottom: 14px; font-size: 15.5px; line-height: 1.75; }

.about-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px;
}
.af-item {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--bg-card); border-radius: var(--radius); padding: 18px;
    border: 1px solid var(--border); transition: var(--transition);
}
.af-item:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.af-icon {
    font-size: 26px; flex-shrink: 0;
    width: 48px; height: 48px; background: var(--gradient-3);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.af-item strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.af-item div { font-size: 13px; color: var(--text-muted); }

.about-visual { display: flex; justify-content: center; }

.about-card {
    width: 340px; padding: 2px; border-radius: var(--radius-lg);
    background: var(--gradient-1); position: relative;
    box-shadow: 0 12px 40px rgba(124, 107, 255, 0.25);
}
.about-card::after {
    content: ''; position: absolute; inset: -1px; border-radius: var(--radius-lg);
    background: var(--gradient-1); filter: blur(24px); z-index: -1; opacity: 0.35;
}
.about-card-inner {
    background: var(--bg-card-solid); border-radius: calc(var(--radius-lg) - 2px);
    padding: 44px 32px; text-align: center;
}
.ac-icon { font-size: 52px; margin-bottom: 18px; }
.about-card-inner h3 { font-size: 24px; margin-bottom: 8px; }
.about-card-inner > p { color: var(--text-muted); margin-bottom: 24px; }
.ac-stats { display: flex; gap: 16px; justify-content: center; }
.ac-stat {
    background: rgba(124, 107, 255, 0.10); padding: 10px 18px;
    border-radius: 10px; font-size: 13px; border: 1px solid var(--border);
}
.ac-stat strong { display: block; font-size: 20px; color: var(--primary-light); }

/* --- Blog --- */
.blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-bottom: 44px;
}

.blog-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition); cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.blog-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 26px rgba(124, 107, 255, 0.20);
}

.blog-card-image {
    height: 200px; background: var(--gradient-2); position: relative;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; overflow: hidden;
}
.blog-card-image::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(transparent, var(--bg-card));
}
.blog-card-body { padding: 20px 22px; }
.blog-card-category {
    display: inline-block; font-size: 11px; color: var(--primary-light);
    text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px;
    background: rgba(99,102,241,.12); padding: 3px 10px; border-radius: 4px;
    font-weight: 600;
}
.blog-card-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card-body p { color: var(--text-muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.blog-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 22px 18px; font-size: 12px; color: var(--text-muted);
}

.blog-more { text-align: center; }

/* --- Contact --- */
.contact { padding-bottom: 120px; }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 52px;
    position: relative; overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.contact-grid::before {
    content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,.04) 0%, transparent 70%);
    pointer-events: none;
}

.contact-info h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin: 14px 0 14px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 36px; font-size: 15px; }

.contact-details { display: flex; flex-direction: column; gap: 18px; }
.cd-item { display: flex; align-items: center; gap: 16px; }
.cd-icon {
    font-size: 22px; width: 48px; height: 48px;
    background: rgba(124, 107, 255, 0.10); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); transition: var(--transition);
}
.cd-item:hover .cd-icon { border-color: var(--primary); background: rgba(124,107,255,.18); box-shadow: 0 0 16px rgba(124,107,255,.2); }
.cd-item strong { font-size: 14.5px; }
.cd-item div { color: var(--text-muted); font-size: 13px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }

.form-group input,
.form-group textarea {
    background: rgba(10, 12, 28, 0.6);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm); padding: 13px 16px; color: var(--text);
    font-size: 14.5px; font-family: inherit; transition: var(--transition);
    outline: none; resize: vertical;
}
.form-group input:hover,
.form-group textarea:hover { border-color: rgba(124, 107, 255, 0.4); }
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 107, 255, 0.16), 0 0 16px rgba(124, 107, 255, 0.2);
    background: rgba(12, 14, 32, 0.8);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #5a6180; }

.spinner {
    width: 18px; height: 18px; border: 2px solid rgba(99,102,241,0.2);
    border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite;
}

/* --- Newsletter --- */
.newsletter { padding: 70px 0; }
.newsletter-inner {
    background: linear-gradient(135deg, rgba(124,107,255,.16), rgba(34,211,238,.14)),
                var(--gradient-1);
    border: 1px solid rgba(124,107,255,.35);
    border-radius: var(--radius-lg); padding: 52px;
    display: flex; align-items: center; justify-content: space-between; gap: 36px;
    position: relative; overflow: hidden;
    box-shadow: 0 12px 40px rgba(124, 107, 255, 0.22);
}
.newsletter-inner::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(124,107,255,.18), transparent 60%);
}
.newsletter-inner > * { position: relative; z-index: 1; }
.newsletter-inner h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.newsletter-inner p { color: rgba(255,255,255,.7); font-size: 14.5px; }
.newsletter-form { display: flex; gap: 12px; min-width: 400px; }
.newsletter-form input {
    flex: 1; background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25); border-radius: 50px;
    padding: 13px 22px; color: #fff; font-size: 14.5px; outline: none;
    transition: var(--transition);
}
.newsletter-form input:focus { border-color: #fff; background: rgba(255,255,255,.2); }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }

/* --- Footer --- */
#footer {
    background: rgba(3, 4, 10, 0.55); border-top: 1px solid rgba(124, 107, 255, 0.14);
    padding: 72px 0 32px;
    backdrop-filter: blur(10px);
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 48px; }

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; max-width: 280px; line-height: 1.6; }

.footer-links h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; color: var(--text); }
.footer-links a,
.footer-links p {
    display: block; color: var(--text-muted); font-size: 14px;
    margin-bottom: 10px; transition: var(--transition);
}
.footer-links a:hover { color: var(--primary-light); transform: translateX(3px); }

.footer-bottom {
    padding-top: 28px; border-top: 1px solid var(--border);
    text-align: center; color: var(--text-muted); font-size: 13px;
}

/* --- Toast --- */
.toast {
    position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%) translateY(120px);
    background: rgba(18, 22, 46, 0.95); color: #fff; padding: 15px 30px;
    border-radius: 50px; font-size: 14px; box-shadow: var(--shadow-lg), 0 0 20px rgba(124, 107, 255, 0.2);
    z-index: 9999; border: 1px solid rgba(124, 107, 255, 0.3);
    backdrop-filter: blur(12px);
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; font-weight: 500;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(34, 197, 94, 0.5); color: #bbf7d0; }
.toast.error { border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(36px); filter: blur(2px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); filter: blur(2px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fade in on scroll */
.fade-in {
    opacity: 0; transform: translateY(36px); filter: blur(2px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-form { min-width: 0; }
}

@media (max-width: 768px) {
    section { padding: 64px 0; }
    #nav {
        display: none; position: fixed; top: 76px; left: 0; right: 0;
        background: rgba(5, 6, 15, 0.95); flex-direction: column; padding: 12px;
        gap: 4px; border-bottom: 1px solid rgba(124, 107, 255, 0.2);
        backdrop-filter: blur(24px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    }
    #nav .nav-link { color: #aab3d8; }
    #nav .nav-link:hover, #nav .nav-link.active { color: #ffffff; }
    #nav.open { display: flex; }
    .nav-link { border-radius: 10px; }
    .mobile-menu-btn { display: block; }

    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-content h1 { font-size: 32px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .stat-number { font-size: 26px; }

    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }

    .contact-grid { padding: 28px; }
    .form-row { grid-template-columns: 1fr; }

    .newsletter-inner { flex-direction: column; text-align: center; padding: 32px 24px; }
    .newsletter-form { width: 100%; flex-direction: column; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .about-features { grid-template-columns: 1fr; }
}
