/* DREY Systems - Main Stylesheet */
:root {
    --blue-electric: #1E5BFF;
    --blue-dark: #041B4D;
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray-100: #E8ECF1;
    --gray-200: #D1D9E6;
    --gray-400: #94A3B8;
    --gray-600: #64748B;
    --gray-800: #1E293B;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', 'Manrope', sans-serif;
    --font-accent: 'Manrope', sans-serif;
    --shadow-sm: 0 1px 3px rgba(4, 27, 77, 0.08);
    --shadow-md: 0 4px 20px rgba(4, 27, 77, 0.1);
    --shadow-lg: 0 10px 40px rgba(4, 27, 77, 0.15);
    --shadow-glow: 0 0 60px rgba(30, 91, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-light);
    --text-primary: var(--blue-dark);
    --text-secondary: var(--gray-600);
    --border-color: rgba(4, 27, 77, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
    --bg-primary: #0A1628;
    --bg-secondary: #0F1D32;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 29, 50, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gray-light: #0F1D32;
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-electric); text-decoration: none; transition: color var(--transition); }
a:hover { color: #1648cc; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.skip-link {
    position: absolute; top: -100%; left: 1rem; z-index: 9999;
    padding: 0.75rem 1.5rem; background: var(--blue-electric); color: #fff;
    border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.95rem; transition: all var(--transition); white-space: nowrap;
    border: 2px solid transparent;
}
.btn--primary { background: var(--blue-electric); color: #fff; }
.btn--primary:hover { background: #1648cc; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn--outline { background: transparent; color: var(--blue-electric); border-color: var(--blue-electric); }
.btn--outline:hover { background: var(--blue-electric); color: #fff; }
.btn--ghost { background: transparent; color: var(--text-secondary); }
.btn--ghost:hover { color: var(--blue-electric); }
.btn--white { background: #fff; color: var(--blue-dark); }
.btn--white:hover { background: var(--gray-light); transform: translateY(-1px); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition);
}
[data-theme="dark"] .header { background: rgba(10, 22, 40, 0.9); }
.header.scrolled {
    box-shadow: 0 4px 30px rgba(4, 27, 77, 0.08);
    background: rgba(255, 255, 255, 0.95);
}
[data-theme="dark"] .header.scrolled { background: rgba(10, 22, 40, 0.97); }
.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-height); gap: 1rem;
}
.nav__logo { display: flex; align-items: center; color: var(--text-primary); flex-shrink: 0; }
.nav__logo:hover { opacity: 0.92; }
.nav__logo-img { height: 40px; width: auto; object-fit: contain; transition: opacity var(--transition); }
[data-theme="dark"] .nav__logo-img { opacity: 0.92; }
[data-theme="dark"] .header.scrolled .nav__logo-img { opacity: 1; }
.nav__logo-icon { width: 36px; height: 36px; }
.nav__logo-text { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 500; }
.nav__logo-text strong { font-weight: 700; color: var(--blue-electric); }
.nav__menu { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
    padding: 0.5rem 0.85rem; color: var(--text-secondary); font-size: 0.9rem;
    font-weight: 500; border-radius: var(--radius-sm); transition: all var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--blue-electric); background: rgba(30, 91, 255, 0.08); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); transition: var(--transition); border-radius: 2px; }
.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all var(--transition);
}
.theme-toggle:hover { background: rgba(30, 91, 255, 0.1); color: var(--blue-electric); }
.theme-toggle svg { width: 20px; height: 20px; }
[data-theme="light"] .icon-moon, [data-theme="dark"] .icon-sun { display: none; }

