/* ===== CSS Variables ===== */
:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --white: #ffffff;

    /* Theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.07), 0 8px 10px -6px rgb(0 0 0 / 0.07);

    --radius-sm: 12px;
    --radius: 16px;
    --radius-md: 20px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --gray-50: #1e293b;
    --gray-100: #334155;
    --gray-200: #475569;
    --white: #1e293b;
}

/* System theme preference fallback (before JS loads) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-card: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --gray-50: #1e293b;
        --gray-100: #334155;
        --gray-200: #475569;
        --white: #1e293b;
    }
}

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

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.5rem; }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-400);
    color: var(--primary-500);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

.btn-header {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

.btn-header:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
    transform: translateY(-1px);
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.9);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 1rem;
}

.logo {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-600);
}

[data-theme="dark"] .logo {
    color: var(--primary-400);
}

.nav {
    display: none;
}

@media (min-width: 992px) {
    .nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-400);
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--primary-500);
}

.nav-link:hover::after {
    width: 100%;
}

[data-theme="dark"] .nav-link {
    color: var(--gray-400);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-400);
}

.header .btn-header {
    display: none;
}

@media (min-width: 992px) {
    .header .btn-header {
        display: inline-flex;
    }
}

/* Theme Toggle */
.theme-toggle {
    width: 56px;
    height: 30px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    padding: 3px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.theme-toggle::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 14px;
    height: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    z-index: 3;
}

.theme-toggle .icon-sun {
    left: 8px;
    stroke: white;
    opacity: 1;
}

.theme-toggle .icon-moon {
    right: 8px;
    stroke: var(--gray-400);
    opacity: 0.5;
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, #1e293b, #334155);
}

[data-theme="dark"] .theme-toggle::before {
    transform: translateX(26px);
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    box-shadow: 0 2px 10px rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0.4;
    stroke: var(--gray-500);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
    stroke: white;
}

/* Burger Menu */
.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

@media (min-width: 992px) {
    .burger {
        display: none;
    }
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-600);
    border-radius: 2px;
    transition: var(--transition);
}

[data-theme="dark"] .burger span {
    background: var(--gray-300);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.nav.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary);
    flex-direction: column;
    padding: calc(70px + 2rem) 2rem 2rem;
    padding-top: calc(70px + 2rem + env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 999;
}

.nav.active .nav-list {
    flex-direction: column;
    gap: 1.5rem;
}

.nav.active .nav-link {
    font-size: 1.125rem;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 40%, #bae6fd 100%);
    transition: background 0.5s ease;
}

[data-theme="dark"] .hero {
    background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

[data-theme="dark"] .hero::before {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(56, 189, 248, 0.15) 0%, transparent 40%);
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 10s ease-in-out infinite;
    opacity: 0.5;
}

.hero-bg::before {
    width: 500px;
    height: 500px;
    background: rgba(186, 230, 253, 0.6);
    top: -150px;
    right: -150px;
}

.hero-bg::after {
    width: 400px;
    height: 400px;
    background: rgba(224, 242, 254, 0.6);
    bottom: -100px;
    right: 10%;
    animation-delay: -5s;
}

[data-theme="dark"] .hero-bg::before {
    background: rgba(14, 165, 233, 0.3);
}

[data-theme="dark"] .hero-bg::after {
    background: rgba(56, 189, 248, 0.2);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, 20px) scale(1.05); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

/* Stars - dark theme only */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

[data-theme="dark"] .stars {
    opacity: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star:nth-child(3n) {
    width: 3px;
    height: 3px;
    animation-duration: 4s;
}

.star:nth-child(5n) {
    width: 1px;
    height: 1px;
    animation-duration: 2.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Shooting Stars - dark theme only */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

[data-theme="dark"] .particles {
    opacity: 1;
}

.shooting-star {
    position: absolute;
    left: 0;
    top: 0;
    width: 150px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.6), white);
    transform: rotate(35deg);
    opacity: 0;
    filter: drop-shadow(0 0 3px white);
}

