/* Playbox AI — single-page site (no frameworks) */

:root {
  --bg: #070A12;
  --bg2: #0B1022;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.54);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.35);
  --accent: #7C3AED;
  --accent2: #EC4899;
  --ok: #10B981;
  --warn: #F59E0B;
  --danger: #EF4444;
  --radius: 18px;
  --radius2: 26px;
  --container: 1120px;
  --ring: 0 0 0 4px rgba(124, 58, 237, 0.24);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 5%, rgba(236, 72, 153, 0.22), transparent 60%),
    radial-gradient(900px 500px at 80% 15%, rgba(124, 58, 237, 0.24), transparent 55%),
    radial-gradient(900px 500px at 50% 95%, rgba(16, 185, 129, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

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

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

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.skip-link:focus {
  left: 10px;
  outline: none;
  box-shadow: var(--ring);
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(18px 18px at 30% 25%, rgba(255, 255, 255, 0.38), transparent 65%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(236, 72, 153, 0.95));
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.26);
}

.logo-img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 12px;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
}
.nav-links a:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  user-select: none;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.btn-primary {
  border: 1px solid rgba(124, 58, 237, 0.55);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(236, 72, 153, 0.92));
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.24);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 1), rgba(236, 72, 153, 0.98));
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-ghost {
  background: transparent;
}

.hero {
  padding: 56px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 13px;
}

.spark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(236, 72, 153, 0.12);
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.microcopy {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border-radius: var(--radius2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.tool {
  padding: 18px;
}

.tool h2 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.tool p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.dropzone {
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  display: grid;
  gap: 12px;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.dropzone.dragover {
  border-color: rgba(236, 72, 153, 0.65);
  background: rgba(236, 72, 153, 0.08);
  transform: translateY(-1px);
}

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

.file-name {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hint {
  color: var(--faint);
  font-size: 12.5px;
}

.preview {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 160px;
}
.preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.preview-placeholder {
  padding: 26px 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}
.preview-placeholder strong {
  display: block;
  margin-bottom: 6px;
}

.controls {
  display: grid;
  gap: 10px;
}

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

label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

select,
textarea,
input[type="text"] {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

select:focus,
textarea:focus,
input[type="text"]:focus {
  box-shadow: var(--ring);
  border-color: rgba(124, 58, 237, 0.55);
}

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

.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.status {
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
}
.status.ok {
  color: rgba(16, 185, 129, 0.92);
}
.status.warn {
  color: rgba(245, 158, 11, 0.92);
}
.status.danger {
  color: rgba(239, 68, 68, 0.92);
}

.section {
  padding: 26px 0 6px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer {
  padding: 38px 0 44px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.fine-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.fine-links a {
  color: rgba(255, 255, 255, 0.72);
}
.fine-links a:hover {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
}

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 0;
  background: rgba(7, 10, 18, 0.74);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  z-index: 50;
  display: none;
}
.cookie.show {
  display: block;
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.4;
  max-width: 70ch;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .row {
    grid-template-columns: 1fr;
  }
}

