/* ============================================================
   Arktiv — Shared Stylesheet
   Covers: reset, variables, nav, modal, forms, buttons, footer
   Page-specific styles live in each HTML file's <style> block
   ============================================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo: #5b5ef4;
  --indigo-dark: #4547d0;
  --indigo-light: #eeeffe;
  --indigo-mid: #c7c8fb;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #dc2626;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(91,94,244,.15), 0 2px 8px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── SKIP NAV ── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--indigo);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top .15s;
}
.skip-nav:focus { top: 0; }

/* ── ANIMATIONS ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(203,213,225,0.5);
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.sticky { position: sticky; }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 32px; height: 32px;
  background: var(--indigo);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-mark svg { width: 18px; height: 18px; }

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.4px;
}

.nav-logo-text span { color: var(--indigo); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--indigo); }

.nav-cta {
  background: var(--indigo);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .15s;
  text-decoration: none;
}

.nav-cta:hover {
  background: var(--indigo-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: .3s;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15,23,42,0.65);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  position: relative;
  animation: modalIn .2s ease;
}

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--slate-500);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.modal-close:hover { color: var(--slate-900); background: var(--slate-100); }

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--indigo-light);
  color: var(--indigo);
  border: 1px solid var(--indigo-mid);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-badge-dot {
  width: 7px; height: 7px;
  background: var(--indigo);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.modal-card h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.modal-card p.modal-sub {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 28px;
  line-height: 1.5;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  color: var(--slate-900);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(91,94,244,.1);
}

.form-group input::placeholder { color: var(--slate-300); }

.modal-submit {
  width: 100%;
  background: var(--indigo);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-lg);
}

.modal-submit:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(91,94,244,.3);
}

.modal-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.modal-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 13px;
  color: var(--red);
  text-align: center;
}

.modal-disclaimer {
  font-size: 12px;
  color: var(--slate-500);
  text-align: center;
  margin-top: 14px;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.modal-success-icon { font-size: 48px; margin-bottom: 16px; }

.modal-success h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.modal-success p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--indigo);
  color: var(--white);
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--indigo-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(91,94,244,.3);
}

.btn-outline {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--indigo-light); }

.btn-primary-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--white);
  background: var(--indigo);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.btn-primary-block:hover { background: var(--indigo-dark); transform: translateY(-1px); }

/* ── SECTION LABELS ── */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--slate-900);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--slate-500);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── FOOTER ── */
footer {
  background: var(--slate-900);
  padding: 32px 5%;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-logo-mark {
  width: 28px; height: 28px;
  background: var(--indigo);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 12px; color: rgba(255,255,255,.3); }

/* ── POST TAG ── */
.post-tag {
  display: inline-block;
  background: var(--indigo-light);
  color: var(--indigo);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── RESPONSIVE NAV ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-300);
    padding: 20px 5%;
    gap: 16px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }

  .nav-links.open .nav-cta {
    align-self: flex-start;
  }

  .modal-card { padding: 28px 24px; }
}
