/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Univers Next Pro", "Space Grotesk", sans-serif;
  background-color: #f7f7f4;
  color: #121212;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
}

/* Index page - no body padding since intro-hero handles it */
body.index-page {
  padding-top: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 60px;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* CSS Variable for header height */
:root {
  --header-height: 64px;
}

/* Grid-based layout system matching critical vertical and horizontal lines */
.grid-layout {
  display: grid;
  grid-template-columns: [left-edge] 1fr [right-edge];
  grid-template-rows: auto;
  min-height: 85vh;
  height: 100%;
  position: relative;
}

/* ============================================
   FIXED HEADER - Cream by default, Black only on index page hero
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background-color: rgba(247, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease,
    border-color 0.3s ease;
}

/* Default cream header styling */
.site-header .header-logo {
  color: #121212;
}

.site-header .nav-link {
  color: #121212;
}

.site-header .nav-link:hover {
  background-color: rgba(18, 18, 18, 0.08);
}

.site-header .btn-primary {
  background-color: #121212;
  color: #f7f7f4;
}

.site-header .btn-primary:hover {
  opacity: 0.85;
}

.site-header .mobile-menu-btn {
  color: #121212;
}

.site-header .mobile-menu-btn:hover {
  background-color: rgba(18, 18, 18, 0.08);
}

/* Dark header theme - applied dynamically via Intersection Observer */
.site-header.header-dark {
  background-color: #121212;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.header-dark .header-logo {
  color: #f7f7f4;
}

.site-header.header-dark .nav-link {
  color: #f7f7f4;
}

.site-header.header-dark .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.site-header.header-dark .btn-primary {
  background-color: #f7f7f4;
  color: #121212;
}

.site-header.header-dark .mobile-menu-btn {
  color: #f7f7f4;
}

.site-header.header-dark .mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 80px;
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  position: relative;
}

/* Logo - Left */
.header-logo {
  font-size: 1.6rem;
  font-weight: 500;
  font-family: "DM Mono", monospace;
  color: #f7f7f4;
  letter-spacing: -0.05em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.header-logo:hover {
  opacity: 0.7;
}

/* Nav - Center (absolutely positioned for true center) */
.header-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #f7f7f4;
  text-decoration: none;
  font-size: 0.8rem;
  font-family: "Univers Next Pro", sans-serif;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 6px;
  opacity: 0.8;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.nav-link.active {
  opacity: 1;
}

/* CTA - Right */
.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px 5px;
  background-color: transparent;
  color: #121212;
  font-size: 0.68rem;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  font-family: "Univers Next Pro", sans-serif;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.4);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 6px;
  background-color: #f7f7f4;
  color: #121212;
  font-size: 0.8rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.01em;
  border-radius: 50px;
  font-family: "Univers Next Pro", sans-serif;
  line-height: 1;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* Mobile menu button - hidden on desktop */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #f7f7f4;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile nav - hidden by default */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #121212;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 99999;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: block;
  color: #f7f7f4;
  text-decoration: none;
  font-size: 1.2rem;
  font-family: "Univers Next Pro", sans-serif;
  font-weight: 400;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  opacity: 1;
}

.mobile-nav-link.cta {
  margin-top: 20px;
  padding: 14px 24px;
  background-color: #f7f7f4;
  color: #121212;
  border-radius: 50px;
  text-align: center;
  border: none;
  opacity: 1;
  font-family: "Univers Next Pro", sans-serif;
  font-size: 1rem;
}

/* Spacer to replace old header margin */
.grid-layout {
  padding-top: 60px;
}

/* Pull container up to overlap intro section */
.index-page .container {
  margin-top: -280px;
  position: relative;
  z-index: 10;
}

/* ============================================
   INTRO HERO - Full Viewport Dark Section
   ============================================ */
.intro-hero {
  min-height: 100vh;
  background-color: #121212;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 80px;
  padding-top: var(--header-height);
  padding-bottom: 200px; /* Extra space for demo overlap */
  position: relative;
}

.intro-hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 0 40px;
}

.intro-headline {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: #f7f7f4;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  white-space: nowrap;
}

.intro-headline:nth-child(2) {
  animation-delay: 0.15s;
}

.intro-subheadline {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.4;
  font-family: "Univers Next Pro", sans-serif;
  font-weight: normal;
  color: #f7f7f4;
  margin-top: 32px;
  opacity: 0;
  animation: fadeInUp 0.7s ease-out forwards 0.35s;
}

.intro-divider {
  position: absolute;
  bottom: 60px;
  left: 80px;
  right: 80px;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  animation: fadeIn 1s ease-out forwards 0.6s;
}

.intro-divider .left-line,
.intro-divider .right-line {
  position: relative;
  height: 40px;
  width: 40px;
  overflow: hidden;
}

.intro-divider .left-line::before,
.intro-divider .right-line::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 40px;
  background-color: rgba(247, 247, 244, 0.25);
  transform: scaleY(0);
  transform-origin: top;
  animation: drawLine 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.8s;
}

