/* ============================================================
   Design System — Home & Landing
   ============================================================ */

:root {
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --gradient-primary: linear-gradient(135deg, #4f8cff 0%, #7c5cff 50%, #a855f7 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-mode {
    --glass-bg: rgba(18, 20, 30, 0.82);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes borderGlow {
    0%, 100% { border-color: rgba(79, 140, 255, 0.2); }
    50% { border-color: rgba(124, 92, 255, 0.4); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Background Orbs ── */
.home-bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.home-bg-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    animation: orbFloat 25s ease-in-out infinite;
}
.home-bg-orbs .orb-1 {
    width: 600px; height: 600px;
    background: var(--gradient-primary);
    opacity: 0.07;
    top: -15%; left: -10%;
    animation-delay: 0s;
}
.home-bg-orbs .orb-2 {
    width: 500px; height: 500px;
    background: var(--gradient-warm);
    opacity: 0.05;
    bottom: -10%; right: -5%;
    animation-delay: -8s;
}
.home-bg-orbs .orb-3 {
    width: 350px; height: 350px;
    background: var(--gradient-cool);
    opacity: 0.06;
    top: 45%; left: 55%;
    animation-delay: -16s;
}
body.dark-mode .home-bg-orbs .orb { opacity: 0.04; }

/* ── Hero Section ── */
.hero-section {
    position: relative;
    text-align: center;
    padding: 80px 24px 60px;
    overflow: hidden;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(79, 140, 255, 0.08);
    border: 1px solid rgba(79, 140, 255, 0.15);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeUp 0.6s var(--transition-smooth) both;
}
.hero-badge i { font-size: 0.7rem; }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeUp 0.6s var(--transition-smooth) 0.1s both;
}
.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.65;
    animation: fadeUp 0.6s var(--transition-smooth) 0.2s both;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.6s var(--transition-smooth) 0.3s both;
}
.hero-actions .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    letter-spacing: -0.01em;
    transition: all 0.3s var(--transition-smooth);
}
.hero-actions .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(79, 140, 255, 0.3);
}
.hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 140, 255, 0.4);
}
.hero-actions .btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
}
.hero-actions .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ── Stats Bar ── */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 24px;
    animation: fadeUp 0.6s var(--transition-smooth) 0.4s both;
}
.stat-item {
    text-align: center;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 4px;
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Service Cards ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.service-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s var(--transition-smooth);
    overflow: hidden;
    backdrop-filter: blur(12px);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-accent, var(--gradient-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--transition-smooth);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 140, 255, 0.2);
}
.service-card .sc-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: transform 0.3s var(--transition-bounce);
}
.service-card:hover .sc-icon { transform: scale(1.12); }
.service-card h5 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.service-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}
.service-card .sc-arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--table-hover);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    transition: all 0.3s var(--transition-smooth);
}
.service-card:hover .sc-arrow {
    background: var(--accent);
    color: #fff;
    transform: translateX(3px);
}

/* ── Feature Highlight ── */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 72px;
    padding: 0 24px;
}
.feature-content h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.feature-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
}
.feature-list li i {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}
.feature-visual {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}
.feature-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.03;
}
.feature-visual .fv-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.feature-visual p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}
.feature-section .btn {
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--transition-smooth);
}
.feature-section .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(79, 140, 255, 0.3);
}
.feature-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 140, 255, 0.4);
}
.feature-section .btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
}
.feature-section .btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.feature-section.reverse { direction: rtl; }
.feature-section.reverse > * { direction: ltr; }

/* ── FAQ Accordion (redesigned) ── */
.faq-accordion {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    transition: all 0.3s var(--transition-smooth);
}
.faq-item:hover {
    border-color: rgba(79, 140, 255, 0.2);
}
.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--table-hover); }
.faq-question i {
    transition: transform 0.3s var(--transition-smooth);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.faq-question.open i { transform: rotate(180deg); }
.faq-answer {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    display: none;
}
.faq-answer.open { display: block; }

/* ── CTA Section ── */
.cta-section {
    text-align: center;
    padding: 60px 24px;
    position: relative;
}
.cta-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.cta-box::after {
    content: '';
    position: absolute;
    bottom: -40%; left: -20%;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.cta-box h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.cta-box p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}
.cta-box .btn {
    position: relative;
    z-index: 1;
    background: #fff;
    color: #4f8cff;
    border: none;
    padding: 12px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all 0.3s var(--transition-smooth);
}
.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── Mission Cards ── */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.mission-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s var(--transition-smooth);
}
.mission-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow);
}
.mission-card .mc-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}
.mission-card h5 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.mission-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .hero-section { padding: 48px 16px 36px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .stats-bar { gap: 24px; flex-wrap: wrap; }
    .stat-value { font-size: 1.4rem; }
    .services-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature-section { grid-template-columns: 1fr; gap: 24px; }
    .feature-section.reverse { direction: ltr; }
    .mission-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 32px 20px; }
}
@media (max-width: 575px) {
    .stats-bar { gap: 16px; }
    .stat-item { flex: 0 0 30%; }
}

body.dark-mode .service-card,
body.dark-mode .mission-card,
body.dark-mode .feature-visual,
body.dark-mode .faq-item {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}
