/* ====================================================================
   VRTANÉ STUDNY HADRAVA — enhancements.css  v6.0 OPTIMIZED
   Clean, performant, fully themeable (light/dark).
   No preloader, no custom cursor. Uses CSS custom properties so every
   surface changes with the theme attribute.
   ==================================================================== */

/* ── THEME-AWARE VARIABLES ────────────────────────────────────── */
:root {
  /* Brand */
  --neon-cyan: #60C8F0;
  --neon-blue: #0AC8FF;
  --neon-gold: #FFB700;
  --neon-purple: #9B6DFF;
  --neon-green: #30D68A;

  /* Surface (LIGHT default) */
  --surface-0: #ffffff;      /* page bg */
  --surface-1: #F4F7F9;      /* section alt */
  --surface-2: #EBF6FC;      /* card alt */
  --surface-3: #ffffff;      /* card */
  --surface-nav: #FFFFFFEE;  /* glassy nav */
  --surface-invert: #042A3F; /* footer */

  --txt-0: #0F1923;          /* strongest heading */
  --txt-1: #1C2B38;          /* body heading */
  --txt-2: #4B6070;          /* body */
  --txt-3: #6B7D8D;          /* muted */
  --txt-invert: #ffffff;

  --border-1: rgba(4,42,63,.08);
  --border-2: rgba(4,42,63,.14);
  --shadow-card: 0 6px 24px rgba(4,42,63,.10);
  --shadow-lg: 0 18px 48px rgba(4,42,63,.14);
  --shadow-xl: 0 24px 72px rgba(4,42,63,.18);

  --grad-hero: linear-gradient(135deg, rgba(10,200,255,.12), rgba(4,42,63,0) 50%, rgba(232,146,10,.10));
  --grad-gold: linear-gradient(135deg, #FFD26B 0%, #E8920A 50%, #B06B00 100%);
  --glow-blue: 0 0 40px rgba(96,200,240,.5);
  --glow-gold: 0 0 30px rgba(232,146,10,.5);

  --bezier-smooth: cubic-bezier(.25,.46,.45,.94);
  --bezier-elastic: cubic-bezier(.68,-0.55,.27,1.55);
  --bezier-snappy: cubic-bezier(.87,0,.13,1);
}

/* ── DARK THEME OVERRIDES ─────────────────────────────────────── */
:root[data-theme="dark"] {
  --surface-0: #0A1620;
  --surface-1: #0E1C28;
  --surface-2: #142232;
  --surface-3: #172A3D;
  --surface-nav: rgba(14,28,40,.92);
  --surface-invert: #05101A;

  --txt-0: #F6FAFD;
  --txt-1: #E4EBF0;
  --txt-2: #9AAAB8;
  --txt-3: #6B7D8D;

  --border-1: rgba(255,255,255,.08);
  --border-2: rgba(255,255,255,.14);
  --shadow-card: 0 6px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.55);
  --shadow-xl: 0 24px 72px rgba(0,0,0,.65);
  --grad-hero: linear-gradient(135deg, rgba(10,200,255,.18), rgba(4,42,63,0) 50%, rgba(232,146,10,.10));
}

/* Smooth transition for theme swap */
html, body, .section, .footer,
.tech-card, .ps-card, .pricing-card, .why-card, .review-inner, .faq-item, .cc, .about-body,
.timeline-card, .achievement, .price-calc-section, .drill-control-info, .drill-readout,
.form-wrapper, .form-group input, .form-group textarea, .hp-stat, .hero-panel, .hero-fb,
.floating-contact, .live-notif, .scroll-sec-dot, .nav-dropdown-menu, .chip,
.comparison-table, .comparison-table td, .comparison-table th,
.drill-sim-section, .timeline-section, .comparison-section, .drill-layer-info {
  transition: background-color .45s var(--bezier-smooth), color .45s var(--bezier-smooth), border-color .45s var(--bezier-smooth), box-shadow .45s var(--bezier-smooth);
}
/* Topbar and navbar keep their scroll-based positioning transitions + theme color transitions */
.topbar {
  transition: transform .3s var(--bezier-smooth), background-color .45s var(--bezier-smooth), color .45s var(--bezier-smooth), border-color .45s var(--bezier-smooth);
}
.navbar {
  transition: top .3s var(--bezier-smooth), background-color .45s var(--bezier-smooth), color .45s var(--bezier-smooth), border-color .45s var(--bezier-smooth), box-shadow .45s var(--bezier-smooth);
}

/* Flash pulse when toggling */
body.theme-transitioning::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(96,200,240,.22), transparent 60%);
  pointer-events: none;
  z-index: 999;
  animation: theme-flash .6s ease-out forwards;
}
@keyframes theme-flash { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }

/* ── ACCESSIBILITY ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .particle-canvas { display: none !important; }
}

/* ====================================================================
   DARK MODE — comprehensive color overrides
   Strategy 1: REMAP base palette variables from style.css so any rule
              using var(--white)/var(--gray-*) auto-flips.
   Strategy 2: Explicit overrides for elements that hard-code hex values.
   ==================================================================== */
body.theme-dark {
  /* Palette remap — every base rule that uses these vars follows along */
  --white: #172A3D;
  --gray-50: #0E1C28;
  --gray-100: #1C2E40;
  --gray-200: #2A4055;
  --gray-300: #4B6070;
  --gray-400: #9AAAB8;
  --gray-500: #C8D5DF;
  --gray-700: #E4EBF0;
  --gray-800: #F4F7F9;
  --gray-900: #F6FAFD;
  --blue-xlt: rgba(96,200,240,.08);
  --blue-50:  rgba(96,200,240,.10);
  --blue-100: rgba(96,200,240,.14);
  --blue-500: #60C8F0;
  --blue-600: #60C8F0;
  --blue-700: #7FD4F5;
  --blue-800: #9EE0F9;
  --blue-900: #F6FAFD;
  --gold-100: rgba(232,146,10,.12);
  --shadow-xs: 0 1px 3px rgba(0,0,0,.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.55);
  --shadow-xl: 0 24px 72px rgba(0,0,0,.65);

  background: var(--surface-0);
  color: var(--txt-1);
}

/* Section bgs */
body.theme-dark .hero,
body.theme-dark .about-section,
body.theme-dark .tech-section,
body.theme-dark .process-section,
body.theme-dark .pricing-section,
body.theme-dark .gallery-section,
body.theme-dark .why-section,
body.theme-dark .reviews-section,
body.theme-dark .faq-section,
body.theme-dark .contact-section,
body.theme-dark .form-section,
body.theme-dark .drill-sim-section,
body.theme-dark .timeline-section,
body.theme-dark .comparison-section {
  background: var(--surface-0) !important;
  color: var(--txt-1);
}

/* Alt striped sections */
body.theme-dark .about-section,
body.theme-dark .process-section,
body.theme-dark .gallery-section,
body.theme-dark .faq-section,
body.theme-dark .form-section {
  background: var(--surface-1) !important;
}

/* Headings / body text */
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3, body.theme-dark h4, body.theme-dark h5 {
  color: var(--txt-0);
}
body.theme-dark p, body.theme-dark li, body.theme-dark td, body.theme-dark th {
  color: var(--txt-2);
}
body.theme-dark .section-title { color: var(--txt-0); }
body.theme-dark .section-title em,
body.theme-dark .hero h1 em {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}
body.theme-dark .section-sub { color: var(--txt-2); }
body.theme-dark .chip {
  background: rgba(96,200,240,.14);
  color: var(--neon-cyan);
  border-color: rgba(96,200,240,.25);
}

/* Cards */
body.theme-dark .tech-card,
body.theme-dark .ps-card,
body.theme-dark .pricing-card,
body.theme-dark .why-card,
body.theme-dark .review-inner,
body.theme-dark .faq-item,
body.theme-dark .cc,
body.theme-dark .about-body,
body.theme-dark .timeline-card,
body.theme-dark .achievement,
body.theme-dark .drill-control-info,
body.theme-dark .drill-readout,
body.theme-dark .price-calc-section,
body.theme-dark .form-wrapper,
body.theme-dark .hp-stat,
body.theme-dark .hero-panel {
  background: var(--surface-2) !important;
  border-color: var(--border-1) !important;
  color: var(--txt-1);
  box-shadow: var(--shadow-card);
}
body.theme-dark .tech-card h3,
body.theme-dark .ps-card h3,
body.theme-dark .pricing-card h3,
body.theme-dark .why-card h3,
body.theme-dark .timeline-card h3,
body.theme-dark .drill-control-info h3,
body.theme-dark .pc-head h3,
body.theme-dark .faq-q,
body.theme-dark .cc h4,
body.theme-dark .feat-t,
body.theme-dark .about-body h3 { color: var(--txt-0) !important; }

body.theme-dark .tech-card p,
body.theme-dark .ps-card p,
body.theme-dark .why-card p,
body.theme-dark .timeline-card p,
body.theme-dark .faq-a,
body.theme-dark .cc p,
body.theme-dark .about-body p,
body.theme-dark .feat-d { color: var(--txt-2) !important; }

