/*
  RELAY by BLACKSITE — minimal design system
  Palet: hitam #0B0B0C, merah #E10600, putih #FFFFFF
  Dial: ENERGY 2 / RHYTHM 2 / MOTION 1
  Author: BLACKSITE
  License: MIT
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --black: #0b0b0c;
  --dark: #141416;
  --red: #e10600;
  --red-dark: #a50000;
  --red-text: #ff5a5a;
  --white: #ffffff;
  --muted: #9ca3af;
  --muted2: #8b93a1;
  --border: #26262b;
  --radius: 8px;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: var(--black);
  --text: var(--white);
}

[data-theme="light"] {
  --bg: #fafafa;
  --text: #111113;
  --muted: #4b5563;
  --muted2: #6b7280;
  --red-text: #c20000;
}

[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

img {
  max-width: 100%;
  display: block;
}

button,
a[href],
summary,
select,
label[for],
input[type="checkbox"],
input[type="radio"],
[role="button"],
[role="tab"],
[role="switch"] {
  cursor: pointer;
}

button:disabled,
select:disabled,
input:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

.container {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 1rem;
  font-family: var(--font);
}

.section-sub {
  color: var(--muted);
  max-width: 560px;
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

/* Navbar — minimal: sticky, tanpa border */
.navbar-cyber {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--red);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
}

.brand-name {
  font-family: var(--font);
  font-weight: 800;
  color: var(--text);
}

.brand-by {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

.theme-toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--black);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
}

.theme-toggle .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  transition: left 0.2s;
}

[data-theme="light"] .theme-toggle .knob {
  left: 20px;
}

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.2rem;
  padding: 6px 8px;
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 1rem;
}

.btn-cyber {
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
}

.btn-cyber:hover {
  background: var(--red-dark);
}

.btn-outline-cyber {
  border-color: var(--border);
  color: var(--text);
  padding: 12px 20px;
  background: transparent;
}

.btn-outline-cyber:hover {
  border-color: var(--muted);
  color: var(--muted);
}

.btn:disabled,
.btn-cyber:disabled,
.btn-outline-cyber:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 4px;
}

.field {
  margin-bottom: 1rem;
}

input[type="url"],
input[type="password"],
input[type="text"],
select,
textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 1rem;
}

input::placeholder {
  color: var(--muted2);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red-text);
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 8px;
}

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

.panel {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 48rem;
}

.short-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.short-url {
  flex: 1 1 18rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.short-url.small {
  flex: 1 1 12rem;
  font-size: 0.85rem;
}

.qr-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.qr-wrap canvas {
  width: 150px;
  height: 150px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.error {
  color: var(--red-text);
  border-left: 2px solid var(--red);
  padding: 0.5rem 0 0.5rem 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

.warn {
  color: var(--red-text);
  border-left: 2px solid var(--red);
  padding: 0.5rem 0 0.5rem 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

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

.small {
  font-size: 0.875rem;
}

.opts {
  margin: 0.25rem 0 1rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.opts summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  color: var(--text);
}

.opts summary::-webkit-details-marker {
  display: none;
}

.opts-body {
  padding: 0.5rem 0 0.25rem;
}

#turnstile-box {
  min-height: 50px;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
}

.manage-box {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.mg-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.stats {
  margin: 0;
}

.stat {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.stat dt {
  color: var(--muted);
  font-weight: 500;
  margin: 0;
}

.stat dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 600;
  font-family: var(--font-mono);
}

.danger-section {
  border-left: 2px solid var(--red);
  padding-left: 0.75rem;
}

.site-foot {
  border-top: 1px solid var(--border);
  padding: 24px 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-foot .container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-foot p {
  margin: 0;
}

.foot-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9rem;
}

.foot-line .foot-name {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.foot-note {
  color: var(--muted);
  font-size: 0.75rem;
  max-width: 560px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 600px) {
  main {
    padding: 1.5rem 1rem;
  }
  .short-url,
  .short-url.small {
    flex: 1 1 100%;
  }
  .qr-wrap canvas {
    width: 120px;
    height: 120px;
  }
  .btn-cyber,
  .btn-outline-cyber {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .brand {
    font-size: 1.1rem;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
}