:root {
    --blue: #2674e9;
    --dark: #212121;
    --night: #111317;
    --light: #f5f5f5;
    --muted: rgba(33,33,33,0.72);
    --white: #ffffff;
    --line: rgba(33,33,33,0.12);
    --yellow: #ffb300;
    --green: #2ecc71;
    --red: #c03221;
    --gradient-hero: radial-gradient(circle at 70% 30%, #1e2a4a 0%, var(--night) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 12px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.25);
}

[data-theme="dark"] {
    --dark: #f5f5f5;
    --night: #0f1014;
    --light: #050505;
    --muted: rgba(245,245,245,0.78);
    --white: #1b1d22;
    --line: rgba(245,245,245,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 12px 24px rgba(0,0,0,0.5);
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Roboto', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    body {
        padding-bottom: 110px;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

main {
    padding: 0 0 96px;
}

section[id] {
    scroll-margin-top: 96px;
}

/* HEADER */
.site-header {
    width: 100%;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
    border-bottom: 1px solid var(--line);
    transition: all 0.3s ease;
}

[data-theme="dark"] .site-header {
    background: rgba(8,8,8,0.85);
    border-bottom-color: var(--line);
}

.logo {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

.logo span {
    color: var(--blue);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    background: var(--blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(38,116,233,0.3);
}

.btn.primary:hover,
.btn.primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(38,116,233,0.4);
    filter: brightness(1.1);
}

.btn.primary:active {
    transform: translateY(+2px);
}

/* MENU TOGGLE */
.menu-toggle {
    position: absolute;
    left: 24px;
    top: 50%;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: translateY(-50%);
    z-index: 11;
}

.menu-toggle .menu-bar {
    width: 20px;
    height: 2px;
    background: var(--dark);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle .menu-bar + .menu-bar {
    margin-top: 5px;
}

.menu-toggle:hover {
    background: var(--light);
    border-color: var(--blue);
}

[data-theme="dark"] .menu-toggle {
    background: rgba(255,255,255,0.05);
}

.menu-toggle.open .menu-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open .menu-bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .menu-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* THEME TOGGLE */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    border-color: var(--blue);
}

.theme-icon--dark { display: none; }
[data-theme="dark"] .theme-icon--light { display: none; }
[data-theme="dark"] .theme-icon--dark { display: inline; }
[data-theme="dark"] .theme-toggle {
    background: rgba(255,255,255,0.05);
}

/* SIDE MENU */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--line);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100; /* Increased z-index to be above mobile CTA */
    box-shadow: var(--shadow-lg);
    overflow-y: auto; /* Allow scrolling on small screens */
    padding-bottom: 120px; /* Extra padding for safe area and mobile bars */
}

[data-theme="dark"] .side-menu {
    background: #1b1b1b;
}

.side-menu.open {
    transform: translateX(0);
}

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.menu-close:hover {
    transform: scale(1.1) rotate(90deg);
    color: var(--red);
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.2s;
    display: block;
}

.side-menu a:hover {
    background: var(--light);
    color: var(--blue);
}

[data-theme="dark"] .side-menu a:hover {
    background: rgba(255,255,255,0.05);
}

.side-menu-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.side-menu .theme-toggle {
    width: 100%;
    border-radius: 16px;
    height: 48px; /* Taller for easier tapping */
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 55;
    backdrop-filter: blur(4px);
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* HERO SECTION */
.hero {
    width: 100%;
    padding: 120px 0 100px;
    background: var(--gradient-hero);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: float 20s infinite ease-in-out;
}

.hero::before {
    width: 400px;
    height: 400px;
    background: var(--blue);
    top: -100px;
    right: -50px;
    animation-delay: -5s;
}

.hero::after {
    width: 300px;
    height: 300px;
    background: var(--green); /* Using secondary color */
    bottom: -50px;
    left: -50px;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

.hero-container {
    width: min(1200px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-badge {
    display: inline-flex;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
    backdrop-filter: blur(8px);
    animation: slideDown 0.8s ease-out forwards;
}

.hero-badge span:last-child {
    color: var(--yellow);
}

.hero-copy h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin: 0 0 1.7rem 0;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #dceaff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-copy .hero-lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    max-width: 540px;
    margin: 0;
    font-weight: 400;
}

.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.hero-benefits li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-benefits li i, 
.hero-benefits li::before {
    content: '✓';
    color: var(--green);
    background: rgba(46, 204, 113, 0.2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

/* FORM STYLE */
.hero-form-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    perspective: 1000px;
}

.lead-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 20px;
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
}

[data-theme="dark"] .lead-form {
    background: rgba(30, 32, 38, 0.95);
    border-color: rgba(255,255,255,0.1);
}

.lead-form h3 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--dark);
    font-weight: 700;
    text-align: center;
}

[data-theme="dark"] .lead-form h3 { color: #fff; }

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-left: 4px;
}

input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--dark);
    box-shadow: 0 2px 6px rgba(15,19,23,0.05);
}

[data-theme="dark"] input, 
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}

