@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Unbounded:wght@500;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #06060b;
  --bg-soft: #0d0d14;
  --red: #ff2e2e;
  --red-dark: #b80024;
  --gold: #f3b63f;
  --orange: #ff7a2f;
  --text: #f7f2ea;
  --muted: rgba(247, 242, 234, 0.65);
  --glass: rgba(20, 20, 28, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(1200px circle at 10% 10%, rgba(255, 46, 46, 0.15), transparent 55%),
    radial-gradient(1000px circle at 90% 5%, rgba(255, 122, 47, 0.12), transparent 60%),
    #05050a;
  color: var(--text);
  min-height: 100vh;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Unbounded", sans-serif;
  font-size: 24px;
  letter-spacing: 0.08em;
}

.logo span {
  color: var(--red);
}

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

.pill {
  padding: 10px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 46, 46, 0.12);
  border: 1px solid rgba(255, 46, 46, 0.3);
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero-text h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 18px 0 16px;
}

.hero-text p {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

form .btn.primary {
  padding: 18px 32px;
  font-size: 16px;
  margin-top: 8px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 46, 46, 0.25);
}

.btn.ghost {
  border: 1px solid var(--glass-border);
  color: var(--text);
  background: transparent;
}

.btn.invert {
  background: #fff;
  color: #111;
}

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

.hero-metrics {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot.red {
  background: var(--red);
}

.dot.gold {
  background: var(--gold);
}

.dot.orange {
  background: var(--orange);
}

.hero-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.status {
  color: var(--red);
  font-weight: 600;
}

.card-link {
  font-size: 18px;
  font-weight: 600;
}

.card-details {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.card-details span {
  border: 1px solid var(--glass-border);
  padding: 6px 10px;
  border-radius: 999px;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 46, 46, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 46, 46, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 46, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 46, 46, 0);
  }
}

.shorten-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 20px;
}

.shorten {
  display: flex;
  justify-content: center;
}

.shorten-panel {
  background: var(--glass);
  border: 2px solid rgba(255, 46, 46, 0.3);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(255, 46, 46, 0.15), 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  width: 100%;
}

.shorten-info {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 28px;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.shorten-panel h2 {
  font-size: 42px;
  margin-bottom: 14px;
  font-family: "Unbounded", sans-serif;
  line-height: 1.2;
}

.shorten-panel p {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 18px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

input {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 16px;
  font-family: "Space Grotesk", sans-serif;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border: 2px solid var(--red);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 46, 46, 0.15);
}

.result {
  margin-top: 24px;
  padding: 24px;
  border-radius: 18px;
  border: 2px solid rgba(255, 46, 46, 0.3);
  background: rgba(0, 0, 0, 0.6);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(255, 46, 46, 0.1);
}

.result a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qr-block {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qr-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.65);
}

.qr-img {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
}

.hidden {
  display: none;
}

.shorten-info h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.shorten-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.info-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-box span {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
}

.feature h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
}

.cta {
  background: linear-gradient(130deg, rgba(255, 46, 46, 0.18), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta p {
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 720px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta {
    align-items: flex-start;
  }
}