/* Hero */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: calc(var(--header-height) + 3rem) 0 4rem; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(30, 91, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(30, 91, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; }
.hero__glow--1 { width: 500px; height: 500px; background: var(--blue-electric); top: -10%; right: -5%; }
.hero__glow--2 { width: 400px; height: 400px; background: #60A5FA; bottom: 10%; left: -10%; opacity: 0.2; }
.hero__container {
    position: relative; z-index: 1; display: grid;
    grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero__badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 1rem 0.45rem 0.65rem; background: rgba(30, 91, 255, 0.08);
    color: var(--blue-electric); border-radius: 50px; font-size: 0.82rem; font-weight: 600;
    margin-bottom: 1.25rem; border: 1px solid rgba(30, 91, 255, 0.18);
}
.hero__badge::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: #22C55E; box-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: pulse 2s infinite;
}
.hero__title {
    font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700; line-height: 1.12; margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
[data-theme="light"] .hero__title {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-electric) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 520px; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Dashboard Visual */
.hero__dashboard {
    background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    position: relative; animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.dashboard__header {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem;
    background: rgba(30, 91, 255, 0.05); border-bottom: 1px solid var(--border-color);
}
.dashboard__dots { display: flex; gap: 6px; }
.dashboard__dots span { width: 10px; height: 10px; border-radius: 50%; }
.dashboard__dots span:nth-child(1) { background: #EF4444; }
.dashboard__dots span:nth-child(2) { background: #F59E0B; }
.dashboard__dots span:nth-child(3) { background: #22C55E; }
.dashboard__title { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.dashboard__body { display: flex; min-height: 280px; }
.dashboard__sidebar { width: 50px; padding: 1rem 0.5rem; display: flex; flex-direction: column; gap: 0.75rem; border-right: 1px solid var(--border-color); }
.dashboard__nav-item { width: 100%; height: 8px; border-radius: 4px; background: var(--border-color); }
.dashboard__nav-item.active { background: var(--blue-electric); }
.dashboard__main { flex: 1; padding: 1.25rem; }
.dashboard__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.dashboard__stat { background: rgba(30, 91, 255, 0.05); border-radius: var(--radius-sm); padding: 0.75rem; text-align: center; }
.stat__value { display: block; font-family: var(--font-accent); font-weight: 700; font-size: 1.1rem; color: var(--blue-electric); }
.stat__label { font-size: 0.7rem; color: var(--text-secondary); }
.dashboard__chart { margin-bottom: 1rem; }
.chart__svg { width: 100%; height: 60px; }
.dashboard__code pre {
    background: var(--blue-dark); border-radius: var(--radius-sm); padding: 0.85rem;
    font-size: 0.75rem; line-height: 1.5; overflow: hidden;
}
.code__kw { color: #C678DD; } .code__var { color: #E5C07B; } .code__fn { color: #61AFEF; }
.code__str { color: #98C379; } .code__num { color: #D19A66; }
.dashboard__nodes { position: absolute; inset: 0; pointer-events: none; }
.node { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-electric); animation: pulse 2s infinite; }
.node--1 { top: 20%; right: 10%; } .node--2 { bottom: 30%; right: 5%; animation-delay: 0.5s; }
.node--3 { top: 50%; left: -5%; animation-delay: 1s; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } }

/* Sections */
.section { padding: 5rem 0; }
.section__header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__label {
    display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--blue-electric);
    text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem;
}
.section__title { font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.section__desc { color: var(--text-secondary); font-size: 1.05rem; }

/* About */
.about { background: var(--bg-secondary); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about__text p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.8; }
.about__features { display: flex; flex-direction: column; gap: 1.25rem; }
.about__feature {
    display: flex; gap: 1rem; padding: 1.25rem; background: var(--glass-bg);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    backdrop-filter: blur(10px); transition: all var(--transition);
}
.about__feature:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.about__feature-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(30, 91, 255, 0.1);
    display: flex; align-items: center; justify-content: center; color: var(--blue-electric); flex-shrink: 0;
}
.about__feature-icon svg { width: 24px; height: 24px; }
.about__feature h4 { font-weight: 600; margin-bottom: 0.25rem; }
.about__feature p { font-size: 0.9rem; color: var(--text-secondary); }

/* Founder */
.founder__card {
    display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center;
    background: var(--glass-bg); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
    padding: 2.5rem; backdrop-filter: blur(20px); box-shadow: var(--shadow-md);
}
.founder__image img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.founder__name { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; }
.founder__position { color: var(--blue-electric); font-weight: 600; margin-bottom: 1.25rem; }
.founder__bio { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }

/* Services */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
    padding: 2rem; background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); transition: all var(--transition); position: relative; overflow: hidden;
    box-shadow: 0 1px 2px rgba(4, 27, 77, 0.04);
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--blue-electric), #60A5FA);
    transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(30, 91, 255, 0.2); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
    width: 52px; height: 52px; border-radius: var(--radius-md); background: rgba(30, 91, 255, 0.1);
    display: flex; align-items: center; justify-content: center; color: var(--blue-electric); margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.75rem; }
.service-card__desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* Portfolio */
.portfolio { background: var(--bg-secondary); }
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
    background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    overflow: hidden; transition: all var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card__image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.project-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.project-card:hover .project-card__image img { transform: scale(1.05); }
.project-card__placeholder {
    width: 100%; height: 100%; background: linear-gradient(135deg, rgba(30,91,255,0.1), rgba(4,27,77,0.1));
    display: flex; align-items: center; justify-content: center; color: var(--blue-electric);
}
.project-card__placeholder svg { width: 48px; height: 48px; opacity: 0.5; }
.project-card__status {
    position: absolute; top: 1rem; right: 1rem; padding: 0.3rem 0.75rem;
    border-radius: 50px; font-size: 0.75rem; font-weight: 600; background: var(--glass-bg);
    backdrop-filter: blur(10px);
}
.status--activo { color: #22C55E; } .status--completado { color: var(--blue-electric); }
.status--en_desarrollo { color: #F59E0B; } .status--demo { color: #8B5CF6; }
.project-card__body { padding: 1.5rem; }
.project-card__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.project-card__desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.project-card__techs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.tech-tag {
    padding: 0.2rem 0.6rem; background: rgba(30, 91, 255, 0.08); color: var(--blue-electric);
    border-radius: 50px; font-size: 0.75rem; font-weight: 500;
}
.project-card__actions { display: flex; gap: 0.75rem; }

/* Products */
.products__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card {
    background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    overflow: hidden; transition: all var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__header { position: relative; }
.product-card__img, .product-card__img-placeholder {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-electric));
}
.product-card__img-placeholder { display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); }
.product-card__img-placeholder svg { width: 48px; height: 48px; }
.product-card__price {
    position: absolute; bottom: 1rem; right: 1rem; background: var(--glass-bg);
    backdrop-filter: blur(10px); padding: 0.5rem 1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}
.price__amount { font-family: var(--font-accent); font-weight: 700; color: var(--blue-electric); }
.product-card__body { padding: 1.5rem; }
.product-card__title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.product-card__desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.product-card__features { margin-bottom: 1rem; }
.product-card__features li {
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem;
    color: var(--text-secondary); padding: 0.3rem 0;
}
.product-card__features svg { width: 16px; height: 16px; color: #22C55E; flex-shrink: 0; }
.product-card__plans { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.plan-tag { padding: 0.25rem 0.6rem; background: var(--bg-secondary); border-radius: 50px; font-size: 0.75rem; color: var(--text-secondary); }
.product-card__actions { display: flex; gap: 0.75rem; }

/* Quote CTA */
.quote-cta__card {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-electric) 100%);
    border-radius: var(--radius-xl); padding: 3rem; display: flex; align-items: center;
    justify-content: space-between; gap: 2rem; color: #fff; position: relative; overflow: hidden;
}
.quote-cta__card::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.quote-cta__content { position: relative; z-index: 1; }
.quote-cta__content h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 0.75rem; }
.quote-cta__content p { opacity: 0.85; max-width: 500px; }
.quote-cta__card .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* Stats & Benefits */
.why-us { background: var(--bg-secondary); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.stat-card {
    text-align: center; padding: 2rem 1rem; background: var(--bg-primary);
    border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(30,91,255,0.2); }
.stat-card__number {
    display: block; font-family: var(--font-accent); font-size: 2.5rem; font-weight: 800;
    color: var(--blue-electric); margin-bottom: 0.5rem;
}
.stat-card__label { font-size: 0.9rem; color: var(--text-secondary); }
.benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefit-item {
    display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem;
    background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-md);
}
.benefit-item svg { width: 20px; height: 20px; color: #22C55E; flex-shrink: 0; }
.benefit-item span { font-weight: 500; font-size: 0.95rem; }

/* Testimonials */
.testimonials__slider { max-width: 800px; margin: 0 auto; overflow: hidden; }
.testimonials__track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.testimonial-card {
    min-width: 100%; padding: 2.5rem; background: var(--glass-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); backdrop-filter: blur(20px);
}
.testimonial-card__stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: 1.25rem; letter-spacing: 2px; }
.testimonial-card__text { font-size: 1.15rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 1.5rem; font-style: italic; }
.testimonial-card__author { display: flex; align-items: center; gap: 1rem; }
.testimonial-card__avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--blue-electric); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem;
}
.testimonial-card__name { font-style: normal; font-weight: 600; display: block; }
.testimonial-card__role { font-size: 0.85rem; color: var(--text-secondary); }
.testimonials__nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.testimonials__btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center; color: var(--text-secondary);
    transition: all var(--transition);
}
.testimonials__btn:hover { background: var(--blue-electric); color: #fff; border-color: var(--blue-electric); }
.testimonials__btn svg { width: 18px; height: 18px; }
.testimonials__dots { display: flex; gap: 0.5rem; }
.testimonials__dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--border-color);
    transition: all var(--transition); cursor: pointer;
}
.testimonials__dot.active { background: var(--blue-electric); width: 24px; border-radius: 4px; }