.intro-divider .left-line::after,
.intro-divider .right-line::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 1px;
  background-color: rgba(247, 247, 244, 0.25);
  top: 20px;
  transform: scaleX(0);
  animation: drawLine 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.8s;
}

.intro-divider .left-line::after {
  left: 0;
  transform-origin: left;
}

.intro-divider .right-line::before {
  right: 0;
}

.intro-divider .right-line::after {
  right: 0;
  transform-origin: right;
}

.intro-divider .center-plus {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  top: 5px;
}

.intro-divider .center-plus::before,
.intro-divider .center-plus::after {
  content: "";
  position: absolute;
  background-color: rgba(247, 247, 244, 0.25);
  opacity: 0;
}

.intro-divider .center-plus::before {
  width: 30px;
  height: 1px;
  top: 15px;
  left: 0;
  transform: scaleX(0);
  transform-origin: center;
  animation: drawLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 1s;
}

.intro-divider .center-plus::after {
  width: 1px;
  height: 30px;
  left: 15px;
  top: 0;
  transform: scaleY(0);
  transform-origin: center;
  animation: drawLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 1s;
}

/* ============================================
   DEMO SECTION - On Light Background
   ============================================ */
.demo-section {
  grid-column: left-edge / right-edge;
  width: 100%;
  margin-bottom: 60px;
}

.hero-product-frame {
  width: 100%;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero-product-frame .product-canvas {
  height: 500px;
}

/* ============================================
   TESTIMONIAL CALLOUT
   ============================================ */
.testimonial-callout {
  grid-column: left-edge / right-edge;
  margin-top: 0;
  margin-bottom: 60px;
  width: 100%;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
  display: flex;
  justify-content: center;
}

.testimonial-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  text-decoration: none;
  padding: 28px 36px;
  border-radius: 12px;
  background: #f2f1ed;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  width: 100%;
  max-width: 1160px;
  box-sizing: border-box;
}

.testimonial-link:hover {
  background: #ebeae6;
}

.testimonial-link:hover .testimonial-arrow {
  transform: translateX(4px);
}

.testimonial-logo {
  flex-shrink: 0;
}

.testimonial-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 8px;
  margin-left: auto;
}

.testimonial-quote {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(18, 18, 18, 0.8);
  line-height: 1.5;
}

.testimonial-attribution {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(18, 18, 18, 0.5);
}

.testimonial-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(18, 18, 18, 0.6);
}

.cta-text-mobile {
  display: none;
}

.testimonial-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Main content section with key alignments (legacy - keeping for other pages) */
.main-content {
  grid-column: left-edge / right-edge;
  width: 100%;
  display: grid;
  grid-template-columns:
    [left-col-start] minmax(0, 2fr) [desc-start] minmax(0, 1fr)
    [right-col-end];
  grid-template-rows: auto auto auto;
  gap: 15px 0;
  margin-bottom: 270px;
}

/* Generic page title (used in careers/contact) */
.page-title {
  grid-column: 1 / -1;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 40px 0;
  opacity: 0;
  animation: slideInFromLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
}

/* Section intro / lead paragraph (used in careers/contact/about) */
.intro-text {
  grid-column: 1 / -1;
  font-size: 1.1rem;
  line-height: 1.6;
  font-family: "Univers Next Pro", sans-serif;
  font-weight: 400;
  max-width: 800px;
  margin-bottom: 60px;
  opacity: 0;
  color: rgba(18, 18, 18, 0.8);
  animation: fadeIn 0.8s ease-out forwards 0.4s;
}

.heading-first {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.1s;
}

/* For grid-based layout (legacy) */
.main-content .heading-first {
  grid-column: left-col-start / desc-start;
  grid-row: 1;
  align-self: end;
  animation: slideInFromLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s,
    textGlow 1.2s ease-in-out 1s forwards;
}

.heading-second {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: normal;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s;
}

/* For grid-based layout (legacy) */
.main-content .heading-second {
  grid-column: left-col-start / desc-start;
  grid-row: 2;
  align-self: start;
  animation: slideInFromLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s,
    textGlow 1.2s ease-in-out 1.3s forwards;
}

.description {
  font-size: 0.8rem;
  line-height: 1.5;
  font-family: "Univers Next Pro", sans-serif;
  font-weight: normal;
  opacity: 0;
  animation: fadeIn 0.7s ease-out forwards 0.4s;
}

/* For grid-based layout (legacy) */
.main-content .description {
  grid-column: desc-start / right-col-end;
  grid-row: 1 / 3;
  justify-self: end;
  text-align: right;
  max-width: 480px;
  align-self: end;
  padding-bottom: 0.2em;
  margin-bottom: 10px;
  animation: fadeIn 0.7s ease-out forwards 0.8s;
}

.demo-button {
  grid-column: left-col-start;
  grid-row: 3;
  display: inline-block;
  margin-top: 0px;
  padding: 12px 32px;
  background-color: #121212;
  color: #f7f7f4;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
  border-radius: 50px;
  font-family: "Univers Next Pro", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  width: fit-content;
  justify-self: start;
  opacity: 0;
  animation: fadeIn 0.7s ease-out forwards 1s;
}