/* Navbar / topbar / footer */
body.theme-dark .topbar { background: #04141F !important; color: var(--txt-2); }
body.theme-dark .topbar a { color: var(--txt-1) !important; }
body.theme-dark .navbar { background: rgba(6, 42, 66, 0.97) !important; border-bottom: 1px solid rgba(96,200,240,.1); backdrop-filter: blur(14px); }
body.theme-dark .nav-links a:not(.nav-cta) { color: var(--txt-1); }
body.theme-dark .nav-links a:not(.nav-cta):hover { color: var(--neon-cyan); }
/* nav-cta keeps gold style in all states (hover, active, visited) */
.nav-cta, .nav-cta:visited, .nav-cta:active, .nav-cta.active {
  color: #fff !important;
  background: var(--gold-400, #E8920A) !important;
}
.nav-cta:hover, .nav-cta:focus-visible {
  color: #fff !important;
  background: var(--gold-500, #C47C0A) !important;
}
body.theme-dark .nav-cta, body.theme-dark .nav-cta:visited, body.theme-dark .nav-cta:active, body.theme-dark .nav-cta.active { color: #fff !important; background: var(--gold-400, #E8920A) !important; }
body.theme-dark .nav-cta:hover { color: #fff !important; background: var(--gold-500, #C47C0A) !important; }
body.theme-dark .nav-dropdown-btn { color: var(--txt-1); }
body.theme-dark .nav-dropdown-menu { background: var(--surface-2) !important; border: 1px solid var(--border-1); box-shadow: var(--shadow-xl); }
body.theme-dark .nav-dropdown-menu a { color: var(--txt-1) !important; }
body.theme-dark .nav-dropdown-menu a:hover { background: rgba(96,200,240,.08); color: var(--neon-cyan) !important; }
body.theme-dark .nd-group-title { color: var(--neon-cyan); }
body.theme-dark .logo-name { color: var(--txt-0); }
body.theme-dark .logo-tag { color: var(--txt-2); }
body.theme-dark .footer { background: var(--surface-invert); color: var(--txt-1); }

/* Hero */
body.theme-dark .hero { background: radial-gradient(ellipse at top left, rgba(10,92,132,.3) 0%, var(--surface-0) 60%) !important; }
body.theme-dark .hero h1 { color: var(--txt-0); }
body.theme-dark .hero-desc { color: var(--txt-2); }
body.theme-dark .hero-badge { background: rgba(96,200,240,.1); color: var(--neon-cyan); border-color: rgba(96,200,240,.22); }
body.theme-dark .hero-trust { color: var(--txt-2); }
body.theme-dark .hero-trust svg { stroke: var(--neon-green); }
body.theme-dark .hero-trust-sep { background: var(--border-1); }
body.theme-dark .hero-grid-bg { opacity: .35; }
body.theme-dark .hero-fb {
  background: rgba(20,34,50,.9) !important;
  color: var(--txt-1) !important;
  border-color: var(--border-1) !important;
}

/* Ticker */
body.theme-dark .ticker-band { background: linear-gradient(90deg, #0A5C84, #0C6E9C) !important; }

/* Buttons — outline variant */
body.theme-dark .btn-outline-dark { color: var(--txt-0); border-color: var(--border-2); background: var(--surface-2); }
body.theme-dark .btn-outline-dark:hover { background: var(--surface-3); border-color: var(--neon-cyan); color: var(--neon-cyan); }

/* Form inputs */
body.theme-dark .form-group input,
body.theme-dark .form-group textarea,
body.theme-dark .form-group select {
  background: var(--surface-3) !important;
  border-color: var(--border-2) !important;
  color: var(--txt-0) !important;
}
body.theme-dark .form-group input::placeholder,
body.theme-dark .form-group textarea::placeholder { color: var(--txt-3); }
body.theme-dark .form-group label { color: var(--txt-1); }
body.theme-dark .form-group input:focus,
body.theme-dark .form-group textarea:focus { border-color: var(--neon-cyan) !important; box-shadow: 0 0 0 3px rgba(96,200,240,.2) !important; }
body.theme-dark .fso label { background: var(--surface-3); border-color: var(--border-2); color: var(--txt-1); }
body.theme-dark .fso input:checked + label { background: var(--neon-cyan); color: #042A3F; border-color: var(--neon-cyan); }
body.theme-dark .fp-step { background: var(--surface-3); color: var(--txt-2); border-color: var(--border-1); }
body.theme-dark .fp-step.active { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue)); color: #042A3F; }

/* FAQ */
body.theme-dark .faq-q:hover { background: rgba(96,200,240,.06); }
body.theme-dark .faq-q svg { stroke: var(--neon-cyan); }

/* Reviews */
body.theme-dark .review-dot { background: var(--border-2); }
body.theme-dark .review-dot.active { background: var(--neon-cyan); }
body.theme-dark .review-arrow { background: var(--surface-2); color: var(--txt-1); border-color: var(--border-1); }
body.theme-dark .review-stars { color: #FFD26B; }

/* Gallery */
body.theme-dark .gi { background: var(--surface-2); border-color: var(--border-1); }

/* Pricing — keep the highlighted card distinctive */
body.theme-dark .pricing-card.is-highlight {
  background: linear-gradient(160deg, #0A5C84, #042A3F) !important;
  color: #fff !important;
  border-color: rgba(96,200,240,.5) !important;
}
body.theme-dark .pricing-card.is-highlight h3,
body.theme-dark .pricing-card.is-highlight p,
body.theme-dark .pricing-card.is-highlight li { color: #fff !important; }

/* Drill simulator — dark specifics */
body.theme-dark .drill-visual { background: linear-gradient(to bottom, #1A2E42 0%, #152637 30%, #0E1C28 100%) !important; }
body.theme-dark .drill-log { background: #060E17 !important; color: #BADAE6 !important; border-color: var(--border-1); }
body.theme-dark .drill-layer-info { background: var(--surface-3) !important; border-color: var(--border-1) !important; }
body.theme-dark .drill-layer-info-name { color: var(--txt-0) !important; }
body.theme-dark .drill-layer-info-desc { color: var(--txt-2) !important; }
body.theme-dark .drill-readout { background: var(--surface-3) !important; }
body.theme-dark .drill-readout-label { color: var(--txt-3) !important; }
body.theme-dark .drill-readout-val { color: var(--neon-cyan) !important; }
body.theme-dark .drill-preset { background: var(--surface-3); color: var(--txt-1); border-color: var(--border-2); }
body.theme-dark .drill-preset.active { background: var(--neon-cyan); color: #042A3F; border-color: var(--neon-cyan); }

/* Comparison table */
body.theme-dark .comparison-table { background: var(--surface-2); }
body.theme-dark .comparison-table th { background: var(--surface-3); color: var(--txt-0); border-color: var(--border-1); }
body.theme-dark .comparison-table td { color: var(--txt-1); border-color: var(--border-1); }
body.theme-dark .comparison-table .comparison-highlight { background: rgba(96,200,240,.08) !important; color: var(--txt-0) !important; }
body.theme-dark .comparison-table .cell-no { color: #FF6B6B; }
body.theme-dark .comparison-table .cell-yes { color: var(--neon-green); }

/* Timeline */
body.theme-dark .timeline::before { background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--border-2) 100%); }
body.theme-dark .timeline-node { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue)); color: #042A3F; }

/* Price calculator */
body.theme-dark .price-calc-section {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(96,200,240,.08) 0%, transparent 55%),
    radial-gradient(100% 140% at 100% 100%, rgba(155,109,255,.06) 0%, transparent 55%),
    linear-gradient(160deg, #081624 0%, #040D16 100%) !important;
  border: 1px solid rgba(96,200,240,.14) !important;
  color: #E6F1F8 !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.03) !important;
}
body.theme-dark .pc-result {
  background: rgba(6,17,27,.6) !important;
  border: 1px solid rgba(96,200,240,.12) !important;
}
body.theme-dark .price-calc-section h3 { color: #fff !important; }
body.theme-dark .price-calc-section p { color: rgba(255,255,255,.75) !important; }
body.theme-dark .pc-row-val { color: var(--neon-cyan) !important; }
body.theme-dark .pc-type-opt { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.12); }
body.theme-dark .pc-type-opt.active { background: var(--gold-400, #E8920A); color: #fff; border-color: var(--gold-400, #E8920A); }
body.theme-dark .pc-result-num { color: #fff; }
body.theme-dark .pc-result-label { color: rgba(255,255,255,.7); }
body.theme-dark .pc-result-note { color: rgba(255,255,255,.7); }

/* Floating contact / live notif */
body.theme-dark .floating-contact { background: var(--surface-2) !important; color: var(--txt-0); border-color: var(--border-1); }
body.theme-dark .live-notif { background: var(--surface-2) !important; color: var(--txt-1); border-color: var(--border-1); }
body.theme-dark .toast { background: #1C2B38 !important; color: #fff; }

/* Scroll dots */
body.theme-dark .scroll-sec-dot { background: rgba(255,255,255,.2); }
body.theme-dark .scroll-sec-dot.active { background: var(--neon-cyan); box-shadow: 0 0 12px var(--neon-cyan); }
body.theme-dark .scroll-sec-dot::after { background: var(--surface-2); color: var(--txt-1); }

/* Fab + back to top */
body.theme-dark .fab-btn { background: var(--neon-cyan); color: #042A3F; }
/* back-to-top dark mode handled in POLISH v6.1 block below */

/* Cookie banner */
body.theme-dark .cookie-card { background: var(--surface-2) !important; border-color: var(--border-1) !important; color: var(--txt-1); }
body.theme-dark .cookie-card * { color: var(--txt-1); }
body.theme-dark .cookie-btn-decline { background: var(--surface-3) !important; color: var(--txt-1) !important; }

/* GDPR modal */
body.theme-dark .gdpr-modal { background: var(--surface-2); color: var(--txt-1); }
body.theme-dark .gdpr-modal * { color: var(--txt-1); }

/* Map — keep original look in both themes (satellite photo should not invert) */
body.theme-dark .leaflet-container { filter: none; }
body.theme-dark .leaflet-tile { filter: none !important; }

/* Images */
body.theme-dark .gi img { filter: brightness(.9); }

/* Contact items */
body.theme-dark .cc-ico { background: rgba(96,200,240,.12); color: var(--neon-cyan); }
body.theme-dark .cc strong { color: var(--txt-0); }

/* Ticker / chip */
body.theme-dark .ticker-item svg[stroke="#60C8F0"] { stroke: var(--neon-cyan); }

/* ====================================================================
   PARTICLE CANVAS
   ==================================================================== */
.particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
}

/* ====================================================================
   HERO FLOATING BADGES
   ==================================================================== */
.hero-float-badges {
  position: absolute;
  right: 24px;
  top: 30%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
  pointer-events: none;
}
.hero-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(4,42,63,.1);
  border-radius: 9999px;
  font-size: .78rem;
  font-weight: 600;
  color: #042A3F;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  animation: hero-fb-in .8s var(--bezier-elastic) backwards;
}
.hero-fb:nth-child(1) { animation-delay: .3s; }
.hero-fb:nth-child(2) { animation-delay: .5s; }
.hero-fb svg { width: 14px; height: 14px; color: var(--neon-green); }
@keyframes hero-fb-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1100px) { .hero-float-badges { display: none; } }

/* ====================================================================
   SCROLL SECTION DOTS (side)
   ==================================================================== */
.scroll-sections {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 400;
}
.scroll-sec-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(4,42,63,.25);
  transition: all .3s;
  position: relative;
  cursor: pointer;
}
.scroll-sec-dot:hover, .scroll-sec-dot.active {
  background: var(--neon-cyan);
  transform: scale(1.4);
  box-shadow: 0 0 14px var(--neon-cyan);
}
.scroll-sec-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #042A3F;
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
}
.scroll-sec-dot:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 900px) { .scroll-sections { display: none; } }

/* ====================================================================
   REVEAL ANIMATIONS
   ==================================================================== */
.reveal, .reveal-l, .reveal-r, .reveal-scale {
  opacity: 0;
  transition: opacity .8s var(--bezier-smooth), transform .8s var(--bezier-smooth);
}
.reveal { transform: translateY(30px); }
.reveal-l { transform: translateX(-40px); }
.reveal-r { transform: translateX(40px); }
.reveal-scale { transform: scale(.9); }
.reveal.up, .reveal-l.up, .reveal-r.up, .reveal-scale.up {
  opacity: 1;
  transform: none;
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* Stagger child */
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.stagger.up > *, .stagger > *.up { opacity: 1; transform: none; }
.stagger.up > *:nth-child(1) { transition-delay: .05s; }
.stagger.up > *:nth-child(2) { transition-delay: .10s; }
.stagger.up > *:nth-child(3) { transition-delay: .15s; }
.stagger.up > *:nth-child(4) { transition-delay: .20s; }
.stagger.up > *:nth-child(5) { transition-delay: .25s; }
.stagger.up > *:nth-child(6) { transition-delay: .30s; }

/* ====================================================================
   PRICE CALCULATOR
   ==================================================================== */
.price-calc-section {
  margin-top: 60px;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(160deg, #0A5C84 0%, #042A3F 100%);
  color: #fff;
  box-shadow: 0 20px 60px rgba(10,92,132,.35);
  position: relative;
  overflow: hidden;
}
.price-calc-section::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(96,200,240,.22), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.pc-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 32px; position: relative; }
.pc-head-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  border-radius: 14px;
  display: grid; place-items: center;
  color: #042A3F;
  flex-shrink: 0;
}
.pc-head-icon svg { width: 26px; height: 26px; }
.pc-head h3 { margin: 0; font-size: 1.5rem; font-family: 'Lora', serif; }
.pc-head p { margin: 4px 0 0; opacity: .8; font-size: .9rem; }
.pc-controls { display: grid; gap: 24px; position: relative; }
.pc-row-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px; font-size: .88rem; font-weight: 600; opacity: .9;
}
.pc-row-val { font-size: 1.15rem; color: var(--neon-cyan); font-weight: 700; font-family: 'Outfit'; }
.pc-unit { font-size: .75em; opacity: .7; margin-left: 3px; font-weight: 500; }
.pc-slider {
  width: 100%; height: 8px; border-radius: 9999px;
  background: linear-gradient(90deg, #1585BB 40%, #E4EBF0 40%);
  outline: none;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.pc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: #fff;
  border: 3px solid var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(96,200,240,.5);
  transition: transform .2s;
}
.pc-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  background: #fff;
  border: 3px solid var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(96,200,240,.5);
}
.pc-slider:hover::-webkit-slider-thumb { transform: scale(1.15); }
.pc-type-select { display: flex; gap: 8px; flex-wrap: wrap; }
.pc-type-opt {
  flex: 1; min-width: 120px;
  padding: 12px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-weight: 600; font-size: .88rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all .25s;
  position: relative; overflow: hidden;
}
.pc-type-opt:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.pc-type-opt.active {
  background: linear-gradient(135deg, #E8920A, #B06B00);
  border-color: #E8920A;
  box-shadow: 0 6px 18px rgba(232,146,10,.4);
}
.pc-result {
  margin-top: 28px; padding: 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.pc-result-label { font-size: .8rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.pc-result-num { font-size: 2.6rem; font-weight: 800; font-family: 'Outfit'; line-height: 1; margin-top: 4px; color: var(--neon-cyan); }
.pc-result-num small { font-size: 1rem; color: #fff; opacity: .7; font-weight: 500; }
.pc-result-note { font-size: .78rem; opacity: .75; max-width: 300px; line-height: 1.5; }

@media (max-width: 768px) { .pc-result { flex-direction: column; align-items: flex-start; } .pc-result-note { max-width: 100%; } }

/* ====================================================================
   DRILL SIMULATOR
   ==================================================================== */
.drill-sim-section { padding: 80px 0; background: var(--surface-1); user-select: none; -webkit-user-select: none; }
.drill-sim-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  margin-top: 32px;
}
@media (max-width: 1000px) { .drill-sim-wrap { grid-template-columns: 1fr; } }

.drill-visual {
  position: relative;
  height: 560px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(to bottom,
    #7FC7E8 0%,    /* sky */
    #B4DBE8 18%,   /* horizon */
    #E5D4A8 18.1%, /* start of ground */
    #B59968 100%);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-1);
}
.drill-sky { position: absolute; inset: 0 0 82% 0; overflow: hidden; }
.drill-sun {
  position: absolute; right: 10%; top: 18%;
  width: 60px; height: 60px;
  background: radial-gradient(circle, #FFD26B, #E8920A);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255,210,107,.6);
  animation: sun-pulse 4s ease-in-out infinite;
}
@keyframes sun-pulse { 50% { box-shadow: 0 0 60px rgba(255,210,107,.8); } }
.drill-cloud {
  position: absolute; width: 80px; height: 18px;
  background: rgba(255,255,255,.7);
  border-radius: 9999px;
  animation: cloud-drift 30s linear infinite;
  animation-delay: calc(var(--t) * -1s);
}
.drill-cloud::before, .drill-cloud::after {
  content: ''; position: absolute;
  background: rgba(255,255,255,.7);
  border-radius: 50%;
}
.drill-cloud::before { width: 26px; height: 26px; top: -12px; left: 10px; }
.drill-cloud::after { width: 20px; height: 20px; top: -8px; right: 12px; }
@keyframes cloud-drift {
  from { left: -100px; }
  to { left: 120%; }
}
.drill-rig {
  position: absolute;
  left: 30%; bottom: 82%;
  width: 60px; height: 140px;
  transform: translateY(50%);
  z-index: 2;
}
.drill-rig-tower {
  position: absolute; left: 50%; bottom: 20px;
  width: 40px; height: 120px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent 48%, #444 48%, #444 52%, transparent 52%),
    linear-gradient(0deg, transparent 48%, #444 48%, #444 52%, transparent 52%),
    repeating-linear-gradient(45deg, #666 0 4px, #888 4px 8px);
  background-size: 100% 100%, 100% 20px, 100% 100%;
  border-radius: 2px;
}
.drill-rig-pulley {
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: #FFB700;
  border-radius: 50%;
  border: 2px solid #333;
}
.drill-rig-base {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 74px; height: 22px;
  background: linear-gradient(180deg, #E8920A, #B06B00);
  border-radius: 4px;
  border-top: 2px solid #FFD26B;
}
.drill-ground {
  position: absolute;
  left: 0; right: 0; top: 18%; bottom: 0;
  overflow: hidden;
}
.drill-layers-stack { position: absolute; inset: 0; }
.drill-layer {
  position: absolute;
  left: 0; right: 0;
  top: var(--from);
  height: calc(var(--to) - var(--from));
  background: var(--col);
  opacity: .85;
  border-top: 1px solid rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 14px;
}
.drill-layer-label {
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
  letter-spacing: .02em;
}
.drill-column {
  position: absolute;
  left: 30%; top: 0;
  width: 12px; height: 0;
  transform: translateX(-50%);
  z-index: 3;
  transition: height .25s linear;
}
.drill-rod {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 12px;
  background: repeating-linear-gradient(180deg, #888 0 4px, #AAA 4px 8px);
  border-left: 1px solid #555;
  border-right: 1px solid #555;
}
.drill-bit {
  position: absolute; left: 50%; bottom: 0;
  width: 22px; height: 14px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FFD26B, #E8920A 40%, #8B4513 100%);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.4));
}
.drill-visual.drilling .drill-rig-tower { animation: rig-shake .08s linear infinite; }
.drill-visual.drilling .drill-rig-pulley { animation: pulley-spin .5s linear infinite; }
.drill-visual.drilling .drill-bit { animation: bit-spin .15s linear infinite; }
@keyframes rig-shake { 50% { transform: translateX(calc(-50% + 1px)); } }
@keyframes pulley-spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes bit-spin { 50% { transform: translateX(-50%) scaleX(.85); } }

.drill-ruler { position: absolute; left: 4px; top: 0; bottom: 0; width: 32px; z-index: 4; pointer-events: none; }
.drill-ruler span {
  position: absolute;
  left: 0; top: var(--p);
  width: 16px; height: 1px;
  background: rgba(255,255,255,.5);
}
.drill-ruler span::after {
  content: attr(data-d) ' m';
  position: absolute;
  left: 20px; top: -7px;
  font-size: .62rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  white-space: nowrap;
}
.drill-current-layer-indicator {
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 12px rgba(255,255,255,.6);
  transition: top .25s linear;
}
.drill-visual.water-found { box-shadow: var(--shadow-lg), inset 0 0 80px rgba(96,200,240,.4); }

/* Right-side controls */
.drill-controls { display: flex; flex-direction: column; gap: 18px; }
.drill-control-info { background: var(--surface-3); padding: 22px; border-radius: 14px; border: 1px solid var(--border-1); }
.drill-control-info h3 { margin: 0 0 8px; font-size: 1.25rem; color: var(--txt-0); }
.drill-control-info p { margin: 0; color: var(--txt-2); font-size: .9rem; line-height: 1.6; }

.drill-readouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 1200px) { .drill-readouts { grid-template-columns: repeat(2, 1fr); } }
.drill-readout {
  background: var(--surface-3);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-1);
  text-align: center;
}
.drill-readout-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--txt-3); font-weight: 700; }
.drill-readout-val { font-size: 1.6rem; font-weight: 800; color: var(--neon-blue); font-family: 'Outfit'; margin-top: 4px; }
.drill-readout-val small { font-size: .7rem; color: var(--txt-3); font-weight: 500; margin-left: 2px; }

/* Layer info card */
.drill-layer-info {
  background: linear-gradient(135deg, #EBF6FC 0%, #D6EEF8 100%);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(96,200,240,.3);
}
.drill-layer-info-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.drill-layer-swatch {
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 2px solid rgba(0,0,0,.15);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: background .3s;
}
.drill-layer-info-name { font-weight: 700; font-size: 1.05rem; color: var(--txt-0); }
.drill-layer-info-range { font-size: .78rem; color: var(--txt-3); font-weight: 600; }
.drill-layer-info-desc { margin: 0; font-size: .85rem; line-height: 1.55; color: var(--txt-2); }
.drill-layer-info.flash { animation: info-flash .6s; }
@keyframes info-flash {
  0% { box-shadow: 0 0 0 0 rgba(96,200,240,.5); transform: scale(1); }
  50% { box-shadow: 0 0 0 10px rgba(96,200,240,0); transform: scale(1.01); }
  100% { box-shadow: 0 0 0 0 rgba(96,200,240,0); transform: scale(1); }
}
body.theme-dark .drill-layer-info { background: linear-gradient(135deg, #142232 0%, #0E1C28 100%) !important; border-color: rgba(96,200,240,.25) !important; }

/* Speed slider block */
.drill-speed-wrap { background: var(--surface-3); padding: 16px; border-radius: 14px; border: 1px solid var(--border-1); }
body.theme-dark .drill-speed-wrap { background: var(--surface-3) !important; }
.drill-speed-label { display: flex; justify-content: space-between; align-items: center; font-size: .86rem; font-weight: 600; color: var(--txt-1); margin-bottom: 10px; }
.drill-speed-val { font-size: 1.1rem; color: var(--neon-blue); }
.drill-speed-val strong { font-family: 'Outfit'; font-weight: 800; }
.drill-speed-slider {
  width: 100%; height: 6px; border-radius: 9999px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-gold));
  outline: none;
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.drill-speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: #fff; border: 3px solid var(--neon-blue);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(10,200,255,.5);
}
.drill-speed-slider::-moz-range-thumb { width: 18px; height: 18px; background: #fff; border: 3px solid var(--neon-blue); border-radius: 50%; }
.drill-speed-presets { display: flex; gap: 6px; margin-top: 12px; }
.drill-preset {
  flex: 1;
  padding: 6px 0;
  background: var(--surface-1);
  border: 1px solid var(--border-2);
  color: var(--txt-1);
  font-weight: 700;
  font-size: .82rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  position: relative; overflow: hidden;
}
.drill-preset:hover { background: var(--surface-2); border-color: var(--neon-cyan); color: var(--neon-blue); }
.drill-preset.active {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #042A3F;
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 10px rgba(96,200,240,.4);
}

/* Drill buttons */
.drill-buttons { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.drill-btn {
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  transition: all .25s;
  position: relative; overflow: hidden;
}
.drill-btn svg { width: 18px; height: 18px; }
.drill-btn-start {
  background: linear-gradient(135deg, #E8920A, #B06B00);
  color: #fff;
  box-shadow: 0 6px 18px rgba(232,146,10,.4);
}
.drill-btn-start:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(232,146,10,.5); }
.drill-btn-stop {
  background: var(--surface-3);
  color: var(--txt-1);
  border: 1px solid var(--border-2);
}
.drill-btn-stop:hover { background: var(--surface-2); }

/* Drill log */
.drill-log {
  background: #0E1C28;
  color: #BADAE6;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: .78rem;
  padding: 14px;
  border-radius: 12px;
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid var(--border-1);
}
.drill-log-line { padding: 3px 0; line-height: 1.4; }
.drill-log-line.ok { color: var(--neon-green); font-weight: 600; }

/* ====================================================================
   ACHIEVEMENTS
   ==================================================================== */
.achievements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}
@media (max-width: 900px) { .achievements { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .achievements { gap: 14px; } }

.achievement {
  background: linear-gradient(160deg, var(--surface-3) 0%, var(--surface-2) 100%);
  padding: 32px 20px 28px;
  border-radius: 20px;
  border: 1px solid var(--border-1);
  text-align: center;
  box-shadow: 0 2px 14px rgba(10,92,132,.06), 0 1px 3px rgba(10,92,132,.04);
  transition: transform .4s var(--bezier-smooth), box-shadow .4s var(--bezier-smooth), border-color .4s var(--bezier-smooth);
  position: relative; overflow: hidden;
  transform: translateY(24px);
}
/* Stagger slide-in once parent container reveals */
.achievements.up .achievement {
  transform: translateY(0);
  transition: transform .65s var(--bezier-smooth), box-shadow .4s var(--bezier-smooth), border-color .4s var(--bezier-smooth);
}
.achievements.up .achievement:nth-child(1) { transition-delay: 0ms; }
.achievements.up .achievement:nth-child(2) { transition-delay: 90ms; }
.achievements.up .achievement:nth-child(3) { transition-delay: 180ms; }
.achievements.up .achievement:nth-child(4) { transition-delay: 270ms; }

/* Radial glow overlay on hover */
.achievement::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(96,200,240,.2) 0%, transparent 60%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.achievement:hover::before { opacity: 1; }
.achievement:hover {
  transform: translateY(-7px) scale(1.02);
  box-shadow: 0 14px 40px rgba(10,92,132,.18), 0 0 0 1px rgba(96,200,240,.5);
  border-color: var(--neon-cyan);
}

.ach-icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(96,200,240,.18), rgba(14,106,150,.22));
  border: 1.5px solid rgba(96,200,240,.28);
  display: grid; place-items: center;
  color: var(--neon-cyan, #60C8F0);
  transition: transform .35s var(--bezier-smooth), box-shadow .35s var(--bezier-smooth);
}
.achievement:hover .ach-icon {
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 6px 22px rgba(96,200,240,.4);
}
.ach-icon svg { width: 26px; height: 26px; }

/* Pop-in animation for icons when section enters view */
@keyframes ach-icon-pop {
  0%   { transform: scale(.5) rotate(10deg); opacity: 0; }
  65%  { transform: scale(1.18) rotate(-3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.achievements.up .achievement .ach-icon {
  animation: ach-icon-pop .5s cubic-bezier(0.34,1.56,0.64,1) both;
}
.achievements.up .achievement:nth-child(1) .ach-icon { animation-delay: 60ms; }
.achievements.up .achievement:nth-child(2) .ach-icon { animation-delay: 150ms; }
.achievements.up .achievement:nth-child(3) .ach-icon { animation-delay: 240ms; }
.achievements.up .achievement:nth-child(4) .ach-icon { animation-delay: 330ms; }

.ach-num {
  font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(135deg, #0e6a96 0%, #60C8F0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Outfit'; line-height: 1;
  transition: transform .3s var(--bezier-smooth);
}
.achievement:hover .ach-num { transform: scale(1.05); }

.ach-label {
  font-size: .84rem; color: var(--txt-2);
  margin-top: 10px; line-height: 1.4; font-weight: 500;
}

/* Dark mode refinements */
body.theme-dark .achievement {
  background: linear-gradient(160deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%);
}
body.theme-dark .ach-num {
  background: linear-gradient(135deg, #60C8F0 0%, #a8e6ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====================================================================
   TIMELINE
   ==================================================================== */
.timeline-section { padding: 80px 0; background: var(--surface-0); }
.timeline {
  position: relative;
  max-width: 900px;
  margin: 50px auto 0;
  padding-left: 50px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--border-2) 100%);
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  margin-bottom: 32px;
  opacity: 0; transform: translateX(-30px);
  transition: all .7s var(--bezier-smooth);
}
.timeline-item.up { opacity: 1; transform: none; }
.timeline-node {
  position: absolute;
  left: -50px; top: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #042A3F;
  font-weight: 800;
  font-size: .88rem;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(96,200,240,.4), 0 0 0 4px var(--surface-0);
}
.timeline-card {
  background: var(--surface-3);
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-card);
}
.timeline-year {
  color: var(--neon-blue);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.timeline-card h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--txt-0); }
.timeline-card p { margin: 0; color: var(--txt-2); font-size: .9rem; line-height: 1.55; }

/* ====================================================================
   COMPARISON TABLE
   ==================================================================== */
.comparison-section { padding: 80px 0; background: var(--surface-1); }
.comparison-wrap { margin-top: 40px; overflow-x: auto; border-radius: 16px; box-shadow: var(--shadow-card); }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-3);
  border-radius: 16px;
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-1);
}
.comparison-table th {
  background: var(--surface-2);
  color: var(--txt-0);
  font-weight: 700;
  font-size: .95rem;
}
.comparison-table td { color: var(--txt-1); font-size: .92rem; }
.comparison-table .comparison-highlight {
  background: rgba(96,200,240,.08);
  font-weight: 600;
  color: var(--txt-0);
}
.comparison-table th.comparison-highlight { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue)); color: #fff; }
.comparison-table .cell-no { color: #D64545; font-weight: 700; }
.comparison-table .cell-yes { color: var(--neon-green); font-weight: 700; }
.comparison-table tr:last-child td { border-bottom: none; }

/* ====================================================================
   FLOATING CONTACT PILL
   ==================================================================== */
.floating-contact {
  position: fixed;
  left: 20px; bottom: 90px;
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  padding: 12px 20px 12px 12px;
  border-radius: 9999px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-1);
  text-decoration: none;
  color: var(--txt-0);
  opacity: 0;
  transform: translateX(-20px);
  transition: all .45s var(--bezier-smooth);
  z-index: 380;
}
.floating-contact.show { opacity: 1; transform: translateX(0); }
.floating-contact:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.fc-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  animation: fc-pulse 2s ease-in-out infinite;
}
.fc-icon svg { width: 18px; height: 18px; }
@keyframes fc-pulse { 50% { box-shadow: 0 0 0 10px rgba(96,200,240,0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(96,200,240,.5); } }
.fc-text { display: flex; flex-direction: column; line-height: 1.2; }
.fc-text strong { font-size: .92rem; color: inherit; }
.fc-text small { font-size: .72rem; color: var(--txt-2); }
@media (max-width: 900px) { .floating-contact { display: none; } }

/* ====================================================================
   LIVE NOTIFICATION
   ==================================================================== */
.live-notif {
  position: fixed;
  left: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  background: #fff;
  padding: 14px 16px 14px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-1);
  max-width: 320px;
  opacity: 0;
  transform: translateX(-100%);
  transition: all .5s var(--bezier-smooth);
  z-index: 370;
  pointer-events: none;
}
.live-notif.show { opacity: 1; transform: translateX(0); pointer-events: auto; }
.ln-close {
  flex-shrink: 0;
  margin-left: auto;
  width: 22px; height: 22px;
  border: none; background: none;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--txt-3);
  opacity: .6;
  padding: 0;
  transition: opacity .2s, color .2s;
}
.ln-close:hover { opacity: 1; color: var(--txt-0); }
.ln-close svg { width: 14px; height: 14px; }
.live-notif-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--neon-green), #0C9A6A);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
}
.live-notif-icon svg { width: 16px; height: 16px; }
.live-notif-text { font-size: .82rem; line-height: 1.35; color: var(--txt-1); }
.live-notif-text strong { color: var(--txt-0); display: block; }
.live-notif-text small { color: var(--txt-3); font-size: .72rem; display: block; margin-top: 2px; }
@media (max-width: 900px) { .live-notif { display: none; } }

/* ====================================================================
   THEME TOGGLE
   ==================================================================== */
.theme-toggle {
  position: fixed;
  top: calc(var(--nb-h, 86px) + var(--tb-h, 38px) + 16px);
  right: 16px;
  height: 56px;
  width: 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0e6a96, #042A3F);
  color: #fff;
  border: 2px solid rgba(96,200,240,.45);
  display: flex; align-items: center;
  overflow: hidden;
  cursor: pointer;
  z-index: 1001;
  opacity: 0;
  transform: translateY(-12px);
  will-change: width;
  transition: width .3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity .5s ease,
              background .4s ease,
              box-shadow .3s ease,
              border-color .4s ease;
  box-shadow: 0 4px 18px rgba(10,92,132,.35), 0 0 0 0 rgba(96,200,240,.0);
}
.theme-toggle.show {
  opacity: 1;
  transform: translateY(0);
  animation: tt-idle 4s ease-in-out 2s infinite;
}
.theme-toggle:hover {
  animation: none;
  width: 168px;
  box-shadow: 0 8px 28px rgba(10,92,132,.5), 0 0 0 4px rgba(96,200,240,.18);
  border-color: rgba(96,200,240,.75);
}
.theme-toggle:active { animation: none; transform: scale(.95); box-shadow: 0 3px 10px rgba(10,92,132,.3); }

/* Idle attention animation — gentle pulse + nudge every 4s */
@keyframes tt-idle {
  0%   { transform: translateY(0)     scale(1);    box-shadow: 0 4px 18px rgba(10,92,132,.35), 0 0 0 0   rgba(96,200,240,0); }
  18%  { transform: translateY(-4px)  scale(1.04); box-shadow: 0 10px 30px rgba(10,92,132,.5), 0 0 0 8px rgba(96,200,240,.2); }
  36%  { transform: translateY(0)     scale(1);    box-shadow: 0 4px 18px rgba(10,92,132,.35), 0 0 0 0   rgba(96,200,240,0); }
  50%  { transform: translateY(-2px)  scale(1.02); box-shadow: 0 6px 22px rgba(10,92,132,.4),  0 0 0 4px rgba(96,200,240,.12); }
  65%  { transform: translateY(0)     scale(1);    box-shadow: 0 4px 18px rgba(10,92,132,.35), 0 0 0 0   rgba(96,200,240,0); }
  100% { transform: translateY(0)     scale(1);    box-shadow: 0 4px 18px rgba(10,92,132,.35), 0 0 0 0   rgba(96,200,240,0); }
}

/* Dark mode idle — gold glow */
body.theme-dark .theme-toggle.show {
  animation: tt-idle-dark 4s ease-in-out 2s infinite;
}
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:active { animation: none; }
@keyframes tt-idle-dark {
  0%   { transform: translateY(0)     scale(1);    box-shadow: 0 4px 18px rgba(232,146,10,.35), 0 0 0 0   rgba(255,210,107,0); }
  18%  { transform: translateY(-4px)  scale(1.04); box-shadow: 0 10px 30px rgba(232,146,10,.55), 0 0 0 8px rgba(255,210,107,.25); }
  36%  { transform: translateY(0)     scale(1);    box-shadow: 0 4px 18px rgba(232,146,10,.35), 0 0 0 0   rgba(255,210,107,0); }
  50%  { transform: translateY(-2px)  scale(1.02); box-shadow: 0 6px 22px rgba(232,146,10,.45), 0 0 0 4px rgba(255,210,107,.14); }
  65%  { transform: translateY(0)     scale(1);    box-shadow: 0 4px 18px rgba(232,146,10,.35), 0 0 0 0   rgba(255,210,107,0); }
  100% { transform: translateY(0)     scale(1);    box-shadow: 0 4px 18px rgba(232,146,10,.35), 0 0 0 0   rgba(255,210,107,0); }
}

/* Spin animation on click */
@keyframes tt-spin { 0%{transform:rotate(0) scale(1)} 40%{transform:rotate(180deg) scale(0)} 60%{transform:rotate(180deg) scale(0)} 100%{transform:rotate(360deg) scale(1)} }
.tt-switching .tt-icon svg { animation: tt-spin .55s cubic-bezier(0.4,0,0.2,1) forwards; }

/* Label — hidden by default, slides in on hover */
.theme-toggle .tt-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  padding-left: 0;
  /* push label left of the icon area (56px) */
  margin-right: 56px;
  transition: opacity .22s ease, max-width .3s cubic-bezier(0.4,0,0.2,1), padding-left .3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.theme-toggle:hover .tt-label {
  opacity: 1;
  max-width: 108px;
  padding-left: 16px;
}
.tt-switching .tt-label { opacity: 0 !important; }

/* Icon wrapper — absolutely centered on the right side */
.theme-toggle .tt-icon {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 56px;
  display: grid; place-items: center;
}
.theme-toggle .tt-icon svg { width: 20px; height: 20px; position: absolute; transition: opacity .35s ease, transform .4s cubic-bezier(0.4,0,0.2,1); }
.theme-toggle .tt-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
.theme-toggle .tt-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Dark mode */
body.theme-dark .theme-toggle {
  background: linear-gradient(135deg, #f0b429, #c47c0a);
  color: #1a1200;
  border-color: rgba(255,210,107,.6);
  box-shadow: 0 4px 18px rgba(232,146,10,.35), 0 0 0 0 rgba(255,210,107,.0);
}
body.theme-dark .theme-toggle:hover {
  box-shadow: 0 8px 28px rgba(232,146,10,.5), 0 0 0 4px rgba(255,210,107,.22);
  border-color: rgba(255,210,107,.85);
}
body.theme-dark .theme-toggle .tt-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
body.theme-dark .theme-toggle .tt-sun  { opacity: 1; transform: rotate(0deg) scale(1); }

/* ====================================================================
   RIPPLE EFFECT
   ==================================================================== */
.ripple-container { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.ripple-pulse {
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: currentColor;
  opacity: .3;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand .7s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-expand { to { transform: translate(-50%, -50%) scale(15); opacity: 0; } }

/* ====================================================================
   FLOAT SHAPES (decorative)
   ==================================================================== */
.float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(26px);
  opacity: .13;
  animation: shape-float 20s infinite ease-in-out;
  z-index: 0;
}
.float-shape.s1 { width: 280px; height: 280px; background: var(--neon-cyan); top: 10%; left: -4%; animation-delay: 0s; }
.float-shape.s2 { width: 380px; height: 380px; background: var(--neon-gold); top: 55%; right: -8%; animation-delay: -5s; }
@keyframes shape-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.08); }
  66% { transform: translate(-20px,30px) scale(.95); }
}

/* ====================================================================
   TOAST
   ==================================================================== */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #042A3F;
  color: #fff;
  padding: 14px 22px;
  border-radius: 9999px;
  font-size: .9rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transition: all .4s var(--bezier-elastic);
  z-index: 9000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--neon-green); }

/* ====================================================================
   CONFETTI
   ==================================================================== */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.confetti-piece {
  position: absolute;
  width: 10px; height: 16px;
  animation: confetti-fall 3s ease-out forwards;
}
@keyframes confetti-fall {
  to { transform: translate(var(--tx, 0), 110vh) rotate(720deg); opacity: 0; }
}

/* ====================================================================
   FORM PROGRESS
   ==================================================================== */
.form-progress {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  padding: 6px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--border-1);
}
.fp-step {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--txt-2);
  background: transparent;
  transition: all .3s;
}
.fp-step.active { background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue)); color: #042A3F; box-shadow: 0 3px 10px rgba(96,200,240,.4); }
.fp-step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.7);
  display: grid; place-items: center;
  font-weight: 800; font-size: .78rem;
}
.fp-step.active .fp-step-num { background: #fff; color: #042A3F; }

/* ====================================================================
   NAV DROPDOWN CATEGORIES
   ==================================================================== */
.nav-dropdown-menu.nd-extended {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  padding: 18px !important;
  min-width: 620px !important;
  right: 0;
  left: auto !important;
}
.nav-dropdown.open .nav-dropdown-menu.nd-extended { display: grid !important; }
.nav-dropdown-menu.nd-extended .nd-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown-menu.nd-extended .nd-group-title {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--neon-blue);
  padding: 4px 10px 8px;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 4px;
}
.nav-dropdown-menu.nd-extended a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px !important;
  border-radius: 8px !important;
  font-size: .88rem !important;
  font-weight: 500;
  color: var(--txt-1);
  transition: all .2s;
  white-space: nowrap;
}
.nav-dropdown-menu.nd-extended a:hover {
  background: rgba(96,200,240,.1) !important;
  color: var(--neon-blue) !important;
  transform: translateX(2px);
}
.nav-dropdown-menu.nd-extended .nd-icon {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: .95rem;
  flex-shrink: 0;
}
body.theme-dark .nav-dropdown-menu.nd-extended .nd-icon { background: var(--surface-3); }

@media (max-width: 900px) {
  .nav-dropdown-menu.nd-extended { grid-template-columns: 1fr !important; min-width: 240px !important; }
}

/* ====================================================================
   CHIP (used in new sections)
   ==================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(96,200,240,.12);
  color: var(--neon-blue);
  border: 1px solid rgba(96,200,240,.25);
  border-radius: 9999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

/* ====================================================================
   HERO GRADIENT POLISH
   ==================================================================== */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .7;
  z-index: 1;
}
body.theme-dark .hero::after { opacity: .5; }

/* ====================================================================
   KEYBOARD FOCUS RING
   ==================================================================== */
body.keyboard-nav a:focus,
body.keyboard-nav button:focus,
body.keyboard-nav input:focus,
body.keyboard-nav textarea:focus { outline: 3px solid var(--neon-cyan) !important; outline-offset: 3px !important; }

/* ====================================================================
   CUSTOM SCROLLBAR
   ==================================================================== */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-blue));
  border-radius: 6px;
  border: 2px solid var(--surface-1);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--neon-blue), var(--neon-cyan)); }

