/*============================================================+
  identity.parta.app — Main Stylesheet
  (c) 2026 ae Aeonian Engineering Limited - Hong Kong
  (c) 2026 WIDE di D. Papa - Naples - Italy
+============================================================*/

/* ── Variables ─────────────────────────────────────────────────────────────── */

:root {
  --bg:      #0a0a0a;
  --bg2:     #111111;
  --bg3:     #1a1a1a;
  --card:    #141414;
  --text:    #f0ede8;
  --muted:   #888888;
  --accent:  #f0e550;
  --border:  rgba(255,255,255,0.08);

  --font-display: 'Barlow Condensed', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:  8px;
  --shadow:  0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

[data-theme="light"] {
  --bg:     #f5f3ef;
  --bg2:    #eeebe5;
  --bg3:    #e4e0d8;
  --card:   #ffffff;
  --text:   #1a1a18;
  --muted:  #666666;
  --accent: #11ccc3;
  --border: rgba(0,0,0,0.08);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

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

/* ── Typography ────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

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

.navbar__brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__brand img {
  width: 28px;
  height: 28px;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition), background var(--transition);
  text-decoration: none;
}

.btn:hover { opacity: 0.88; }

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

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--full { width: 100%; justify-content: center; }

/* ── Theme toggle ───────────────────────────────────────────────────────────── */

.theme-toggle {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.theme-toggle:hover { background: var(--bg2); }

/* ── Language selector ──────────────────────────────────────────────────────── */

.lang-select {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
}

.lang-select:focus { border-color: var(--accent); }

/* ── Hero ───────────────────────────────────────────────────────────────────── */

.hero {
  padding: 100px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(200,240,80,0.06) 0%, transparent 70%),
    var(--bg);
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,240,80,0.08);
  border: 1px solid rgba(200,240,80,0.2);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero__title {
  margin-bottom: 20px;
  color: var(--text);
}

.hero__title span { color: var(--accent); }

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── How it works ───────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.step__text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Registration form ──────────────────────────────────────────────────────── */

.register-section {
  background: var(--bg2);
}

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--muted); }

select.form-control { cursor: pointer; }

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

.form-notice {
  border-left: 3px solid var(--accent);
  background: var(--bg3);
  color: var(--muted);
  font-size: 0.76rem;
  padding: 10px 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
  line-height: 1.5;
}

.form-error {
  color: #ff6b6b;
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}

.form-success {
  background: rgba(200,240,80,0.08);
  border: 1px solid rgba(200,240,80,0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  display: none;
}

.form-success__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

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

/* ── Download section ───────────────────────────────────────────────────────── */

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.download-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.download-card__icon {
  font-size: 2.4rem;
  flex-shrink: 0;
}

.download-card__title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

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

/* ── Section header ─────────────────────────────────────────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: 12px;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title { color: var(--text); }

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

/* ── Footer ─────────────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.footer__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ── Admin ──────────────────────────────────────────────────────────────────── */

.admin-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.admin-card__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text);
}

.admin-card__sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.table-responsive { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg3); }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge--pending  { background: rgba(255,180,0,0.12);  color: #ffb400; }
.badge--active   { background: rgba(200,240,80,0.12); color: var(--accent); }
.badge--rejected { background: rgba(255,80,80,0.12);  color: #ff5050; }

/* ── Utilities ──────────────────────────────────────────────────────────────── */

.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  section { padding: 56px 0; }

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

  .form-row { grid-template-columns: 1fr; }

  .form-card { padding: 24px; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .footer__bottom { flex-direction: column; text-align: center; }

  .navbar__brand span { display: none; }
}

@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; justify-content: center; }
}
