/* ============================================
   DeepTier Labs — Styles
   Aesthetic: Refined Technical Authority
   ============================================ */

:root {
  /* Core palette — unified brand */
  --navy: #0A1628;
  --navy-mid: #0F2035;
  --navy-light: #1E3A5F;
  --blue-accent: #0891B2;
  --teal: #0891B2;
  --teal-dim: #0E7490;
  --orange: #F97316;
  --orange-dim: #EA580C;
  --orange-glow: rgba(249, 115, 22, 0.15);
  /* Legacy aliases for broad replacement */
  --green: #F97316;
  --green-dim: #EA580C;
  --green-glow: rgba(249, 115, 22, 0.15);

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8FAFB;
  --gray-100: #EEF1F5;
  --gray-200: #D8DDE6;
  --gray-300: #B0B8C9;
  --gray-400: #7A849A;
  --gray-500: #555E72;
  --text-primary: #0A1628;
  --text-secondary: #555E72;
  --text-light: #CBD2DE;
  --text-light-secondary: rgba(203, 210, 222, 0.65);

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing */
  --section-padding: clamp(80px, 12vw, 140px);
  --container-width: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Section Headers ---- */
.section-header {
  max-width: 620px;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--teal);
}

.section-tag-light { color: var(--orange); }
.section-tag-light::before { background: var(--orange); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-title em {
  font-style: italic;
  color: var(--navy-light);
}

.section-title-light { color: var(--white); }
.section-title-light em { color: var(--gray-300); }

.section-desc {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  background: #FB923C;
  box-shadow: 0 4px 24px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(203, 210, 222, 0.25);
}

.btn-ghost:hover {
  border-color: rgba(203, 210, 222, 0.5);
  background: rgba(255, 255, 255, 0.03);
}

.btn-full { width: 100%; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(20px, 4vw, 40px);
  transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(8, 145, 178, 0.08);
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-img {
  height: 32px;
  width: auto;
}

.footer-logo-img {
  height: 24px;
  width: auto;
}

.logo-mark {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light-secondary);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  padding: 10px 22px !important;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 7px;
  color: var(--orange) !important;
  transition: all 0.25s var(--ease-out) !important;
}

.nav-cta:hover {
  background: rgba(249, 115, 22, 0.2) !important;
  border-color: rgba(249, 115, 22, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding: 120px clamp(20px, 4vw, 40px) 80px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 145, 178, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 70% 50%, rgba(30, 58, 95, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(249, 115, 22, 0.06) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  flex: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 28px;
}

.title-line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.35s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }

.title-accent {
  font-style: italic;
  color: var(--gray-300);
}

.title-period { color: var(--orange); }

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--text-light-secondary);
  margin-bottom: 40px;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.95s forwards;
}

.proof-item { display: flex; flex-direction: column; gap: 4px; }

.proof-value {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  letter-spacing: -0.02em;
}

.proof-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: rgba(203, 210, 222, 0.12);
}

/* Hero Visual — orbital diagram */
.hero-visual {
  position: relative;
  width: 440px;
  height: 440px;
  flex-shrink: 0;
  margin-left: 80px;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-out) 0.6s forwards;
}

.visual-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange) 0%, rgba(249, 115, 22, 0.3) 60%, transparent 70%);
  box-shadow: 0 0 60px rgba(249, 115, 22, 0.3), 0 0 120px rgba(249, 115, 22, 0.1);
  animation: orbPulse 3s ease-in-out infinite;
}

.visual-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(8, 145, 178, 0.12);
  transform: translate(-50%, -50%);
}

.visual-ring-1 { width: 180px; height: 180px; animation: ringRotate 30s linear infinite; }
.visual-ring-2 { width: 300px; height: 300px; border-color: rgba(8, 145, 178, 0.08); animation: ringRotate 45s linear infinite reverse; }
.visual-ring-3 { width: 420px; height: 420px; border-color: rgba(8, 145, 178, 0.04); animation: ringRotate 60s linear infinite; }

.visual-node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.5px solid;
  backdrop-filter: blur(8px);
  animation: nodeFloat 6s ease-in-out infinite;
}

.visual-node span { position: relative; z-index: 1; }

.visual-node-1 {
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 145, 178, 0.12);
  border-color: rgba(8, 145, 178, 0.3);
  color: var(--teal);
  animation-delay: 0s;
}

.visual-node-2 {
  bottom: 12%;
  left: 8%;
  background: rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.25);
  color: var(--orange);
  animation-delay: -2s;
}

