/* ===== Saviour Inc - Main Stylesheet ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --dark: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; text-align: center; }

h1, h2, h3 { color: var(--dark); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.highlight {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-size: 1rem;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.9rem; color: #fff !important; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(15, 23, 42, 0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.logo span { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--dark); border-radius: 3px; transition: 0.3s; }

/* ===== Hero ===== */
.hero {
  padding: 150px 0 100px;
  background: radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.15), transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.12), transparent 45%);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; max-width: 560px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.code-card {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
  transform: rotate(-2deg);
}
.code-dots { display: flex; gap: 6px; margin-bottom: 1rem; }
.code-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; }
.code-dots i:nth-child(2) { background: #f59e0b; }
.code-dots i:nth-child(3) { background: #22c55e; }
.code-card pre { color: #e2e8f0; font-size: 0.95rem; overflow-x: auto; font-family: "Courier New", monospace; }
.c-key { color: #c084fc; }
.c-str { color: #86efac; }
.c-fn { color: #67e8f9; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head p:last-child { color: var(--muted); }

.grid { display: grid; gap: 1.5rem; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.process-grid { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.card p { color: var(--muted); }
.icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 1.2rem;
}

/* ===== Why ===== */
.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why-list { list-style: none; display: grid; gap: 1rem; }
.why-list li {
  background: #fff;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.why-list strong { color: var(--dark); }
.why-list span { color: var(--muted); font-size: 0.95rem; }

/* ===== Process ===== */
.step { text-align: center; padding: 1.5rem; }
.step span {
  display: inline-block;
  font-size: 2.2rem; font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--primary);
  margin-bottom: 0.5rem;
}
.step p { color: var(--muted); }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.6rem; font-weight: 500; }
.contact-info a:hover { color: var(--primary); }
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid; gap: 1rem;
}
.contact-form label { display: grid; gap: 0.35rem; font-weight: 500; font-size: 0.95rem; color: var(--dark); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-status { font-size: 0.95rem; min-height: 1.4em; }
.form-status.error { color: #dc2626; }
.form-status.success { color: #16a34a; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: #cbd5e1; padding: 2rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer .logo { color: #fff; }

/* ===== Scroll reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .why-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 1.2rem;
    background: #fff;
    padding: 1.5rem 0;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .services-grid, .process-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 70px; }
  .section { padding: 70px 0; }
}
