:root {
  --bg0: #05070A;
  --bg1: #0B0F14;
  --card: rgba(10, 16, 22, 0.66);
  --card2: rgba(255,255,255,0.04);
  --stroke: rgba(72,242,255,0.14);
  --stroke2: rgba(255,255,255,0.08);
  --text: #EAF2F7;
  --muted: #9FB2C1;
  --cyan: #48F2FF;
  --cyan2: #1EE6FF;
  --violet: #7C5CFF;
  --good: #00FFA8;
  --warn: #FFD166;
  --bad: #FF5C7A;
  --shadow: rgba(0,0,0,0.55);
  --radius: 18px;
  --radius2: 24px;
  --max: 1180px;
  --grid: data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%22184%22%20viewBox%3D%220%200%20160%20184%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20stroke%3D%22rgba%2872%2C242%2C255%2C0.08%29%22%20stroke-width%3D%221%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M40%200%20L120%200%20L160%2046%20L120%2092%20L40%2092%20L0%2046%20Z%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M40%2092%20L120%2092%20L160%20138%20L120%20184%20L40%20184%20L0%20138%20Z%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M80%2046%20L160%2046%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%2046%20L80%2046%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M80%20138%20L160%20138%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%20138%20L80%20138%22/%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E;
}

* { box-sizing: border-box; }
html{min-height:100%;}
body{min-height:100%;height:auto;}
/* ===== PENROUZ BODY HEIGHT FIX ===== */
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(72,242,255,0.12), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(124,92,255,0.12), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(0,255,168,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

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

.bg-grid::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22160%22%20height%3D%22184%22%20viewBox%3D%220%200%20160%20184%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20stroke%3D%22rgba%2872%2C242%2C255%2C0.08%29%22%20stroke-width%3D%221%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M40%200%20L120%200%20L160%2046%20L120%2092%20L40%2092%20L0%2046%20Z%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M40%2092%20L120%2092%20L160%20138%20L120%20184%20L40%20184%20L0%20138%20Z%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M80%2046%20L160%2046%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%2046%20L80%2046%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M80%20138%20L160%20138%22/%3E%0A%20%20%20%20%3Cpath%20d%3D%22M0%20138%20L80%20138%22/%3E%0A%20%20%3C/g%3E%0A%3C/svg%3E");
  background-size: 160px 184px;
  background-position: 0 0;
  background-repeat: repeat;
  mix-blend-mode: screen;
  filter: blur(0.2px);

  transform: translateZ(0);}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,7,10,0.78), rgba(5,7,10,0.46));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.brand .title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand .title strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0.06em;
  font-size: 15px;
}
.brand .title span {
  font-size: 12px;
  color: var(--muted);
}

.navlinks {
  display: flex;
  gap: 10px;
  align-items: center;
}
.navlinks a {
  font-size: 13px;
  color: rgba(234,242,247,0.86);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.navlinks a:hover {
  border-color: rgba(72,242,255,0.18);
  background: rgba(255,255,255,0.03);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.btn:hover {
  border-color: rgba(72,242,255,0.22);
  transform: translateY(-1px);
}
.btn-primary {
  border-color: rgba(72,242,255,0.35);
  background:
    radial-gradient(700px 60px at 50% 0%, rgba(72,242,255,0.28), transparent 60%),
    rgba(72,242,255,0.08);
  box-shadow:
    0 14px 50px rgba(72,242,255,0.12),
    0 10px 30px rgba(0,0,0,0.22);
}
.btn-primary .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(72,242,255,0.85);
}

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.hamburger:active { transform: scale(0.98); }
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: rgba(234,242,247,0.86);
  border-radius: 2px;
}

.mobileMenu {
  display: none;
  padding: 0 0 14px 0;
}
.mobileMenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  margin-top: 8px;
  color: rgba(234,242,247,0.88);
}

.hero {
  padding: 54px 0 30px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(72,242,255,0.22);
  background: rgba(72,242,255,0.06);
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(234,242,247,0.92);
  font-size: 12px;
}
.kicker .chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(124,92,255,0.14);
  border: 1px solid rgba(124,92,255,0.22);
  color: rgba(234,242,247,0.88);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 11px;
}
h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  margin: 14px 0 12px;
}
.lead {
  color: rgba(159,178,193,0.95);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 18px;
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.note {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.pill {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 10px 10px;
  font-size: 12px;
  color: rgba(234,242,247,0.80);
  text-align: center;
}

.preview {
  position: relative;
}
.stack {
  display: grid;
  gap: 12px;
}
.mock {
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: 0 18px 70px rgba(0,0,0,0.45);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
}
.mock .bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.12);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.dot.c { background: rgba(72,242,255,0.65); box-shadow: 0 0 18px rgba(72,242,255,0.45); }
.mock .body {
  padding: 18px 18px 20px;
}
.skel {
  height: 10px;
  border-radius: 999px;
  background: rgba(234,242,247,0.12);
  margin: 10px 0;
}
.skel.w60 { width: 60%; }
.skel.w75 { width: 75%; }
.skel.w40 { width: 40%; }
.skel.h24 { height: 24px; border-radius: 12px; background: rgba(72,242,255,0.10); border: 1px solid rgba(72,242,255,0.18); }

.glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(450px 240px at 20% 20%, rgba(72,242,255,0.20), transparent 55%),
              radial-gradient(520px 280px at 90% 40%, rgba(124,92,255,0.18), transparent 55%);
  filter: blur(6px);
  opacity: 0.8;
  pointer-events: none;
}

