/* ==========================================================================
   iSoftControl — Landing premium
   ========================================================================== */

:root {
    --bg: #FAFBFD;
    --card: #FFFFFF;
    --border: #E7EAF3;
    --text: #111827;
    --text-soft: #6B7280;
    --accent: #6D5DF6;
    --accent-2: #3B82F6;
    --grad: linear-gradient(135deg, #7C5CFF, #3B82F6);
    --accent-soft: rgba(109, 93, 246, 0.12);
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
    --shadow-md: 0 8px 24px rgba(17, 24, 39, 0.06);
    --shadow-lg: 0 20px 48px rgba(17, 24, 39, 0.10);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --header-h: 76px;
}

:root[data-theme="dark"] {
    --bg: #0B0D14;
    --card: #12141F;
    --border: #22263A;
    --text: #F3F4F6;
    --text-soft: #9CA3AF;
    --accent-soft: rgba(124, 92, 255, 0.18);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, 'SF Pro Display', BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 16px; top: 16px; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--text); }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 12px;
}
.eyebrow-center { text-align: center; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-sub { color: var(--text-soft); margin-top: 12px; font-size: 16px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: 15px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 8px 20px rgba(109, 93, 246, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(109, 93, 246, 0.38); transform: translateY(-2px); }

.btn-ghost {
    background: var(--card); color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-whatsapp { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 211, 102, 0.4); }

/* ---------------- Header ---------------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px; background: var(--grad);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: monospace; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 15px; }
.brand-sub { font-size: 11px; color: var(--text-soft); }

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--text-soft); transition: color 0.2s; }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--card); color: var(--text); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

.mobile-nav {
    display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border);
}
.mobile-nav a { padding: 10px 0; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; margin-top: 8px; }
.mobile-nav.open { display: flex; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 90px; overflow: clip; }
.hero-bg {
    position: absolute; inset: -10% -10% auto -10%; height: 640px; z-index: -1;
    background: radial-gradient(60% 60% at 20% 10%, rgba(124,92,255,0.14), transparent 70%),
                radial-gradient(50% 50% at 85% 25%, rgba(59,130,246,0.12), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.hero-title { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.05; margin: 6px 0 4px; }
.hero-role { font-size: clamp(18px, 2vw, 22px); font-weight: 600; color: var(--accent); margin: 6px 0 18px; }
.hero-text { font-size: 17px; color: var(--text-soft); max-width: 480px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stack-label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 14px; font-weight: 600; }
.stack-icons { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.stack-icons li {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--border); font-size: 13.5px; font-weight: 500;
    box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.stack-icons li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.robot-wrap { width: min(340px, 90%); position: relative; z-index: 2; animation: floatY 5s ease-in-out infinite; }
.robot-svg { width: 100%; height: auto; }
.robot-glow {
    position: absolute; width: 280px; height: 280px; border-radius: 50%; z-index: 1;
    background: radial-gradient(circle, rgba(124,92,255,0.22), transparent 70%);
    top: 40%; left: 50%; transform: translate(-50%, -50%); filter: blur(8px);
}
.robot-eyes ellipse { animation: blink 4.5s ease-in-out infinite; transform-origin: center; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.15); } }
.robot-arm-wave { transform-origin: 50px 214px; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.robot-bubble {
    max-width: 260px; background: var(--card); border: 1px solid var(--border); border-radius: 18px 18px 18px 4px;
    padding: 16px 18px; font-size: 14.5px; box-shadow: var(--shadow-lg); margin-bottom: 18px;
    align-self: flex-start; position: relative; left: 6%;
    opacity: 0; transform: translateY(10px); animation: bubbleIn 0.6s ease 0.4s forwards;
}
.robot-bubble strong { color: var(--accent); }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0); } }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------------- Problems ---------------- */
.problems { padding: 90px 0; }
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card {
    text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 28px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; position: relative;
    box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    transition-delay: var(--delay, 0ms);
}
.problem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.problem-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 10px;
}
.problem-title { font-size: 17px; font-weight: 700; }
.problem-text { color: var(--text-soft); font-size: 14px; }
.problem-arrow {
    position: absolute; top: 26px; right: 26px; width: 32px; height: 32px; border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
    display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s;
}
.problem-card:hover .problem-arrow { background: var(--grad); color: #fff; }

.problems-footnote {
    text-align: center; margin: 40px auto 0; color: var(--text-soft); font-size: 14.5px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.problems-footnote a { color: var(--accent); font-weight: 600; }

/* ---------------- Statement band ---------------- */
.statement { padding: 20px 0 70px; }
.statement-card {
    background: var(--grad); border-radius: var(--radius-lg); padding: 56px 40px;
    text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.statement-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 120% at 15% 0%, rgba(255,255,255,0.16), transparent 60%);
}
.statement-title {
    position: relative; color: #fff; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.25;
    max-width: 780px; margin: 0 auto 14px; letter-spacing: -0.01em;
}
.grad-text-invert { color: rgba(255,255,255,0.72); }
.statement-text { position: relative; color: rgba(255,255,255,0.85); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ---------------- Showcase ---------------- */
.showcase { padding: 90px 0; background: color-mix(in srgb, var(--accent) 3%, var(--bg)); }
.showcase-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tab {
    padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
    color: var(--text-soft); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; }

.showcase-viewport { position: relative; }
.showcase-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 20px; scrollbar-width: none; }
.showcase-track::-webkit-scrollbar { display: none; }

.showcase-card {
    scroll-snap-align: start; flex: 0 0 min(760px, 100%); background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1fr 1fr;
    transition: opacity 0.3s ease;
}
.showcase-card.is-hidden { display: none; }

.showcase-media { position: relative; background: color-mix(in srgb, var(--accent) 6%, var(--card)); display: flex; align-items: center; justify-content: center; min-height: 260px; }
.showcase-media img { width: 100%; height: 100%; object-fit: cover; }

.preview-placeholder { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; width: 100%; }
.preview-window {
    width: 90%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px;
    box-shadow: var(--shadow-md);
}
.preview-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.preview-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.preview-bars { display: flex; flex-direction: column; gap: 8px; }
.pbar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0.35; }
.preview-slug { font-size: 13px; color: var(--text-soft); font-weight: 600; }

.badge-estado {
    position: absolute; top: 16px; left: 16px; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-activo { background: rgba(16, 185, 129, 0.14); color: #10B981; }
.badge-desarrollo { background: rgba(245, 158, 11, 0.16); color: #F59E0B; }

.showcase-body { padding: 32px; display: flex; flex-direction: column; }
.showcase-tag { font-size: 12.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.showcase-body h3 { font-size: 22px; margin-bottom: 10px; }
.showcase-desc { color: var(--text-soft); font-size: 14.5px; margin-bottom: 16px; }
.showcase-features { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.showcase-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.showcase-features svg { color: var(--accent); flex-shrink: 0; }

.showcase-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.stack-pill { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }

.showcase-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }

.showcase-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
    background: var(--card); border: 1px solid var(--border); color: var(--text); display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-md); z-index: 5; transition: transform 0.2s, border-color 0.2s;
}
.showcase-nav:hover { border-color: var(--accent); color: var(--accent); }
.showcase-nav.prev { left: -22px; }
.showcase-nav.next { right: -22px; }

.showcase-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.showcase-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; transition: background 0.2s, width 0.2s; }
.showcase-dots button.active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ---------------- Process ---------------- */
.process { padding: 90px 0; }
.process-track { display: flex; justify-content: space-between; position: relative; gap: 8px; }
.process-track::before {
    content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 1px;
    background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px); z-index: 0;
}
.process-step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; position: relative; z-index: 1; }
.process-icon {
    width: 52px; height: 52px; border-radius: 16px; background: var(--card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; color: var(--accent); box-shadow: var(--shadow-sm);
}
.process-num { font-weight: 800; font-size: 22px; color: var(--accent); }
.process-title { font-size: 14.5px; font-weight: 600; max-width: 130px; }

/* ---------------- Tech ---------------- */
.tech { padding: 90px 0; }
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tech-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 10px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tech-item:hover { transform: translateY(-4px) scale(1.03); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }

/* ---------------- Why / counters ---------------- */
.why { padding: 90px 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.why-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.why-card h3 { font-size: 22px; margin: 4px 0 20px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }

.contact-teaser { display: flex; flex-direction: column; justify-content: center; background: var(--grad); border: none; color: #fff; }
.contact-teaser h3 { color: #fff; }
.contact-teaser p { color: rgba(255,255,255,0.85); }
.robot-mini { width: 56px; height: 56px; margin-bottom: 16px; }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.counter-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px 16px; box-shadow: var(--shadow-sm); }
.counter-value { display: block; font-size: 34px; font-weight: 800; }
.counter-label { color: var(--text-soft); font-size: 13.5px; font-weight: 500; }

/* ---------------- Contact ---------------- */
.contact { padding: 0 0 100px; }
.contact-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 40px; box-shadow: var(--shadow-lg);
    display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 24px;
}
.contact-info { display: flex; gap: 20px; align-items: center; }
.contact-avatar {
    width: 76px; height: 76px; border-radius: 50%; background: var(--grad); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex-shrink: 0;
    box-shadow: var(--shadow-md);
}
.contact-info h3 { font-size: 22px; margin: 2px 0 6px; }
.contact-lead { color: var(--text-soft); font-size: 14.5px; margin-bottom: 12px; }
.contact-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-meta li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-soft); }
.contact-meta a { color: var(--text-soft); }
.contact-meta a:hover { color: var(--accent); }

