/* ─── Deep Stone Design System ─────────────────────────────── */

:root {
  --primary:    #1B2A4A;
  --accent:     #C4943A;
  --neutral:    #6B6B6B;
  --light:      #F5F3EF;
  --dark:       #141414;
  --white:      #FFFFFF;
  --border:     rgba(27,42,74,0.10);
  --shadow:     0 4px 24px rgba(27,42,74,0.07);
  --shadow-lg:  0 8px 40px rgba(27,42,74,0.12);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --max-w: 1100px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }
a   { color: inherit; }
img, svg { display: block; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid rgba(196,148,58,0.35);
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-header p {
  color: var(--neutral);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8rem 1.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary  { background: var(--accent); color: var(--primary); }
.btn-primary:hover { filter: brightness(1.08); }

.btn-secondary {
  background: transparent;
  color: var(--light);
  border-color: rgba(245,243,239,0.25);
}
.btn-secondary:hover { border-color: rgba(245,243,239,0.55); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: rgba(27,42,74,0.28); }

.btn-sm { font-size: 0.875rem; padding: 0.55rem 1.25rem; }

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  border-bottom: 1px solid rgba(245,243,239,0.07);
}

.nav-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--light);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.nav-brand em { color: var(--accent); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245,243,239,0.60);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--light); }
.nav-cta { margin-left: 0.25rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--light);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.nav-drawer {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--primary);
  padding: 0.75rem 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(245,243,239,0.08);
  flex-direction: column;
  z-index: 99;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(245,243,239,0.70);
  text-decoration: none;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(245,243,239,0.06);
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--light); }

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--primary);
  padding: 6rem 2.5rem 7rem;
  position: relative;
  overflow: hidden;
}

/* Subtle glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(196,148,58,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-split {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  z-index: 1;
}

.hero-content { max-width: 580px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.hero-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(196,148,58,0.9);
  border: 1px solid rgba(196,148,58,0.28);
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
}

.hero h1 {
  font-size: 4.25rem;
  font-weight: 700;
  color: var(--light);
  letter-spacing: -0.045em;
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
.hero h1 em { color: var(--accent); font-style: normal; }

.hero p {
  font-size: 1.125rem;
  color: rgba(245,243,239,0.60);
  margin-bottom: 2.75rem;
  line-height: 1.72;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Network topology SVG container */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-visual svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}

/* ─── Trust strip ────────────────────────────────────────────── */
.trust-strip {
  background: var(--dark);
  padding: 1.125rem 2.5rem;
  border-bottom: 1px solid rgba(245,243,239,0.05);
}
.trust-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245,243,239,0.38);
  white-space: nowrap;
}

/* ─── What We Do ─────────────────────────────────────────────── */
.section-what {
  padding: 5.5rem 2rem;
  background: var(--light);
}
.what-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.what-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: box-shadow 0.25s;
}
.what-card:hover { box-shadow: var(--shadow-lg); }
.what-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.what-icon svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.what-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.625rem;
}
.what-card p {
  font-size: 0.9375rem;
  color: var(--neutral);
  line-height: 1.72;
}

/* ─── Principles ─────────────────────────────────────────────── */
.section-principles {
  background: var(--primary);
  padding: 5.5rem 2rem;
}
.section-principles .section-header h2 { color: var(--light); }
.section-principles .section-header p  { color: rgba(245,243,239,0.5); }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.principle-card {
  border: 1px solid rgba(245,243,239,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s;
}
.principle-card:hover { border-color: rgba(196,148,58,0.4); }
.principle-num {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 1.125rem;
}
.principle-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.5rem;
}
.principle-card p {
  font-size: 0.875rem;
  color: rgba(245,243,239,0.48);
  line-height: 1.7;
}

/* ─── Why Retelith ───────────────────────────────────────────── */
.section-why {
  padding: 5.5rem 2rem;
  background: var(--light);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 880px;
  margin: 0 auto;
}
.why-item {
  display: flex;
  gap: 1.125rem;
  align-items: flex-start;
}
.why-dot {
  width: 8px; height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.4rem;
}
.why-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.375rem;
}
.why-item p {
  font-size: 0.9375rem;
  color: var(--neutral);
  line-height: 1.72;
}