.demo-button:hover {
  background-color: #f7f7f4;
  color: #121212;
  box-shadow: 0 0 0 1px #121212;
}

/* Corner decoration section - full width breakout */
.corner-decoration {
  grid-column: left-edge / right-edge;
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  margin-bottom: 60px;
  position: relative;
  opacity: 1;
  /* Full width breakout */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 80px;
  padding-right: 80px;
  box-sizing: border-box;
}

/* Demo corner decoration (after demo section) */
.main-content + .corner-decoration,
.demo-corner {
  margin-top: 20px;
  margin-bottom: 80px;
  opacity: 0;
  animation: fadeIn 1.1s ease-out forwards 0.8s;
}

/* Bottom corner decoration specific styles */
.bottom-decoration {
  grid-row: auto;
  margin-top: 60px;
  margin-bottom: 20px;
}

.left-line,
.right-line {
  position: relative;
  height: 40px;
  width: 40px;
  overflow: hidden;
}

.left-line::before,
.right-line::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 40px;
  background-color: #ccc;
  transform: scaleY(0);
  transform-origin: top;
  animation: drawLine 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0s;
}

.left-line::after,
.right-line::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 1px;
  background-color: #ccc;
  top: 20px;
  transform: scaleX(0);
  animation: drawLine 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0s;
}

.left-line::after {
  left: 0;
  transform-origin: left;
}

.right-line::before {
  right: 0;
}

.right-line::after {
  right: 0;
  transform-origin: right;
}

.center-plus {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
}

.center-plus::before,
.center-plus::after {
  content: "";
  position: absolute;
  background-color: #ccc;
  opacity: 0;
}

.center-plus::before {
  width: 30px;
  height: 1px;
  top: 15px;
  left: 0;
  transform: scaleX(0);
  transform-origin: center;
  animation: drawLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.8s;
}

.center-plus::after {
  width: 1px;
  height: 30px;
  left: 15px;
  top: 0;
  transform: scaleY(0);
  transform-origin: center;
  animation: drawLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.8s;
}

/* Section divider */
.section-divider {
  grid-column: left-edge / right-edge;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(18, 18, 18, 0.1) 20%,
    rgba(18, 18, 18, 0.1) 80%,
    transparent
  );
  margin: 40px 0;
}

/* Solution Section with Gantt */
.solution-section {
  grid-column: left-edge / right-edge;
  width: 100%;
  padding: 60px 0 40px 0;
  position: relative;
}

.solution-section .section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(18, 18, 18, 0.5);
  font-family: "Univers Next Pro", sans-serif;
  margin-bottom: 15px;
}

.solution-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 400;
  margin: 0 0 20px 0;
  line-height: 1.2;
  font-family: "Univers Next Pro", sans-serif;
}

.solution-intro {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 50px;
  max-width: 700px;
  font-family: "Univers Next Pro", sans-serif;
  font-weight: 400;
  color: rgba(18, 18, 18, 0.7);
}

.solution-content {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

.solution-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* New grid layout for solution features (when no demo present) */
.solution-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 60px;
}

.feature-item {
  position: relative;
  padding: 18px 0 20px 0;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
  transition: border-color 0.25s ease;
  color: #121212;
}

.feature-item:hover {
  border-color: rgba(18, 18, 18, 0.14);
  color: #000;
}

.solution-features-grid .feature-item:nth-child(3),
.solution-features-grid .feature-item:nth-child(4) {
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

.feature-rail {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  transition: transform 0.25s ease;
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.03);
  border: 1px solid rgba(18, 18, 18, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease,
    background-color 0.25s ease;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  opacity: 0.72;
  display: block;
}

.feature-item:hover .feature-icon svg {
  opacity: 0.92;
}

.feature-icon svg[stroke] {
  stroke: currentColor;
}

.feature-icon svg[fill]:not([fill="none"]) {
  fill: currentColor;
}

.feature-item:hover .feature-icon svg {
  opacity: 0.92;
}

.feature-item:hover .feature-body {
  transform: none;
}

.feature-item:hover {
  border-color: rgba(18, 18, 18, 0.14);
}

.feature-item:hover .feature-rail {
  transform: none;
}

.feature-item:hover .feature-icon {
  background: rgba(18, 18, 18, 0.05);
  border-color: rgba(18, 18, 18, 0.18);
  transform: none;
}

.feature-item:hover .feature-rail {
  transform: none;
}

.feature-item:hover .feature-icon svg {
  opacity: 0.92;
}

.feature-item h3 {
  font-size: 1rem;
  margin: 0 0 8px 0;
  font-weight: 500;
  font-family: "Univers Next Pro", sans-serif;
  letter-spacing: 0.01em;
  color: #121212;
}

.feature-item p {
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  font-family: "Univers Next Pro", sans-serif;
  font-weight: 400;
  color: rgba(18, 18, 18, 0.6);
}

/* Product frame - gantt chart container */
.product-frame {
  flex: 1.2;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(18, 18, 18, 0.12);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(245, 245, 240, 0.95) 100%
  );
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.product-topbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  background: #e8e8e8;
}

