:root {
  --bg: #070b14;
  --bg-elevated: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --border: rgba(51, 65, 85, 0.75);
  --border-bright: rgba(0, 229, 255, 0.35);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --cyan: #00e5ff;
  --emerald: #00e676;
  --violet: #b388ff;
  --amber: #fbbf24;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1120px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 229, 255, 0.14), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(179, 136, 255, 0.14), transparent 38%),
    radial-gradient(circle at 50% 90%, rgba(0, 230, 118, 0.08), transparent 42%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #7df3ff;
}

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

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
  min-width: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.2);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand-title {
  font-size: 0.98rem;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 9px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
}

.nav-toggle {
  display: none;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Main */
main {
  flex: 1;
  padding: 40px 0 64px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.65));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.4), transparent 45%, rgba(179, 136, 255, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.pill-green {
  color: var(--emerald);
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.3);
}

.pill-violet {
  color: var(--violet);
  background: rgba(179, 136, 255, 0.12);
  border-color: rgba(179, 136, 255, 0.3);
}

.pill-danger {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
}

h1 {
  margin: 14px 0 12px;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  letter-spacing: -0.015em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.lead {
  color: var(--text-soft);
  font-size: 1.03rem;
  margin: 0 0 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #38bdf8);
  color: #04101d;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.28);
}

.btn-primary:hover {
  color: #04101d;
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.38);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.85);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  color: var(--cyan);
  border-color: var(--border-bright);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  color: #fff;
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.82rem;
  border-radius: 9px;
}

.hero-card {
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.app-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-badge-row img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border-bright);
}

.kv-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kv-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(51, 65, 85, 0.7);
  font-size: 0.88rem;
}

.kv-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.kv-label {
  color: var(--text-muted);
}

.kv-val {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Sections & Grids */
.section {
  margin-top: 44px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-sub {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.94rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.card-hover:hover {
  border-color: var(--border-bright);
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.icon-green {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.25);
}

.icon-violet {
  background: rgba(179, 136, 255, 0.12);
  border-color: rgba(179, 136, 255, 0.25);
}

.icon-amber {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
}

/* URL Directory table for Google Play Console */
.url-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.65);
  margin-top: 10px;
  flex-wrap: wrap;
}

.url-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.url-title {
  font-weight: 600;
  font-size: 0.93rem;
}

.url-path {
  font-size: 0.83rem;
  color: var(--cyan);
  word-break: break-all;
}

/* Legal / Document pages */
.doc-header {
  padding: 28px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

.lang-btn.active {
  background: rgba(0, 229, 255, 0.16);
  color: var(--cyan);
}

.doc-body {
  display: grid;
  gap: 16px;
}

.doc-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.doc-section h2 {
  font-size: 1.15rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.doc-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text-soft);
}

.doc-section li {
  margin-bottom: 6px;
}

.notice {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 230, 118, 0.3);
  background: rgba(0, 230, 118, 0.08);
  color: #bbf7d0;
  font-size: 0.92rem;
}

.notice-warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.09);
  color: #fde68a;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-soft);
}

input[type='email'],
input[type='text'],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.85);
  color: var(--text);
  font-size: 0.94rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.89rem;
  color: var(--text-soft);
}

.checkbox-row input {
  margin-top: 4px;
  accent-color: var(--cyan);
}

.result-box {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.35);
}

.result-box.visible {
  display: block;
}

/* Changelog timeline */
.release-card {
  border-left: 3px solid var(--cyan);
}

.release-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.65);
  background: rgba(7, 11, 20, 0.9);
  padding: 26px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--cyan);
}

.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .brand-title {
    font-size: 0.88rem;
  }

  .nav-controls {
    gap: 8px;
  }

  .nav-controls .lang-btn {
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
