:root {
  --blue: #62b5e5;
  --blue-dark: #11111f;
  --navy: #11111f;
  --navy-2: #181829;
  --text: #1f2937;
  --text-light: #5b6472;
  --white: #ffffff;
  --border: #e6e9ee;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  scroll-behavior: smooth;
}

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

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

#introSplash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

#introSplash.fade-out {
  opacity: 0;
  pointer-events: none;
}

#introSplash img {
  max-width: 280px;
  width: 60vw;
  height: auto;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--blue-dark);
}

.logo svg { flex-shrink: 0; }

.logo-icon {
  flex-shrink: 0;
  display: block;
}

.logo-wordmark {
  height: 18px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 20px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--blue-dark);
}

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, #142544 0%, var(--navy) 60%, #060a12 100%);
  color: var(--white);
  padding: 220px 24px 140px;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(14px) brightness(0.6) saturate(0.85);
  transform: scale(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(11,18,32,0.65) 0%, rgba(11,18,32,0.85) 65%, rgba(11,18,32,0.95) 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 1.15rem;
  color: #b8c4d9;
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-tagline {
  font-size: 1.4rem !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.5 !important;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--navy);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: 0.3px;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover {
  background: #6bb3ec;
  transform: translateY(-1px);
}

.page-hero {
  padding: 90px 24px 70px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

/* Sections */
section {
  padding: 80px 0;
}

section.alt {
  background: #f7f9fc;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  color: var(--blue-dark);
}

.section-title p {
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 12px 28px rgba(11,18,32,0.08);
  transform: translateY(-3px);
}

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(79,163,227,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--blue-dark);
}

.card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Service rows (detailed) */
.service-block {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }

.service-block .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(79,163,227,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.service-block h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: var(--blue-dark);
}

.service-block p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.7;
}

/* About */
.about-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}

.about-content h1 {
  color: var(--blue-dark);
}

.founder-intro {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .founder-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
  text-align: center;
}

.stats .stat strong {
  display: block;
  font-size: 2.2rem;
  color: var(--blue);
}

.stats .stat span {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-info h3 {
  color: var(--blue-dark);
  margin: 0 0 6px;
}

.contact-info p {
  color: var(--text-light);
  margin: 0 0 28px;
}

.contact-info .item {
  margin-bottom: 24px;
}

.contact-info .item label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 4px;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

form.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 6px;
  display: block;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fafbfc;
}

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

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

/* Estimator */
.estimator {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.estimator-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}

.field-group {
  margin-bottom: 32px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 14px;
  font-size: 1rem;
}

.option-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.option-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.option-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.option-btn strong {
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.option-btn span {
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.4;
}

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

.option-btn.active {
  border-color: var(--blue);
  background: rgba(98,181,229,0.1);
}

.estimator-result {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  position: sticky;
  top: 100px;
}

.result-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.result-cost {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.result-timeline {
  color: #b8c4d9;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.result-compare {
  color: #8a96ab;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.result-disclaimer {
  color: #6b7385;
  font-size: 0.75rem;
  line-height: 1.6;
  margin: 18px 0 0;
}

@media (max-width: 860px) {
  .estimator {
    grid-template-columns: 1fr;
  }
  .estimator-result {
    position: static;
  }
  .option-row-3 {
    grid-template-columns: 1fr;
  }
  .option-row {
    grid-template-columns: 1fr;
  }
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.insight-card:hover {
  box-shadow: 0 12px 28px rgba(11,18,32,0.08);
  transform: translateY(-3px);
}

.insight-card .tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.insight-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  color: var(--blue-dark);
  line-height: 1.35;
}

.insight-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
}

.insight-card .read-more {
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.insight-card .read-more::after {
  content: " →";
}

/* Article */
.article {
  max-width: 720px;
  margin: 0 auto;
}

.article .meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--blue);
}

.article h1 {
  color: var(--blue-dark);
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.article .lede {
  font-size: 1.15rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 36px;
}

.article h2 {
  color: var(--blue-dark);
  font-size: 1.4rem;
  margin: 44px 0 16px;
}

.article p {
  color: #3a4250;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 20px;
}

.article ul, .article ol {
  color: #3a4250;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0 0 20px;
  padding-left: 24px;
}

.article li {
  margin-bottom: 10px;
}

.article strong {
  color: var(--blue-dark);
}

.article .back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.article-footer-cta {
  margin-top: 56px;
  padding: 32px;
  background: #f7f9fc;
  border-radius: 10px;
  text-align: center;
}

.article-footer-cta p {
  margin: 0 0 18px;
}

@media (max-width: 860px) {
  .insights-grid { grid-template-columns: 1fr; }
}

/* Footer */
footer.site-footer {
  background: var(--navy);
  color: #8a96ab;
  padding: 48px 0 32px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner .logo { color: var(--white); }

footer.site-footer a:hover { color: var(--blue); }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 24px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .menu-toggle { display: block; }
}