.shooting-star::before {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px white, 0 0 20px 5px rgba(147, 197, 253, 0.5);
}

.shooting-star.animate {
    animation: meteor 1.5s ease-out forwards;
}

@keyframes meteor {
    0% {
        opacity: 0;
        transform: rotate(var(--angle, 35deg)) translate(0, 0);
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: rotate(var(--angle, 35deg)) translate(400px, 0);
    }
}

/* ===== Light Theme Animated Background ===== */
.aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.5s ease;
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(186, 230, 253, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 60% at 20% 80%, rgba(191, 219, 254, 0.25) 0%, transparent 50%);
}

[data-theme="dark"] .aurora {
    opacity: 0;
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(186, 230, 253, 0.4) 40%, transparent 70%);
    animation: floatBokeh 20s ease-in-out infinite;
}

.light-orb:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 15%;
    animation-duration: 18s;
    opacity: 0.6;
}

.light-orb:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 25%;
    animation-duration: 22s;
    animation-delay: -5s;
    opacity: 0.5;
}

.light-orb:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 35%;
    right: 40%;
    animation-duration: 25s;
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes floatBokeh {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-20px, 30px) scale(1.1);
    }
    50% {
        transform: translate(10px, -20px) scale(0.9);
    }
    75% {
        transform: translate(-30px, -10px) scale(1.05);
    }
}

/* Additional floating elements */
.aurora::before,
.aurora::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.5) 0%, transparent 70%);
    animation: floatBokeh 20s ease-in-out infinite;
}

.aurora::before {
    width: 200px;
    height: 200px;
    top: -50px;
    left: 10%;
    animation-duration: 16s;
    opacity: 0.4;
}

.aurora::after {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 5%;
    animation-duration: 24s;
    animation-delay: -8s;
    opacity: 0.35;
}

.aurora-shimmer {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.hero-label {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-600);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

[data-theme="dark"] .hero-label {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary-300);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

[data-theme="dark"] .hero-title {
    color: white;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3.25rem; }
}

@media (min-width: 992px) {
    .hero-title { font-size: 3.75rem; }
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

[data-theme="dark"] .hero-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 768px) {
    .hero-subtitle { font-size: 1.125rem; }
}

.hero-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.stat {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .stat {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-500);
    display: block;
}

[data-theme="dark"] .stat-number {
    color: var(--primary-300);
}

.stat-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

[data-theme="dark"] .stat-text {
    color: rgba(255, 255, 255, 0.6);
}

.hero-content .btn {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

@media (min-width: 768px) {
    .section { padding: 100px 0; }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header { margin-bottom: 4rem; }
}

.section-title {
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== About Section ===== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }
}

.about-photo {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
    object-fit: cover;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.about-text p strong {
    color: var(--text-primary);
}

.about-achievements {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.achievement-icon {
    width: 28px;
    height: 28px;
    background: var(--primary-100);
    color: var(--primary-500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
}

.achievement span {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ===== Method Section ===== */
.method-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.method-description p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.results-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.result-card {
    flex: 1 1 280px;
    max-width: 340px;
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .result-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.result-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.result-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-500);
}

.result-card h4 {
    font-size: 1.0625rem;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

.result-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Pricing Section ===== */
.pricing {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.pricing-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card-featured {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border: none;
}

.pricing-card-featured .pricing-header h3,
.pricing-card-featured .price,
.pricing-card-featured .pricing-features li {
    color: white;
}

.pricing-card-featured .price-note {
    color: var(--primary-200);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.pricing-card-featured .pricing-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.pricing-header h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.price-note {
    font-size: 0.8125rem;
    color: var(--primary-500);
    margin-top: 0.375rem;
    height: 1.25rem;
}

.pricing-features {
    flex: 1;
    margin-bottom: 1.5rem;
    min-height: 140px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-400);
    font-weight: 600;
}

.pricing-card-featured .pricing-features li::before {
    color: var(--primary-200);
}

.pricing-card .btn {
    width: 100%;
}

.pricing-card-featured .btn-primary {
    background: white;
    color: var(--primary-600);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pricing-card-featured .btn-primary:hover {
    background: var(--gray-100);
}

.pricing-cta {
    text-align: center;
}

.pricing-cta .btn {
    min-width: 260px;
}

/* ===== Services Section ===== */
.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-500);
}

.service-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.625rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex: 1;
}

.service-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-500);
    margin-top: auto;
}

/* ===== FAQ Section ===== */
.faq {
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    margin-bottom: 0.875rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary-500);
}