.window-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding-left: 2px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.18);
}

.product-title {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(18, 18, 18, 0.7);
}

.product-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.status-pill {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  color: rgba(18, 18, 18, 0.64);
  background: rgba(18, 18, 18, 0.03);
}

.product-canvas {
  position: relative;
  height: 500px;
}

#decision-flow {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: default;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

#decision-flow.visible {
  opacity: 1;
}

#decision-flow:hover {
  cursor: pointer;
}

#decision-flow.dragging {
  cursor: grabbing;
}

/* Use Cases Section */
.use-cases-section {
  grid-column: left-edge / right-edge;
  padding: 60px 0 40px 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.use-cases-box {
  background: #f2f1ed;
  border-radius: 16px;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1160px;
}

.use-cases-label {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(18, 18, 18, 0.4);
}

.use-cases-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.use-case-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  border-radius: 6px;
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.75rem;
  color: rgba(18, 18, 18, 0.6);
  background: #f7f7f4;
  transition: all 0.2s ease;
}

.use-case-pill:hover {
  border-color: rgba(18, 18, 18, 0.25);
  color: rgba(18, 18, 18, 0.8);
  background: rgba(255, 255, 255, 0.8);
}

/* Engagement Process Section - Horizontal Timeline (Desktop) */
.process-section {
  grid-column: left-edge / right-edge;
  padding: 140px 0;
  position: relative;
  background-color: #f2f1ed;
  /* Full width breakout */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.process-section-inner {
  display: flex;
  flex-direction: column;
  position: relative;
}

.process-header {
  max-width: 1280px;
  margin: 0 auto 120px auto;
  padding: 0 60px;
  width: 100%;
  box-sizing: border-box;
}

.process-section .section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(18, 18, 18, 0.5);
  font-family: "Univers Next Pro", sans-serif;
  margin-bottom: 15px;
}

.process-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 400;
  margin: 0;
  line-height: 1.2;
  font-family: "Univers Next Pro", sans-serif;
}

/* Horizontal Timeline Container */
.process-timeline-vertical {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
  box-sizing: border-box;
}

/* The horizontal line - spans full width */
.process-timeline-vertical::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 5px; /* Align with center of dots */
  height: 1px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #121212;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}

.step-label {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(18, 18, 18, 0.45);
  order: 2;
  margin-top: 20px;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  order: 1;
}

.timeline-marker::before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #121212;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 1;
  /* Create gap in line around the dot */
  box-shadow: 0 0 0 6px #f2f1ed;
}

.timeline-step .step-content {
  padding-left: 0;
  padding-top: 12px;
  order: 3;
}

.timeline-step h3 {
  font-size: 1rem;
  color: #121212;
  margin: 0 0 4px 0;
  font-weight: 500;
  font-family: "Univers Next Pro", sans-serif;
  line-height: 1.3;
}

.timeline-step p {
  font-family: "Univers Next Pro", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(18, 18, 18, 0.6);
  margin: 0 0 12px 0;
  max-width: 240px;
}

.timeline-step .step-duration {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(18, 18, 18, 0.4);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
  margin-bottom: 12px;
}

/* Schedule Demo CTA Section */
.cta-section {
  grid-column: left-edge / right-edge;
  padding: 220px 60px;
  position: relative;
  text-align: center;
  background-color: #121212;
  /* Full width breakout */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  color: #f7f7f4;
  transition: opacity 0.3s ease;
}

.cta-link:hover {
  opacity: 0.7;
}

.cta-link:hover .cta-arrow {
  transform: translate(4px, -4px);
}

