/* ============================================================
   PowerLance s.r.o. — company home page
   Sibling to /courtside-basketball/ ; shared visual language,
   own violet→cyan "Power Platform" identity.
   ============================================================ */

:root {
  /* Surfaces — deep indigo-black */
  --bg-0: #08080F;
  --bg-1: #0C0C16;
  --bg-2: #11111E;
  --bg-3: #171728;
  --bg-4: #1F1F36;

  /* Hairlines */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);

  /* Foreground */
  --fg-0: #F5F6FB;
  --fg-1: rgba(245, 246, 251, 0.70);
  --fg-2: rgba(245, 246, 251, 0.48);
  --fg-3: rgba(245, 246, 251, 0.30);

  /* Accents — Power Platform electric */
  --violet: #8B5CF6;
  --violet-deep: #6D38E0;
  --indigo: #6E7BF2;
  --cyan: #22D3EE;
  --violet-soft: rgba(139, 92, 246, 0.14);
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --on-accent: #0A0612;

  --grad: linear-gradient(120deg, var(--violet), var(--cyan));

  /* Type — shared with the app site */
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ui: "DM Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ui);
  background: var(--bg-0);
  color: var(--fg-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient gradient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 80% -10%, rgba(139, 92, 246, 0.20), transparent 60%),
    radial-gradient(820px 720px at 4% 4%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(1000px 900px at 50% 112%, rgba(110, 123, 242, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, black, transparent 80%);
  pointer-events: none;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--grad);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }

/* ===================== NAV ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 15, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 15, 0.88);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--fg-0);
}
.brand-text b i {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-text .sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--fg-1); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg-0); }
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-accent) !important;
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.34);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(34, 211, 238, 0.4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--fg-0);
  transition: transform 0.25s, opacity 0.25s;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--grad);
  color: var(--on-accent);
  box-shadow: 0 10px 32px rgba(139, 92, 246, 0.34);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(34, 211, 238, 0.42); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--fg-0);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* ===================== HERO ===================== */
.hero { position: relative; padding: 76px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--violet-soft);
  border: 1px solid rgba(139, 92, 246, 0.30);
  color: #C4B5FD;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(46px, 7vw, 84px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 19px;
  color: var(--fg-1);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 36px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.hero-meta .item { display: flex; flex-direction: column; }
.hero-meta .item b {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
}
.hero-meta .item span { font-size: 12.5px; color: var(--fg-2); letter-spacing: 0.04em; }

.hero-visual { position: relative; }

/* ===================== BLUEPRINT PANEL ===================== */
.blueprint {
  position: relative;
  background: linear-gradient(180deg, rgba(23, 23, 40, 0.85), rgba(12, 12, 22, 0.85));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 40px 90px rgba(0, 0, 0, 0.6),
    0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.bp-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.bp-dots { display: flex; gap: 6px; }
.bp-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.bp-dots i:first-child { background: rgba(139, 92, 246, 0.7); }
.bp-dots i:nth-child(2) { background: rgba(110, 123, 242, 0.7); }
.bp-dots i:nth-child(3) { background: rgba(34, 211, 238, 0.7); }
.bp-file { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); }
.bp-tag {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px;
  color: var(--cyan);
  padding: 2px 9px; border-radius: 999px;
  background: var(--cyan-soft); border: 1px solid rgba(34, 211, 238, 0.25);
}
.bp-body { padding: 22px 22px 26px; display: flex; flex-direction: column; }
.bp-layer {
  display: grid;
  grid-template-columns: 96px 22px 1fr;
  align-items: center;
  min-height: 56px;
}
.bp-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-2);
}
.bp-spine {
  position: relative;
  justify-self: center;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.bp-spine::before {
  content: "";
  position: absolute;
  left: 50%; top: 12px;
  width: 2px; height: 44px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--violet), rgba(34, 211, 238, 0.4));
}
.bp-spine.last::before { display: none; }
.bp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-chips b {
  font-weight: 600; font-size: 13px;
  padding: 6px 12px; border-radius: 9px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--fg-1);
}
.bp-chips b.c-v { border-color: rgba(139, 92, 246, 0.4); color: #C4B5FD; background: rgba(139, 92, 246, 0.10); }
.bp-chips b.c-c { border-color: rgba(34, 211, 238, 0.4); color: #99EEFB; background: rgba(34, 211, 238, 0.08); }

/* Floating chips */
.float-chip {
  position: absolute;
  z-index: 3;
  background: rgba(17, 17, 30, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 600;
}
.float-chip .ic {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 17px;
  background: rgba(255, 255, 255, 0.05);
}
.float-chip .ic.grad { background: var(--grad); color: var(--on-accent); }
.float-chip small { display: block; color: var(--fg-2); font-weight: 500; font-size: 11px; }
.float-chip.tl { top: -22px; left: -28px; animation: floaty 6s ease-in-out infinite 0.4s; }
.float-chip.br { bottom: -16px; right: -26px; animation: floaty 8s ease-in-out infinite 0.8s; }

/* ===================== STRIP ===================== */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding: 26px 0;
}
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.strip-item { display: flex; align-items: center; gap: 12px; color: var(--fg-1); font-weight: 600; font-size: 14px; }
.strip-item .ic {
  font-size: 18px;
  color: #C4B5FD;
}

/* ===================== SECTIONS ===================== */
section { padding: 92px 0; position: relative; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 16px 0 16px;
}
.section-head p { font-size: 17px; color: var(--fg-1); }

/* ===================== SERVICES GRID ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: linear-gradient(180deg, rgba(31, 31, 54, 0.45), rgba(17, 17, 30, 0.45));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.card:hover::before { opacity: 1; }
.card .fic {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--violet-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: grid; place-items: center;
  font-size: 22px;
  color: #C4B5FD;
  margin-bottom: 16px;
}
.card h3 { font-family: var(--display); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--fg-1); }

/* ===================== WORK FEATURE ===================== */
.work-feature {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 360px at 88% 0%, rgba(139, 92, 246, 0.14), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.work-text .tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px; display: block;
}
.work-text h3 {
  font-family: var(--display);
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 16px;
}
.work-text p { font-size: 16px; color: var(--fg-1); margin-bottom: 20px; }
.work-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.work-list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--fg-1); }
.work-list li .chk {
  flex: none;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--cyan-soft);
  color: var(--cyan);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  margin-top: 1px;
}
.work-visual { display: block; }

