/*
 * TealSquare Corporate Website Stylesheet
 * Brand palette anchored to the logo teal (#1a8a86).
 */

:root {
  --teal: #1a8a86;
  --teal-dark: #0f5e5b;
  --teal-darker: #0a4341;
  --teal-light: #4fd1c5;
  --teal-tint: rgba(26, 138, 134, 0.08);
  --teal-glow: rgba(26, 138, 134, 0.35);
  --ink: #0a1817;
  --ink-soft: #1a2a29;
  --slate: #4a5e5c;
  --slate-soft: #7a8e8c;
  --paper: #f5faf9;
  --paper-soft: #ebf2f1;
  --white: #ffffff;
  --border: rgba(26, 138, 134, 0.15);
  --border-strong: rgba(26, 138, 134, 0.35);
  --shadow-sm: 0 1px 3px rgba(10, 24, 23, 0.06), 0 1px 2px rgba(10, 24, 23, 0.04);
  --shadow-md: 0 10px 30px rgba(10, 24, 23, 0.08), 0 4px 12px rgba(10, 24, 23, 0.04);
  --shadow-lg: 0 25px 60px rgba(10, 24, 23, 0.12), 0 10px 24px rgba(10, 24, 23, 0.06);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--slate); }

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

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 20px var(--teal-glow);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px var(--teal-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--white);
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-2px);
}
.btn .arrow {
  transition: transform .25s var(--ease);
  display: inline-block;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ===================== Navigation ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(245, 250, 249, 0.6);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  transition: background .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.scrolled {
  background: rgba(245, 250, 249, 0.92);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 10px 16px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
  position: relative;
  font-size: 0.95rem;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal); }
.nav-cta {
  padding: 10px 18px !important;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: 10px;
  margin-left: 10px;
  box-shadow: 0 4px 14px var(--teal-glow);
}
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: 160px 0 40px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--teal-dark);
  background: var(--teal-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-pill::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(26, 138, 134, 0.15);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
}
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUpWord .85s var(--ease-out) forwards;
}
.hero h1 .word.accent { color: var(--teal); }
@keyframes fadeUpWord {
  to { opacity: 1; transform: translateY(0); }
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--slate);
  margin-top: 26px;
  max-width: 560px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 0.8s forwards;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out) 1s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo {
  width: min(380px, 80%);
  height: auto;
  filter: drop-shadow(0 24px 50px var(--teal-glow));
  animation: floatLogo 6.5s var(--ease) infinite;
  position: relative;
  z-index: 2;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}
.hero-logo rect[fill="none"] {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: drawStroke 1.6s var(--ease-out) 0.2s forwards;
}
.hero-logo rect[fill="#1a8a86"] {
  opacity: 0;
  animation: fadeRect .6s var(--ease-out) 1.4s forwards;
}
@keyframes drawStroke {
  to { stroke-dashoffset: 0; }
}
@keyframes fadeRect {
  to { opacity: 1; }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-visual .blob.b1 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, #4fd1c5 0%, transparent 70%);
  top: -40px; right: -60px;
  animation: floatBlob 14s var(--ease) infinite;
}
.hero-visual .blob.b2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #1a8a86 0%, transparent 70%);
  bottom: -30px; left: -50px;
  animation: floatBlob 16s var(--ease) -5s infinite;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.12); }
}

/* ===================== Marquee tag strip ===================== */
.tag-strip {
  margin-top: 72px;
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  position: relative;
}
.tag-strip::before, .tag-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.tag-strip::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.tag-strip::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); }
.marquee {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--slate);
  font-weight: 500;
  font-size: 0.97rem;
}
.marquee span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================== Sections ===================== */
.section { padding: 80px 0; position: relative; }
.section.bg-alt { background: var(--paper-soft); }
.section.bg-dark {
  background: var(--ink);
  color: rgba(230, 240, 239, 0.78);
}
.section.bg-dark h2, .section.bg-dark h3, .section.bg-dark h4 { color: var(--white); }
.section.bg-dark p { color: rgba(230, 240, 239, 0.72); }
.section.bg-dark .section-eyebrow { color: var(--teal-light); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.section-sub { color: var(--slate); font-size: 1.05rem; }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%),
                              rgba(26, 138, 134, 0.10), transparent 40%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card:hover::after { opacity: 1; }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.card h3 { color: var(--teal-dark); margin-bottom: 10px; }
.card p { margin: 0; }

/* ===================== Stats ===================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  display: block;
  line-height: 1.3;
}
.stat-label {
  color: var(--slate);
  font-weight: 400;
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}
.stat-desc {
  color: var(--slate);
  font-size: 0.94rem;
  margin: 0;
}

/* ===================== FAQ ===================== */
.faq-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--teal);
  transition: transform .3s var(--ease);
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 26px 24px;
  color: var(--slate);
  animation: faqOpen .35s var(--ease-out);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== Page hero (non-home) ===================== */
