/* ========================================
   THALO LABS — DESIGN SYSTEM
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg:          #ffffff;
  --bg-card:     #f0f5fb;
  --bg-card-2:   #e4ecf6;
  --blue:        #00AAFF;
  --blue-mid:    #0088DD;
  --blue-dark:   #0D1B80;
  --nav-bg:      #0D1B80;
  --orange:      #f97316;
  --orange-dark: #ea6c0a;
  --green:       #22c55e;
  --text:        #111827;
  --text-muted:  #4b5563;
  --border:      #dae4f0;
  --border-soft: rgba(13,27,128,0.1);
  --radius:      8px;
  --radius-sm:   4px;
  --max-w:       1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); }
p  { color: var(--text-muted); line-height: 1.75; }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* ---- NAV ---- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  border-bottom: none;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.15rem; font-weight: 700; color: #ffffff;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links > li > a, .dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 12px; font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.75); border-radius: var(--radius-sm);
  transition: color 0.15s; cursor: pointer;
}
.nav-links > li > a:hover, .dropdown-toggle:hover { color: #ffffff; }
.nav-links > li > a.active { color: #ffffff; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 168px; padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; font-size: 0.875rem; font-weight: 500;
  color: var(--text-muted); border-radius: 6px;
  transition: all 0.15s;
}
.dropdown-menu a:hover { color: var(--text); background: var(--bg-card); }
.dropdown-menu .dm-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--blue);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: none; text-decoration: none;
  white-space: nowrap;
}
.btn-primary  { background: var(--orange); color: #fff; }
.btn-primary:hover  { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(249,115,22,0.3); }
.btn-secondary { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-secondary:hover { background: rgba(0,170,255,0.08); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-nav { padding: 7px 16px; font-size: 0.85rem; min-width: 110px; text-align: center; justify-content: center; }

/* ---- HERO ---- */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(160deg, #eef4fc 0%, #ffffff 60%);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 600px at 80% 50%, rgba(249,115,22,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,170,255,0.1); color: var(--blue);
  border: 1px solid rgba(0,170,255,0.25); border-radius: 20px;
  padding: 5px 14px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; }
.hero .hero-sub { font-size: 1.1rem; max-width: 580px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- SECTION HEADER ---- */
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; color: var(--text); }
.section-sub { font-size: 1.05rem; max-width: 600px; color: var(--text-muted); }
.section-header-center { text-align: center; }
.section-header-center .section-sub { margin: 0 auto; }

/* ---- CARDS ---- */
.card {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 4px rgba(13,27,128,0.06);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: rgba(0,170,255,0.35); box-shadow: 0 4px 16px rgba(0,170,255,0.1); }
.card-hover:hover { transform: translateY(-2px); }

/* ---- GRID ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- STAT ---- */
.stat-number {
  font-size: 2.75rem; font-weight: 800; color: var(--blue);
  line-height: 1; margin-bottom: 6px; letter-spacing: -0.02em;
}
.stat-orange { color: var(--orange); }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }

/* ---- BADGE ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600; line-height: 1;
}
.badge-blue   { background: rgba(0,170,255,0.1);   color: var(--blue);    border: 1px solid rgba(0,170,255,0.25); }
.badge-orange { background: rgba(249,115,22,0.1);  color: var(--orange);  border: 1px solid rgba(249,115,22,0.2); }
.badge-green  { background: rgba(34,197,94,0.1);   color: var(--green);   border: 1px solid rgba(34,197,94,0.2); }

/* ---- STEP ---- */
.step-num {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--blue); color: #ffffff;
  font-size: 0.85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 14px;
}

/* ---- CHECKLIST ---- */
.check-list li {
  display: flex; gap: 10px; padding: 5px 0;
  color: var(--text-muted); font-size: 0.9rem;
}
.check-list li::before { content: '✓'; color: var(--blue); font-weight: 700; flex-shrink: 0; }

/* ---- QUOTE ---- */
.quote-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
}
.quote-text {
  font-size: 1.15rem; font-style: italic;
  color: var(--text); line-height: 1.65; margin-bottom: 14px;
}
.quote-attr { font-size: 0.875rem; color: var(--text-muted); }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #1a2e99 100%);
  border-radius: 12px;
  padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  top: -50%; left: -20%; width: 140%; height: 200%;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,170,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner .section-label { color: rgba(255,255,255,0.6); }