.section {
  padding: 28px 0 44px;
}
.section h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  font-size: 24px;
}
.sub {
  margin-top: -6px;
  color: rgba(159,178,193,0.95);
  font-size: 14px;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.card {
  grid-column: span 4;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(700px 70px at 20% 0%, rgba(72,242,255,0.10), transparent 60%),
    rgba(255,255,255,0.03);
  box-shadow: 0 14px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  position: relative;
}
.card::after {
  content:"";
  position:absolute; inset:-1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(72,242,255,0.34), rgba(124,92,255,0.18), rgba(0,255,168,0.10));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(72,242,255,0.22);
}
.card .thumb {
  height: 150px;
  background:
    radial-gradient(500px 140px at 35% 20%, rgba(72,242,255,0.18), transparent 60%),
    radial-gradient(520px 180px at 85% 40%, rgba(124,92,255,0.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.06));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.thumb .mini {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: grid;
  gap: 8px;
}
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(234,242,247,0.84);
}
.badge.cyan { border-color: rgba(72,242,255,0.22); background: rgba(72,242,255,0.06); }
.badge.violet { border-color: rgba(124,92,255,0.22); background: rgba(124,92,255,0.08); }
.badge.good { border-color: rgba(0,255,168,0.22); background: rgba(0,255,168,0.06); }

