/* ============================================
   CTC Tracker - Brand Stylesheet
   Blue: #1B6FC2 | Navy: #0E2A4F | Green: #5FA831
   ============================================ */

:root {
  --blue: #1B6FC2;
  --blue-dark: #155A9E;
  --blue-light: #4D9FE8;
  --blue-tint: #EAF3FC;
  --navy: #0E2A4F;
  --navy-deep: #081C38;
  --green: #5FA831;
  --green-tint: #EEF6E7;
  --red: #D94B3F;
  --red-tint: #FBEDEB;
  --yellow: #E8A823;
  --yellow-tint: #FBF4E2;
  --ink: #1A2333;
  --ink-soft: #4A5568;
  --ink-faint: #8A94A6;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FC;
  --line: #E3EAF2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(14, 42, 79, 0.10);
  --shadow-lg: 0 20px 60px rgba(14, 42, 79, 0.16);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }
.center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.eyebrow.center { display: block; text-align: center; }

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 14px;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(27, 111, 194, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(27, 111, 194, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

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

.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-nav { padding: 10px 22px; font-size: 0.95rem; }

/* ============ HEADER / NAV ============ */

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark { width: 40px; height: 40px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-blue { color: var(--blue); }
.brand-blue-light { color: var(--blue-light); }
.brand-green { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover { color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(27, 111, 194, 0.10), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(95, 168, 49, 0.07), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 22px 0 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 500;
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--green-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%235FA831' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Hero mockup */

.hero-visual { position: relative; }

.mockup {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.mockup-bar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #D6DEE8;
}

.mockup-url {
  margin-left: 10px;
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 12px;
}

.mockup-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }

.mockup-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.mockup-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.mockup-alert .light {
  flex-shrink: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
}

.mockup-alert.red .light { background: var(--red); box-shadow: 0 0 0 4px var(--red-tint); }
.mockup-alert.yellow .light { background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-tint); }
.mockup-alert.green .light { background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }

.mockup-alert strong {
  display: block;
  font-size: 0.85rem;
  color: var(--navy);
  line-height: 1.3;
}

.mockup-alert span:not(.light) {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.mockup-cards { display: block; }

.mockup-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #fff;
}

.mockup-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-card strong { font-size: 0.88rem; color: var(--navy); }

.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot.red { background: var(--red); }
.status-dot.yellow { background: var(--yellow); }
.status-dot.green { background: var(--green); }

.mockup-addr {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.mockup-close {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 2px 10px;
  border-radius: 999px;
}

/* Floating chips */

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  animation: floaty 5s ease-in-out infinite;
}

.float-1 { top: -22px; right: -10px; }
.float-2 { bottom: -20px; left: -16px; animation-delay: 2.5s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============ TRUST STRIP ============ */

.trust-strip {
  background: var(--navy);
  padding: 34px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item { text-align: center; }

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 2px;
}

.trust-item span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ============ SECTIONS ============ */

.section { padding: 96px 0; }

.problem { padding-bottom: 60px; }
.problem .lead { margin-bottom: 18px; }

/* ============ FEATURES ============ */

.features { background: var(--bg-soft); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 18px;
}

.feature-card p { color: var(--ink-soft); font-size: 0.97rem; }

/* ============ SPLIT SECTIONS ============ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.split.reverse .split-copy { order: 2; }
.split.reverse .split-visual { order: 1; }

.split-copy > p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 24px; }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 500;
  color: var(--ink);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%235FA831' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Timeline visual */

.timeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
}

.timeline-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.timeline { position: relative; }

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.t-step {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 10px 0;
}

.t-dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--line);
  margin-top: 2px;
}

.t-step.done .t-dot {
  background: var(--green);
  border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.t-step.active .t-dot {
  border-color: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-tint);
}

.t-step strong { display: block; font-size: 0.92rem; color: var(--navy); line-height: 1.3; }

.t-step em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.t-step.active em { color: var(--blue); font-weight: 600; }
.t-step.done em { color: var(--green); }

/* ============ HOW IT WORKS ============ */

.how { background: var(--bg-soft); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ============ SECURITY ============ */

.shield-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.shield-card p { color: var(--ink-soft); font-size: 1rem; }
.shield-card strong { color: var(--navy); }

/* ============ QUOTE BAND ============ */

.quote-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 80px 0;
}

.quote-band blockquote { text-align: center; }

.quote-band p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 18px;
}

.quote-band cite {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
}

/* ============ FAQ ============ */

.faq-list { margin-top: 44px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item[open] { box-shadow: var(--shadow); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  position: relative;
  padding-right: 52px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-item p {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ============ FINAL CTA ============ */

.cta-final {
  background:
    radial-gradient(700px 400px at 50% 120%, rgba(27, 111, 194, 0.10), transparent 60%),
    var(--bg-soft);
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 30px auto 16px;
}

.cta-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 15px 22px;
  border: 2px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s ease;
}

.cta-form input:focus { border-color: var(--blue); }

.cta-note { font-size: 0.88rem; color: var(--ink-faint); }

/* ============ FOOTER ============ */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.95rem;
  max-width: 340px;
}

.footer-brand-name { font-size: 1.2rem; }

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ============ SCROLL REVEAL ============ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-float { animation: none; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding: 56px 0 80px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse .split-copy { order: 1; }
  .split.reverse .split-visual { order: 2; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Touch devices: comfortable tap targets, no zoom on input focus */
@media (pointer: coarse) {
  .nav-links a:not(.btn) { padding: 6px 0; }
  input, select, textarea { font-size: 16px !important; }
}

/* Notched phones: respect safe areas */
.site-header { padding-top: env(safe-area-inset-top); }

.container {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.site-footer { padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 720px) {
  .section { padding: 68px 0; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 24px 20px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 10px 0; }

  .nav-links .btn-nav {
    margin-top: 8px;
    width: 100%;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .feature-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .cta-form { flex-direction: column; }
  .hero-float { display: none; }
  .hero-actions .btn { width: 100%; }
}
