/* ============================================
   Bedigi.pt — Global Styles v3
   "Be digital with us"
   ============================================ */

/* --- Tokens --- */
:root {
  /* Primary: lighter sky blue → deep blue gradient */
  --sky: #38bdf8;
  --blue: #0ea5e9;
  --blue2: #0284c7;
  --blue3: #0369a1;
  --deep: #0c4a6e;
  --accent: #22d3ee;   /* cyan accent for highlights */
  --green: #22c55e;
  --amber: #f59e0b;
  --rose: #f43f5e;

  --bg: #030712;
  --bg2: #0a1628;
  --bg3: #111d32;
  --surface: #0f1d32;
  --border: #1e293b;
  --border2: #334155;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --text3: #475569;
  --radius: 14px;
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: var(--font); color: var(--text); }
input, select, textarea { font-family: var(--font); }

/* --- Layout --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
section { padding: 120px 0; position: relative; }

/* --- Background effects --- */
.grid-bg {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(56,189,248,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.scanline {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(56,189,248,0.008) 2px, rgba(56,189,248,0.008) 4px);
}
.orb {
  position: fixed; border-radius: 50%; filter: blur(100px); z-index: -1; pointer-events: none; opacity: 0.35;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(56,189,248,0.12), transparent 70%); top: -10%; right: -5%; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(34,211,238,0.08), transparent 70%); bottom: 20%; left: -10%; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(14,165,233,0.06), transparent 70%); top: 50%; right: 30%; }
.particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* --- Nav --- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0; transition: all 0.4s;
}
nav.scrolled {
  background: rgba(3,7,18,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-text { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.nav-logo-text .b { background: linear-gradient(135deg, var(--sky), var(--blue2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text2); transition: color 0.3s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--blue2)); border-radius: 1px;
}
.lang-toggle { display: flex; gap: 2px; background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.lang-btn { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px; color: var(--text3); transition: all 0.3s; }
.lang-btn.active { background: var(--sky); color: var(--bg); }
.nav-cta {
  padding: 10px 22px !important; border-radius: 10px !important;
  background: linear-gradient(135deg, var(--sky), var(--blue2)) !important;
  color: white !important; font-weight: 600 !important; font-size: 13px !important;
  transition: all 0.3s !important; box-shadow: 0 0 20px rgba(56,189,248,0.15);
}
.nav-cta:hover { box-shadow: 0 0 30px rgba(56,189,248,0.3); transform: translateY(-1px); }
.nav-mobile-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-mobile-btn svg { width: 22px; height: 22px; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sky), var(--blue2));
  color: white; font-weight: 700; font-size: 15px;
  transition: all 0.3s; border: none; cursor: pointer;
  box-shadow: 0 0 25px rgba(56,189,248,0.15);
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(56,189,248,0.3); transform: translateY(-2px); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 12px;
  border: 1px solid var(--border); color: var(--text2);
  font-weight: 600; font-size: 15px; transition: all 0.3s; cursor: pointer;
}
.btn-outline:hover { border-color: var(--sky); color: var(--text); background: rgba(56,189,248,0.04); }
.btn-outline svg { width: 18px; height: 18px; }

/* --- Section labels --- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--sky); margin-bottom: 18px;
  padding: 6px 16px; border-radius: 6px;
  background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.12);
}
.section-title {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text2); max-width: 620px; line-height: 1.7; }

/* --- Gradient text --- */
.gradient {
  background: linear-gradient(135deg, var(--sky), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* --- Glow divider --- */
.glow-divider { height: 0; overflow: hidden; margin: 0; padding: 0; line-height: 0; }

/* --- Animations --- */
[data-anim] { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
[data-anim].visible { opacity: 1; transform: translateY(0); }
[data-anim-delay="1"] { transition-delay: 0.1s; }
[data-anim-delay="2"] { transition-delay: 0.2s; }
[data-anim-delay="3"] { transition-delay: 0.3s; }
[data-anim-delay="4"] { transition-delay: 0.4s; }

/* --- Code / Terminal mockup --- */
.mockup-window {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mockup-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--bg3);
}
.mockup-dot { width: 11px; height: 11px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #22c55e; }
.mockup-bar-title {
  font-size: 11px; font-family: var(--mono); color: var(--text3);
  margin-left: auto; margin-right: auto;
}
.mockup-body { padding: 24px; font-family: var(--mono); font-size: 13px; line-height: 1.8; }

/* Terminal typing */
.terminal-line { display: flex; gap: 10px; margin-bottom: 4px; opacity: 0; transition: opacity 0.3s; }
.terminal-line.visible { opacity: 1; }
.terminal-prompt { color: var(--sky); white-space: nowrap; }
.terminal-cmd { color: var(--text); }
.terminal-output { color: var(--text2); padding-left: 20px; }
.terminal-success { color: var(--green); }
.terminal-info { color: var(--accent); }
.terminal-warn { color: var(--amber); }

/* Syntax colors */
.c-key { color: #c084fc; }
.c-fn { color: #60a5fa; }
.c-str { color: #34d399; }
.c-com { color: #475569; font-style: italic; }
.c-var { color: var(--sky); }
.c-num { color: #f59e0b; }
.c-op { color: #94a3b8; }
.c-tag { color: #f43f5e; }
.c-attr { color: #a78bfa; }
.c-bool { color: #fb923c; }

/* --- Service cards --- */
.service-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px 32px; transition: all 0.4s; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(34,211,238,0.05));
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 22px;
}
.service-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.service-tag {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 5px;
  background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.1); color: var(--sky);
}

/* --- Project cards --- */
.project-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 60px 0; border-bottom: 1px solid var(--border);
}
.project-block:last-child { border-bottom: none; }
.project-block.reverse { direction: rtl; }
.project-block.reverse > * { direction: ltr; }
.project-label {
  display: inline-flex; padding: 4px 12px; border-radius: 5px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px;
}
.label-saas { background: rgba(56,189,248,0.1); color: var(--sky); border: 1px solid rgba(56,189,248,0.15); }
.label-client { background: rgba(251,146,60,0.1); color: var(--amber); border: 1px solid rgba(251,146,60,0.15); }
.label-own { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.15); }
.project-info h3 { font-size: 28px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.project-info p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tech-badge {
  font-size: 11px; font-family: var(--mono); font-weight: 600;
  padding: 5px 12px; border-radius: 6px;
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
}
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--sky); transition: gap 0.3s;
}
.project-link:hover { gap: 12px; }
.project-link svg { width: 16px; height: 16px; }
.project-mockup { position: relative; }
.project-mockup .mockup-window { transition: transform 0.5s; }
.project-mockup:hover .mockup-window { transform: translateY(-6px); }

/* --- Ticker --- */
.ticker-section { overflow: hidden; padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ticker-track { display: flex; gap: 40px; animation: tickerScroll 35s linear infinite; width: max-content; }
.ticker-item {
  font-size: 14px; font-weight: 700; color: var(--text3); text-transform: uppercase;
  letter-spacing: 0.08em; white-space: nowrap; display: flex; align-items: center; gap: 12px;
}
.ticker-item::before { content: '◆'; color: var(--sky); font-size: 8px; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* --- Steps --- */
.step-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px 32px; text-align: center; position: relative;
}
.step-num {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sky), var(--blue2));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: white; margin: 0 auto 20px;
}
.step-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* ============================================
   UNIQUE SECTION BACKGROUNDS
   Services = light cream | Projects = blue+dots
   Testimonials = white | Impact = blue
   CTA = dark + full-width floating card
   ============================================ */

/* 1 — SERVICES: Warm light tones with subtle pattern */
.section-services {
  background: linear-gradient(180deg, #f8f9fc 0%, #f0f4f8 50%, #f8f9fc 100%);
  overflow: hidden;
  position: relative;
}
.section-services::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle 1px at center, rgba(14,165,233,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.8;
}
.section-services::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 50% at 15% 85%, rgba(56,189,248,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(139,92,246,0.04) 0%, transparent 60%);
}
.section-services .section-label { background: rgba(14,165,233,0.08); border-color: rgba(14,165,233,0.15); color: var(--blue2); }
.section-services .section-title { color: #0f172a; }
.section-services .section-title .gradient {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-services .section-sub { color: #64748b; }
.section-services .service-card {
  background: white; border-color: #e2e8f0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
}
.section-services .service-card:hover { border-color: #cbd5e1; box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.section-services .service-card::before {
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.section-services .service-card h3 { color: #0f172a; }
.section-services .service-card p { color: #64748b; }
.section-services .service-icon { background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(34,211,238,0.04)); border-color: #e2e8f0; }
.section-services .service-tag { background: rgba(14,165,233,0.06); border-color: rgba(14,165,233,0.12); color: var(--blue2); }
.section-services .btn-outline { border-color: #cbd5e1; color: #475569; }
.section-services .btn-outline:hover { border-color: var(--blue); color: #0f172a; background: rgba(14,165,233,0.04); }

/* 2 — PROJECTS: Deep blue with dot matrix */
.section-projects {
  background-color: #040c1a;
  background-image:
    radial-gradient(circle 1.2px at center, rgba(56,189,248,0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}
.section-projects::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 35% 80% at 0% 50%, rgba(251,146,60,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 35% 80% at 100% 50%, rgba(56,189,248,0.06) 0%, transparent 70%);
}
.section-projects::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.2), transparent);
}

/* 3 — TESTIMONIALS: Clean white */
.section-testimonials {
  background: #ffffff;
  overflow: hidden;
  position: relative;
}
.section-testimonials::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(56,189,248,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 70% 80%, rgba(139,92,246,0.03) 0%, transparent 60%);
}
.section-testimonials .section-label { background: rgba(14,165,233,0.08); border-color: rgba(14,165,233,0.15); color: var(--blue2); }
.section-testimonials .section-title { color: #0f172a; }
.section-testimonials .section-title .gradient {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-testimonials .section-sub { color: #64748b; }
.section-testimonials .testimonial-card {
  background: #f8fafc; border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.section-testimonials .testimonial-card:hover { border-color: #cbd5e1; box-shadow: 0 8px 32px rgba(0,0,0,0.07); }
.section-testimonials .testimonial-card::before {
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}
.section-testimonials .testimonial-text { color: #334155; }
.section-testimonials .testimonial-name { color: #0f172a; }
.section-testimonials .testimonial-role { color: #94a3b8; }
.section-testimonials .testimonial-quote-mark {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; opacity: 0.25;
}

/* 4 — IMPACT: Deep blue with aurora glow */
.section-impact {
  background: linear-gradient(180deg, #030712 0%, #050d1a 40%, #071325 60%, #050d1a 100%);
  overflow: hidden;
  position: relative;
}
.section-impact::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(56,189,248,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 20% 30%, rgba(34,211,238,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(139,92,246,0.03) 0%, transparent 60%);
}
.section-impact::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.25), transparent);
}

/* 5 — CTA: Full-width floating card */
.cta-section {
  text-align: center; padding: 120px 0;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(56,189,248,0.03) 0%, transparent 60%);
}
.cta-card {
  padding: 72px 48px;
  background: linear-gradient(145deg, rgba(10,22,40,0.95), rgba(15,29,50,0.98));
  border: 1px solid rgba(56,189,248,0.1);
  border-radius: 28px;
  box-shadow:
    0 30px 100px rgba(0,0,0,0.5),
    0 0 80px rgba(56,189,248,0.05),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative; overflow: hidden;
  backdrop-filter: blur(20px);
}
.cta-card::before {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.35), transparent);
}
.cta-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 28px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56,189,248,0.05) 0%, transparent 50%);
}

/* 6 — TICKER: Subtle strip */
.ticker-section {
  background: linear-gradient(180deg, rgba(56,189,248,0.02), rgba(56,189,248,0.04), rgba(56,189,248,0.02));
}
.cta-section h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; margin-bottom: 16px; letter-spacing: -0.03em; }
.cta-section p { font-size: 17px; color: var(--text2); margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) {
  .cta-card { padding: 48px 24px; border-radius: 20px; }
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border); padding: 40px 0;
  background: linear-gradient(180deg, var(--bg), rgba(10,22,40,0.5));
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 13px; color: var(--text3); }
.footer-tagline { font-size: 12px; color: var(--text3); margin-top: 4px; font-family: var(--mono); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text3); transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }

/* --- Floating badge --- */
.float-badge {
  position: absolute; padding: 10px 16px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  animation: floatBadge 4s ease-in-out infinite;
}
@keyframes floatBadge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* --- Visual demo blocks (service visuals) --- */
.visual-demo {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; position: relative;
}
.visual-demo-content { padding: 24px; }

/* --- Chart bars (reusable) --- */
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 100px; }
.chart-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--sky), var(--blue2));
  opacity: 0.7; transition: height 1s cubic-bezier(0.16,1,0.3,1), opacity 0.3s;
  min-width: 12px;
}
.chart-bar:hover { opacity: 1; }

/* --- Responsive --- */
@media (max-width: 1100px) {
  .container { padding: 0 28px; }
  .project-block { grid-template-columns: 1fr; gap: 30px; }
  .project-block.reverse { direction: ltr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(3,7,18,0.97); backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; gap: 28px; z-index: 200; }
  .nav-links.open { display: flex; }
  .nav-mobile-btn { display: flex; }
  section { padding: 80px 0; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  section { padding: 60px 0; }
}

/* --- Back to top button --- */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--bg2); border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--sky); background: rgba(56,189,248,0.06); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; color: var(--sky); }