/* ====================================================================
   TEXT SELECTION
   ==================================================================== */
::selection { background: var(--neon-cyan); color: #042A3F; }
body.theme-dark ::selection { background: var(--neon-gold); color: #042A3F; }

/* ====================================================================
   MISC POLISH
   ==================================================================== */
.tech-card, .pricing-card, .why-card, .achievement { position: relative; overflow: hidden; }

img[loading="lazy"] { opacity: 0; transition: opacity .6s; }
img[loading="lazy"].loaded, img[loading="lazy"][src] { opacity: 1; }

/* Hide any old preloader / cursor leftover if cached */
.preloader, .custom-cursor, .custom-cursor-ring, .initial-loader, body.cursor-active * { display: revert !important; cursor: revert !important; }
.preloader, .custom-cursor, .custom-cursor-ring, .initial-loader { display: none !important; }

/* ====================================================================
   POLISH v6.1 — Fixes for price badge, chat, back-to-top, positions
   ==================================================================== */

/* PRICE BADGE "Nejčastější volba" — high contrast in both themes */
.price-badge {
  background: linear-gradient(135deg, #E8920A, #B06B00) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(232,146,10,.55), 0 0 0 3px rgba(255,210,107,.25);
  font-weight: 900 !important;
  letter-spacing: .09em !important;
  animation: badge-pulse 2.8s ease-in-out infinite;
  z-index: 3;
}
@keyframes badge-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 6px 18px rgba(232,146,10,.55), 0 0 0 3px rgba(255,210,107,.25); }
  50%      { transform: translateX(-50%) scale(1.04); box-shadow: 0 8px 26px rgba(232,146,10,.7), 0 0 0 6px rgba(255,210,107,.15); }
}
body.theme-dark .price-badge {
  background: linear-gradient(135deg, #FFD26B, #E8920A) !important;
  color: #042A3F !important;
  box-shadow: 0 6px 18px rgba(232,146,10,.6), 0 0 0 3px rgba(255,210,107,.2);
}

/* CHAT WIDGET — dark mode polish */
body.theme-dark .fake-chat {
  background: var(--surface-3) !important;
  border: 1px solid var(--border-1) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
  color: var(--txt-1) !important;
}
body.theme-dark .fake-chat * { color: var(--txt-1); }
body.theme-dark .fake-chat-name { color: var(--txt-0) !important; }
body.theme-dark .fake-chat-status { color: var(--neon-green) !important; }
body.theme-dark .fake-chat-avatar { background: var(--surface-2) !important; color: var(--txt-1) !important; border-color: var(--border-1) !important; }
body.theme-dark .fake-chat-text { background: rgba(96,200,240,.08) !important; color: var(--txt-1) !important; border-color: var(--border-1) !important; }
body.theme-dark .fake-chat-close { background: var(--border-2) !important; color: var(--txt-0) !important; }
body.theme-dark .fake-chat-text::after { border-right-color: rgba(96,200,240,.08) !important; }

/* BACK-TO-TOP */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #edf4fb);
  border: 1.5px solid rgba(10,92,132,.18);
  color: #0A5C84;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(10,92,132,.13), 0 1px 4px rgba(10,92,132,.08);
  opacity: 0;
  transform: translateY(24px) scale(.7);
  pointer-events: none;
  transition: opacity .45s cubic-bezier(0.34,1.56,0.64,1),
              transform .45s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow .3s ease;
  z-index: 440;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 28px rgba(10,92,132,.22), 0 0 0 4px rgba(10,92,132,.1);
  border-color: rgba(10,92,132,.35);
}
.back-to-top:active { transform: scale(.94); }

/* Progress ring */
.btt-ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.btt-ring-bg   { stroke: rgba(10,92,132,.1); }
.btt-ring-fill { stroke: #0A5C84; transition: stroke-dashoffset .25s ease; }

/* Arrow chevron (inside the ring SVG) */
.btt-chevron {
  transition: transform .3s cubic-bezier(0.34,1.56,0.64,1);
  transform-box: fill-box;
  transform-origin: center;
}
.back-to-top:hover .btt-chevron { transform: translateY(-2px); }

/* Dark mode */
body.theme-dark .back-to-top {
  background: linear-gradient(135deg, #1a3a52, #0a1e2e) !important;
  border-color: rgba(96,200,240,.18) !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.5), 0 0 0 1px rgba(96,200,240,.15) !important;
}
body.theme-dark .back-to-top:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.6), 0 0 0 4px rgba(96,200,240,.25) !important;
  border-color: rgba(96,200,240,.4) !important;
}
body.theme-dark .btt-ring-bg  { stroke: rgba(255,255,255,.1); }
body.theme-dark .btt-ring-fill { stroke: var(--neon-cyan); }