input::placeholder,
textarea::placeholder {
    color: rgba(33,33,33,0.6);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

input:focus, 
select:focus,
textarea:focus {
    background: var(--white);
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 4px rgba(38,116,233,0.1);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(38,116,233,0.2);
}

.phone-fields {
    display: flex;
    gap: 12px;
}

.phone-fields select {
    flex: 0 0 130px; /* Mai mult spațiu pentru a afișa complet prefixul (ex: RO +40) */
}

/* Select options pe tema întunecată - să fie vizibile în dropdown */
[data-theme="dark"] select option {
    background-color: #1b1d22;
    color: #ffffff;
}

.lead-form .btn.primary {
    width: 100%;
    margin-top: 12px;
    font-size: 1.1rem;
    padding: 16px;
}

.subscribe-perks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 24px;
    gap: 12px;
    text-align: center;
}

.perk-item span {
    display: block;
    color: #64a0ff;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.perk-item p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.2;
}

/* SECTIONS */
.content-section {
    width: min(1200px, 92vw);
    margin: 0 auto 120px;
    padding-top: 40px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.section-subtext {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
}

/* CARDS */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 32px;
    border: 1px solid var(--line);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--line);
    transition: background 0.3s;
}

/* Card Variants based on nth-child for color variation */
.card:nth-child(1)::before { background: var(--yellow); }
.card:nth-child(2)::before { background: var(--green); }
.card:nth-child(3)::before { background: var(--red); }

.card:nth-child(1) .icon-box { color: var(--yellow); background: rgba(255, 179, 0, 0.1); }
.card:nth-child(2) .icon-box { color: var(--green); background: rgba(46, 204, 113, 0.1); }
.card:nth-child(3) .icon-box { color: var(--red); background: rgba(192, 50, 33, 0.1); }

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

[data-theme="dark"] .card {
    background: #15171c;
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 32px;
    transition: transform 0.3s;
}

.card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.5rem;
    margin: 0 0 16px;
    font-weight: 700;
}

.card p {
    color: var(--muted);
    margin: 0;
    font-size: 1.05rem;
}

/* HOW IT WORKS */
.solution-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    counter-reset: step;
}

.step-card {
    position: relative;
    padding: 32px;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--line);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue);
}

[data-theme="dark"] .step-card { background: #15171c; }

.step-card::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -24px;
    left: 24px;
    width: 48px;
    height: 48px;
    background: var(--blue);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(38,116,233,0.3);
}

.step-card h3 {
    margin-top: 16px;
    font-size: 1.4rem;
}

/* BENEFITS */
.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.benefit-box {
    background: linear-gradient(145deg, #ffffff, #f0f7ff);
    border-radius: 32px;
    padding: 56px;
    border: 1px solid rgba(38,116,233,0.1);
    position: relative;
}

[data-theme="dark"] .benefit-box {
    background: linear-gradient(145deg, #1b1d22, #111);
    border-color: rgba(255,255,255,0.05);
}

.benefit-box h3 {
    font-size: 2rem;
    margin: 0 0 32px;
    color: var(--blue);
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.benefit-list li::before {
    content: '✦';
    color: var(--yellow);
    font-size: 1.4rem;
}

/* ANIMATIONS */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* DELAYS */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* FOOTER */
footer {
    background: var(--night);
    color: rgba(255,255,255,0.6);
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    width: min(1200px, 92vw);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.footer-brand .logo { color: white; font-size: 1.5rem; }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; }

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--white);
}

/* MOBILE RESPONSIVE */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero-copy { align-items: center; }
    .hero-badge { margin: 0 auto; }
    .hero-benefits { justify-content: center; }
    .benefit-grid { grid-template-columns: 1fr; }
}
.mobile-sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    z-index: 99;
    box-shadow: 0 10px 25px rgba(38,116,233,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    opacity: 1;
    width: auto;
    max-width: none;
    padding: 12px 32px;
    font-size: 1rem;
    border-radius: 999px;
}

/* SECONDARY / STATIC PAGES */
.secondary-page {
    width: min(960px, 92vw);
    margin: 120px auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.page-hero,
.page-section {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 32px;
    padding: clamp(32px, 6vw, 64px);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .page-hero,
[data-theme="dark"] .page-section {
    background: #15171c;
    border-color: rgba(255,255,255,0.08);
}

.page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(38,116,233,0.1);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.15;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--muted);
    margin: 0;
    max-width: 640px;
}

.page-hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--blue);
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.page-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

[data-theme="dark"] .page-card {
    background: rgba(21,23,28,0.95);
    border-color: rgba(255,255,255,0.06);
}

.page-card strong {
    font-size: 1rem;
    color: var(--dark);
}

[data-theme="dark"] .page-card strong {
    color: #fff;
}

.page-card p {
    margin: 0;
    color: var(--muted);
}

.page-card a {
    color: var(--blue);
    font-weight: 600;
}

.page-section h2 {
    margin-top: 2.5rem;
    font-size: 1.4rem;
}

.page-section h2:first-of-type {
    margin-top: 0;
}

.page-section p, 
.page-section ul {
    color: var(--muted);
}

.page-section ul {
    padding-left: 1.2rem;
}

.page-section li {
    margin-bottom: 0.5rem;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 640px) {
    .secondary-page {
        margin-top: 96px;
    }
    .page-hero,
    .page-section {
        padding: 24px;
    }
}

.mobile-sticky-cta.btn.primary:hover,
.mobile-sticky-cta.btn.primary:focus,
.mobile-sticky-cta.btn.primary:focus-visible,
.mobile-sticky-cta.btn.primary:active {
    transform: translateX(-50%);
}

@media (max-width: 640px) {
    .mobile-sticky-cta {
        display: inline-flex;
    }
}