.cta-text {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  font-family: "Univers Next Pro", sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta-arrow {
  font-size: clamp(2rem, 5vw, 4rem);
  transition: transform 0.3s ease;
}

.cta-arrow .material-symbols-outlined {
  font-size: inherit;
  line-height: 1;
}

/* Animation styles */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(5px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes textGlow {
  0% {
    text-shadow: none;
  }
  30% {
    text-shadow: 0 0 8px rgba(18, 18, 18, 0.15);
  }
  100% {
    text-shadow: 0 0 1px rgba(18, 18, 18, 0.05);
  }
}

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

@keyframes drawLine {
  from {
    transform: scaleX(0) scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1) scaleY(1);
    opacity: 1;
  }
}

/* Footer styles */
.site-footer {
  grid-column: left-edge / right-edge;
  padding: 60px 60px;
  padding-bottom: 80px;
  margin-top: 0;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards 0.2s;
  background-color: #f2f1ed;
  /* Full width breakout */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  /* Extend to very bottom */
  margin-bottom: -100px;
  padding-bottom: 100px;
}

/* Index-specific black footer */
.index-page .site-footer {
  background-color: #121212;
  border-top: 2px solid rgba(247, 247, 244, 0.1);
}

.index-page .site-footer .footer-logo {
  color: #f7f7f4;
}

.index-page .site-footer .copyright {
  color: rgba(247, 247, 244, 0.5);
}

.index-page .site-footer .footer-nav-label {
  color: rgba(247, 247, 244, 0.4);
}

.index-page .site-footer .footer-links a {
  color: rgba(247, 247, 244, 0.7);
}

.index-page .site-footer .footer-links a:hover {
  color: #f7f7f4;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

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

.footer-logo {
  font-family: "DM Mono", monospace;
  font-size: 1.5rem;
  font-weight: 500;
  color: #121212;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.footer-logo:hover {
  opacity: 0.7;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(18, 18, 18, 0.5);
  font-family: "Univers Next Pro", sans-serif;
  font-weight: 400;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-label {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(18, 18, 18, 0.4);
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(18, 18, 18, 0.7);
  text-decoration: none;
  font-family: "Univers Next Pro", sans-serif;
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #121212;
}

/* Job Listings (for careers page) */
.job-list {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.job-item {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  border-top: 1px solid rgba(18, 18, 18, 0.1);
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.job-item:nth-child(1) {
  animation-delay: 0.6s;
}
.job-item:nth-child(2) {
  animation-delay: 0.7s;
}

.job-title {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 1.2rem;
  color: #121212;
  margin: 0;
}

.job-desc {
  font-family: "Univers Next Pro", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(18, 18, 18, 0.7);
  margin: 0;
}

/* Apply Section (for careers page) */
.apply-section {
  grid-column: 1 / -1;
  margin-top: 100px;
  padding-top: 40px;
  border-top: 1px solid rgba(18, 18, 18, 0.1);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards 0.8s;
}

.apply-text {
  font-family: "Univers Next Pro", sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(18, 18, 18, 0.6);
}

/* Contact Page Styles */
.contact-grid {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards 0.3s;
}

.contact-item {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
}

.contact-label {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.4);
  letter-spacing: 0.05em;
}

.contact-value {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  color: rgba(18, 18, 18, 0.7);
}

.contact-email {
  color: #121212;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.contact-email:hover {
  text-decoration: underline;
}

.copy-tooltip {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  margin-bottom: 5px;
}
.copy-tooltip.show {
  opacity: 1;
}

/* About Page Styles */
/* About page specific */
.about-grid {
  min-height: auto;
}

.about-page-content {
  margin-bottom: 0;
}

/* Remove bottom margin from the last about section */
.about-content .about-section:last-child {
  margin-bottom: 0;
}

/* Footer for about page - flows directly after founders section */
.about-footer {
  width: 100%;
  margin: 0;
  padding: 60px 60px 80px 60px;
  background-color: #121212;
  border-top: 2px solid rgba(247, 247, 244, 0.1);
}

.about-footer .footer-logo {
  color: #f7f7f4;
}

.about-footer .copyright {
  color: rgba(247, 247, 244, 0.5);
}

.about-footer .footer-nav-label {
  color: rgba(247, 247, 244, 0.4);
}

.about-footer .footer-links a {
  color: rgba(247, 247, 244, 0.7);
}

.about-footer .footer-links a:hover {
  color: #f7f7f4;
}

.about-content {
  grid-column: 1 / -1;
}

.about-section {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  border-top: 1px solid rgba(18, 18, 18, 0.1);
  padding-top: 30px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.about-section h2 {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  color: #121212;
}

.about-section:nth-child(1) {
  animation-delay: 0.2s;
}

.about-section:nth-child(2) {
  animation-delay: 0.3s;
}

.about-section:nth-child(3) {
  animation-delay: 0.4s;
}

.about-section:nth-child(4) {
  animation-delay: 0.5s;
}

.about-section:nth-child(5) {
  animation-delay: 0.6s;
}

.about-section .section-content {
  display: flex;
  flex-direction: column;
}

.about-section p {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(18, 18, 18, 0.85);
  margin-bottom: 20px;
  margin-top: 0;
}

.about-section p:last-child {
  margin-bottom: 0;
}

/* Full-width team layout */
.team-full-width {
  background-color: #121212;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 100px 60px 180px 60px;
  box-sizing: border-box;
  margin-top: 80px;
  margin-bottom: 0;
}

.team-full-width-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.team-heading {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
  padding-bottom: 30px;
  color: #f7f7f4;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.founder-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  border-top: 1px solid rgba(247, 247, 244, 0.15);
  padding-top: 30px;
  padding-bottom: 50px;
}

.founder-section:last-child {
  padding-bottom: 0;
}

.founder-photo-col {
  display: flex;
  align-items: flex-start;
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.founder-info-col {
  display: flex;
  flex-direction: column;
}

.team-name-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  text-decoration: none;
  color: #f7f7f4;
  transition: opacity 0.3s ease;
}

.team-name-link:hover {
  opacity: 0.7;
}

.team-name-link:hover .team-arrow {
  transform: translate(3px, -3px);
}

.team-name {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  color: #f7f7f4;
}

.team-arrow {
  font-size: 1.5rem;
  color: rgba(247, 247, 244, 0.4);
  transition: transform 0.3s ease, color 0.3s ease;
}

.team-name-link:hover .team-arrow {
  color: rgba(247, 247, 244, 0.7);
}

.team-arrow .material-symbols-outlined {
  font-size: inherit;
  line-height: 1;
}

.team-role {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f7f7f4;
  margin-bottom: 14px;
}

.team-background {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(247, 247, 244, 0.4);
  margin-bottom: 16px;
}

.team-education {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(247, 247, 244, 0.5);
  margin-bottom: 0;
}

.team-education-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.education-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(247, 247, 244, 0.08);
  border: 1px solid rgba(247, 247, 244, 0.12);
  border-radius: 20px;
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.72rem;
  color: rgba(247, 247, 244, 0.6);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.education-chip:hover {
  background: rgba(247, 247, 244, 0.12);
  border-color: rgba(247, 247, 244, 0.2);
}

@media (max-width: 1200px) {
  .team-full-width {
    padding: 0 50px;
  }
}

@media (max-width: 900px) {
  .team-full-width {
    padding: 70px 30px;
    margin-top: 60px;
  }

  .team-heading {
    font-size: 1.1rem;
    padding-bottom: 24px;
  }

  .founder-section {
    gap: 30px;
  }

  .team-photo {
    width: 120px;
    height: 120px;
  }

  .team-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .founder-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .team-full-width {
    padding: 60px 24px;
    margin-top: 50px;
  }

  .team-heading {
    font-size: 1rem;
    padding-bottom: 20px;
  }

  .founder-section {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .team-photo {
    width: 100px;
    height: 100px;
  }
}

/* ============================================
   CASE STUDY PAGE STYLES
   ============================================ */
.case-study-content {
  margin-bottom: 100px;
  /* Override the hero grid layout - use simple block layout for case study */
  display: block;
}

.case-study-content .intro-text {
  font-size: 0.8rem;
  color: rgba(18, 18, 18, 0.85);
  max-width: 600px;
}

.case-study-label {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(18, 18, 18, 0.5);
  margin-bottom: 15px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards 0.1s;
}

.case-study-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 50px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards 0.2s;
}

.t51-logo {
  font-family: "DM Mono", monospace;
  font-size: 3rem;
  font-weight: 500;
  color: #121212;
  letter-spacing: -0.05em;
}

.logo-divider {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: rgba(18, 18, 18, 0.3);
}

.partner-logo {
  height: 54px;
  width: auto;
  /* Offset to visually center the text portion with T51 (compensates for icon extending above text) */
  transform: translateY(6px);
}

.case-study-highlight {
  margin: 40px 0 60px 0;
  padding: 30px 40px;
  background: rgba(18, 18, 18, 0.03);
  border-left: 3px solid rgba(18, 18, 18, 0.15);
  border-radius: 0 8px 8px 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards 0.5s;
}

.highlight-quote {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(18, 18, 18, 0.8);
  line-height: 1.6;
  margin: 0;
}

.case-study-request {
  max-width: 500px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards 0.6s;
  background: #f2f1ed;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 12px;
  padding: 32px;
}

.case-study-request h2 {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 28px 0;
  color: #121212;
}

.request-description {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(18, 18, 18, 0.7);
  margin-bottom: 30px;
}

/* Form Styles */
.case-study-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(18, 18, 18, 0.5);
}

.form-group label .optional-label {
  text-transform: lowercase;
  color: rgba(18, 18, 18, 0.4);
}

.form-group input {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  padding: 12px 14px;
  border: 1px solid rgba(18, 18, 18, 0.15);
  border-radius: 8px;
  background: #fff;
  color: #121212;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: rgba(18, 18, 18, 0.35);
}

.form-group input:focus {
  outline: none;
  border-color: rgba(18, 18, 18, 0.4);
  box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.05);
}

.form-group textarea {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  padding: 12px 14px;
  border: 1px solid rgba(18, 18, 18, 0.15);
  border-radius: 8px;
  background: #fff;
  color: #121212;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  min-height: 100px;
}

.form-group textarea::placeholder {
  color: rgba(18, 18, 18, 0.35);
}

.form-group textarea:focus {
  outline: none;
  border-color: rgba(18, 18, 18, 0.4);
  box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.05);
}

.contact-form-section {
  margin-bottom: 40px;
  background: #f2f1ed;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 12px;
  padding: 32px;
}

.form-submit {
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 12px 24px 10px;
  background-color: #121212;
  color: #f7f7f4;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  margin-top: 10px;
  width: fit-content;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit:active {
  transform: scale(0.98);
}

.task-instruction {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(18, 18, 18, 0.1);
  color: rgba(18, 18, 18, 0.65);
  font-family: "Univers Next Pro", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 100;
}

.task-instruction.visible {
  opacity: 1;
}

/* Add new animation for header elements */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1280px;
    padding: 40px 60px;
  }

  .header-container {
    padding: 0 80px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 40px 50px;
  }

  .header-container {
    padding: 0 50px;
  }

  .intro-hero {
    padding: 0 50px;
    padding-top: var(--header-height);
    padding-bottom: 180px;
  }

  .intro-divider {
    left: 50px;
    right: 50px;
    bottom: 50px;
  }

  .corner-decoration {
    padding-left: 50px;
    padding-right: 50px;
  }

  .index-page .container {
    margin-top: -260px;
  }

  .team-full-width {
    padding: 100px 50px;
  }
}

@media (max-width: 1100px) {
  .container {
    padding: 30px 20px;
  }

  .header-container {
    padding: 0 20px;
  }

  .team-full-width {
    padding: 80px 40px;
  }

  .main-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    margin-bottom: 100px;
  }

  .grid-layout {
    padding-top: 40px;
  }

  /* Intro hero mobile */
  .intro-hero {
    padding: 0 40px;
    padding-top: var(--header-height);
    padding-bottom: 160px;
    min-height: 100vh;
  }

  .intro-headline {
    font-size: clamp(1.85rem, 5vw, 2.8rem);
    white-space: nowrap;
  }

  .intro-subheadline {
    font-size: 0.9rem;
    margin-top: 20px;
  }

  .intro-divider {
    left: 40px;
    right: 40px;
    bottom: 40px;
  }

  .corner-decoration {
    padding-left: 40px;
    padding-right: 40px;
  }

  .index-page .container {
    margin-top: -260px;
  }

  /* Demo section mobile */
  .demo-section {
    margin-bottom: 40px;
  }

  .hero-product-frame .product-canvas {
    height: 500px;
  }

  .testimonial-callout {
    margin-top: 0;
    margin-bottom: 40px;
  }

  .testimonial-link {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 20px 24px;
  }

  .testimonial-logo img {
    height: 36px;
  }

  .testimonial-content {
    align-items: center;
    text-align: center;
    margin-left: 0;
  }

  .testimonial-quote {
    font-size: 0.8rem;
  }

  .cta-text-desktop {
    display: none;
  }

  .cta-text-mobile {
    display: inline;
  }

  .heading-first,
  .heading-second {
    grid-column: 1 / -1;
    text-align: left;
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    margin-bottom: -5px;
  }

  .heading-second {
    margin-top: -5px;
  }

  .main-content .description {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    text-align: left;
    margin-top: 5px;
    margin-bottom: 30px;
    max-width: 90%;
  }

  .demo-button {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: start;
    margin-top: 5px;
    margin-bottom: 65px;
  }

  .solution-content {
    flex-direction: column;
  }

  .solution-features-grid {
    grid-template-columns: 1fr;
  }

  /* Connect items in the single-column stack */
  .solution-features-grid .feature-item,
  .solution-features-grid .feature-item:nth-child(3),
  .solution-features-grid .feature-item:nth-child(4) {
    border-bottom: none;
  }

  .solution-features-grid .feature-item:last-child {
    border-bottom: 1px solid rgba(18, 18, 18, 0.08) !important;
    padding-bottom: 60px !important;
    margin-bottom: 40px;
  }

  .product-frame {
    order: -1;
  }

  .product-canvas {
    height: 500px;
  }

  .product-status {
    display: none;
  }

  .solution-section h2 {
    text-align: left;
    margin-bottom: 20px;
  }

  .solution-intro {
    text-align: left;
    margin-bottom: 30px;
  }

  /* Career page mobile adjustments */
  .job-item {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Use Cases Mobile */
  .use-cases-section {
    padding: 40px 0 30px 0;
  }

  .use-cases-box {
    padding: 24px 20px;
    border-radius: 12px;
  }

  .use-cases-pills {
    gap: 8px;
  }

  .use-case-pill {
    padding: 7px 14px;
    font-size: 0.7rem;
  }

  /* Engagement Process Mobile - Switch to Vertical Timeline */
  .process-section {
    padding: 100px 40px;
  }

  .process-header {
    margin-bottom: 50px;
    padding: 0;
  }

  .process-section h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
  }

  /* Switch from horizontal to vertical layout */
  .process-timeline-vertical {
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: none;
  }

  /* Vertical line instead of horizontal */
  .process-timeline-vertical::before {
    left: 71px; /* 60px step-label + 11px (half of 24px marker) */
    right: auto;
    top: 4px;
    bottom: 30px;
    width: 1px;
    height: auto;
    margin-left: 0;
  }

  .timeline-step {
    display: grid;
    grid-template-columns: 60px 24px 1fr;
    flex-direction: row;
    align-items: start;
    padding: 0 0 60px 0;
  }

  .timeline-step:last-child {
    padding-bottom: 0;
  }

  .step-label {
    order: unset;
    text-align: right;
    padding-right: 12px;
    margin-top: 0;
    font-size: 0.65rem;
  }

  .timeline-marker {
    order: unset;
    width: 24px;
    justify-content: center;
  }

  .timeline-marker::before {
    width: 8px;
    height: 8px;
  }

  .timeline-step .step-content {
    order: unset;
    padding-left: 16px;
    padding-top: 0;
  }

  .timeline-step h3 {
    font-size: 0.95rem;
  }

  .timeline-step p {
    font-size: 0.75rem;
    max-width: none;
  }

  .cta-section {
    padding: 140px 40px;
  }
}

