/* (c) 2026 Nodus. Original work. Reproduction without permission is prohibited. */
/* Nodus landing page styles. Dark theme: navy/black base, blue action, gold accent. */

:root {
  --bg:            #0f1729;  /* page background, deep navy-black */
  --surface:       #16203a;  /* cards, slightly lighter navy */
  --border:        #243049;  /* subtle borders */
  --text:          #f5f6f8;  /* primary text, near-white */
  --text-muted:    #9fb0cc;  /* secondary text, muted blue-gray */
  --blue:          #2563c4;  /* primary action */
  --blue-hover:    #2f72de;
  --gold:          #c9a24a;  /* restrained accent only */

  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 10px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

h1, h2 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease, color 0.15s ease;
  white-space: nowrap;
}

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

.btn-sm { padding: 10px 18px; font-size: 0.95rem; }

.btn-primary {
  background-color: var(--blue);
  color: #ffffff;           /* white text for legibility on blue */
  border-color: var(--blue);
}
.btn-primary:hover { background-color: var(--blue-hover); border-color: var(--blue-hover); }

.btn-outline-gold {
  background-color: transparent;
  color: var(--text);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  /* faint gold wash on hover, never a heavy fill */
  background-color: rgba(201, 162, 74, 0.10);
  color: var(--gold);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(15, 23, 41, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Logo mark: navy tile, thin gold border, gold icon */
.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: #0c1322;
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.12);
}

.logo-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 96px 0 80px;
  overflow: hidden;
}

/* restrained navy/blue glow, no gold fill */
.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 520px;
  max-width: 120%;
  background: radial-gradient(closest-side, rgba(37, 99, 196, 0.22), rgba(37, 99, 196, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; }

.pill {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.85rem);
  font-weight: 800;
}

.hero-sub {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--text-muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

/* ---------- Gold divider ---------- */
.divider {
  height: 1px;
  max-width: var(--maxw);
  margin: 8px auto 0;
  background: linear-gradient(
    to right,
    rgba(201, 162, 74, 0) 0%,
    rgba(201, 162, 74, 0.65) 50%,
    rgba(201, 162, 74, 0) 100%
  );
}

/* ---------- Features ---------- */
.features { padding: 76px 0 96px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: #2f3e5e; transform: translateY(-3px); }

/* navy tile + gold icon */
.card-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background-color: #0c1322;
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 20px;
}
.card-tile svg { width: 26px; height: 26px; }

.card-title {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text); }

.footer-tag {
  color: var(--text-muted);
  font-size: 0.95rem;
  opacity: 0.75;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
}

@media (max-width: 540px) {
  .nav { gap: 16px; }
  .nav-link { display: none; }          /* keep only the Log in action on narrow screens */
  .hero-actions .btn { width: 100%; }   /* full-width stacked buttons on mobile */
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ============================ Contact ============================ */
.contact { padding: 10px 0 96px; }
.contact-inner { text-align: center; }

.contact-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-sub {
  margin: 12px auto 0;
  max-width: 560px;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact-methods {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
  padding: 20px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-value { font-size: 1.05rem; font-weight: 600; color: var(--text); }

.contact-card.qr { align-items: center; text-align: center; }
.qr-img { width: 120px; height: 120px; border-radius: 8px; background: #fff; padding: 5px; }

@media (max-width: 640px) {
  .contact-methods { flex-direction: column; align-items: stretch; }
  .contact-card { min-width: 0; }
  /* a phone cannot scan its own screen; the card stays as a tap-to-WhatsApp link */
  .qr-img { display: none; }
  .contact-card.qr { align-items: flex-start; text-align: left; }
}