.page-hero {
  padding: 160px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at top, rgba(26, 138, 134, 0.12), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 820px; }
.page-hero .lead {
  max-width: 720px;
  font-size: 1.12rem;
  color: var(--slate);
  margin-top: 22px;
}
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
  font-weight: 600;
}
.crumbs::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--teal);
}

/* ===================== About / Split sections ===================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.prose p { color: var(--slate); font-size: 1.05rem; }
.prose p + p { margin-top: 1rem; }

/* ===================== Services rows ===================== */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse .service-art { order: -1; }
.service-num {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.service-row h2 { margin-bottom: 16px; }
.service-row p { font-size: 1.03rem; max-width: 540px; }

.service-art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 138, 134, 0.10), rgba(79, 209, 197, 0.04));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-art .brand-mark {
  width: 55%; height: auto;
  opacity: 0.85;
  transition: transform .8s var(--ease);
  position: relative;
  z-index: 2;
}
.service-art:hover .brand-mark { transform: scale(1.06) rotate(-2deg); }
.service-art .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 138, 134, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 138, 134, 0.10) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  animation: gridPan 14s linear infinite;
}
@keyframes gridPan {
  from { background-position: 0 0; }
  to { background-position: 32px 32px; }
}
.service-art .accent-blob {
  position: absolute;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(79, 209, 197, 0.35), transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
  top: 20%; left: 20%;
  animation: floatBlob 12s var(--ease) infinite;
}

/* ===================== Process steps ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--teal) 15%, var(--teal) 85%, transparent);
  opacity: 0.3;
  z-index: 0;
}
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  z-index: 1;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.step-num {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--teal);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px var(--teal-glow);
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 0.95rem; margin: 0; }

/* ===================== Product (Consciousnx feature) ===================== */
.product-card {
  background: linear-gradient(135deg, #0a1817 0%, #102826 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(79, 209, 197, 0.15);
}
.product-card::before {
  content: '';
  position: absolute;
  top: -25%; right: -10%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 60%);
  filter: blur(60px);
  animation: floatBlob 18s var(--ease) infinite;
}
.product-card::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(79, 209, 197, 0.35) 0%, transparent 60%);
  filter: blur(60px);
  animation: floatBlob 22s var(--ease) -6s infinite;
}
.product-card > * { position: relative; z-index: 1; }
.product-card h2 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.product-card p { color: rgba(230, 240, 239, 0.82); font-size: 1.05rem; max-width: 700px; }
.product-meta {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--teal-light);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.product-meta a { color: var(--teal-light); }
.product-meta a:hover { color: var(--white); }
.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.product-feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.product-feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(79, 209, 197, 0.3);
  transform: translateY(-3px);
}
.product-feature h4 { color: var(--teal-light); margin-bottom: 6px; }
.product-feature p { color: rgba(230, 240, 239, 0.75); margin: 0; font-size: 0.95rem; }

/* ===================== Contact ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26, 138, 134, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field.required label::after {
  content: '*';
  color: var(--teal);
  margin-left: 4px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.form-status {
  font-size: 0.93rem;
  color: var(--slate);
  margin: 0;
}
.form-status.success { color: var(--teal-dark); font-weight: 600; }
.form-status.error { color: #b3261e; font-weight: 600; }

.contact-info { display: grid; gap: 18px; }
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.info-card .label {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}
.info-card .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  word-break: break-word;
}
.info-card .value a { color: var(--ink); }
.info-card .value a:hover { color: var(--teal-dark); }

/* Honeypot - hide from real users, visible to bots */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ===================== Footer ===================== */
.footer {
  background: var(--ink);
  color: rgba(230, 240, 239, 0.72);
  padding: 56px 0;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer .container {
  display: block;
}
.footer .brand { color: var(--white); }
.footer h5 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: rgba(230, 240, 239, 0.72); font-size: 0.95rem; }
.footer a:hover { color: var(--teal-light); }
.footer-tag {
  font-size: 0.95rem;
  max-width: 320px;
  margin-top: 14px;
  color: rgba(230, 240, 239, 0.65);
}
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(230, 240, 239, 0.65);
  letter-spacing: 0.01em;
}