.faq-icon {
    width: 22px;
    height: 22px;
    stroke: var(--gray-400);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    stroke: var(--primary-400);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ===== Contact Section ===== */
.contact-form {
    max-width: 560px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .contact-form { padding: 3rem; }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer .logo {
    color: white;
    font-size: 1.375rem;
    display: block;
    margin-bottom: 1rem;
}

.footer-info p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-links h4,
.footer-contacts h4 {
    color: white;
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-contacts ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
}

.footer-contacts svg {
    width: 16px;
    height: 16px;
    stroke: var(--primary-400);
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    max-width: 400px;
    width: 100%;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-100);
}

.modal-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--gray-400);
}

.modal-content h3 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-content > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.modal-contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.modal-contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: var(--transition);
}

.modal-contact-btn svg {
    width: 28px;
    height: 28px;
}

.modal-contact-btn.whatsapp {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.modal-contact-btn.whatsapp:hover {
    background: rgba(22, 163, 74, 0.15);
}

.modal-contact-btn.telegram {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.modal-contact-btn.telegram:hover {
    background: rgba(14, 165, 233, 0.15);
}

.modal-contact-btn.phone {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-600);
}

.modal-contact-btn.phone:hover {
    background: rgba(14, 165, 233, 0.15);
}

.modal-contact-btn.email {
    background: var(--gray-100);
    color: var(--gray-600);
}

.modal-contact-btn.email:hover {
    background: var(--gray-200);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

::selection {
    background: var(--primary-200);
    color: var(--primary-900);
}

/* ===== Dark Theme Overrides ===== */
[data-theme="dark"] .btn-outline {
    border-color: var(--primary-400);
    color: var(--primary-400);
}

[data-theme="dark"] .btn-outline:hover {
    background: rgba(14, 165, 233, 0.1);
}

[data-theme="dark"] .modal-contact-btn.whatsapp {
    background: rgba(22, 163, 74, 0.15);
}

[data-theme="dark"] .modal-contact-btn.telegram {
    background: rgba(14, 165, 233, 0.15);
}

[data-theme="dark"] .modal-contact-btn.phone {
    background: rgba(14, 165, 233, 0.15);
}

[data-theme="dark"] .modal-contact-btn.email {
    background: rgba(100, 116, 139, 0.15);
    color: var(--gray-300);
}

/* Dark theme icon fixes */
[data-theme="dark"] .result-icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(56, 189, 248, 0.15));
}

[data-theme="dark"] .result-icon svg {
    stroke: var(--primary-300);
}

[data-theme="dark"] .service-icon {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(56, 189, 248, 0.15));
}

[data-theme="dark"] .service-icon svg {
    stroke: var(--primary-300);
}

[data-theme="dark"] .achievement-icon {
    background: rgba(14, 165, 233, 0.2);
    color: var(--primary-300);
}

[data-theme="dark"] .faq-icon {
    stroke: var(--gray-500);
}

[data-theme="dark"] .faq-item.active .faq-icon {
    stroke: var(--primary-300);
}

[data-theme="dark"] .footer-contacts svg {
    stroke: var(--primary-300);
}

[data-theme="dark"] .modal-close svg {
    stroke: var(--gray-500);
}

[data-theme="dark"] .modal-close:hover {
    background: var(--gray-700);
}

[data-theme="dark"] .modal-close:hover svg {
    stroke: var(--gray-300);
}
