:root {
  --bg: #07110c;
  --bg2: #0d1a13;
  --panel: #0f1f17;
  --panel2: #13271d;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3fbf6;
  --muted: #a7b9ae;
  --green: #22c55e;
  --green2: #86efac;
  --white: #ffffff;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(34, 197, 94, 0.16), transparent 24%),
    radial-gradient(circle at 90% 0%, rgba(134, 239, 172, 0.10), transparent 18%),
    linear-gradient(180deg, var(--bg), #08140e 40%, #0b1711 100%);
  line-height: 1.6;
}

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

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: 0.25s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #06210f;
  background: linear-gradient(135deg, var(--green), var(--green2));
  box-shadow: 0 16px 42px rgba(34, 197, 94, 0.28);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #d7f5e1;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.7);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 12, 0.68);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.25);
  flex: 0 0 44px;
}

.brand-title {
  font-size: 18px;
  font-weight: 900;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  gap: 12px;
}

.hero {
  padding: 88px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
  align-items: center;
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1;
  letter-spacing: -2.4px;
  margin: 18px 0;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 690px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  font-size: 28px;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.showcase {
  padding: 18px;
}

.frame {
  overflow: hidden;
  border-radius: 22px;
  background: #eef8f0;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.frame-top {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  background: #f7fcf8;
  border-bottom: 1px solid #d6eedc;
}

.frame-url {
  margin-left: 8px;
  font-size: 13px;
  color: #4b6b56;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c2e6cc;
}

.frame-body {
  padding: 22px;
  color: #122119;
}

.ui-main {
  padding: 26px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f2217, #1d6a3c 55%, #86efac);
  color: white;
  margin-bottom: 16px;
}

.ui-main h3 {
  margin: 0 0 10px;
  font-size: 30px;
}

.ui-main p {
  margin: 0;
  color: #e6fff0;
}

.ui-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ui-box {
  background: white;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid #dceddf;
}

.ui-box b {
  display: block;
  margin-bottom: 10px;
}

.line {
  height: 10px;
  border-radius: 999px;
  background: #e1efe5;
  margin: 8px 0;
}

.line-w-92 { width: 92%; }
.line-w-84 { width: 84%; }
.line-w-80 { width: 80%; }
.line-w-76 { width: 76%; }
.line-w-74 { width: 74%; }
.line-w-68 { width: 68%; }

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #f2faf4;
  color: #25603a;
  border: 1px solid #d9ebde;
}

section {
  padding: 38px 0;
}

.section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 26px;
}

.section-title h2 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -1.4px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.brands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.brand-box {
  padding: 18px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #d7e7dc;
  font-weight: 800;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service {
  padding: 24px;
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(134, 239, 172, 0.1));
  border: 1px solid var(--line);
  margin-bottom: 16px;
  font-size: 24px;
}

.icon-small {
  width: 46px;
  height: 46px;
  margin: 0;
}

.service h3 {
  margin: 0 0 10px;
}

.service p {
  margin: 0 0 12px;
  color: var(--muted);
}

.service ul {
  margin: 0;
  padding-left: 18px;
  color: #dceadf;
}

.service li {
  margin: 7px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.split .card {
  padding: 28px;
}

.split h3 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.6px;
}