.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; grid-column: 2; grid-row: 1; }
.contact-socials { display: flex; gap: 12px; grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--border); }
.contact-socials a {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: flex;
    align-items: center; justify-content: center; color: var(--text-soft); transition: all 0.2s;
}
.contact-socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------------- Footer ---------------- */
.site-footer { padding: 28px 0 40px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; color: var(--text-soft); font-size: 13px; }
.footer-quiet-link { color: var(--border); font-size: 12px; transition: color 0.2s; }
.footer-quiet-link:hover { color: var(--text-soft); }

/* ---------------- Panel (acceso directo) ---------------- */
.panel-body { padding-top: 40px; }
.panel-wrap { max-width: 900px; padding-bottom: 80px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.panel-back { color: var(--text-soft); font-weight: 600; font-size: 14px; }
.panel-sub { color: var(--text-soft); margin: 8px 0 32px; }

.panel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.panel-card {
    position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: flex-start;
    justify-content: flex-end; gap: 6px; padding: 20px; border-radius: var(--radius-md);
    background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.panel-card::before {
    content: ""; position: absolute; inset: 0; opacity: 0.08;
    background: radial-gradient(120% 100% at 100% 0%, var(--accent), transparent 60%);
    transition: opacity 0.25s ease;
}
.panel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.panel-card:hover::before { opacity: 0.18; }

.panel-status {
    position: relative; align-self: flex-start; font-size: 10.5px; font-weight: 700; padding: 4px 9px;
    border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: auto;
}
.panel-mark {
    position: relative; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; font-weight: 800; font-size: 18px; color: #fff; background: var(--accent);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 45%, transparent);
}
.panel-name { position: relative; font-weight: 700; font-size: 15px; line-height: 1.25; }
.panel-route { position: relative; color: var(--text-soft); font-size: 12px; }
.panel-open {
    position: absolute; top: 20px; right: 20px; width: 28px; height: 28px; border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
    display: flex; align-items: center; justify-content: center; opacity: 0; transform: translate(-4px, 4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.panel-card:hover .panel-open { opacity: 1; transform: translate(0, 0); }

@media (max-width: 640px) {
    .panel-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .header-actions .btn { display: none; }
    .nav-toggle { display: flex; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 40px; }
    .problems-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .counters { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
    .showcase-card { grid-template-columns: 1fr; }
    .contact-card { grid-template-columns: 1fr; }
    .contact-actions { grid-column: 1; grid-row: 2; }
}

@media (max-width: 640px) {
    .problems-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .counters { grid-template-columns: 1fr 1fr; }
    .check-list { grid-template-columns: 1fr; }
    .process-track { flex-direction: column; align-items: flex-start; gap: 24px; }
    .process-track::before { display: none; }
    .process-step { flex-direction: row; text-align: left; }
    .process-title { max-width: none; }
    .showcase-nav { display: none; }
    .contact-card { padding: 28px; }
    .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