.visual-node-3 {
  bottom: 12%;
  right: 8%;
  background: rgba(203, 210, 222, 0.08);
  border-color: rgba(203, 210, 222, 0.2);
  color: var(--gray-300);
  animation-delay: -4s;
}

/* ---- Services ---- */
.services {
  padding: var(--section-padding) 0;
  background: var(--gray-50);
}

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

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 40px 32px;
  transition: all 0.4s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
  border-color: var(--gray-200);
}

.service-card-featured {
  border-color: rgba(249, 115, 22, 0.2);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.03) 0%, var(--white) 40%);
}

.service-card-featured:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.1);
}

.service-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 5px 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--navy-light);
  margin-bottom: 24px;
}

.service-card-featured .service-icon { color: var(--orange-dim); }

.service-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.5;
}

.service-card-featured .service-list li::before {
  background: var(--orange);
  opacity: 0.7;
}

/* ---- Tech Stack ---- */
.techstack {
  padding: 40px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.techstack-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.techstack-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  white-space: nowrap;
  flex-shrink: 0;
}

.techstack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-item {
  padding: 8px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-light);
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease-out);
}

.tech-item:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ---- Form Success ---- */
.form-success {
  text-align: center;
  padding: 48px 24px;
  animation: fadeUp 0.5s var(--ease-out) forwards;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.15);
  color: var(--orange);
  font-size: 24px;
  margin-bottom: 20px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 10px;
}

.form-success p {
  font-size: 15px;
  color: var(--text-light-secondary);
  line-height: 1.6;
}

/* ---- Demos ---- */
.demos {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.demo-card {
  display: block;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
}

.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 22, 40, 0.08);
  border-color: var(--gray-200);
}

.demo-card-badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(8, 145, 178, 0.08);
  color: var(--blue-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 16px;
}

.demo-card-badge-green {
  background: rgba(249, 115, 22, 0.08);
  color: var(--orange-dim);
}

.demo-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
}

.demo-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.demo-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-accent);
  transition: gap 0.25s;
}

.demo-card:hover .demo-card-link {
  color: var(--orange);
}

/* ---- Process ---- */
.process {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--navy);
  overflow: hidden;
}

.process-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(30, 58, 95, 0.3) 0%, transparent 60%);
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.process-step {
  position: relative;
  padding-top: 48px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 64px;
  color: rgba(8, 145, 178, 0.1);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.step-connector {
  position: absolute;
  top: 80px;
  right: -20px;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.15), transparent);
}

.process-step:last-child .step-connector { display: none; }

.step-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 14px;
}

.step-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-light-secondary);
}

/* ---- About ---- */
.about {
  padding: var(--section-padding) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about-lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-story p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-team {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--gray-100);
  background: var(--gray-50);
  transition: all 0.3s var(--ease-out);
}

.team-card:hover {
  border-color: var(--gray-200);
  box-shadow: 0 4px 16px rgba(10, 22, 40, 0.05);
}

.team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.team-avatar-claude {
  background: rgba(8, 145, 178, 0.1);
  color: var(--teal);
  border: 1.5px solid rgba(8, 145, 178, 0.2);
}

.team-avatar-freddy {
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange-dim);
  border: 1.5px solid rgba(249, 115, 22, 0.2);
}

.team-avatar-daryl {
  background: rgba(10, 22, 40, 0.06);
  color: var(--navy);
  border: 1.5px solid rgba(10, 22, 40, 0.12);
}

.team-info h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 2px;
}

.team-role {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.team-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Contact ---- */
.contact {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--navy);
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 50%, rgba(30, 58, 95, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 80% 80%, rgba(249, 115, 22, 0.04) 0%, transparent 60%);
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light-secondary);
  margin-top: 20px;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-light);
  transition: color 0.25s;
}

.contact-link:hover { color: var(--orange); }

.contact-link svg { width: 18px; height: 18px; flex-shrink: 0; }

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

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(203, 210, 222, 0.12);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--white);
  transition: all 0.25s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group select { color: var(--gray-400); cursor: pointer; }
.form-group select option { background: var(--navy); color: var(--white); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(8, 145, 178, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.08);
}

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

/* ---- Footer ---- */
.footer {
  padding: 32px 0;
  background: var(--navy);
  border-top: 1px solid rgba(203, 210, 222, 0.06);
}

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

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

.footer-brand .logo-mark { font-size: 15px; }