.split p {
  margin: 0 0 14px;
  color: var(--muted);
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.tick {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}

.bad {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.good {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  padding: 24px;
}

.step-no {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 12px;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project {
  overflow: hidden;
}

.cover {
  aspect-ratio: 16 / 11;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(7, 17, 12, 0.05), rgba(7, 17, 12, 0.45)),
    linear-gradient(135deg, #123220, #1d6a3c 60%, #86efac);
}

.project-body {
  padding: 22px;
}

.cover-sergio-home {
  background-image:
    linear-gradient(180deg, rgba(7, 17, 12, 0.06), rgba(7, 17, 12, 0.48)),
    url("sergio-home.jpg");
  background-size: cover;
  background-position: center;
}

.cover-sergio-premium {
  background-image:
    linear-gradient(180deg, rgba(7, 17, 12, 0.12), rgba(7, 17, 12, 0.44)),
    url("sergio-premium.jpg");
  background-size: cover;
  background-position: center;
}

.cover-sergio-collection {
  background-image:
    linear-gradient(180deg, rgba(7, 17, 12, 0.08), rgba(7, 17, 12, 0.42)),
    url("sergio-collection.jpg");
  background-size: cover;
  background-position: center;
}


.cover-sergio-highlight {
  background-image:
    linear-gradient(180deg, rgba(7, 17, 12, 0.08), rgba(7, 17, 12, 0.42)),
    url("highlight-new.png");
  background-size: cover;
  background-position: center top;
}

.cover-sergio-kontrola {
  background-image:
    linear-gradient(180deg, rgba(7, 17, 12, 0.08), rgba(7, 17, 12, 0.42)),
    url("kontrola-new.png");
  background-size: cover;
  background-position: center top;
}

.portfolio-two {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}

.project-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-body p {
  margin: 8px 0 12px;
  color: var(--muted);
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #d8e7dc;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price {
  padding: 24px;
  position: relative;
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, var(--green2), var(--green));
  color: #06210f;
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.amount {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -1px;
}

.small {
  color: var(--muted);
  font-size: 14px;
}

.price ul {
  padding-left: 18px;
  color: #dceadf;
}

.price li {
  margin: 8px 0;
}

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq-item {
  padding: 20px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.cta {
  padding: 30px;
}

.cta-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -1.3px;
}

.cta p {
  margin: 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: start;
}

.contact-box,
.form-box {
  padding: 24px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.contact-item b {
  display: block;
  margin-bottom: 4px;
}

form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--line);
  font: inherit;
  outline: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 52px;
  background-image: linear-gradient(45deg, transparent 50%, var(--green2) 50%), linear-gradient(135deg, var(--green2) 50%, transparent 50%);
  background-position: calc(100% - 24px) calc(50% - 3px), calc(100% - 18px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select option {
  color: var(--text);
  background: var(--panel);
}

select:focus,
input:focus,
textarea:focus {
  border-color: rgba(134, 239, 172, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #96aa9c;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

footer {
  padding: 28px 0 48px;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-title {
  display: block;
  color: var(--text);
}

.sticky-mobile {
  display: none;
}

@media (max-width: 1020px) {
  nav ul {
    display: none;
  }

  .hero-grid,
  .split,
  .cta-wrap,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .services,
  .portfolio,
  .portfolio-two,
  .pricing,
  .faq {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .brands {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 56px;
  }

  .services,
  .portfolio,
  .portfolio-two,
  .pricing,
  .faq,
  .steps,
  .brands,
  .hero-metrics,
  .ui-grid {
    grid-template-columns: 1fr;
  }

  .nav-cta .btn-secondary {
    display: none;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sticky-mobile {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
  }

  .sticky-inner {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(7, 17, 12, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
  }

  .sticky-inner .btn {
    flex: 1;
  }

  body {
    padding-bottom: 84px;
  }
}


/* Formularz */
.form-box form {
  display: grid;
  gap: 14px;
}

.form-box input,
.form-box select,
.form-box textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-box input::placeholder,
.form-box textarea::placeholder {
  color: #96aa9d;
}

.form-box textarea {
  min-height: 140px;
  resize: vertical;
}

.form-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #dff6e7 50%), linear-gradient(135deg, #dff6e7 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 4px), calc(100% - 16px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.form-box select option {
  background: #102017;
  color: #f3fbf6;
}

.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
  border-color: rgba(134, 239, 172, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.form-status {
  min-height: 24px;
  font-size: 14px;
  color: var(--muted);
}

.form-status.is-success { color: #baf5ca; }
.form-status.is-error { color: #ffb4b4; }
.form-status.is-pending { color: #e3f7ea; }

.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}


/* Blog */
.blog-hero {
  padding-bottom: 28px;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.blog-featured-panel {
  padding: 26px;
  display: grid;
  gap: 18px;
}

.blog-panel-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -1px;
}

.blog-panel-head p {
  margin: 0;
  color: var(--muted);
}

.blog-mini-list {
  display: grid;
  gap: 12px;
}

.blog-mini-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.blog-mini-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.blog-mini-no {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-weight: 900;
  color: #06210f;
  background: linear-gradient(135deg, var(--green), var(--green2));
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  overflow: hidden;
}

.blog-card-featured {
  grid-column: span 2;
}

.blog-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.blog-meta span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #d8e7dc;
}

.blog-card h3,
.blog-newsletter h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.6px;
}

.blog-card p,
.blog-newsletter p {
  margin: 0;
  color: var(--muted);
}

.blog-newsletter {
  display: grid;
  align-items: center;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(255,255,255,0.03));
}

.blog-cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 1020px) {
  .blog-hero-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-featured-panel,
  .blog-card-featured,
  .blog-newsletter {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .blog-hero-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card h3,
  .blog-newsletter h3 {
    font-size: 24px;
  }
}


/* Chatbot AI page */
.chatbot-hero .blog-featured-panel {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(255,255,255,0.03));
}

.chatbot-panel {
  position: relative;
  overflow: hidden;
}

.chatbot-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134,239,172,0.25), transparent 70%);
}

.chatbot-services {
  align-items: stretch;
}

.chatbot-pricing-one {
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
}

.chatbot-price-card {
  text-align: left;
}

.chatbot-price-card .amount {
  margin-top: 10px;
}

.blog-img{width:100%;border-radius:12px;margin-bottom:14px;object-fit:cover;max-height:220px}


/* Page loader and transitions */
body[data-page-shell="nexario"] {
  opacity: 1;
}

.page-loader,
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.18), transparent 26%),
    radial-gradient(circle at 80% 0%, rgba(134, 239, 172, 0.12), transparent 18%),
    rgba(4, 9, 7, 0.96);
  transition: opacity .45s ease, visibility .45s ease, transform .6s ease;
}

.page-loader.is-hidden,
.page-transition.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-brand {
  text-align: center;
  position: relative;
}

.page-loader-ring {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  position: absolute;
  inset: -18px;
  animation: spinRing 3.2s linear infinite;
}

.page-loader-ring::before,
.page-loader-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 1px solid rgba(134, 239, 172, .18);
}

.page-loader-ring::after {
  inset: 26px;
  border-color: rgba(34, 197, 94, .22);
}

.page-loader-logo {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.35), 0 0 40px rgba(34, 197, 94, .18);
  animation: floatLogo 2.5s ease-in-out infinite;
}