/* FAB area — dark tweaks */
body.theme-dark .fab-lbl { background: var(--surface-3) !important; color: var(--txt-0) !important; box-shadow: var(--shadow-card); }
body.theme-dark .fab-toggle-small { background: rgba(255,255,255,.12) !important; color: #fff !important; }
body.theme-dark .fab-toggle-small:hover { background: rgba(255,255,255,.22) !important; }

/* LIVE NOTIFICATION — move to right side, below theme toggle, no overlap */
.live-notif {
  left: auto !important;
  right: 20px;
  top: calc(var(--nb-h, 86px) + var(--tb-h, 38px) + 72px);
  bottom: auto !important;
  transform: translateX(120%);
  max-width: 300px;
}
.live-notif.show { transform: translateX(0); }

/* FLOATING CONTACT — keep at left bottom, now alone there */
.floating-contact {
  bottom: 20px;
}

/* Ensure floating-contact doesn't clash with anything else on left */
@media (max-width: 1000px) {
  .floating-contact { display: none; }
}

/* ====================================================================
   EPIC ANIMATION POLISH — subtle, GPU-only, no layout thrash
   ==================================================================== */

/* Animated gradient for hero heading <em> */
.hero h1 em {
  background: linear-gradient(90deg, #0AC8FF, #60C8F0, #1585BB, #60C8F0, #0AC8FF);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-shift 8s linear infinite;
}
@keyframes grad-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
body.theme-dark .hero h1 em {
  background: linear-gradient(90deg, #60C8F0, #9B6DFF, #60C8F0, #30D68A, #60C8F0) !important;
  background-size: 300% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: grad-shift 10s linear infinite !important;
}

/* Section titles: subtle shine sweep on enter */
.section-title.up {
  background: linear-gradient(90deg, currentColor 0%, currentColor 35%, rgba(96,200,240,.9) 50%, currentColor 65%, currentColor 100%);
  background-size: 200% 100%;
  background-position: -100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: title-shine 2.2s .2s ease-out forwards;
}
@keyframes title-shine {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
/* Don't apply shine to <em> part — it has its own gradient */
.section-title.up em { -webkit-text-fill-color: initial; }

/* Cards: a slow breathing inner glow */
.tech-card, .pricing-card, .why-card, .achievement, .timeline-card {
  position: relative;
}
.tech-card::after, .pricing-card::after, .why-card::after, .achievement::after, .timeline-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse at var(--mx, 50%) var(--my, 50%), rgba(96,200,240,.14), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
}
.tech-card:hover::after, .pricing-card:hover::after, .why-card:hover::after,
.achievement:hover::after, .timeline-card:hover::after { opacity: 1; }

/* Buttons: gleaming highlight on hover */
.btn, .nav-cta, .drill-btn, .pc-type-opt, .drill-preset {
  position: relative;
  overflow: hidden;
}
.btn::before, .nav-cta::before, .drill-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 80%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg);
  transition: left .75s var(--bezier-smooth);
  pointer-events: none;
}
.btn:hover::before, .nav-cta:hover::before, .drill-btn:hover::before { left: 120%; }

/* Reveal — add scale + blur for premium feel */
.reveal { filter: blur(4px); }
.reveal.up { filter: blur(0); transition: opacity .8s var(--bezier-smooth), transform .8s var(--bezier-smooth), filter .8s var(--bezier-smooth); }

/* Hero badge pulse dot glow */
.pulse-dot {
  box-shadow: 0 0 0 0 rgba(48,214,138,.8);
  animation: pulse-glow 1.8s ease-out infinite;
}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(48,214,138,.8); }
  70% { box-shadow: 0 0 0 12px rgba(48,214,138,0); }
  100% { box-shadow: 0 0 0 0 rgba(48,214,138,0); }
}

