/* ============================================================
   Nohup Systems — styles
   Colors are theme tokens; adjust in :root to rebrand.
   ============================================================ */
:root {
  --bg: #0b1120;
  --bg-alt: #0e1729;
  --surface: #131d33;
  --surface-2: #182444;
  --border: #23304f;
  --text: #e8edf7;
  --text-muted: #9db0d0;
  --accent: #4f9dff;
  --accent-2: #38e8c6;
  --accent-strong: #2f6bff;
  --focus: #8ec5ff;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --measure: var(--maxw); /* text blocks span the same width as the 3-tile grid rows */
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

code {
  font-family: var(--mono);
  background: var(--surface-2);
  padding: 0.1em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--accent-2);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-strong);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-nav { padding: 9px 18px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.btn-nav:hover { border-color: var(--accent); }
.btn-lg { font-size: 1.05rem; padding: 15px 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1.08rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--text); text-decoration: none; }
.nav-menu .btn-nav { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; }
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 14px;
}
.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: var(--measure);
  background: linear-gradient(120deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--text-muted); max-width: var(--measure); margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px 22px; list-style: none; padding: 0; margin: 0; }
.hero-badges li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(56, 232, 198, 0.15);
}
.hero-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.25), transparent 62%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section-lead { color: var(--text-muted); font-size: 1.1rem; max-width: var(--measure); margin: 0 0 40px; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--surface-2); }
.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 107, 255, 0.22), rgba(56, 232, 198, 0.18));
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.16rem; }
.card p { margin: 0; color: var(--text-muted); }

/* ---------- Principle ---------- */
.principle-grid { margin-top: 8px; }
.pill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.pill-card::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-bottom: 16px;
}
.pill-card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.pill-card p { margin: 0; color: var(--text-muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.step-num {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 42px;
}
.step h3 { margin: 0 0 6px; font-size: 1.14rem; }
.step p { margin: 0; color: var(--text-muted); }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about-inner p { color: var(--text-muted); }
.about-aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.about-aside h3 { margin: 0 0 16px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-muted); }
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-2);
  font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.contact-inner .section-lead { margin-left: auto; margin-right: auto; }
.contact-note { color: var(--text-muted); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-tag { margin: 2px 0 0; color: var(--text-muted); font-size: 0.9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: var(--text-muted); font-size: 0.94rem; }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
.footer-legal { width: 100%; color: var(--text-muted); font-size: 0.86rem; margin: 8px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 10px 0; }
  .nav-menu .btn-nav { text-align: center; padding: 12px; margin-top: 6px; }
}
@media (max-width: 520px) {
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 56px; }
}