.page-loader-text {
  margin-top: 28px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: #dff8e8;
}

.page-loader-subtext {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.page-transition {
  transform: translateY(100%);
}

.page-transition.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-transition-panel {
  width: min(92vw, 560px);
  padding: 26px 30px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-transition-panel img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.page-transition-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.page-transition-panel span {
  color: var(--muted);
  font-size: 14px;
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Blog images and article pages */
.article-panel-link {
  display: block;
}

.article-panel-link:hover {
  transform: translateY(-4px);
}

.blog-card-link {
  display: block;
  height: 100%;
}

.blog-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.blog-card .project-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 800;
  color: #dff8e8;
}

.read-more::after {
  content: "→";
  transition: transform .25s ease;
}

.blog-card-link:hover .read-more::after {
  transform: translateX(4px);
}

.article-hero {
  padding-bottom: 24px;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}

.article-cover-wrap {
  padding: 16px;
}

.article-cover-wrap img {
  width: 100%;
  border-radius: 20px;
  display: block;
  border: 1px solid rgba(255,255,255,.08);
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 10px;
}

.article-meta-pill {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: #dff8e8;
  font-size: 13px;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.article-content {
  padding: 34px;
}

.article-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  margin: 0 0 16px;
}

.article-content h3 {
  font-size: 24px;
  margin: 36px 0 14px;
}

.article-content p {
  color: #d6e5db;
  font-size: 17px;
  margin: 0 0 18px;
}

.article-content ul {
  margin: 0 0 22px;
  padding-left: 20px;
  color: #d6e5db;
}

.article-content li + li {
  margin-top: 8px;
}

.article-intro {
  font-size: 20px !important;
  color: #eefcf3 !important;
}

.article-highlight-box {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  margin: 28px 0;
}

.article-highlight-box strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.article-aside {
  position: sticky;
  top: 102px;
  padding: 24px;
}

.article-aside h3 {
  margin-top: 0;
  font-size: 22px;
}

.article-aside p,
.article-aside li {
  color: var(--muted);
}

.article-aside ul {
  margin: 0 0 22px;
  padding-left: 18px;
}

.article-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-bottom-cta {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .article-hero-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-transition-panel {
    width: min(92vw, 420px);
    padding: 20px;
  }

  .article-content {
    padding: 24px;
  }

  .article-content p {
    font-size: 16px;
  }
}


/* Responsive polish and blog image safety */
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.blog-card,
.blog-card-link,
.blog-card .project-body,
.article-cover-wrap,
.article-content,
.article-aside {
  min-width: 0;
}

.blog-card-link {
  overflow: hidden;
}

.blog-card .project-body {
  position: relative;
  z-index: 1;
}

.blog-thumb:hover {
  transform: scale(1.01);
}

.blog-thumb,
.article-cover-wrap img {
  transition: transform .35s ease;
}

.article-cover-wrap {
  overflow: hidden;
}

.article-cover-wrap img {
  object-fit: contain;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  padding: 14px;
}

@media (max-width: 1020px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 0;
  }

  .nav-cta {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .blog-hero,
  .article-hero {
    padding-top: 68px;
  }

  .hero-grid,
  .blog-hero-grid,
  .article-hero-grid,
  .contact-wrap,
  .cta-wrap,
  .split,
  .article-layout {
    gap: 20px;
  }

  .blog-card-featured {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 20px), var(--max));
  }

  h1 {
    letter-spacing: -1.3px;
    line-height: 1.02;
  }

  .lead {
    font-size: 16px;
  }

  .btn {
    width: 100%;
    padding: 14px 18px;
  }

  .hero-actions,
  .cta-actions,
  .blog-cta-buttons,
  .nav-cta,
  .article-nav-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-cta .btn-primary,
  .nav-cta .btn-secondary {
    width: 100%;
  }

  .brand {
    align-items: center;
    max-width: 100%;
  }

  .brand-title {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .hero,
  .blog-hero,
  .article-hero {
    padding-top: 54px;
    padding-bottom: 20px;
  }

  .card,
  .contact-box,
  .form-box,
  .blog-featured-panel,
  .article-content,
  .article-aside,
  .cta {
    border-radius: 20px;
  }

  .project-body,
  .article-content,
  .article-aside,
  .contact-box,
  .form-box,
  .blog-featured-panel,
  .showcase,
  .price,
  .faq-item,
  .cta {
    padding: 18px;
  }

  .blog-thumb {
    aspect-ratio: 16 / 10;
    object-fit: contain;
    padding: 12px;
    background:
      radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  }

  .blog-card h3,
  .blog-newsletter h3,
  .article-content h2 {
    overflow-wrap: anywhere;
  }

  .blog-card p,
  .article-content p,
  .article-aside p,
  .article-aside li {
    overflow-wrap: break-word;
  }

  .article-cover-wrap img {
    padding: 10px;
    border-radius: 16px;
  }

  .sticky-mobile {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  body {
    padding-bottom: 92px;
  }
}


/* --- Mobile navigation refresh --- */
.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform .25s ease, opacity .25s ease;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .mobile-menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .mobile-menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(2, 8, 5, 0.72);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
body.menu-open .mobile-menu-panel {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-shell {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  padding: 22px 18px 26px;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.18), transparent 24%),
    linear-gradient(180deg, rgba(8,16,13,.98), rgba(10,22,17,.98));
  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -30px 0 60px rgba(0,0,0,.35);
  transform: translateX(100%);
  transition: transform .32s ease;
  display: flex;
  flex-direction: column;
}
body.menu-open .mobile-menu-shell { transform: translateX(0); }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.mobile-menu-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 22px;
}
.mobile-menu-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.mobile-menu-close {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 30px;
  line-height: 1;
}
.mobile-menu-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: grid;
  gap: 6px;
}
.mobile-menu-nav a {
  display: block;
  padding: 16px 14px;
  border-radius: 16px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
}
.mobile-menu-nav a:hover {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.26);
}
.mobile-menu-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 16px;
}
.blog-thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.blog-card .project-body {
  position: relative;
  z-index: 2;
}
@media (max-width: 1020px) {
  .mobile-menu-toggle { display: inline-flex; }
  .nav { gap: 12px; }
  .nav > nav,
  .nav > .nav-cta { display: none !important; }
}
@media (min-width: 1021px) {
  .mobile-menu-panel { display: none !important; }
}


