:root {
  --bg: #0b0a1f;
  --bg-2: #120f2e;
  --card: #171533;
  --card-2: #1d1a40;
  --border: #2a2657;
  --fg: #ebe8ff;
  --muted: #9b96c7;
  --primary: #6c3bff;
  --primary-2: #8a5cff;
  --accent: #b5c4d8;
  --danger: #ef4f6e;
  --radius: 16px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(900px 600px at 20% -10%, rgba(108, 59, 255, 0.25), transparent 60%),
              radial-gradient(700px 500px at 100% 110%, rgba(138, 92, 255, 0.18), transparent 60%),
              var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(108, 59, 255, 0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(108, 59, 255, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 10, 31, 0.6);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.5;
  animation: ping 1.6s ease-out infinite;
}

.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--primary);
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.6; }
  80%, 100% { transform: scale(2.4); opacity: 0; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: 0.2s;
  font: inherit;
  font-size: 12px;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary-2);
}

header.brand {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(108, 59, 255, 0.12);
  border: 1px solid rgba(108, 59, 255, 0.4);
  box-shadow: 0 0 30px rgba(108, 59, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, #a98cff, #6c3bff, #dfe6f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.logo p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

nav.links {
  display: none;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

nav.links a:hover {
  color: var(--fg);
}

@media (min-width: 768px) {
  nav.links {
    display: flex;
  }
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

.hero {
  text-align: center;
  margin: 24px 0 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(108, 59, 255, 0.45);
  background: rgba(108, 59, 255, 0.12);
  color: var(--primary-2);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h2 {
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 14px auto 0;
  font-size: 17px;
}

form.bypass {
  max-width: 880px;
  margin: 0 auto;
}

.input-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 10px;
  transition: 0.25s;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 60px rgba(108, 59, 255, 0.35);
}

@media (min-width: 768px) {
  .input-wrap {
    flex-direction: row;
  }
}

.link-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: rgba(108, 59, 255, 0.15);
  color: var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
}

.url-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  width: 100%;
  padding: 6px;
}

.url-row input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--fg);
  font-size: 18px;
  padding: 10px 0;
}

.url-row input::placeholder {
  color: #6e6a99;
}

button.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: 0;
  border-radius: 16px;
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(108, 59, 255, 0.45);
  transition: 0.2s;
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  button.cta {
    width: auto;
  }
}

button.cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(108, 59, 255, 0.6);
}

button.cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}

.status-pills span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 12px;
  border-radius: 999px;
}

.error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239, 79, 110, 0.1);
  border: 1px solid rgba(239, 79, 110, 0.4);
  color: #ffd2d8;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

section.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 980px;
  margin: 88px auto 0;
}

@media (min-width: 768px) {
  section.features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.features .card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(8px);
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}

.features .card:hover {
  border-color: rgba(108, 59, 255, 0.45);
}

.features .card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108, 59, 255, 0.25), rgba(138, 92, 255, 0.25));
  color: var(--primary-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.features .card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.features .card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

section.how {
  max-width: 980px;
  margin: 72px auto 0;
}

section.how h3 {
  text-align: center;
  font-size: 28px;
  margin: 0 0 6px;
}

section.how .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14px;
}

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

@media (min-width: 768px) {
  .how .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how .step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.how .step .num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 18, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}

.modal.open {
  display: flex;
}

.modal .box {
  background: var(--card);
  border: 1px solid rgba(108, 59, 255, 0.45);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 0 80px rgba(108, 59, 255, 0.35);
  position: relative;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.modal .close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}

.result-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.result-head .check {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  animation: float 4s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(108, 59, 255, 0.5);
}

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

.result-link {
  word-break: break-all;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  margin-bottom: 20px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 520px) {
  .actions {
    flex-direction: row;
  }
}

.btn-sec {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}

.btn-sec:hover {
  border-color: var(--primary);
}

.btn-pri {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

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

.settings {
  max-width: 680px;
  margin: 0 auto 8px;
  display: none;
}

.settings.open {
  display: block;
}

.settings .panel {
  background: var(--card);
  border: 1px solid rgba(108, 59, 255, 0.4);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px);
}

.settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.settings input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  outline: none;
}

.settings input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 59, 255, 0.25);
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 20px;
  color: var(--muted);
  font-size: 12px;
}

footer .wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  footer .wrap {
    flex-direction: row;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
