/* ============================================
   APPTHENTIC — GLOBAL STYLES
   Dark, editorial, reliability-forward
   ============================================ */

:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --bg3: #161616;
  --border: #1f1f1f;
  --border2: #2a2a2a;
  --text: #e8e4dc;
  --text2: #888;
  --text3: #555;
  --accent: #b8f060;
  --accent2: #9fd94a;
  --font-sans: 'Syne', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.dot { color: var(--accent); }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
}

.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: rgba(184,240,96,0.08) !important; }
.nav-cta.active { background: rgba(184,240,96,0.1); }

/* ---- UPTIME BADGE ---- */
.uptime-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,240,96,0.06);
  border: 1px solid rgba(184,240,96,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2.5rem 6rem;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(184,240,96,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text2);
  margin-bottom: 2.5rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat span:first-child { font-size: 22px; font-weight: 500; }
.hero-stat span:last-child { font-size: 12px; color: var(--text3); letter-spacing: 0.05em; text-transform: uppercase; }

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border2);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #080808;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: -0.01em;
}

.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text); }

/* ---- SECTIONS ---- */
section { padding: 6rem 0; }

.label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 3rem;
  max-width: 640px;
}

/* ---- PAIN SECTION ---- */
.pain { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.pain-card {
  background: var(--bg2);
  padding: 2rem;
  transition: background 0.2s;
}

.pain-card:hover { background: var(--bg3); }

.pain-icon { font-size: 24px; display: block; margin-bottom: 1rem; }

.pain-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.pain-card p { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ---- HOW IT WORKS ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem 0;
}

.step-num {
  font-size: 13px;
  color: var(--accent);
  padding-top: 4px;
  flex-shrink: 0;
  width: 32px;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.step-content p { font-size: 15px; color: var(--text2); max-width: 500px; }

.step-line {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---- SCOPE ---- */
.scope { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.scope-sub { font-size: 16px; color: var(--text2); max-width: 540px; margin-bottom: 3rem; margin-top: -2rem; }

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.scope-col {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.scope-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.scope-label.yes { color: var(--accent); }
.scope-label.no { color: var(--text3); }

.scope-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.scope-col li { font-size: 14px; color: var(--text2); padding-left: 1rem; position: relative; }
.scope-col li::before { content: '–'; position: absolute; left: 0; color: var(--text3); }

/* ---- ICP ---- */
.icp-inner { max-width: 640px; }
.icp-checks { display: flex; flex-direction: column; gap: 14px; }

.icp-check {
  font-size: 16px;
  color: var(--text);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg3);
  transition: border-color 0.2s;
}

.icp-check:hover { border-color: var(--border2); }
.icp-check .mono { padding-top: 1px; flex-shrink: 0; }

/* ---- FINAL CTA ---- */
.final-cta { border-top: 1px solid var(--border); }

.cta-box {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.cta-box h2 { font-size: clamp(32px, 5vw, 52px); max-width: 100%; margin-bottom: 1rem; }
.cta-box p { font-size: 16px; color: var(--text2); }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

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

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 13px; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text2); }

/* ---- CONTACT PAGE ---- */
.contact-hero {
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.contact-hero h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.contact-hero .hero-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 420px;
  margin-bottom: 0;
}

.contact-section { padding: 4rem 0 6rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

/* ---- FORM ---- */
.contact-form-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.field-group label {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.field-group input,
.field-group select,
.field-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
  width: 100%;
}

.field-group input::placeholder,
.field-group textarea::placeholder { color: var(--text3); }
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus { border-color: rgba(184,240,96,0.4); }

.field-group select option { background: var(--bg3); }

.submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px;
}

.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-msg {
  margin-top: 1rem;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
}

.form-msg.success { background: rgba(184,240,96,0.08); border: 1px solid rgba(184,240,96,0.2); color: var(--accent); }
.form-msg.error { background: rgba(255,80,80,0.06); border: 1px solid rgba(255,80,80,0.2); color: #ff8080; }
.form-msg.error a { color: #ff8080; }

/* ---- CONTACT SIDEBAR ---- */
.contact-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.next-steps { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }

.next-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text2);
}

.next-step .mono { font-size: 12px; padding-top: 2px; flex-shrink: 0; }

.direct-email {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.direct-email:hover { text-decoration: underline; }

.promise-box p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  font-style: italic;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-stat-row { gap: 1.25rem; }
  .pain-grid { grid-template-columns: 1fr; }
  .scope-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .container { padding: 0 1.25rem; }
  .contact-form-wrap { padding: 1.5rem; }
}