/* Demo mobile breakpoint */
@media (max-width: 900px) {
  .product-title {
    display: none;
  }
}

/* Smaller screens - hide window dots to give demo toggle more space */
@media (max-width: 500px) {
  .window-dots {
    display: none;
  }
}

/* Mobile header breakpoint */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mobile-menu-btn {
    display: flex;
    grid-column: 3;
    justify-self: end;
  }

  .mobile-nav {
    display: block;
    background-color: #f7f7f4;
    z-index: 99999;
  }

  .mobile-nav-link {
    color: #121212;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .mobile-nav-link.cta {
    background-color: #121212;
    color: #f7f7f4;
  }

  .header-container {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 600px) {
  .heading-first,
  .heading-second {
    font-size: clamp(1.4rem, 6vw, 2rem); /* Slightly reduce font size */
  }

  .intro-hero {
    padding-bottom: 140px;
  }

  .intro-headline {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    white-space: normal;
  }

  .intro-subheadline {
    font-size: 0.8rem;
  }

  .intro-divider {
    left: 24px;
    right: 24px;
    bottom: 30px;
  }

  .corner-decoration {
    padding-left: 24px;
    padding-right: 24px;
  }

  .index-page .container {
    margin-top: -260px;
  }

  .hero-product-frame .product-canvas {
    height: 500px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .process-section {
    padding: 80px 24px;
  }

  .process-timeline-vertical::before {
    left: 59px; /* 50px step-label + 9px (half of 20px marker) */
  }

  .timeline-step {
    grid-template-columns: 50px 20px 1fr;
    padding-bottom: 50px;
  }

  .step-label {
    font-size: 0.6rem;
    padding-right: 10px;
  }

  .timeline-marker {
    width: 20px;
  }

  .timeline-marker::before {
    width: 7px;
    height: 7px;
  }

  .timeline-step h3 {
    font-size: 0.95rem;
  }

  .timeline-step p {
    font-size: 0.8rem;
    max-width: 100%;
  }

  .timeline-step .step-content {
    padding-left: 12px;
  }

  .timeline-step .step-duration {
    font-size: 0.65rem;
  }

  .cta-section {
    padding: 120px 24px;
  }

  /* Case study responsive */
  .case-study-logos {
    gap: 12px;
  }

  .t51-logo {
    font-size: 2.4rem;
  }

  .logo-divider {
    font-size: 1.8rem;
  }

  .partner-logo {
    height: 44px;
  }

  .case-study-highlight {
    padding: 24px 20px;
    margin: 30px 0 40px 0;
  }

  .highlight-quote {
    font-size: 0.8rem;
  }

  .case-study-request {
    max-width: 100%;
  }

  .case-study-request h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .case-study-logos {
    gap: 8px;
  }

  .t51-logo {
    font-size: 2rem;
  }

  .logo-divider {
    font-size: 1.5rem;
  }

  .partner-logo {
    height: 36px;
    transform: translateY(4px);
  }

  .container {
    padding: 20px 15px;
  }

  .header-container {
    padding: 0 15px;
  }

  .team-full-width {
    padding: 50px 15px;
    margin-top: 40px;
  }

  .header-logo {
    font-size: 1.4rem;
  }

  .intro-hero {
    padding: 0 20px;
    padding-top: var(--header-height);
    padding-bottom: 140px;
  }

  .intro-headline {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  }

  .intro-subheadline {
    font-size: 0.75rem;
  }

  .intro-divider {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }

  .corner-decoration {
    padding-left: 20px;
    padding-right: 20px;
  }

  .heading-first,
  .heading-second {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .demo-button {
    padding: 8px 22px;
    font-size: 0.8rem;
  }

  .process-section {
    padding: 60px 15px;
  }

  .process-timeline-vertical::before {
    left: 49px; /* 42px step-label + 7px (half of 16px marker) */
  }

  .timeline-step {
    grid-template-columns: 42px 16px 1fr;
    padding-bottom: 40px;
  }

  .step-label {
    font-size: 0.55rem;
    padding-right: 8px;
  }

  .timeline-marker {
    width: 16px;
  }

  .timeline-marker::before {
    width: 6px;
    height: 6px;
  }

  .timeline-step h3 {
    font-size: 0.9rem;
  }

  .timeline-step .step-content {
    padding-left: 10px;
  }

  .cta-section {
    padding: 100px 15px;
  }

  .use-cases-section {
    padding: 30px 0 24px 0;
  }

  .use-cases-box {
    padding: 20px 15px;
  }

  .use-case-pill {
    padding: 6px 12px;
    font-size: 0.65rem;
  }
}

/* ============================================
   LANDSCAPE MODE - Short Viewport Fix
   Prevents demo from overlapping hero content on 
   mobile devices in landscape orientation
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .intro-hero {
    min-height: auto;
    padding-top: var(--header-height);
    padding-bottom: 60px;
  }

  .intro-hero-content {
    padding-top: 20px;
  }

  .intro-divider {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    margin-top: 30px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .index-page .container {
    margin-top: 0;
  }
}