.cta-banner h2 { color: #ffffff; margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.05rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-ghost { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.4); }
.cta-banner .btn-ghost:hover { color: #ffffff; border-color: rgba(255,255,255,0.7); }

/* ---- COMPARISON TABLE ---- */
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  padding: 14px 20px; font-size: 0.875rem; font-weight: 700;
  background: var(--bg-card); border-bottom: 2px solid var(--border);
}
.compare-table th.col-with { color: var(--blue); text-align: left; }
.compare-table th.col-without { color: var(--text-muted); text-align: left; }
.compare-table th.col-label { width: 160px; color: var(--text-muted); font-weight: 500; }
.compare-table td { padding: 12px 20px; border-bottom: 1px solid var(--border-soft); font-size: 0.875rem; vertical-align: top; }
.compare-table td.col-label { color: var(--text-muted); font-weight: 500; }
.compare-table td.col-with { color: var(--text); background: rgba(0,170,255,0.04); }
.compare-table td.col-without { color: var(--text-muted); }

/* ---- SPEC TABLE ---- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:not(:last-child) td { border-bottom: 1px solid var(--border-soft); }
.spec-table td { padding: 12px 0; font-size: 0.9rem; vertical-align: top; }
.spec-table td:first-child { color: var(--text-muted); font-weight: 500; width: 200px; padding-right: 24px; }
.spec-table td:last-child { color: var(--text); }

/* ---- SAVINGS TABLE ---- */
.savings-table { width: 100%; border-collapse: collapse; }
.savings-table th { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1px solid var(--border); text-align: left; }
.savings-table td { padding: 12px 16px; font-size: 0.9rem; border-bottom: 1px solid var(--border-soft); color: var(--text-muted); }
.savings-table td.savings-amt { color: var(--green); font-weight: 700; font-size: 1rem; }

/* ---- FEATURE ICON ---- */
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(0,170,255,0.1); border: 1px solid rgba(0,170,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 16px; flex-shrink: 0;
}

/* ---- TEAM CARD ---- */
.team-card { text-align: center; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--bg-card-2); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 700; color: var(--blue);
  margin: 0 auto 16px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.85rem; color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.team-card p { font-size: 0.8rem; }

/* ---- PRODUCT IMAGE ---- */
.product-img {
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border);
}
.product-img img { width: 100%; max-height: 340px; object-fit: contain; padding: 24px; }
.product-img img.cover { object-fit: cover; padding: 0; max-height: 380px; }

/* ---- CASE STUDY CARD ---- */
.cs-card { display: flex; flex-direction: column; }
.cs-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.cs-title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.cs-stats { display: flex; gap: 24px; margin-top: 16px; }
.cs-stat .n { font-size: 1.5rem; font-weight: 800; color: var(--green); line-height: 1; }
.cs-stat .l { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--border-soft); }

/* ---- FOOTER ---- */
footer {
  background: var(--nav-bg);
  border-top: none;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; max-width: 260px; color: rgba(255,255,255,0.6); }
.footer-col h5 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.65); font-size: 0.875rem;
  padding: 4px 0; transition: color 0.15s;
}
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ---- UTILITIES ---- */
.text-blue   { color: var(--blue) !important; }
.text-orange { color: var(--orange) !important; }
.text-green  { color: var(--green) !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.mb-2  { margin-bottom: 8px; }
.mb-3  { margin-bottom: 12px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.flex { display: flex; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }

/* ---- VIDEO EMBED ---- */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-card);
}
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: rgba(0,170,255,0.06); border: 1px solid rgba(0,170,255,0.18);
  border-radius: var(--radius); padding: 20px 24px;
}
.highlight-box-orange {
  background: rgba(249,115,22,0.06); border: 1px solid rgba(249,115,22,0.18);
  border-radius: var(--radius); padding: 20px 24px;
}

/* ---- PRICE CARD ---- */
.price-card {
  background: linear-gradient(135deg, rgba(0,170,255,0.08) 0%, rgba(0,170,255,0.03) 100%);
  border: 1px solid rgba(0,170,255,0.25); border-radius: var(--radius);
  padding: 32px 28px; text-align: center;
}
.price-amount { font-size: 3rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.price-period { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 20px; }

/* ---- NAMED RESPONSIVE GRID CLASSES ---- */
/* Use these instead of inline grid styles so media queries can override */
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-grid-sm {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.section-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.team-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.team-grid-6 {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.hero-product-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
}
.brendan-card {
  display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: center; margin-bottom: 32px;
}
.culture-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px;
}
.compare-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 0.875rem;
}
.stat-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 700px; margin: 0 auto; text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-grid, .hero-grid-sm, .section-grid { grid-template-columns: 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .team-grid-6 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }
  .cta-banner { padding: 40px 24px; }
  .spec-table td:first-child { width: 140px; }
}

@media (max-width: 640px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile nav: logo row + scrollable links row */
  .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 6px; }
  .nav-links {
    display: flex; width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    gap: 0; padding-bottom: 4px;
  }
  .nav-links > li { display: flex !important; }
  .nav-links > li > a { padding: 5px 10px; font-size: 0.78rem; white-space: nowrap; }
  .btn-nav { padding: 5px 12px !important; font-size: 0.78rem !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .compare-table th.col-label, .compare-table td.col-label { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .brendan-card { grid-template-columns: 1fr; gap: 20px; }
  .culture-grid { grid-template-columns: 1fr; }
  .hero-product-card { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .cta-ctas { flex-direction: column; align-items: center; }
  .compare-row { grid-template-columns: 1fr; }
  .stat-grid-3 { grid-template-columns: 1fr; }
}
