/* ========================================
   3E8 Robotics - Elly Website
   Pure HTML/CSS Version
   ======================================== */

/* CSS Variables */
:root {
  --background: #fafafa;
  --foreground: #141414;
  --card: #f2f2f2;
  --card-foreground: #141414;
  --muted: #cccccc;
  --muted-foreground: #595959;
  --accent: #0000cc;
  --accent-foreground: #fafafa;
  --border: #e6e6e6;
  --radius: 0.625rem;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: all 0.3s ease;
}

.header.light-mode {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.header.light-mode .logo {
  filter: brightness(0);
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

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

.header.light-mode .nav-links a {
  color: rgba(20, 20, 20, 0.6);
}

.header.light-mode .nav-links a:hover {
  color: var(--foreground);
}

.btn-book-demo {
  background: black;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-book-demo:hover {
  background: rgba(0, 0, 0, 0.8);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}

.header.light-mode .mobile-menu-btn span {
  background: var(--foreground);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 56;
}

.mobile-menu-close:hover {
  opacity: 0.5;
}

.mobile-menu a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.3s ease;
}

.mobile-menu a:hover {
  opacity: 0.6;
}

.mobile-menu .mobile-cta {
  margin-top: 1rem;
  padding: 1rem 2rem;
  background: black;
  color: white;
  border-radius: 9999px;
  font-size: 1rem;
}

body.menu-open {
  overflow: hidden;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4rem;
}

.hero-text {
  color: white;
  max-width: 36rem;
}

.hero-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

.btn-contact-sales {
  padding: 0.5rem 1.5rem;
  background: white;
  color: black;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-contact-sales:hover {
  background: rgba(255, 255, 255, 0.9);
}

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

.btn-video-mobile {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid white;
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

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

.btn-video {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid white;
  color: white;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-video:hover {
  background: rgba(255, 255, 255, 0.1);
}

.icon-external {
  width: 1rem;
  height: 1rem;
}

/* ========================================
   CAROUSEL SECTION
   ======================================== */
.carousel {
  position: relative;
  width: 100%;
  height: 300vh;
}

.carousel-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-images {
  position: absolute;
  inset: 0;
}

.carousel-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.carousel-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 3rem 5rem;
}

.carousel-text h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.carousel-text p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 20rem;
  font-weight: 300;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.indicator {
  height: 4px;
  width: 4px;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.indicator.active {
  width: 2rem;
  background: white;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
  position: relative;
  min-height: 400vh;
  padding: 4rem 0;
  background: var(--background);
}

.features-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.features-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 8rem 2rem 0;
  width: 100%;
}

.features-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  text-wrap: balance;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.features-image {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-product-image {
  position: absolute;
  max-width: 500px;
  max-height: 600px;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.feature-product-image.active {
  opacity: 1;
  pointer-events: auto;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  opacity: 0.3;
  transform: scale(0.95);
  transition: all 0.5s ease;
}

.feature-item.active {
  opacity: 1;
  transform: scale(1);
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-content h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.feature-content p {
  color: rgba(20, 20, 20, 0.6);
  line-height: 1.6;
}

/* ========================================
   SHOWCASE SECTION
   ======================================== */
.showcase {
  padding: 2rem 1rem;
  background: var(--background);
}

.showcase-container {
  max-width: 80rem;
  margin: 0 auto;
}

.showcase-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  text-wrap: balance;
}

.showcase-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 5rem;
  text-wrap: balance;
}

.showcase-video {
  max-width: 56rem;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--muted);
}

.showcase-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
  padding: 8rem 1rem;
  background: white;
  color: black;
}

.cta-container {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.cta-text {
  font-size: 1.125rem;
  opacity: 0.8;
  margin-bottom: 3rem;
  text-wrap: balance;
  line-height: 1.7;
  font-weight: 300;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.btn-schedule {
  padding: 0.75rem 2rem;
  background: black;
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-schedule:hover {
  background: rgba(0, 0, 0, 0.9);
}

.btn-contact {
  padding: 0.75rem 2rem;
  background: transparent;
  color: black;
  border: 1px solid black;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-contact:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.footer-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0);
}

.footer-logo span {
  font-weight: 300;
  color: var(--foreground);
}

.footer-tagline {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(20, 20, 20, 0.7);
  font-size: 0.875rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  color: var(--foreground);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: rgba(20, 20, 20, 0.7);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.footer-bottom p {
  color: rgba(20, 20, 20, 0.5);
  font-size: 0.875rem;
  text-align: center;
}

/* ========================================
   MODAL
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 1rem;
  max-width: 32rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-close {
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: #f3f4f6;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.required {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath strokeLinecap='round' strokeLinejoin='round' strokeWidth='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: none;
}

.form-status {
  text-align: center;
  font-size: 0.875rem;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

.form-buttons {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.btn-cancel {
  flex: 1;
  padding: 0.625rem 1.5rem;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-cancel:hover {
  background: #f9fafb;
}

.btn-submit {
  flex: 1;
  padding: 0.625rem 1.5rem;
  border: none;
  background: #2563eb;
  color: white;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #1d4ed8;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .nav {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .btn-book-demo {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
  }

  .hero-content {
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .btn-video {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .features-title,
  .showcase-title,
  .cta-title {
    font-size: 2.5rem;
  }

  .features-grid {
    gap: 2rem;
  }

  .features-image {
    height: 400px;
  }

  .feature-content h3 {
    font-size: 1.5rem;
  }

  .feature-content p {
    font-size: 0.9rem;
  }

  .cta {
    padding: 4rem 1rem;
  }

  .cta-text {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .footer-tagline {
    font-size: 0.75rem;
    max-width: 200px;
    text-align: center;
    line-height: 1.3;
  }

  /* About Page Tablet */
  .about-section {
    padding: 6rem 1rem 3rem;
  }

  .about-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  .about-prose p {
    font-size: 1rem;
  }

  .about-image {
    margin-top: 2rem;
  }

  .mission-vision-grid {
    margin-top: 2rem;
    gap: 1.25rem;
  }

  .card {
    padding: 1.5rem;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  /* Operational Impact Tablet */
  .operational-section {
    padding: 6rem 1rem 1rem;
  }

  .operational-header h1 {
    font-size: 2.25rem;
  }

  .use-case-sticky {
    padding: 1.25rem 1rem;
  }

  .use-case-intro p {
    font-size: 0.95rem;
    padding: 0 1rem;
    word-wrap: break-word;
    margin-bottom: 0.5rem;
  }

  .use-case-tabs {
    flex-wrap: wrap;
    padding: 0.5rem;
    border-radius: 2rem;
    gap: 0.5rem;
    justify-content: center;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 1.5rem;
  }

  .use-case-content {
    max-width: 60rem;
  }

  .use-case-images {
    aspect-ratio: 16/9;
  }

  .use-case-desc {
    font-size: 0.9rem;
    padding: 0 1.5rem;
    line-height: 1.4;
  }

  .use-case-descriptions {
    margin-top: 0.75rem;
  }

  .roi-section {
    padding: 2rem 1rem;
  }

  .roi-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    word-wrap: break-word;
  }

  .roi-grid {
    gap: 1.5rem;
  }

  .roi-card {
    padding: 1.5rem;
    min-height: auto;
  }

  .roi-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
  }

  .roi-inputs .form-group input {
    padding: 0.625rem 0.875rem;
  }

  .result-label,
  .savings-label {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .savings-row {
    padding: 0.875rem;
  }
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-section {
  padding: 10rem 1rem 5rem;
  background: var(--background);
}

.about-container {
  max-width: 56rem;
  margin: 0 auto;
}

.about-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.about-prose {
  max-width: none;
  color: rgba(20, 20, 20, 0.8);
  line-height: 1.8;
}

.about-prose p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.about-image {
  margin-top: 3rem;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.card p {
  color: rgba(20, 20, 20, 0.8);
  line-height: 1.6;
}

.founders-button {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.btn-founders {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--foreground);
  color: var(--foreground);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-founders:hover {
  background: rgba(20, 20, 20, 0.1);
}

.btn-founders img {
  width: 24px;
  height: 24px;
}

.btn-founders svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   OPERATIONAL IMPACT PAGE
   ======================================== */
.operational-section {
  padding: 10rem 1rem 2rem;
  background: var(--background);
}

.operational-header {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.operational-header h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--foreground);
}

.desktop-only {
  display: block;
}

/* Use Case Explorer */
.use-case-section {
  position: relative;
  min-height: 300vh; /* mobile-friendly */
  height: auto;      /* allow content to expand */
  background: var(--background);
}

.use-case-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem;
  overflow-y: auto;
}

.use-case-intro {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.use-case-intro p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.use-case-tabs {
  display: inline-flex;
  background: var(--muted);
  border-radius: 9999px;
  padding: 0.375rem;
  gap: 0.25rem;
  margin: 0 auto 1rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--foreground);
}

.tab-btn.active {
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.use-case-content {
  max-width: 70rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

.use-case-images {
  position: relative;
  aspect-ratio: 21/9;
  border-radius: 1.5rem;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
}

.use-case-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.use-case-image.active {
  opacity: 1;
}

.use-case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.use-case-descriptions {
  text-align: center;
  margin-top: 1rem;
  max-width: 70rem;
}

.use-case-desc {
  display: none;
  font-size: 1.0625rem;
  color: var(--foreground);
  max-width: 100%;
  padding: 0 2rem;
  word-wrap: break-word;
  line-height: 1.5;
}

.use-case-desc.active {
  display: block;
}

/* ROI Calculator */
.roi-section {
  padding: 3rem 1rem;
  background: var(--background);
}

.roi-container {
  max-width: 72rem;
  margin: 0 auto;
}

.roi-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--foreground);
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.roi-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.roi-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.roi-inputs .form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.roi-inputs .form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.roi-inputs .form-group input:focus {
  outline: none;
  border-color: black;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.roi-assumptions {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
}

.assumptions-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.roi-assumptions p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.roi-results {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.result-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.result-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.result-savings {
  margin-top: 1.5rem;
}

.savings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.savings-row.positive {
  background: #ecfdf5;
}

.savings-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.savings-row.positive .savings-label,
.savings-row.positive .savings-value {
  color: #166534;
}

.savings-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.savings-note {
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  display: none;
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .btn-book-demo {
    display: none;
  }

  .hero-content {
    justify-content: center;
    text-align: center;
    padding: 1rem;
    flex-direction: column;
  }

  .hero-text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-tagline {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .btn-contact-sales {
    width: 100%;
    padding: 0.75rem 1.5rem;
  }

  .btn-video-mobile {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
  }

  .btn-video {
    display: none;
  }

  .carousel {
    height: 200vh;
  }

  .carousel-content {
    padding: 0 1.5rem 4rem;
  }

  .carousel-text h2 {
    font-size: 2rem;
  }

  .carousel-text p {
    font-size: 1rem;
  }

  .features {
    min-height: 200vh;
  }

  .features-title,
  .showcase-title,
  .cta-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-image {
    display: none;
  }

  .features-list {
    order: 1;
  }

  .feature-content h3 {
    font-size: 1.25rem;
  }

  .feature-item {
    gap: 0.75rem;
  }

  .feature-icon {
    width: 32px;
    height: 32px;
  }

  .showcase-subtitle {
    margin-bottom: 2rem;
  }

  .cta {
    padding: 3rem 1rem;
  }

  .cta-text {
    font-size: 0.95rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn-schedule,
  .btn-contact {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .footer-main {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .footer-tagline {
    position: relative;
    left: auto;
    transform: none;
    order: 2;
    max-width: 100%;
    font-size: 0.75rem;
  }

  .footer-social {
    order: 3;
    gap: 2rem;
  }

  .footer-logo {
    order: 1;
  }

  /* About Page Mobile */
  .about-section {
    padding: 5rem 1rem 2rem;
  }

  .about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .about-prose p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .about-image {
    margin-top: 1.5rem;
  }

  .about-image img {
    border-radius: 1rem;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .founders-button {
    margin-top: 1.5rem;
  }

  .btn-founders {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
  }

  /* Operational Impact Mobile */
  .operational-section {
    padding: 5rem 1rem 1rem;
  }

  .operational-header h1 {
    font-size: 1.75rem;
    padding: 0 1rem;
    word-wrap: break-word;
  }

  .desktop-only {
    display: none;
  }

  .use-case-section {
    height: auto;
    min-height: auto;
  }

  .use-case-sticky {
    position: static;
    min-height: auto;
    padding: 1rem;
    overflow: visible;
  }

  .use-case-intro {
    margin-bottom: 0.75rem;
  }

  .use-case-intro p {
    font-size: 0.85rem;
  }

  .use-case-tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    border-radius: 1.5rem;
    padding: 0.5rem;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
    border-radius: 1rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .use-case-content {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .use-case-images {
    aspect-ratio: 4/3;
    border-radius: 1rem;
    width: 90%;
    margin: 0 auto;
  }

  .use-case-descriptions {
    margin-top: 0.5rem;
  }

  .use-case-desc {
    font-size: 0.8rem;
    padding: 0 1rem;
    line-height: 1.4;
  }

  .roi-section {
    padding: 1.5rem 1rem;
  }

  .roi-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
  }

  .roi-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .roi-card {
    padding: 1.25rem;
    min-height: auto;
    overflow: visible;
  }

  .roi-card h3 {
    font-size: 1rem;
  }

  .roi-inputs .form-group label {
    font-size: 0.875rem;
  }

  .roi-inputs .form-group input {
    font-size: 0.875rem;
  }

  .result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.625rem 0;
  }

  .result-label {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .result-value {
    font-size: 1rem;
  }

  .savings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.875rem;
  }

  .savings-label {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .savings-value {
    font-size: 1.125rem;
  }

  .roi-assumptions {
    margin-top: 1rem;
  }

  .roi-assumptions p {
    line-height: 1.4;
  }

  /* Modal Mobile */
  .modal-content {
    margin: 0.5rem;
    max-height: calc(100vh - 1rem);
    border-radius: 1rem;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-form {
    padding: 1rem;
    gap: 1rem;
  }

  .form-buttons {
    flex-direction: column;
  }

  .btn-cancel,
  .btn-submit {
    width: 100%;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .carousel-text h2 {
    font-size: 1.75rem;
  }

  .features-title,
  .showcase-title,
  .cta-title {
    font-size: 1.75rem;
  }

  .feature-content h3 {
    font-size: 1.1rem;
  }

  .feature-content p {
    font-size: 0.85rem;
  }

  .about-title,
  .operational-header h1 {
    font-size: 1.5rem;
  }

  .mobile-menu a {
    font-size: 1.25rem;
  }

  .use-case-images {
    width: 85%;
  }

  .use-case-desc {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .use-case-intro p {
    font-size: 0.8rem;
  }

  .roi-title {
    font-size: 1.5rem;
  }

  .roi-card h3 {
    font-size: 0.95rem;
  }

  .result-label,
  .savings-label {
    font-size: 0.75rem;
  }
}

/* Desktop - Hide mobile menu */
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  
  .mobile-menu-btn {
    display: none !important;
  }
}