.footer-copy {
  font-size: 13px;
  color: var(--gray-400);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--text-light); }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes orbPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes nodeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.visual-node-1 {
  animation: nodeFloat 6s ease-in-out infinite;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ---- Chat Widget ---- */
.dt-chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
  transition: all 0.3s var(--ease-out);
  z-index: 1000;
  font-size: 24px;
}
.dt-chat-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(249, 115, 22, 0.45); }
.dt-chat-bubble.dt-hidden { display: none; }

.dt-chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 380px;
  height: 540px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(10, 22, 40, 0.18);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  border: 1px solid var(--gray-100);
}
.dt-chat-widget.dt-open { display: flex; }

.dt-chat-header {
  background: var(--navy);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dt-chat-header-info { display: flex; align-items: center; gap: 12px; }
.dt-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(8,145,178,0.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--teal);
}
.dt-chat-header-name { font-size: 15px; font-weight: 600; color: var(--white); }
.dt-chat-header-status {
  font-size: 12px; color: #22C55E;
  display: flex; align-items: center; gap: 5px;
}
.dt-chat-header-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22C55E;
}
.dt-chat-close {
  background: none; border: none; color: var(--gray-400);
  cursor: pointer; font-size: 20px; padding: 4px; transition: color 0.2s;
}
.dt-chat-close:hover { color: var(--white); }

.dt-chat-messages {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.dt-chat-msg {
  max-width: 85%; padding: 11px 15px; border-radius: 16px;
  font-size: 14px; line-height: 1.55;
  opacity: 0; animation: dtMsgIn 0.3s var(--ease-out) forwards;
}
.dt-chat-msg.dt-bot {
  background: var(--gray-50); border: 1px solid var(--gray-100);
  color: var(--gray-500); align-self: flex-start; border-bottom-left-radius: 4px;
}
.dt-chat-msg.dt-bot strong { color: var(--navy); }
.dt-chat-msg.dt-user {
  background: var(--orange); color: var(--white);
  align-self: flex-end; border-bottom-right-radius: 4px;
}

.dt-typing {
  display: flex; gap: 4px; align-self: flex-start;
  padding: 12px 16px; background: var(--gray-50);
  border: 1px solid var(--gray-100); border-radius: 16px; border-bottom-left-radius: 4px;
}
.dt-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gray-300); animation: dtDotBounce 1.4s infinite;
}
.dt-typing span:nth-child(2) { animation-delay: 0.2s; }
.dt-typing span:nth-child(3) { animation-delay: 0.4s; }

.dt-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 10px; }
.dt-suggest-btn {
  padding: 7px 13px; background: var(--white);
  border: 1.5px solid var(--gray-200); border-radius: 20px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--gray-500); cursor: pointer; transition: all 0.2s;
}
.dt-suggest-btn:hover {
  border-color: var(--orange); color: var(--orange);
  background: rgba(249, 115, 22, 0.04);
}

.dt-chat-input-area {
  padding: 12px 14px; border-top: 1px solid var(--gray-100);
  display: flex; gap: 8px;
}
.dt-chat-input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--gray-200); border-radius: 10px;
  font-family: var(--font-body); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.dt-chat-input:focus { border-color: var(--teal); }
.dt-chat-input::placeholder { color: var(--gray-300); }
.dt-chat-send {
  padding: 10px 16px; background: var(--orange); color: var(--white);
  border: none; border-radius: 10px; font-family: var(--font-body);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.dt-chat-send:hover { background: #FB923C; }
.dt-chat-send:focus, .dt-chat-input:focus, .dt-suggest-btn:focus, .dt-chat-close:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.dt-suggest-btn { min-height: 36px; }

@keyframes dtMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dtDotBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .hero-visual {
    width: 320px;
    height: 320px;
    margin: 40px auto 0;
  }

  .demos-grid { grid-template-columns: 1fr; max-width: 480px; }
  .techstack-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; max-width: 480px; }
  .process-steps { grid-template-columns: 1fr; max-width: 480px; }
  .step-connector { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(8, 145, 178, 0.08);
  }
  .nav-toggle { display: flex; }

  .hero-title { font-size: clamp(36px, 8vw, 52px); }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .proof-divider {
    width: 40px;
    height: 1px;
  }

  .hero-visual {
    width: 260px;
    height: 260px;
  }

  .visual-node {
    width: 54px;
    height: 54px;
    font-size: 10px;
  }

  .service-card { padding: 32px 24px; }
  .dt-chat-widget { width: calc(100vw - 24px); right: 12px; bottom: 12px; height: 480px; }
  .dt-chat-bubble { bottom: 16px; right: 16px; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-brand { flex-direction: column; gap: 8px; }
}