/* Scroll dots — smoother */
.scroll-sec-dot {
  will-change: transform;
  transition: all .4s var(--bezier-elastic) !important;
}

/* Achievement numbers — handled in ACHIEVEMENTS block above */

/* Timeline node: breathing */
.timeline-node {
  animation: node-breath 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .2s);
}
@keyframes node-breath {
  0%, 100% { box-shadow: 0 4px 14px rgba(96,200,240,.4), 0 0 0 4px var(--surface-0); }
  50%      { box-shadow: 0 4px 22px rgba(96,200,240,.6), 0 0 0 4px var(--surface-0), 0 0 0 10px rgba(96,200,240,.12); }
}

/* Drill rig subtle idle motion even when not drilling */
.drill-rig { animation: rig-idle 6s ease-in-out infinite; }
@keyframes rig-idle {
  0%, 100% { transform: translateY(50%) rotate(0deg); }
  50% { transform: translateY(calc(50% - 1px)) rotate(.3deg); }
}

/* Ticker band — keep smooth (already has its own anim); boost contrast in dark */
body.theme-dark .ticker-item { color: #E6F4FB; }

/* CSS transition smoothing: honor GPU */
.tech-card, .pricing-card, .why-card, .achievement, .hero-panel, .timeline-card,
.floating-contact, .live-notif, .theme-toggle, .back-to-top, .scroll-sec-dot {
  will-change: transform;
}

/* Subtle ambient light pattern on page background — deep dark mode only */
body.theme-dark::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px circle at 10% 20%, rgba(96,200,240,.08), transparent 60%),
    radial-gradient(800px circle at 90% 80%, rgba(232,146,10,.06), transparent 60%);
  z-index: 0;
}

