/* ============================================================
   Biguntek OneTime — design tokens & base
   ============================================================ */
:root {
  --accent: #36a147;
  --accent-hover: #2b8339;
  --accent-soft: rgba(54, 161, 71, 0.14);
  --accent-border: rgba(54, 161, 71, 0.34);
  --bg: #0b0f0c;
  --surface: #121814;
  --surface-2: #161d18;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7f5;
  --text-muted: #9aa39c;
  --danger: #ef4444;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --radius-lg: 20px;
  --max-w: 1080px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: #041006;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.link-muted {
  color: var(--text-muted);
  border-bottom: 1px solid rgba(154, 163, 156, 0.3);
  transition: color 150ms ease;
}

.link-muted:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 640px;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-name em {
  font-style: normal;
  color: var(--accent);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 72px 0 40px;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-title.small {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.hero-sub {
  margin: 0 auto 36px;
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ============================================================
   Secret panel & form
   ============================================================ */
.secret-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  text-align: left;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field textarea,
.field input[type="password"],
.field input[type="text"],
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 150px;
}

.field textarea::placeholder,
.field input::placeholder {
  color: rgba(154, 163, 156, 0.6);
}

.field textarea:focus,
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa39c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.field select option {
  background: var(--surface-2);
  color: var(--text);
}

.hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-error {
  margin: 0;
  font-size: 0.9rem;
  color: var(--danger);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 24px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-wide {
  min-width: 240px;
}

.btn-primary {
  background: var(--accent);
  color: #041006;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #041006;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ============================================================
   Result (created link)
   ============================================================ */
.result-panel {
  text-align: center;
}

.result-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 700;
}

.result-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.link-box {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.link-box input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 13px 14px;
}

.result-warn {
  margin: 20px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.result-panel .btn-ghost {
  margin-top: 20px;
}

/* ============================================================
   Modal (popup link)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  animation: modal-fade-in 200ms ease both;
}

.modal {
  width: 100%;
  max-width: 520px;
  margin: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(0, 0, 0, 0.5);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  animation: modal-slide-in 250ms ease both;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modal-slide-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes modal-slide-in { from { opacity: 0; } to { opacity: 1; } }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

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

.modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.modal-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal .link-box {
  margin-bottom: 8px;
}

.modal .result-warn {
  margin-top: 16px;
}

.modal .btn-ghost {
  margin-top: 20px;
}

@media (max-width: 480px) {
  .modal {
    margin: 12px;
    padding: 28px 20px;
  }
  .modal .link-box {
    flex-direction: column;
  }
}
   ============================================================ */
.how {
  padding: 64px 0;
}

.section-title {
  margin: 0 0 40px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   Trust
   ============================================================ */
.trust {
  padding: 0 0 80px;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 12px 8px;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
}

.trust-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.trust-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============================================================
   Reveal page
   ============================================================ */
.reveal-page {
  padding-top: 48px;
}

.reveal-panel {
  text-align: center;
}

.reveal-panel .field {
  text-align: left;
}

.revealed {
  text-align: left;
}

.revealed-label {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.secret-content {
  margin: 0;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 420px;
  overflow: auto;
}

.state-panel {
  text-align: center;
}

.reveal-footer {
  margin-top: 28px;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.9rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   Motion & accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:active {
    transform: none;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    padding: 48px 0 32px;
  }
  .secret-panel {
    padding: 24px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .steps,
  .trust-inner {
    grid-template-columns: 1fr;
  }
  .link-box {
    flex-direction: column;
  }
}