/* ===================== Scroll reveal ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.13s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.21s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.29s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.37s; opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }

/* ===================== Decorative section dividers ===================== */
.section .deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}
.section .container { position: relative; z-index: 1; }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero-inner,
  .split,
  .grid-3,
  .grid-2,
  .grid-4,
  .service-row,
  .contact-grid,
  .product-features { grid-template-columns: 1fr; }
  .service-row.reverse .service-art { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero { padding: 136px 0 64px; }
  .page-hero { padding: 132px 0 48px; }
  .section { padding: 72px 0; }
  .product-card { padding: 40px; }
  .contact-form { padding: 28px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    border-top: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; border-radius: 10px; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { background: var(--teal-tint); }
  .nav-cta { margin: 8px 0 0 !important; text-align: center; }
}
@media (max-width: 580px) {
  .footer .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .product-card { padding: 28px; }
  .contact-form { padding: 22px; }
  .section { padding: 56px 0; }
}

/* ===================== Custom vector arts ===================== */

/* Service 01 - Code window: typing-style stroke draw + blinking cursor */
.code-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: typeLine 0.95s var(--ease-out) forwards;
}
@keyframes typeLine { to { stroke-dashoffset: 0; } }
.code-cursor { animation: blinkCursor 1s steps(1) infinite; }
@keyframes blinkCursor {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* Service 02 - Neural network: pulsing nodes and flowing dashed connections */
.neural-node {
  transform-origin: center;
  transform-box: fill-box;
  animation: nodePulse 2.4s var(--ease) infinite;
}
@keyframes nodePulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
.neural-link {
  stroke-dasharray: 0.04 0.08;
  animation: flowDash 1.8s linear infinite;
}
@keyframes flowDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -0.24; }
}

/* Service 03 - Dashboard: bars rising, sparkline drawing, live dot pulsing */
.bar {
  transform-origin: bottom;
  transform-box: fill-box;
  animation: barGrow 1.2s var(--ease-out) both;
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.sparkline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawIn 1.6s var(--ease-out) 0.8s forwards;
}
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.live-dot {
  transform-origin: center;
  transform-box: fill-box;
  animation: livePulse 1.6s var(--ease) infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* Consciousnx illustration: shield glow, cloud float, sparkles, flow dashes */
.consciousnx-art {
  margin-top: 44px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(79, 209, 197, 0.18);
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.consciousnx-art svg { width: 100%; max-width: 640px; height: auto; display: block; }
.cn-shield {
  transform-origin: center;
  transform-box: fill-box;
  animation: shieldPulse 2.6s var(--ease) infinite;
}
@keyframes shieldPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(79, 209, 197, 0)); }
  50% { filter: drop-shadow(0 0 14px rgba(79, 209, 197, 0.7)); }
}
.cn-flow {
  stroke-dasharray: 0.05 0.08;
  animation: flowDash 2s linear infinite;
}
.cn-cloud-group {
  transform-origin: center;
  transform-box: fill-box;
  animation: cloudFloat 6s var(--ease) infinite;
}
@keyframes cloudFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.cn-spark {
  transform-origin: center;
  transform-box: fill-box;
  animation: sparkTwinkle 2.4s var(--ease) infinite both;
}
@keyframes sparkTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

/* Hero orbit decoration: SVG layer positioned behind the logo */
.hero-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-orbit svg { width: 100%; height: 100%; }

/* Section heading kept simple for PDF fidelity (no invented eyebrows). */
.section-title-plain {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}

/* Spacing between last section content and the footer. */
main > section:last-of-type { padding-bottom: 80px; }
/* Tighter when the last section already shares the footer's dark colour. */
main > section.bg-dark:last-of-type { padding-bottom: 48px; }

/* New homepage hero centerpiece (replaces the animated logo). */
.hero-centerpiece {
  width: min(420px, 92%);
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 24px 40px var(--teal-glow));
}

/* Consciousnx product card - flat blue theme variant.
   Switches palette from teal-dark to deep blue with cyan accents,
   drops the radial glow ::before/::after, and removes backdrop
   blur on feature panels for a sharper "flat" look. */
.product-card.flat {
  background: #0a1230;
  border: 1px solid rgba(91, 155, 255, 0.25);
}
.product-card.flat::before,
.product-card.flat::after { display: none; }
.product-card.blue-theme { color: #e6ecff; }
.product-card.blue-theme h2 { color: #ffffff; }
.product-card.blue-theme > p { color: rgba(225, 232, 250, 0.85); }
.product-card.blue-theme .product-meta { color: #5b9bff; }
.product-card.blue-theme .product-meta a { color: #4fd1c5; }
.product-card.blue-theme .product-meta a:hover { color: #ffffff; }
.product-card.blue-theme .product-feature {
  background: #dde3ef;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 22px 22px 20px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  transition: background .2s var(--ease);
}
.product-card.blue-theme .product-feature:hover {
  background: #cdd5e4;
  border-color: rgba(0, 0, 0, 0.04);
  transform: none;
}
.product-card.blue-theme .product-feature h4 {
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 600;
}
.product-card.blue-theme .product-feature p {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
}

.consciousnx-art.blue {
  background: rgba(91, 155, 255, 0.05);
  border: 1px solid rgba(91, 155, 255, 0.22);
}

/* Sci-fi node / link styling for the flat neural network */
.sci-node {
  transform-origin: center;
  transform-box: fill-box;
  animation: nodePulse 2.4s var(--ease) infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
