/* Stellar TimeLock landing page — dark theme matching the mobile app. */

:root {
  --bg: #05070d;
  --surface: #0d1525;
  --surface-elev: #151f32;
  --border: rgba(255,255,255,0.08);
  --text: #e7ebf3;
  --text-secondary: #a0a9bc;
  --text-tertiary: #5a6478;
  --teal: #14b8a6;
  --teal-glow: rgba(20,184,166,0.35);
  --gold: #d4af37;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif, "Apple Color Emoji",
               "Segoe UI Emoji", "Segoe UI Symbol";
  --font-mono: "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #0e1a2b 0%, var(--bg) 60%) fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: #4ecdc4; }

/* ---------------- Nav ---------------- */

/* ---------------- Nav ----------------
   Sprint 23 iter 48 — Split the compact nav bar (brand + section
   links crammed side-by-side) into two visually distinct bars so
   each element gets breathing room. */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(5,7,13,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-brand-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 32px 16px;
}
.nav-links-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 32px 14px;
  border-top: 1px solid var(--border);
  background: rgba(13, 21, 37, 0.55);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text); font-weight: 800;
}
.brand-logo {
  width: 34px; height: 34px;
  filter: drop-shadow(0 0 10px var(--teal-glow));
}
.brand-name {
  font-size: 18px;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 4px;
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--text); }

.nav-link-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text) !important;
  transition: border-color 160ms ease, background 160ms ease;
}
.nav-link-github:hover {
  border-color: var(--teal);
  background: rgba(20, 184, 166, 0.08);
}
.nav-link-github-icon {
  color: var(--text);
}

/* ---------------- Hero ---------------- */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  text-align: center;
}
.hero-logo {
  width: 96px; height: 96px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 40px var(--teal-glow));
}
.title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  min-height: 1.1em;
}
.cursor {
  display: inline-block;
  color: var(--teal);
  animation: blink 1s infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.tagline {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.tagline.visible { opacity: 1; transform: translateY(0); }

.lede {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 40px;
}
.lede strong { color: var(--text); }

.cta-row {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800; font-size: 14px;
  letter-spacing: 0.2px;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
}
.cta-primary {
  background: var(--teal);
  color: var(--bg);
  box-shadow: 0 8px 32px -8px var(--teal-glow);
}
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px -8px var(--teal-glow); color: var(--bg); }
.cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.cta-ghost:hover { background: var(--surface); color: var(--text); }

/* ---------------- Features ---------------- */

.features, .security {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 32px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  text-align: center;
}
/* Sprint 23 iter 54 — Secondary title for the "Wallet, when you want it"
   subsection sits smaller so the productivity block reads as the primary
   promise and wallet as the supporting benefit. */
.section-title-secondary {
  font-size: clamp(22px, 3vw, 30px);
  margin-top: 64px;
}
.section-lede {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 32px;
}
.feature-grid {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.feature:hover {
  border-color: rgba(20,184,166,0.4);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(20,184,166,0.12);
  border-radius: 10px;
  margin-bottom: 16px;
}
.feature h3 {
  color: var(--text);
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 800;
}
.feature p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

/* ---------------- Security ----------------
   Sprint 23 iter 48 — Elevated into its own visually distinct bar
   with a darker background band, dedicated top/bottom dividers, and
   a card-style content well so it doesn't blend into the features
   grid above or the footer below. */

.security-bar {
  background: linear-gradient(180deg, rgba(20,184,166,0.04) 0%, rgba(20,184,166,0) 100%),
              var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.security-bar.security {
  /* Override the shared .features/.security 80px padding so the bar
     background stretches full-width but content still has an inner
     max-width. */
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.security-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px;
}
.security-header {
  margin-bottom: 32px;
}
.security-eyebrow {
  display: inline-block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(20, 184, 166, 0.12);
  border-radius: 999px;
  margin-bottom: 14px;
}
.security-title {
  margin: 0 0 16px;
}
.security-copy {
  max-width: 640px;
  margin: 0 auto 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.security-list {
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.security-list li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  position: relative;
}
.security-list li:before {
  content: "\2713";
  color: var(--teal);
  position: absolute; left: 0;
  font-weight: 800;
}
.security-list code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-elev);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold);
}
.security-cta {
  margin-top: 8px;
}

/* ---------------- Footer ---------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 12px;
}
.footer-logo { width: 36px; height: 36px; }
.footer-name {
  color: var(--text); font-weight: 800;
  margin: 0; font-size: 14px;
}
.footer-tag {
  color: var(--text-tertiary);
  font-size: 11px;
  margin: 2px 0 0;
}
.footer-links {
  display: flex; gap: 20px;
}
.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 13px;
}
.footer-legal {
  max-width: 1080px;
  margin: 24px auto 0;
  color: var(--text-tertiary);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 640px) {
  /* Sprint 23 iter 48 — tighten the two nav bars on narrow screens
     while keeping the visual separation. */
  .nav-brand-bar { padding: 16px 20px 10px; }
  .nav-links-bar { padding: 10px 20px 12px; }
  .brand-name { font-size: 16px; }
  .brand-logo { width: 30px; height: 30px; }
  .nav-links { gap: 20px; }
  .hero { padding: 40px 20px 40px; }
  .features { padding: 40px 20px; }
  .security-inner { padding: 48px 20px; }
}