/* Tablet mockup (mirrors the app site frame) */
.tablet {
  position: relative;
  width: 100%;
  background: var(--bg-0);
  border-radius: 18px;
  padding: 12px;
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s, box-shadow 0.35s;
}
.work-visual:hover .tablet { transform: translateY(-6px); box-shadow: 0 50px 110px rgba(0, 0, 0, 0.6); }
.tablet::after {
  content: "";
  position: absolute;
  top: 50%; right: 5px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
}
.tablet .screen {
  width: 100%;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
.tablet .screen img { display: block; width: 100%; height: auto; }

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 800;
  line-height: 1.0;
  margin: 16px 0 18px;
}
.about-text p { font-size: 16.5px; color: var(--fg-1); margin-bottom: 16px; }
.about-text b { color: var(--fg-0); font-weight: 600; }
.about-actions { margin-top: 26px; }
.about-side { display: flex; flex-direction: column; gap: 14px; }
.value {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.value:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.03); transform: translateX(4px); }
.value .vic {
  flex: none;
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 18px;
  background: var(--violet-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #C4B5FD;
}
.value h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.value p { font-size: 14px; color: var(--fg-1); }

/* ===================== CTA ===================== */
.cta {
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(139, 92, 246, 0.20), transparent 70%),
    radial-gradient(500px 280px at 50% 100%, rgba(34, 211, 238, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 66px 32px;
}
.cta h2 { font-family: var(--display); font-size: clamp(36px, 6vw, 60px); font-weight: 800; line-height: 1; margin-bottom: 18px; }
.cta p { font-size: 18px; color: var(--fg-1); max-width: 540px; margin: 0 auto 30px; }

/* ===================== FOOTER ===================== */
footer { border-top: 1px solid var(--line); padding: 52px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 36px; }
.foot-brand { max-width: 320px; }
.foot-brand p { font-size: 13.5px; color: var(--fg-2); margin-top: 14px; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; color: var(--fg-1); margin-bottom: 9px; transition: color 0.2s; }
.foot-col a:hover { color: var(--cyan); }
.foot-bottom {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--fg-3); text-align: center;
}

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blueprint, .float-chip, .hero-badge .dot { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-feature { grid-template-columns: 1fr; gap: 36px; }
  .work-visual { order: -1; max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: rgba(8, 8, 15, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 8px; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { text-align: center; margin-top: 10px; border: 0; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 46px; }
  section { padding: 66px 0; }
  .hero-meta { gap: 20px; }
  .float-chip { display: none; }
  .work-feature { padding: 22px; }
  .foot-grid { flex-direction: column; }
}