/* Tech */
.tech__categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.tech__group { padding: 2rem; background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.tech__category { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--blue-electric); }
.tech__logos { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tech__logo {
    padding: 0.75rem 1.25rem; background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); transition: all var(--transition);
}
.tech__logo:hover { border-color: var(--blue-electric); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tech__name { font-weight: 600; font-size: 0.9rem; }

/* Blog */
.blog { background: var(--bg-secondary); }
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.blog-card {
    background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
    overflow: hidden; transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__image { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue-dark), var(--blue-electric)); opacity: 0.3; }
.blog-card__category {
    position: absolute; top: 1rem; left: 1rem; padding: 0.3rem 0.75rem; background: var(--blue-electric);
    color: #fff; border-radius: 50px; font-size: 0.75rem; font-weight: 600;
}
.blog-card__body { padding: 1.5rem; }
.blog-card__date { font-size: 0.8rem; color: var(--text-secondary); }
.blog-card__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin: 0.5rem 0; }
.blog-card__title a { color: var(--text-primary); }
.blog-card__title a:hover { color: var(--blue-electric); }
.blog-card__excerpt { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.blog-card__link { font-weight: 600; font-size: 0.9rem; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
.contact__form {
    padding: 2rem; background: var(--glass-bg); border: 1px solid var(--border-color);
    border-radius: var(--radius-xl); backdrop-filter: blur(20px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__group { margin-bottom: 1.25rem; }
.form__group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text-secondary); }
.form__group input, .form__group textarea, .form__group select {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); background: var(--bg-primary); color: var(--text-primary);
    transition: border-color var(--transition);
}
.form__group input:focus, .form__group textarea:focus { outline: none; border-color: var(--blue-electric); box-shadow: 0 0 0 3px rgba(30,91,255,0.1); }
.form__feedback { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; }
.form__feedback.success { background: rgba(34,197,94,0.1); color: #16A34A; border: 1px solid rgba(34,197,94,0.3); }
.form__feedback.error { background: rgba(239,68,68,0.1); color: #DC2626; border: 1px solid rgba(239,68,68,0.3); }
.contact__channels { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact__channel {
    display: flex; align-items: center; gap: 1rem; padding: 1.25rem;
    background: var(--glass-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md);
    color: var(--text-primary); transition: all var(--transition);
}
.contact__channel:hover { border-color: var(--blue-electric); transform: translateX(4px); color: var(--text-primary); }
.contact__channel svg { width: 28px; height: 28px; color: var(--blue-electric); flex-shrink: 0; }
.contact__channel strong { display: block; font-size: 0.95rem; }
.contact__channel span { font-size: 0.85rem; color: var(--text-secondary); }
.contact__map { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); }
.contact__map iframe { width: 100%; height: 200px; border: 0; }

/* Footer */
.footer {
    position: relative; background: linear-gradient(180deg, #031428 0%, var(--blue-dark) 100%);
    color: rgba(255,255,255,0.8); padding: 0 0 2rem; overflow: hidden;
}
.footer__accent {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--blue-electric), #60A5FA, transparent);
    margin-bottom: 3.5rem;
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer__brand-name {
    font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700;
    color: #fff; letter-spacing: 0.02em; margin-bottom: 0.35rem;
}
.footer__brand-name span {
    display: block; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.35em;
    text-transform: lowercase; color: rgba(255,255,255,0.55); margin-top: 0.15rem;
}
.footer__tagline { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--blue-electric); font-weight: 500; }
.footer__desc { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 1.5rem; max-width: 280px; }
.footer__contact-list li { color: rgba(255,255,255,0.55); font-size: 0.88rem; line-height: 1.6; }
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: #fff; transition: all var(--transition);
}
.footer__social a:hover { background: var(--blue-electric); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer__links h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; font-weight: 600; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.85rem; opacity: 0.6; }

/* Modal & Wizard */
.modal {
    position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
    padding: 1rem; opacity: 0; visibility: hidden; transition: all var(--transition);
}
.modal.active { opacity: 1; visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4, 27, 77, 0.6); backdrop-filter: blur(4px); }
.modal__content {
    position: relative; background: var(--bg-primary); border-radius: var(--radius-xl);
    padding: 2rem; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform var(--transition);
}
.modal.active .modal__content { transform: translateY(0); }
.modal__close {
    position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    color: var(--text-secondary); transition: all var(--transition);
}
.modal__close:hover { background: var(--bg-secondary); color: var(--text-primary); }
.modal__title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1.5rem; }
.wizard__progress { height: 4px; background: var(--bg-secondary); border-radius: 2px; margin-bottom: 2rem; overflow: hidden; }
.wizard__progress-bar { height: 100%; background: var(--blue-electric); border-radius: 2px; transition: width 0.4s; width: 14.28%; }
.wizard__step { display: none; }
.wizard__step.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.wizard__step h3 { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: 1.25rem; }
.wizard__options { display: flex; flex-direction: column; gap: 0.6rem; }
.wizard__option { cursor: pointer; }
.wizard__option input { position: absolute; opacity: 0; }
.wizard__option span {
    display: block; padding: 0.85rem 1.25rem; border: 2px solid var(--border-color);
    border-radius: var(--radius-sm); transition: all var(--transition); font-weight: 500;
}
.wizard__option input:checked + span { border-color: var(--blue-electric); background: rgba(30,91,255,0.08); color: var(--blue-electric); }
.wizard__option:hover span { border-color: rgba(30,91,255,0.4); }
.wizard__conditional { margin-top: 1rem; }
.wizard__nav { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.wizard__success { text-align: center; padding: 2rem 0; }
.wizard__success-icon {
    width: 64px; height: 64px; border-radius: 50%; background: #22C55E; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    margin: 0 auto 1.5rem;
}
.wizard__success h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.75rem; }
.wizard__success p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Animations */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

