/* ===================================================
   SoftwareLoop — Landing page stylesheet
   Style: Light, bold, standalone SaaS product identity
   =================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-dark: #0b0f19;
  --text-primary: #0b0f19;
  --text-secondary: #4b5565;
  --text-muted: #8a93a6;
  --border: #e5e7eb;
  --blue: #3176ef;
  --green: #43c149;
  --yellow: #f2c800;
  --red: #ef4027;
  --radius: 14px;
  --max-width: 1160px;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

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

section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { color: var(--text-secondary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--bg-dark); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11,15,25,0.2); }
.btn-secondary { background: #fff; color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-primary); }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; }
.logo img { height: 28px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 0.92rem; font-weight: 600; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); }
@media (max-width: 780px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 100px 0 60px; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero p.lead { font-size: 1.15rem; margin: 24px auto 36px; max-width: 620px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-mark { margin: 56px auto 0; width: 280px; }
.loop-diagram { width: 100%; max-width: 460px; margin: 0 auto 48px; }

/* ---------- Loop phases ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.phase-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.phase-dot { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 18px; }
.phase-card h3 { margin-bottom: 8px; }
.phase-card p { font-size: 0.92rem; }
.phase-blue .phase-dot { background: var(--blue); }
.phase-green .phase-dot { background: var(--green); }
.phase-yellow .phase-dot { background: var(--yellow); }
.phase-red .phase-dot { background: var(--red); }

/* ---------- Alt section ---------- */
.section-soft { background: var(--bg-soft); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.value-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { font-size: 0.92rem; }

/* ---------- Foundation / Ultrasoft tie-in ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.foundation-list { list-style: none; margin-top: 24px; }
.foundation-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 0.95rem; color: var(--text-secondary); }
.foundation-list li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--blue); }

.foundation-panel {
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 32px;
  color: #fff;
}
.foundation-panel .brow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9fb4f2; margin-bottom: 14px; }
.foundation-panel a.link { color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; }

/* ---------- Waitlist / CTA ---------- */
.cta-band {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 64px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b7c0d8; max-width: 520px; margin: 16px auto 32px; }
.waitlist-form { display: flex; gap: 12px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.waitlist-form input {
  flex: 1;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid #2a3142;
  background: #171c29;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}
.waitlist-form input::placeholder { color: #6b7488; }
.waitlist-form .btn-primary { background: var(--blue); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-inner .logo img { height: 22px; }
.footer-links { display: flex; gap: 24px; font-size: 0.88rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { margin-top: 24px; font-size: 0.82rem; color: var(--text-muted); }