/* ─── Products ───────────────────────────────────────────────── */
.section-products {
  padding: 5.5rem 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.125rem;
}
.product-name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.015em;
}
.status-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.22rem 0.625rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-active   { background: rgba(30,150,80,0.1);   color: #16753a; border: 1px solid rgba(30,150,80,0.22); }
.status-progress { background: rgba(196,148,58,0.1);  color: #8b6118; border: 1px solid rgba(196,148,58,0.28); }
.status-pilot    { background: rgba(107,107,107,0.08); color: #555;    border: 1px solid rgba(107,107,107,0.18); }

.product-card > p {
  font-size: 0.9375rem;
  color: var(--neutral);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 1.75rem;
}
.product-card .btn { align-self: flex-start; }

/* ─── Consulting ─────────────────────────────────────────────── */
.section-consulting {
  padding: 5.5rem 2rem;
  background: var(--light);
}
.consulting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.consulting-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: box-shadow 0.25s;
}
.consulting-card:hover { box-shadow: var(--shadow-lg); }
.consulting-num {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 1.125rem;
}
.consulting-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.625rem;
}
.consulting-card p {
  font-size: 0.9375rem;
  color: var(--neutral);
  line-height: 1.72;
}
.consulting-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ─── Lattice Band ───────────────────────────────────────────── */
.lattice-band {
  background: var(--primary);
  padding: 3rem 0;
  overflow: hidden;
  line-height: 0;
}
.lattice-band svg { width: 100%; height: auto; }

/* ─── About ──────────────────────────────────────────────────── */
.section-about {
  padding: 5.5rem 2rem;
  background: var(--light);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.about-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.about-text p {
  color: var(--neutral);
  font-size: 0.9375rem;
  line-height: 1.78;
  margin-bottom: 0.875rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.credential-dot {
  width: 8px; height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.35rem;
}
.credential-item span {
  font-size: 0.9375rem;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.5;
}
.credential-item small {
  display: block;
  font-size: 0.8125rem;
  color: var(--neutral);
  font-weight: 400;
  margin-top: 0.2rem;
}

/* ─── Contact / Form ─────────────────────────────────────────── */
.section-contact {
  padding: 5.5rem 2rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
}
.contact-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.contact-text p {
  color: var(--neutral);
  font-size: 0.9375rem;
  line-height: 1.72;
  margin-bottom: 1.75rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-info a {
  font-size: 0.9375rem;
  color: var(--neutral);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-info a:hover { color: var(--primary); }
.contact-info svg {
  width: 15px; height: 15px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--light);
  border: 1px solid rgba(27,42,74,0.14);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.875rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,148,58,0.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.checkboxes-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.375rem;
}
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checkbox-chip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--neutral);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  user-select: none;
}
.checkbox-chip input[type="checkbox"] { display: none; }
.checkbox-chip:has(input:checked) {
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 600;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}
#form-status { font-size: 0.875rem; font-weight: 500; }
#form-status.success { color: #16753a; }
#form-status.error   { color: #b83232; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 3.5rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245,243,239,0.07);
}
.footer-brand .nav-brand {
  display: block;
  margin-bottom: 0.875rem;
}
.footer-brand p {
  font-size: 0.8125rem;
  color: rgba(245,243,239,0.38);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245,243,239,0.5);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.8125rem;
  color: rgba(245,243,239,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: rgba(245,243,239,0.75); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(245,243,239,0.28);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a {
  color: rgba(245,243,239,0.28);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: rgba(245,243,239,0.55); }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 3.5rem; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav  { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 4rem 1.5rem 5rem; }
  .hero h1 { font-size: 2.75rem; }
  .hero p  { font-size: 1rem; }

  .trust-strip-inner { gap: 2rem; }

  .section-what,
  .section-principles,
  .section-why,
  .section-products,
  .section-consulting,
  .section-about,
  .section-contact { padding: 3.5rem 1.25rem; }

  .what-grid,
  .products-grid,
  .consulting-grid { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; }

  .about-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; }
  .principles-grid { grid-template-columns: 1fr; }
  .trust-strip-inner { gap: 1.25rem; }
}

/* ─── Scroll animations ──────────────────────────────────────── */

/* Base: hidden before observer fires */
[data-anim] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim="up"]   { transform: translateY(28px); }
[data-anim="left"] { transform: translateX(-24px); }

[data-anim].in-view {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 90ms;  }
[data-delay="2"] { transition-delay: 180ms; }
[data-delay="3"] { transition-delay: 270ms; }
[data-delay="4"] { transition-delay: 360ms; }

/* Hero entrance (CSS keyframe — no observer needed) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-content {
  animation: heroFadeUp 0.75s ease forwards;
}

.hero-visual {
  animation: heroFadeUp 0.9s ease 0.18s both;
}

/* Hero SVG — slow-spinning dashed rings */
@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

.ring-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: slowSpin 50s linear infinite;
}

/* Hero SVG — gentle hub pulse */
@keyframes hubPulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%       { opacity: 0.65; transform: scale(1.15); }
}

.hub-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: hubPulse 3.5s ease-in-out infinite;
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; transform: none; transition: none; }
  .hero-content, .hero-visual { animation: none; }
  .ring-spin, .hub-pulse { animation: none; }
}