.card .content {
  padding: 14px 14px 16px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(159,178,193,0.92);
  font-size: 12px;
  margin-bottom: 12px;
}
.card .cta {
  display: flex;
  gap: 10px;
}
.btn-sm {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.btn-sm.primary {
  border-color: rgba(72,242,255,0.30);
  background: rgba(72,242,255,0.08);
}
.btn-sm:hover { border-color: rgba(72,242,255,0.22); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(234,242,247,0.86);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.chip input { display: none; }
.chip[data-active="true"] {
  border-color: rgba(72,242,255,0.34);
  background: rgba(72,242,255,0.08);
  box-shadow: 0 12px 40px rgba(72,242,255,0.08);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.step {
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 14px;
}
.step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(72,242,255,0.22);
  background: rgba(72,242,255,0.06);
  color: rgba(234,242,247,0.92);
  font-weight: 800;
}
.step h3 {
  margin: 10px 0 6px;
  font-size: 14px;
}
.step p {
  margin: 0;
  color: rgba(159,178,193,0.95);
  font-size: 13px;
  line-height: 1.55;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.plan {
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.plan.featured {
  border-color: rgba(72,242,255,0.26);
  background:
    radial-gradient(600px 70px at 20% 0%, rgba(72,242,255,0.18), transparent 60%),
    rgba(255,255,255,0.03);
  box-shadow: 0 18px 80px rgba(72,242,255,0.10);
}
.plan .tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(72,242,255,0.22);
  background: rgba(72,242,255,0.08);
  font-size: 11px;
  font-weight: 800;
}
.plan h3 { margin: 0 0 6px; font-size: 16px; }
.price {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}
.price small { font-size: 12px; color: rgba(159,178,193,0.9); }
.ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(159,178,193,0.96);
  font-size: 13px;
  line-height: 1.6;
}
.ul li { margin: 7px 0; }
.plan .actions { margin-top: 14px; }

.toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 6px;
}
.toggle button {
  border: 0;
  background: transparent;
  color: rgba(234,242,247,0.82);
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}
.toggle button.active {
  background: rgba(72,242,255,0.10);
  color: rgba(234,242,247,0.94);
  border: 1px solid rgba(72,242,255,0.22);
}

.footer {
  padding: 26px 0 42px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(159,178,193,0.92);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}
.footer a {
  color: rgba(234,242,247,0.76);
}
.footer a:hover {
  color: rgba(72,242,255,0.90);
}

.mobileCta {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 60;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.62);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 20px;
}
.modal[aria-hidden="false"] { display: flex; }
.modal .panel {
  width: min(980px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(900px 120px at 20% 0%, rgba(72,242,255,0.14), transparent 60%),
    rgba(10, 16, 22, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 120px rgba(0,0,0,0.65);
  overflow: hidden;
}
.modal .panel .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.modal .panel .body {
  padding: 16px;
}
.close {
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: rgba(234,242,247,0.86);
  cursor: pointer;
}
.close:hover { border-color: rgba(72,242,255,0.22); }

.kv {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.kv .shot {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(700px 140px at 30% 20%, rgba(72,242,255,0.18), transparent 60%),
    radial-gradient(700px 180px at 85% 40%, rgba(124,92,255,0.16), transparent 60%),
    rgba(255,255,255,0.02);
  height: 380px;
  position: relative;
  overflow: hidden;
}
.kv .shot::after {
  content:"";
  position:absolute;
  inset: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(234,242,247,0.18);
  opacity: 0.45;
}
.kv .details {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 14px;
}
.kv .details h3 { margin-top: 0; }
.row {
  display:flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(159,178,193,0.96);
  font-size: 13px;
}
.row:last-child { border-bottom: 0; }
.row strong { color: rgba(234,242,247,0.90); font-weight: 800; }

.form {
  width: min(520px, 100%);
  margin: 28px auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(700px 80px at 20% 0%, rgba(72,242,255,0.14), transparent 60%),
    rgba(255,255,255,0.03);
  padding: 16px;
}
.field {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
label { font-size: 12px; color: rgba(159,178,193,0.95); }
input, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: rgba(234,242,247,0.92);
  outline: none;
}
input:focus, select:focus {
  border-color: rgba(72,242,255,0.32);
  box-shadow: 0 0 0 4px rgba(72,242,255,0.10);
}
.helper {
  color: rgba(159,178,193,0.9);
  font-size: 12px;
  line-height: 1.5;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
}
.table th, .table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
  font-size: 13px;
}
.table th {
  color: rgba(234,242,247,0.86);
  background: rgba(255,255,255,0.04);
}
.table td {
  color: rgba(159,178,193,0.98);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
}
.status .s {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 14px rgba(0,255,168,0.55);
}
.status.warn .s { background: var(--warn); box-shadow: 0 0 14px rgba(255,209,102,0.45); }
.status.bad .s { background: var(--bad); box-shadow: 0 0 14px rgba(255,92,122,0.45); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .note { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-column: span 6; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .navlinks, .actions .ghost-desktop { display: none; }
  .hamburger { display: inline-block; }
  .mobileCta { display: block; }
  .card { grid-column: span 12; }
  .container { width: calc(100% - 28px); }
}


/* === PENROUZ responsive + a11y patch (2026-02-16) === */

/* Better tap targets + focus */
.btn, .pill, .hamburger, input, select, textarea, button {
  touch-action: manipulation;
}
.btn {
  cursor: pointer;
  min-height: 44px;
}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(72,242,255,0.55);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: 10px;
  z-index: 9999;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(5,7,10,0.92);
  border: 1px solid rgba(72,242,255,0.22);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* Safe-area padding for notched devices */
.topbar {
  padding-top: env(safe-area-inset-top);
}

/* Fluid type for big headings */
.hero h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  letter-spacing: 0.01em;
}
h2.sectionTitle, .sectionTitle {
  font-size: clamp(22px, 3.4vw, 34px);
}

/* Prevent hover lift on touch devices */
@media (hover: none) {
  .btn:hover,
  .card:hover,
  .tile:hover {
    transform: none;
  }
}

/* Ultra-small phones */
@media (max-width: 420px) {
  .container { width: min(var(--max), calc(100% - 28px)); }

  .brand img { width: 38px; height: 38px; border-radius: 12px; }
  .brand .title span { display: none; }

  .hero { padding: 36px 0 20px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }

  .card, .tile, .glass { border-radius: 18px; }
}

/* Very narrow devices */
@media (max-width: 360px) {
  .nav { gap: 10px; }
  .btn { padding: 11px 12px; }
  .pill { padding: 8px 10px; }
}

/* Wide screens */
@media (min-width: 1400px) {
  :root { --max: 1240px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn, .card, .tile, .pill { transition: none !important; }
}

.bg-grid::before{
  background-position: 0 0 !important;
  background-repeat: repeat !important;
  transform: translateZ(0);
  filter: blur(0.25px);
  -webkit-filter: blur(0.25px);
}
/* ===== /PENROUZ seam fix ===== */

/* ===== PENROUZ GRADIENT FIX (user-tuned) ===== */
body.bg-grid{
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(72,242,255,0.12), transparent 55%),
    radial-gradient(900px 600px at 90% 20%, rgba(124,92,255,0.12), transparent 55%),
    radial-gradient(900px 600px at 50% 120%, rgba(0,255,168,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-repeat: no-repeat;
}
/* ===== /PENROUZ GRADIENT FIX ===== */

/* ===== PENROUZ MOBILE WIDTH FIX ===== */
html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body{
  margin: 0;
}
/* на всякий — чтобы корневые контейнеры не растягивали страницу */
main, header, footer, section, div{
  max-width: 100%;
}
/* ===== /PENROUZ MOBILE WIDTH FIX ===== */
