@font-face {
    font-family: 'Estedad';
    src: url('fonts/Estedad-Regular.ttf') format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Estedad', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.5s ease, color 0.5s ease;
}

:root,
[data-theme="dark"] {
    --page-bg: #050B12;
    --page-text: #ffffff;
    --subtle-text: rgba(255, 255, 255, 0.72);
    --muted-text: rgba(255, 255, 255, 0.55);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.10);
    --card-soft-bg: rgba(255, 255, 255, 0.06);
    --card-soft-border: rgba(255, 255, 255, 0.10);
    --border-color: rgba(255, 255, 255, 0.10);
    --nav-bg: rgba(7, 17, 27, 0.75);
    --hero-glow: radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 30%), 
                 radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.16), transparent 30%), 
                 linear-gradient(to bottom, #02070c, #07131f 50%, #02070c);
    --btn-ghost-border: rgba(255, 255, 255, 0.10);
    --btn-ghost-bg: rgba(255, 255, 255, 0.05);
    --btn-ghost-text: #ffffff;
    --btn-ghost-hover-bg: rgba(255, 255, 255, 0.10);
    --heading-text: #ffffff;
    --card-heading-text: #ffffff;
    --footer-bg: rgba(0, 0, 0, 0.10);
    --footer-text: rgba(255, 255, 255, 0.55);
    --icon-bg: rgba(6, 182, 212, 0.15);
    --icon-bg-emerald: rgba(52, 211, 153, 0.15);
    --icon-ring: #67e8f9;
    --icon-ring-emerald: #6ee7b7;
    --label-color: #67e8f9;
    --label-color-emerald: #6ee7b7;
    --icon-color: #67e8f9;
    --icon-color-emerald: #6ee7b7;
    --badge-border: rgba(52, 211, 153, 0.25);
    --badge-bg: rgba(52, 211, 153, 0.10);
    --badge-text: #a7f3d0;
    --stat-value-text: #ffffff;
    --blur-orb-1: rgba(52, 211, 153, 0.10);
    --blur-orb-2: rgba(6, 182, 212, 0.10);
    --blur-orb-3: rgba(59, 130, 246, 0.10);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
    --card-hover-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    --header-shadow: 0 25px 50px rgba(0, 0, 0, 0.10);
    --feature-gradient: linear-gradient(to bottom right, rgba(6, 182, 212, 0.08), transparent, rgba(6, 182, 212, 0.08));
    --feature-gradient-emerald: linear-gradient(to bottom right, rgba(52, 211, 153, 0.08), transparent, rgba(52, 211, 153, 0.08));
    --logo-gradient: linear-gradient(to bottom right, #34d399, #06b6d4);
    --heading-gradient: linear-gradient(to right, #6ee7b7, #6ee7b7, #67e8f9);
    --divider-gradient: linear-gradient(to left, transparent, #34d399, #06b6d4, transparent);
    --primary-btn-bg: linear-gradient(to right, #34d399, #06b6d4);
    --primary-btn-text: #ffffff;
    --primary-btn-hover: linear-gradient(to right, #2bb87a, #0596b3);
}

[data-theme="light"] {
    --page-bg: #ECF8FF;
    --page-text: #0f172a;
    --subtle-text: #334155;
    --muted-text: #475569;
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-border: rgba(203, 213, 225, 0.6);
    --card-soft-bg: rgba(255, 255, 255, 0.55);
    --card-soft-border: rgba(203, 213, 225, 0.6);
    --border-color: #cbd5e1;
    --nav-bg: rgba(255, 255, 255, 0.7);
    --hero-glow: radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 30%), 
                 radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.16), transparent 30%), 
                 linear-gradient(to bottom, #effbfd, #dff6ff 55%, #effbfd);
    --btn-ghost-border: #cbd5e1;
    --btn-ghost-bg: rgba(255, 255, 255, 0.7);
    --btn-ghost-text: #0f172a;
    --btn-ghost-hover-bg: #ffffff;
    --heading-text: #0f172a;
    --card-heading-text: #0f172a;
    --footer-bg: rgba(0, 0, 0, 0.03);
    --footer-text: #64748b;
    --icon-bg: rgba(6, 182, 212, 0.12);
    --icon-bg-emerald: rgba(52, 211, 153, 0.12);
    --icon-ring: #0891b2;
    --icon-ring-emerald: #059669;
    --icon-color: #0891b2;
    --icon-color-emerald: #059669;
    --label-color: #0891b2;
    --label-color-emerald: #059669;
    --badge-border: rgba(16, 185, 129, 0.25);
    --badge-bg: rgba(16, 185, 129, 0.10);
    --badge-text: #059669;
    --stat-value-text: #0f172a;
    --blur-orb-1: rgba(16, 185, 129, 0.08);
    --blur-orb-2: rgba(6, 182, 212, 0.08);
    --blur-orb-3: rgba(59, 130, 246, 0.07);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    --card-hover-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    --header-shadow: 0 25px 50px rgba(0, 0, 0, 0.06);
    --feature-gradient: linear-gradient(to bottom right, rgba(6, 182, 212, 0.08), transparent, rgba(6, 182, 212, 0.08));
    --feature-gradient-emerald: linear-gradient(to bottom right, rgba(16, 185, 129, 0.08), transparent, rgba(16, 185, 129, 0.08));
    --logo-gradient: linear-gradient(to bottom right, #34d399, #06b6d4);
    --heading-gradient: linear-gradient(to right, #059669, #059669, #0891b2);
    --divider-gradient: linear-gradient(to left, transparent, #059669, #0891b2, transparent);
    --primary-btn-bg: linear-gradient(to right, #34d399, #06b6d4);
    --primary-btn-text: #ffffff;
    --primary-btn-hover: linear-gradient(to right, #2bb87a, #0596b3);
}

.page-bg { background-color: var(--page-bg); color: var(--page-text); transition: background-color 0.5s ease, color 0.5s ease; }
.subtle-text { color: var(--subtle-text); transition: color 0.5s ease; }
.muted-text { color: var(--muted-text); transition: color 0.5s ease; }
.card-style { border: 1px solid var(--card-border); background: var(--card-bg); transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.3s ease; }
.card-soft-style { border: 1px solid var(--card-soft-border); background: var(--card-soft-bg); transition: background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.3s ease; }
.border-theme { border-color: var(--border-color); transition: border-color 0.5s ease; }
.nav-bg-style { background: var(--nav-bg); transition: background-color 0.5s ease; }
.heading-text { color: var(--heading-text); transition: color 0.5s ease; }
.card-heading-text { color: var(--card-heading-text); transition: color 0.5s ease; }
.stat-value { color: var(--stat-value-text); transition: color 0.5s ease; }

.hero-glow-style { position: fixed; inset: 0; z-index: -10; background: var(--hero-glow); transition: background 0.5s ease; }

.blur-orbs { pointer-events: none; position: fixed; inset: 0; z-index: -10; opacity: 0.3; }
.blur-orb { position: absolute; border-radius: 50%; filter: blur(72px); transition: background 0.5s ease; }
.blur-orb-1 { left: 25%; top: 80px; width: 288px; height: 288px; background: var(--blur-orb-1); }
.blur-orb-2 { right: 0; top: 50%; width: 384px; height: 384px; background: var(--blur-orb-2); }
.blur-orb-3 { bottom: 40px; left: 40px; width: 288px; height: 288px; background: var(--blur-orb-3); }

.header {
    position: fixed; top: 16px; left: 50%; z-index: 50;
    width: calc(100% - 2rem); max-width: 1280px;
    transform: translateX(-50%);
    border-radius: 1.8rem; border: 1px solid var(--border-color);
    box-shadow: var(--header-shadow);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    animation: headerSlideIn 0.35s ease-out forwards;
    transition: border-color 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease;
}
@keyframes headerSlideIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-24px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.header-inner { padding: 12px 16px; }
@media (min-width: 640px) { .header-inner { padding: 12px 24px; } }
@media (min-width: 1024px) { .header-inner { padding: 12px 32px; } }
.header-flex { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo-link { display: flex; align-items: center; gap: 12px; min-width: fit-content; text-align: right; text-decoration: none; }
.logo-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 1rem; background: var(--logo-gradient); box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2); }
.logo-icon svg { width: 24px; height: 24px; color: white; }
.logo-text { font-size: 1.125rem; font-weight: 900; letter-spacing: -0.5px; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 8px 16px; border-radius: 1rem;
    border: 1px solid var(--btn-ghost-border); background: var(--btn-ghost-bg);
    color: var(--btn-ghost-text); font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all 0.2s, background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
    font-family: inherit;
}
.btn-ghost:hover { background: var(--btn-ghost-hover-bg); }
.btn-ghost svg { width: 20px; height: 20px; }
.btn-ghost .btn-text { display: none; }
.btn-group { display: flex; align-items: center; gap: 8px; }

.menu-dropdown {
    max-height: 0; opacity: 0; transform: translateY(-12px); overflow: hidden;
    transition: max-height 0.32s ease-out, opacity 0.32s ease-out, transform 0.32s ease-out;
    border-top: 1px solid var(--border-color);
}
.menu-dropdown.open { max-height: 600px; opacity: 1; transform: translateY(0); }
.menu-grid { display: flex; flex-direction: column; gap: 12px; padding: 16px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 768px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }
.menu-card {
    display: flex; align-items: center; justify-content: flex-start; gap: 12px; text-decoration: none;
    padding: 16px; border-radius: 1.45rem;
    border: 1px solid var(--card-border); background: var(--card-bg);
    transition: background-color 0.5s ease, border-color 0.5s ease, transform 0.3s ease;
}
.menu-card:hover {
    background: var(--btn-ghost-hover-bg);
    transform: translateY(-2px);
}
.menu-card-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--page-text) }
.menu-card-title svg { width: 16px; height: 16px; }

.main-container { max-width: 1280px; margin: 0 auto; padding: 112px 16px 80px; }
@media (min-width: 640px) { .main-container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .main-container { padding-left: 32px; padding-right: 32px; } }

.card {
    position: relative; overflow: hidden; border-radius: 1.8rem;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.5s ease, border-color 0.5s ease;
}
.card-hoverable:hover { transform: translateY(-6px) scale(1.015); }
.card-hoverable:hover .icon-box { box-shadow: 0 0 0 2px var(--icon-ring); }
.card-hoverable:hover .icon-box-emerald { box-shadow: 0 0 0 2px var(--icon-ring-emerald); }
.card-gradient { position: absolute; inset: 0; background: var(--feature-gradient); opacity: 0; transition: opacity 0.3s; }
.card-hoverable:hover .card-gradient { opacity: 1; }
.card-gradient-emerald { position: absolute; inset: 0; background: var(--feature-gradient-emerald); opacity: 0; transition: opacity 0.3s; }
.card-hoverable:hover .card-gradient-emerald { opacity: 1; }
.card-body { position: relative; padding: 24px; }
@media (min-width: 640px) { .card-body { padding: 32px; } }
@media (min-width: 1024px) { .card-body { padding: 40px; } }

.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.4fr 1fr; } }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { border-radius: 1.8rem; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--card-shadow); color: var(--icon-color); text-align: center; padding: 16px; transition: background-color 0.5s ease, border-color 0.5s ease; }
.stat-card svg { display: block; margin: 0 auto 8px; width: 20px; height: 20px; }
.stat-card-emerald { border-radius: 1.8rem; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--card-shadow); color: var(--icon-color-emerald); text-align: center; padding: 16px; transition: background-color 0.5s ease, border-color 0.5s ease; }
.stat-card-emerald svg { display: block; margin: 0 auto 8px; width: 20px; height: 20px; }
.stat-value { font-size: 1.5rem; font-weight: 900; }
.stat-label { margin-top: 4px; font-size: 12px; }

.section { padding-top: 80px; }
.section-header { margin-bottom: 32px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-label { color: var(--label-color); }
.section-label-emerald { color: var(--label-color-emerald); }
.section-title { margin-top: 8px; font-size: 1.875rem; font-weight: 900; }

.grid-4 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.section-divider {
    border: none;
    height: 2px;
    background: var(--divider-gradient);
    margin: 60px auto 0;
    max-width: 1280px;
    width: calc(100% - 2rem);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.section-divider.visible {
    opacity: 0.7;
    transform: translateY(0);
}

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 9999px; border: 1px solid var(--badge-border);
    background: var(--badge-bg); color: var(--badge-text);
    padding: 8px 16px; font-size: 14px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}
.badge svg { width: 16px; height: 16px; }

.hero-title { margin-top: 20px; font-size: 2.25rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.5px; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }

.gradient-text {
    display: block;
    background: var(--heading-gradient);
    -webkit-background-clip: text;
    background-clip: text;
   -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
}

.gradient-text::after {
    content: '';
    display: block;
    height: 5px;
    margin-bottom: -5px;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-desc { margin-top: 16px; max-width: 672px; font-size: 16px; line-height: 32px; }
@media (min-width: 640px) { .hero-desc { font-size: 18px; } }

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
}
.btn-hero {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 1.2rem;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-hero svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-hero-primary {
    background: var(--primary-btn-bg);
    color: var(--primary-btn-text);
    border: none;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.25);
}
.btn-hero-primary:hover {
    background: var(--primary-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.btn-hero-secondary {
    border: 1px solid var(--btn-ghost-border);
    background: var(--btn-ghost-bg);
    color: var(--btn-ghost-text);
}
.btn-hero-secondary:hover {
    background: var(--btn-ghost-hover-bg);
    transform: translateY(-2px);
}

.icon-box { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 1rem; margin-bottom: 16px; background: var(--icon-bg); color: var(--icon-color); transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease; }
.icon-box svg { width: 24px; height: 24px; }
.icon-box-emerald { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 1rem; margin-bottom: 16px; background: var(--icon-bg-emerald); color: var(--icon-color-emerald); transition: background 0.5s ease, color 0.5s ease, box-shadow 0.5s ease; }
.icon-box-emerald svg { width: 24px; height: 24px; }
.card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.card-desc { font-size: 14px; line-height: 28px; }

.anim-enter-up { opacity: 0; transform: translateY(40px); transition: opacity 0.75s ease-out, transform 0.75s ease-out; }
.anim-enter-up.visible { opacity: 1; transform: translateY(0); }
.anim-item { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease-out, transform 0.65s ease-out; }
.anim-item.visible { opacity: 1; transform: translateY(0); }

.footer {
    border-top: 1px solid var(--border-color); background: var(--footer-bg);
    color: var(--footer-text); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 32px 16px; font-size: 14px; text-align: center; }
@media (min-width: 640px) { .footer-inner { padding-left: 24px; padding-right: 24px; } }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}
.social-icons a {
    color: var(--muted-text);
    transition: color 0.3s ease;
}
.social-icons a:hover { color: var(--page-text); }
.social-icons svg { width: 22px; height: 22px; }

.hidden { display: none; }
button:focus-visible, a:focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; }