/*
  TitleFocus Website Styles
  - Mobile-first, accessible, and performance-friendly
*/

:root {
  --navy: #0b1b3a;
  --navy-2: #142a54;
  --teal: #1aa6a1;
  --teal-2: #0f7f7b;
  --ink: #0f172a;
  --charcoal: #1f2937;
  --muted: #5b677a;
  --light: #f6f8fb;
  --light-2: #eef2f7;
  --white: #ffffff;
  --accent: #e6f6f5;
  --border: #d7dde6;
  --shadow: 0 14px 40px rgba(10, 20, 40, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Helvetica Neue", "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(92vw, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--teal);
  color: var(--white);
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  top: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--light-2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 1px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.brand span {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

.nav-links {
  display: none;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-cta {
  display: none;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.button-primary:hover {
  transform: translateY(-2px);
  background: var(--navy-2);
}

.button-ghost {
  border-color: var(--border);
  color: var(--ink);
  background: var(--white);
}

.button-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  color: var(--teal);
}

.mobile-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--ink);
}

.mobile-menu {
  display: none;
  padding-bottom: 16px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--light-2);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background: radial-gradient(circle at top left, rgba(26, 166, 161, 0.12), transparent 45%),
    linear-gradient(135deg, #f7fbff 0%, #ffffff 45%, #f1f6fb 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(11, 27, 58, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(26, 166, 161, 0.15), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--teal-2);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 8px 0 16px;
  color: var(--navy);
  line-height: 1.1;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.hero-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--light-2);
}

.hero-illustration {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--light-2);
  margin-bottom: 18px;
  background: var(--white);
}

.hero-panel h3 {
  margin: 0 0 12px;
  color: var(--navy);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.metric {
  background: var(--light);
  padding: 16px;
  border-radius: var(--radius-sm);
}

.metric strong {
  display: block;
  font-size: 1.2rem;
  color: var(--navy);
}

/* Section base */
.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--light);
}

.section h2 {
  color: var(--navy);
  margin-top: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.section-lead {
  color: var(--muted);
  max-width: 720px;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-2);
  padding: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin-top: 0;
  color: var(--navy);
}

.icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: var(--teal-2);
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-2);
}

.feature-list li:last-child {
  border-bottom: none;
}

/* Timeline / Process */
.process {
  display: grid;
  gap: 18px;
}

.process-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 5px solid var(--teal);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.process-step span {
  font-weight: 700;
  color: var(--teal-2);
}

.diagram {
  border: 1px dashed var(--border);
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(26, 166, 161, 0.08), rgba(11, 27, 58, 0.05));
  display: grid;
  gap: 12px;
}

.diagram-node {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--light-2);
  font-weight: 600;
  color: var(--navy);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: "";
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle at top right, rgba(26, 166, 161, 0.4), transparent 55%);
  opacity: 0.8;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--white);
  margin: 0;
}

/* Forms */
.form {
  display: grid;
  gap: 16px;
}

.form label {
  font-weight: 600;
  color: var(--ink);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 40px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
}

.footer .brand span {
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.legal {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Utilities */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 32px; }

/* Responsive */
@media (min-width: 900px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }

  .mobile-toggle,
  .mobile-menu {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

@media (max-width: 899px) {
  .cta {
    padding: 28px;
  }
}