[data-theme="light"] .section { background-color: var(--bg-primary); }
[data-theme="light"] .about,
[data-theme="light"] .portfolio,
[data-theme="light"] .blog { background: linear-gradient(180deg, var(--gray-light) 0%, var(--bg-primary) 100%); }
[data-theme="light"] .service-card,
[data-theme="light"] .project-card,
[data-theme="light"] .product-card,
[data-theme="light"] .blog-card {
    box-shadow: 0 2px 16px rgba(4, 27, 77, 0.06);
    border-color: rgba(4, 27, 77, 0.06);
}
[data-theme="light"] .service-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .product-card:hover {
    box-shadow: 0 8px 32px rgba(30, 91, 255, 0.12);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__container { grid-template-columns: 1fr; text-align: center; }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
    .hero__visual { max-width: 500px; margin: 0 auto; }
    .about__grid, .founder__card, .contact__grid { grid-template-columns: 1fr; }
    .founder__image { max-width: 280px; margin: 0 auto; }
    .services__grid, .portfolio__grid, .products__grid, .blog__grid { grid-template-columns: repeat(2, 1fr); }
    .stats__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
        background: var(--bg-primary); flex-direction: column; padding: 2rem;
        transform: translateX(100%); transition: transform var(--transition);
        border-top: 1px solid var(--border-color);
    }
    .nav__menu.open { transform: translateX(0); }
    .nav__toggle { display: flex; }
    .nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav__toggle.active span:nth-child(2) { opacity: 0; }
    .nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .nav__link { font-size: 1.1rem; padding: 0.75rem 0; }
    .services__grid, .portfolio__grid, .products__grid, .blog__grid,
    .benefits__grid, .tech__categories { grid-template-columns: 1fr; }
    .quote-cta__card { flex-direction: column; text-align: center; padding: 2rem; }
    .form__row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__brand { text-align: center; }
    .footer__desc { max-width: none; margin-left: auto; margin-right: auto; }
    .footer__social { justify-content: center; }
    .section { padding: 3.5rem 0; }
    .back-to-top { right: 1.5rem; bottom: 5.5rem; }
    .section__header--flex { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* Trust bar */
.trust-bar { padding: 1.25rem 0; background: var(--blue-dark); overflow: hidden; }
.trust-bar__track {
    display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center;
    animation: trustScroll 20s linear infinite;
}
.trust-bar__track span {
    color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
    padding: 0.4rem 1rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 50px;
}

/* Extended services (10 items) */
.services__grid--extended { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1200px) { .services__grid--extended { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .services__grid--extended { grid-template-columns: 1fr; } }

/* Process */
.process { background: var(--bg-primary); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.process-card {
    padding: 2rem 1.5rem; background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); position: relative; transition: all var(--transition);
}
.process-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(30,91,255,0.2); }
.process-card__number {
    font-family: var(--font-accent); font-size: 2.5rem; font-weight: 800; color: var(--blue-electric);
    opacity: 0.2; line-height: 1; margin-bottom: 0.75rem;
}
.process-card__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.process-card__desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
@media (max-width: 1024px) { .process__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .process__grid { grid-template-columns: 1fr; } }

/* Tech brand colors */
.tech--react .tech__name { color: #61DAFB; }
.tech--nextjs .tech__name { color: var(--text-primary); }
.tech--vue .tech__name { color: #42B883; }
.tech--node .tech__name { color: #68A063; }
.tech--laravel .tech__name { color: #FF2D20; }
.tech--dotnet .tech__name { color: #512BD4; }
.tech--postgres .tech__name { color: #336791; }
.tech--mysql .tech__name { color: #4479A1; }
.tech--mongo .tech__name { color: #47A248; }
.tech--aws .tech__name { color: #FF9900; }
.tech--azure .tech__name { color: #0078D4; }
.tech--gcp .tech__name { color: #4285F4; }

/* Floating elements */
.whatsapp-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: all var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; }

.back-to-top {
    position: fixed; bottom: 1.5rem; right: 5.5rem; z-index: 900;
    width: 44px; height: 44px; border-radius: 50%; background: var(--blue-electric); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transition: all var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
    background: var(--glass-bg); backdrop-filter: blur(20px); border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.cookie-banner a { color: var(--blue-electric); }

.modal__content--video { max-width: 800px; padding: 1rem; }
.video-modal__frame { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.video-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 3rem; color: var(--text-secondary); background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px dashed var(--border-color); }
.section__header--flex { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; gap: 1rem; flex-wrap: wrap; }
.section__header--flex .section__title { text-align: left; }
.page-hero__back { display: inline-block; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-secondary); }
.blog-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.blog-filter { padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); border: 1px solid var(--border-color); transition: all var(--transition); }
.blog-filter:hover, .blog-filter.active { background: var(--blue-electric); color: #fff; border-color: var(--blue-electric); }
.error-page__code { display: block; font-family: var(--font-accent); font-size: 6rem; font-weight: 800; color: var(--blue-electric); opacity: 0.3; line-height: 1; margin-bottom: 0.5rem; }
.btn--ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn--ghost:hover { border-color: var(--blue-electric); color: var(--blue-electric); background: rgba(30,91,255,0.05); }