/* ====================================================================
   POLISH v6.2 — Hero badges removed, live-notif in nav area,
   chat diamond removed, hp-head themed, price cards enlarged.
   ==================================================================== */

/* 1. Kill the hero floating badges entirely (defensive — JS no longer emits them) */
.hero-float-badges, .hero-fb { display: none !important; }

/* 2. LIVE NOTIFICATION — now a slim pill docked just under the nav bar, far right.
      Overrides the earlier v6.1 block. Compact, occasional, elegant. */
.live-notif.live-notif--nav {
  position: fixed !important;
  /* Sit just below the theme-toggle (which is at top: nb+tb+12, height 44) */
  top: calc(var(--tb-h, 38px) + var(--nb-h, 86px) + 72px) !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 14px !important;
  border-radius: 999px !important;
  max-width: 360px !important;
  min-width: 0 !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(10,92,132,.14) !important;
  box-shadow: 0 12px 30px rgba(4,42,63,.12), 0 2px 6px rgba(4,42,63,.08);
  transform: translateX(24px) !important;
  opacity: 0;
  transition: opacity .45s var(--ease, ease), transform .5s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
  z-index: 995;
  font-size: .82rem;
  line-height: 1.3;
  color: #0E2A3D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-notif.live-notif--nav.show {
  opacity: 1;
  transform: translateX(0) !important;
  pointer-events: auto;
}
.live-notif.live-notif--nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(96,200,240,.0), rgba(96,200,240,.18), rgba(96,200,240,.0));
  background-size: 240% 100%;
  animation: ln-shine 3.6s linear infinite;
  pointer-events: none;
  opacity: .55;
}
@keyframes ln-shine {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.live-notif--nav .live-notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16,185,129,.55);
  animation: ln-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes ln-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.live-notif--nav .live-notif-text {
  display: inline-flex; align-items: baseline; gap: 6px;
  overflow: hidden; text-overflow: ellipsis;
}
.live-notif--nav .live-notif-text strong {
  display: inline !important; color: #042A3F; font-weight: 700;
}
.live-notif--nav .ln-act  { color: #334155; }
.live-notif--nav .ln-loc  { color: #64748B; font-size: .76rem; }

/* Dark variant */
body.theme-dark .live-notif.live-notif--nav {
  background: rgba(14,28,40,.85) !important;
  border-color: rgba(96,200,240,.22) !important;
  box-shadow: 0 14px 38px rgba(0,0,0,.6), 0 0 0 1px rgba(96,200,240,.08);
  color: #E6F1F8;
}
body.theme-dark .live-notif--nav .live-notif-text strong { color: #F6FAFD; }
body.theme-dark .live-notif--nav .ln-act { color: #B9CEDC; }
body.theme-dark .live-notif--nav .ln-loc { color: #7FA3B8; }
body.theme-dark .live-notif--nav::before {
  background: linear-gradient(90deg, rgba(96,200,240,0), rgba(96,200,240,.28), rgba(96,200,240,0));
  background-size: 240% 100%;
}

/* Hide on smaller screens — stays elegant */
@media (max-width: 900px) {
  .live-notif.live-notif--nav { display: none !important; }
}

/* 3. CHAT — kill the white bubble-tail diamond entirely */
.fake-chat-text::after { display: none !important; }

/* 4. STATS PANEL — superseded by v6.4 rules below, kept as no-op */

/* 5. PRICE CARDS — more headroom for "Nejčastější volba" badge */
.pricing-card {
  padding-top: 60px !important;
  overflow: visible;
}
.pricing-card.featured { padding-top: 64px !important; }

.price-badge {
  top: -18px !important;
  padding: 8px 22px !important;
  font-size: .78rem !important;
  letter-spacing: .12em !important;
  white-space: nowrap;
  border: 2px solid rgba(255,255,255,.92);
}
body.theme-dark .price-badge {
  border-color: rgba(4,42,63,.85);
}
/* Make the pulse keyframe include the larger translate so it stays centered */
@keyframes badge-pulse {
  0%, 100% { transform: translateX(-50%) scale(1);    box-shadow: 0 6px 18px rgba(232,146,10,.55), 0 0 0 3px rgba(255,210,107,.25); }
  50%      { transform: translateX(-50%) scale(1.05); box-shadow: 0 10px 28px rgba(232,146,10,.72), 0 0 0 7px rgba(255,210,107,.12); }
}

/* 6. Keep the live-notif from overlapping the theme toggle button (which lives top-right) */
.theme-toggle { z-index: 1001; }

/* ====================================================================
   POLISH v6.3 — About card dark tone, about-body blends, live-notif
   to top-left, logo stays locked, extra animation passes.
   ==================================================================== */

/* 1. "Co vrtáme" (.about-card-dark) — deep dark panel that still reads as
      a distinct card, not the bright #0A5C84 hardcoded blue.
      Overrides the rule in style.css at specificity body.theme-dark. */
body.theme-dark .about-card-dark {
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(96,200,240,.12) 0%, transparent 55%),
    linear-gradient(160deg, #132B3E 0%, #0F2232 100%) !important;
  border: 1px solid rgba(96,200,240,.22) !important;
  box-shadow:
    0 24px 60px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 0 1px rgba(96,200,240,.06) !important;
  position: sticky;
  overflow: hidden;
}
body.theme-dark .about-card-dark::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(96,200,240,.09) 50%, transparent 100%);
  background-size: 220% 100%;
  animation: ac-shine 7.5s linear infinite;
  pointer-events: none;
  z-index: 0;
}
body.theme-dark .about-card-dark > * { position: relative; z-index: 1; }
@keyframes ac-shine {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
body.theme-dark .about-card-dark .act-list li {
  color: var(--txt-1) !important;
  border-bottom-color: rgba(96,200,240,.12) !important;
  transition: transform .28s var(--ease), color .28s var(--ease);
}
body.theme-dark .about-card-dark .act-list li:hover {
  transform: translateX(6px);
  color: var(--neon-cyan) !important;
}
body.theme-dark .about-card-dark .act-list li svg {
  color: var(--neon-cyan) !important;
  stroke: var(--neon-cyan) !important;
  filter: drop-shadow(0 0 6px rgba(96,200,240,.45));
}
body.theme-dark .about-card-dark .ac-icon {
  background: linear-gradient(135deg, rgba(96,200,240,.22), rgba(96,200,240,.06)) !important;
  border: 1px solid rgba(96,200,240,.22);
  box-shadow: 0 8px 22px rgba(96,200,240,.18);
}
body.theme-dark .about-card-dark .ac-icon svg { color: var(--neon-cyan); }

/* 2. ABOUT-BODY — blend with the page bg instead of looking like a panel. */
body.theme-dark .about-body {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body.theme-dark .about-body p,
body.theme-dark .about-body p strong {
  background: transparent !important;
}
body.theme-dark .legal-block {
  background: rgba(96,200,240,.06) !important;
  border-left: 3px solid var(--neon-cyan) !important;
  color: var(--txt-2) !important;
}
body.theme-dark .legal-block strong { color: var(--txt-0) !important; }

/* FEATS — dark mode colors only, layout/size defined in base style.css */
body.theme-dark .feat {
  background: rgba(20,35,50,.55) !important;
  border-color: rgba(96,200,240,.10) !important;
}
body.theme-dark .feat:hover {
  border-color: rgba(96,200,240,.28) !important;
  background: rgba(26,45,62,.75) !important;
}
body.theme-dark .feat-icon {
  background: rgba(96,200,240,.12) !important;
}
body.theme-dark .feat:hover .feat-icon { background: rgba(96,200,240,.28) !important; }
body.theme-dark .feat-icon svg { color: var(--neon-cyan) !important; }

/* 3. LIVE NOTIF — moved to TOP-LEFT (under nav, next to logo side) */
.live-notif.live-notif--nav {
  top: calc(var(--tb-h, 38px) + var(--nb-h, 86px) + 14px) !important;
  right: auto !important;
  left: 20px !important;
  transform: translateX(-28px) !important;
}
.live-notif.live-notif--nav.show {
  transform: translateX(0) !important;
}

/* 4. LOGO — locked to original brand colors, does NOT follow dark theme.
      SVG internals already use inline white strokes, so we only re-pin the
      tile gradient + its shadow. */
.logo-mark,
body.theme-dark .logo-mark {
  background: linear-gradient(135deg, #0A5C84, #1585BB) !important;
  box-shadow: 0 4px 16px rgba(10,92,132,.35) !important;
  border: none !important;
}
.logo-mark-svg,
body.theme-dark .logo-mark-svg { filter: none !important; }

/* 5. EXTRA POLISH — subtle section-title glow in dark mode */
body.theme-dark .section-title {
  text-shadow: 0 2px 18px rgba(96,200,240,.08);
}
body.theme-dark .section-title em {
  text-shadow: 0 0 28px rgba(96,200,240,.35);
}

/* 6. FEAT icons — gentle idle float (GPU-only, no layout cost) */
.feat-icon {
  animation: feat-float 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * .3s);
}
.feat:nth-child(1) .feat-icon { --i: 0; }
.feat:nth-child(2) .feat-icon { --i: 1; }
.feat:nth-child(3) .feat-icon { --i: 2; }
.feat:nth-child(4) .feat-icon { --i: 3; }
@keyframes feat-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .feat-icon { animation: none; }
}

/* 7. Subtle scroll-parallax vibe on legal-block — soft entrance shimmer */
.legal-block { position: relative; overflow: hidden; }
.legal-block::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 40%;
  left: -50%;
  background: linear-gradient(90deg, transparent, rgba(96,200,240,.14), transparent);
  animation: legal-sweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes legal-sweep {
  0%   { left: -50%; }
  60%  { left: 120%; }
  100% { left: 120%; }
}
@media (prefers-reduced-motion: reduce) {
  .legal-block::after { animation: none; display: none; }
}

/* 8. Price-badge — ensure its pulse easing uses nice elastic in dark */
body.theme-dark .price-badge { animation-duration: 3.2s; }

/* 9. Smoother GPU hints for new animated targets */
.about-card-dark, .legal-block, .feat-icon, .live-notif--nav {
  will-change: transform;
}

/* ====================================================================
   POLISH v6.4 — Prettier stats panel + bolder live-notif
   ==================================================================== */

/* HERO STATS PANEL — elevated, layered, glow-accented */
body.theme-dark .hero-panel {
  background:
    radial-gradient(140% 180% at 0% 0%, rgba(96,200,240,.08) 0%, transparent 60%),
    radial-gradient(120% 160% at 100% 100%, rgba(155,109,255,.06) 0%, transparent 60%),
    linear-gradient(165deg, #152B40 0%, #0E1F2E 100%) !important;
  border: 1px solid rgba(96,200,240,.18) !important;
  box-shadow:
    0 30px 80px rgba(0,0,0,.55),
    0 0 0 1px rgba(96,200,240,.05),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
  overflow: hidden;
  position: relative;
}
body.theme-dark .hero-panel::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(96,200,240,.35), transparent 35%, transparent 65%, rgba(155,109,255,.25));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
  opacity: .55;
}

body.theme-dark .hp-head {
  background:
    radial-gradient(130% 180% at 0% 0%, rgba(96,200,240,.32) 0%, transparent 55%),
    radial-gradient(120% 170% at 100% 100%, rgba(155,109,255,.22) 0%, transparent 55%),
    linear-gradient(135deg, #0E2742 0%, #15395A 50%, #0B1C2E 100%) !important;
  border-bottom: 1px solid rgba(96,200,240,.16);
  position: relative;
  overflow: hidden;
}
body.theme-dark .hp-head-label {
  color: var(--neon-cyan) !important;
  opacity: .85;
}
body.theme-dark .hp-head-title {
  background: linear-gradient(90deg, #F6FAFD 0%, #AEE3F6 45%, #F6FAFD 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hp-title-shine 7s linear infinite;
  text-shadow: none !important;
}
@keyframes hp-title-shine {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

body.theme-dark .hp-stats {
  background: rgba(96,200,240,.10) !important;
}
body.theme-dark .hp-stat {
  background: linear-gradient(180deg, #13273A 0%, #0E1F2E 100%) !important;
  transition: background .35s var(--ease), transform .35s var(--ease);
  position: relative;
  overflow: hidden;
}
body.theme-dark .hp-stat::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(96,200,240,.16), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
body.theme-dark .hp-stat:hover::before { opacity: 1; }
body.theme-dark .hp-stat:hover {
  background: linear-gradient(180deg, #17324A 0%, #112739 100%) !important;
}
body.theme-dark .hp-stat-n {
  background: linear-gradient(180deg, #AEE3F6 0%, #60C8F0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(96,200,240,.35));
}
body.theme-dark .hp-stat-l {
  color: rgba(201,220,232,.7) !important;
}

/* LIVE NOTIFICATION — bolder, impossible to miss, but still clean */
.live-notif.live-notif--nav {
  background: linear-gradient(135deg, #0AC8FF 0%, #1585BB 55%, #0A5C84 100%) !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  box-shadow:
    0 14px 36px rgba(10,200,255,.45),
    0 4px 14px rgba(10,92,132,.35),
    0 0 0 4px rgba(10,200,255,.15) !important;
  color: #ffffff !important;
  padding: 12px 20px 12px 16px !important;
  font-size: .84rem !important;
  font-weight: 500 !important;
  animation: ln-glow 2.6s ease-in-out infinite;
}
@keyframes ln-glow {
  0%, 100% {
    box-shadow:
      0 14px 36px rgba(10,200,255,.45),
      0 4px 14px rgba(10,92,132,.35),
      0 0 0 4px rgba(10,200,255,.15);
  }
  50% {
    box-shadow:
      0 16px 44px rgba(10,200,255,.6),
      0 6px 18px rgba(10,92,132,.45),
      0 0 0 8px rgba(10,200,255,.08);
  }
}
.live-notif.live-notif--nav::before {
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0)) !important;
  background-size: 220% 100% !important;
  opacity: .9;
}
.live-notif--nav .live-notif-dot {
  width: 10px; height: 10px;
  background: #30D68A !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 0 14px rgba(48,214,138,.7) !important;
  animation: ln-pulse-strong 1.6s ease-out infinite;
}
@keyframes ln-pulse-strong {
  0%   { box-shadow: 0 0 0 0 rgba(48,214,138,.8), 0 0 14px rgba(48,214,138,.7); }
  70%  { box-shadow: 0 0 0 14px rgba(48,214,138,0), 0 0 14px rgba(48,214,138,.7); }
  100% { box-shadow: 0 0 0 0 rgba(48,214,138,0), 0 0 14px rgba(48,214,138,.7); }
}
.live-notif--nav .live-notif-text strong { color: #ffffff !important; font-weight: 700; }
.live-notif--nav .ln-act { color: rgba(255,255,255,.9) !important; }
.live-notif--nav .ln-loc { color: rgba(255,255,255,.75) !important; }

/* Dark-mode tweak: warmer, more luxurious tone (cyan→violet accent) */
body.theme-dark .live-notif.live-notif--nav {
  background: linear-gradient(135deg, #0AC8FF 0%, #5C7AF6 60%, #7B4EE8 100%) !important;
  border-color: rgba(175,206,255,.35) !important;
  box-shadow:
    0 14px 40px rgba(92,122,246,.5),
    0 4px 16px rgba(123,78,232,.35),
    0 0 0 4px rgba(92,122,246,.18) !important;
}
body.theme-dark .live-notif.live-notif--nav { animation: ln-glow-dark 2.8s ease-in-out infinite; }
@keyframes ln-glow-dark {
  0%, 100% {
    box-shadow:
      0 14px 40px rgba(92,122,246,.5),
      0 4px 16px rgba(123,78,232,.35),
      0 0 0 4px rgba(92,122,246,.18);
  }
  50% {
    box-shadow:
      0 18px 50px rgba(92,122,246,.7),
      0 6px 20px rgba(123,78,232,.5),
      0 0 0 9px rgba(92,122,246,.1);
  }
}

/* ====================================================================
   POLISH v6.5 — CTA band text contrast (dark mode readability)
   ==================================================================== */

/* The orange "Připraveni začít váš projekt?" band: body text was fading
   into the gradient. Force solid white, fuller opacity, subtle shadow. */
.cta-band,
.cta-band h2,
.cta-band p,
body.theme-dark .cta-band,
body.theme-dark .cta-band h2,
body.theme-dark .cta-band p {
  color: #ffffff !important;
}
.cta-band p,
body.theme-dark .cta-band p {
  opacity: 1 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  font-weight: 500;
}
.cta-band h2,
body.theme-dark .cta-band h2 {
  text-shadow: 0 2px 8px rgba(0,0,0,.22);
}

/* End of enhancements.css v6.5 */
