/* NabuSQL – Custom styles (supplements Tailwind CDN) */

:root {
  --bg-base:    #070e1a;
  --bg-surface: #0d1b2e;
  --bg-card:    #122035;
  --border:     #1e3a5f;
  --accent:     #2563eb;
  --accent-h:   #1d4ed8;
  --sky:        #38bdf8;
  --text-1:     #f1f5f9;
  --text-2:     #94a3b8;
  --text-3:     #64748b;
}

/* ── Base ─────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-1);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Scrollbar (webkit) ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Navbar ──────────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(7,14,26,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.5); }

.nav-logo {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--text-2); font-size: .875rem; font-weight: 500;
  padding: 6px 0; position: relative; transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform .2s;
}
.nav-link:hover, .nav-link.active { color: var(--text-1); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* ── Lang switcher ───────────────────────────────────────────────── */
.lang-btn {
  padding: 4px 10px; border-radius: 6px; font-size: .75rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-3);
  background: transparent; cursor: pointer; transition: all .2s;
  text-transform: uppercase; letter-spacing: .5px;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.25) 0%, transparent 60%),
    var(--bg-base);
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
}
.hero-title span {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 99px;
  background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.35);
  color: #93c5fd; font-size: .75rem; font-weight: 600;
}

/* ── Mockup window ───────────────────────────────────────────────── */
.app-mockup {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  background: var(--bg-card);
}
.mockup-bar {
  background: var(--bg-surface); padding: 12px 16px;
  display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-body {
  padding: 24px;
  background: repeating-linear-gradient(
    0deg, var(--bg-card) 0px, var(--bg-card) 28px,
    rgba(255,255,255,.015) 28px, rgba(255,255,255,.015) 56px
  );
  min-height: 280px;
}

/* ── Section ─────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700; letter-spacing: -.02em;
}
.section-sub {
  color: var(--text-2); font-size: 1.1rem; max-width: 560px; margin: 0 auto;
}

/* ── Feature cards ───────────────────────────────────────────────── */
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feat-card:hover {
  border-color: rgba(37,99,235,.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.feat-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,.15); margin-bottom: 16px;
}
.feat-icon svg { width: 24px; height: 24px; color: #60a5fa; }

/* ── Pricing cards ───────────────────────────────────────────────── */
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
  position: relative; overflow: hidden;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(145deg, var(--bg-card), rgba(37,99,235,.08));
  box-shadow: 0 0 40px rgba(37,99,235,.2);
}
.price-card.featured::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}
.price-amount {
  font-size: 2.75rem; font-weight: 800; letter-spacing: -.04em; line-height: 1;
}
.price-amount-original {
  font-size: 1.25rem; color: var(--text-3); text-decoration: line-through;
}
.price-feat-list { list-style: none; padding: 0; margin: 0; }
.price-feat-list li {
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05);
  color: var(--text-2); display: flex; align-items: center; gap: 10px;
  font-size: .9rem;
}
.price-feat-list li:last-child { border-bottom: none; }
.check-icon { color: #4ade80; flex-shrink: 0; }

.early-bird-banner {
  background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(37,99,235,.15));
  border: 1px solid rgba(245,158,11,.35);
  border-radius: 12px; padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
}

/* ── Form section ────────────────────────────────────────────────── */
.form-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 40px;
  max-width: 600px; margin: 0 auto;
}

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

.form-input {
  width: 100%; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; color: var(--text-1); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.2);
}
.form-input::placeholder { color: var(--text-3); }
.form-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.15); }

textarea.form-input { resize: vertical; min-height: 80px; }

.company-toggle {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; color: var(--text-2); font-size: .9rem; user-select: none;
}
.toggle-switch {
  width: 40px; height: 22px; background: var(--border); border-radius: 99px;
  position: relative; transition: background .2s;
}
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .2s;
}
.toggle-switch.on { background: var(--accent); }
.toggle-switch.on::after { transform: translateX(18px); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: 8px;
  font-size: .95rem; font-weight: 600; border: none; cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-h);
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
}
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--text-1);
  padding: 11px 28px; border-radius: 8px;
  font-size: .95rem; font-weight: 600;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color .2s, background .2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(37,99,235,.08); }
.btn-full { width: 100%; }

/* ── Alert messages ──────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: 8px; font-size: .9rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }

/* ── License key display ─────────────────────────────────────────── */
.license-key-box {
  background: var(--bg-base); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .8rem; word-break: break-all; line-height: 1.8;
  color: var(--sky); text-align: center; letter-spacing: .05em;
  position: relative;
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

/* ── Mobile hamburger ────────────────────────────────────────────── */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-2); border-radius: 2px;
  transition: all .3s;
  margin: 5px 0;
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,14,26,.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; flex-direction: column; gap: 8px;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 10px 0; font-size: 1rem; }
  .form-card { padding: 24px; }
  .hero-section { padding-top: 100px; }
}

/* ── Utility ─────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.divider { height: 1px; background: var(--border); margin: 0; }
