:root {
  --ink: #0e141b;
  --ink-2: #18222e;
  --panel: #1c2734;
  --line: rgba(232, 238, 245, 0.12);
  --text: #e8eef5;
  --muted: #9aabbc;
  --accent: #f0a35a;
  --accent-2: #3ecfb4;
  --danger: #ff6b6b;
  --radius: 14px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(62, 207, 180, 0.18), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(240, 163, 90, 0.16), transparent 50%),
    linear-gradient(165deg, var(--ink), var(--ink-2) 55%, #101820);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}

.brand span { color: var(--accent-2); }

.nav-links {
  display: flex;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--text); }

.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  align-content: center;
  gap: 1.1rem;
  padding: 2rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% -20% auto auto;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 40% 60% 55% 45%;
  background:
    linear-gradient(140deg, rgba(62, 207, 180, 0.25), rgba(240, 163, 90, 0.08)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 12px,
      rgba(232, 238, 245, 0.05) 12px,
      rgba(232, 238, 245, 0.05) 13px
    );
  filter: blur(0.2px);
  animation: floatBlob 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(18px) rotate(4deg); }
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 11ch;
  animation: fadeUp 0.8s ease 0.08s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
}

.hero p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
  animation: fadeUp 0.8s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.6rem;
  animation: fadeUp 0.8s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #e8873a);
  color: #1a120a;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(232, 238, 245, 0.35); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  padding: 3.5rem 0 4.5rem;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.section .lead {
  margin: 0 0 1.8rem;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 760px) {
  .tool-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

.tool-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(28, 39, 52, 0.92), rgba(14, 20, 27, 0.75));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tool-card:hover {
  border-color: rgba(62, 207, 180, 0.45);
  transform: translateY(-2px);
}

.tool-card .tag {
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(62, 207, 180, 0.12);
  color: var(--accent-2);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.tool-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0.4rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.6;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.pack {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: rgba(28, 39, 52, 0.8);
  display: grid;
  gap: 0.55rem;
}

.pack.recommended {
  border-color: rgba(240, 163, 90, 0.55);
  box-shadow: inset 0 0 0 1px rgba(240, 163, 90, 0.2);
}

.pack .price {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.pack .price small {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.2rem;
}

.badge {
  width: fit-content;
  font-size: 0.72rem;
  color: #1a120a;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-weight: 700;
}

.status-box {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(14, 20, 27, 0.65);
  color: var(--muted);
  min-height: 3rem;
}

.status-box.ok { color: var(--accent-2); border-color: rgba(62, 207, 180, 0.35); }
.status-box.err { color: var(--danger); border-color: rgba(255, 107, 107, 0.35); }

.qr-box {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(240, 163, 90, 0.45);
  text-align: center;
}

.qr-box.show { display: block; }
.qr-box img {
  margin: 0.8rem auto;
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: 8px;
}

.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