/* Header visibility and mobile background improvements */
header {
  background: rgba(7, 17, 12, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}

.nav {
  background: linear-gradient(180deg, rgba(12, 22, 18, 0.82), rgba(10, 18, 15, 0.72));
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 10px 18px;
  margin: 10px auto;
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

@media (max-width: 1020px) {
  header {
    background: rgba(7, 17, 12, 0.97);
  }

  .nav {
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 18, 15, 0.96), rgba(10, 18, 15, 0.92));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 16px 40px rgba(0,0,0,.30);
  }

  .mobile-menu-panel {
    background: rgba(3, 8, 6, 0.84);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .mobile-menu-shell {
    background:
      radial-gradient(circle at top right, rgba(34,197,94,.18), transparent 24%),
      linear-gradient(180deg, rgba(9,17,14,.995), rgba(10,20,16,.99));
    border-left: 1px solid rgba(255,255,255,.10);
  }
}

/* Strong background for mobile menu */
.mobile-menu-shell{
  background:#08140e !important;
}
.mobile-menu-panel{
  background:rgba(0,0,0,0.6) !important;
}



/* MOBILE MENU BACKGROUND FIX */
.mobile-menu-panel{
background: rgba(5,10,8,0.75);
backdrop-filter: blur(8px);
}

.mobile-menu-shell{
background: linear-gradient(180deg,#08140e,#0f241a);
min-height:100vh;
box-shadow:-10px 0 40px rgba(0,0,0,0.6);
}


.footer-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-meta a {
  color: var(--text);
  text-decoration: none;
  transition: opacity .2s ease;
}

.footer-meta a:hover {
  opacity: .72;
}

.privacy-card {
  padding: 32px;
}

.privacy-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.privacy-card h2 {
  margin: 28px 0 12px;
  font-size: 1.2rem;
}

.privacy-card p,
.privacy-card li {
  color: var(--muted);
}

.privacy-card ul {
  margin: 10px 0 16px 20px;
}

.privacy-lead {
  color: var(--text) !important;
  font-weight: 600;
}

@media (max-width: 720px) {
  .footer-meta {
    justify-content: flex-start;
  }

  .privacy-card {
    padding: 22px;
  }
}
