:root {
  --bg: #0a0f1a;
  --panel: #111827;
  --panel-2: #1a2435;
  --accent: #fbbf24;
  --accent-2: #60a5fa;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --success: #34d399;
  --danger: #f87171;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(96, 165, 250, 0.18), transparent 35%),
    linear-gradient(180deg, var(--bg), #050a12 100%);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-weight: 900;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.9;
}

main {
  width: min(1200px, 90vw);
  margin: 0 auto;
  padding-bottom: 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 2rem;
  padding: 4rem 0 2rem;
  align-items: center;
}

.hero-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: #111827;
}

.button.secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.hero-panel,
.card,
.download-card,
.signup-form,
.legal-box {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 2rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.stat span {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
}

.section {
  padding-top: 1.5rem;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-header h3 {
  font-size: clamp(1.5rem, 2vw, 2.3rem);
  margin-bottom: 0;
}

.card-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.2rem;
}

.card h4 {
  margin: 0.2rem 0 0.5rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.highlight {
  margin-top: 2rem;
}

.legal-box {
  padding: 1.3rem 1.5rem;
  color: var(--muted);
}

.form-section {
  margin-top: 2.5rem;
}

.signup-form {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

input,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(96, 165, 250, 0.7);
  outline-offset: 2px;
}

.wide {
  width: 100%;
}

.message {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.message.success {
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.message.error {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.hidden {
  display: none !important;
}

.gallery-section {
  margin-top: 2.5rem;
}

.gallery-categories {
  display: grid;
  gap: 1.5rem;
}

.gallery-group {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.gallery-group h4 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.45);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #0b1220;
}

.gallery-item span {
  display: block;
  padding: 0.75rem 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.download-section {
  margin-top: 2.5rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 180px;
  padding: 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.5);
}

.download-card strong {
  font-size: 1.1rem;
}

.download-card small {
  color: var(--muted);
  line-height: 1.5;
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111827;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-weight: 800;
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0 3rem;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .auth-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
