/* MAI Laboratory Website - Apple-Inspired Design */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  line-height: 1.47;
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  font-weight: 400;
  color: #1d1d1f;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography - Apple Style */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.0875;
  letter-spacing: -0.022em;
  margin-bottom: 0;
  color: #1d1d1f;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2.875rem;
  font-weight: 600;
  letter-spacing: -0.024em;
}

h3 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.023em;
}

h4 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.headline {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.subheadline {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: -0.02em;
  color: #86868b;
}

p {
  font-size: 1.0625rem;
  line-height: 1.47;
  margin-bottom: 0;
  max-width: none;
}

.large-text {
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.016em;
}

strong {
  font-weight: 600;
  color: #1d1d1f;
}

em {
  font-style: italic;
}

/* Links - Vivid Orange Style */
a {
  color: #ff6b35;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover {
  color: #e55a2b;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout Components - Apple Style */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.large-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-padding {
  padding: 110px 0;
}

.section-padding-large {
  padding: 150px 0;
}

/* Top Image Container */
.top-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.top-image {
  max-width: 980px;
  width: 100%;
  height: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* Language Switcher */
.language-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-link {
  color: #ff6b35;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.016em;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lang-link:hover {
  color: #e55a2b;
  text-decoration: none;
}

.lang-current {
  color: #1d1d1f;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.016em;
}

.lang-separator {
  color: #86868b;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Floating MaiTALK Logo */
.floating-logo {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 107, 53, 0.95);
  color: #ffffff;
  padding: 8px 16px; /* Match language switcher height */
  border-radius: 20px; /* Match language switcher border radius */
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
  z-index: 1000;
  transform: translateY(-80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: baseline;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  border: none;
  font-family: inherit;
}

.floating-logo:hover {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.floating-logo[aria-expanded="true"] {
  background: rgba(255, 107, 53, 1);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.floating-logo.visible {
  transform: translateY(0);
  opacity: 1;
}

.product-name {
  font-size: 1.125rem; /* Slightly smaller to match language switcher */
  font-weight: 700;
  letter-spacing: -0.02em;
}

.by-lab {
  font-size: 0.625rem;
  font-weight: 200;
  letter-spacing: -0.01em;
  opacity: 0.7;
  margin-top: 2px;
}

/* Navigation Popup */
.nav-popup {
  position: fixed;
  top: 60px; /* Below the floating logo */
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 220px;
  max-width: 280px;
}

.nav-popup.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.nav-menu {
  padding: 12px 0;
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #1d1d1f;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-radius: 0;
}

.nav-item:hover,
.nav-item:focus {
  background: rgba(255, 107, 53, 0.1);
  color: #ff6b35;
  outline: none;
}

.nav-item:active {
  background: rgba(255, 107, 53, 0.2);
  transform: scale(0.98);
}

.nav-item i {
  font-size: 16px;
  width: 16px;
  text-align: center;
  color: currentColor;
  opacity: 0.8;
}

.nav-item:hover i,
.nav-item:focus i {
  opacity: 1;
}

.nav-item span {
  font-family: inherit;
  letter-spacing: -0.01em;
}

/* Responsive behavior for navigation popup */
@media (max-width: 480px) {
  .nav-popup {
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }

  .nav-item {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .nav-item i {
    font-size: 18px;
  }
}

/* Hero Section - Vivid Orange */
.hero {
  background: #ff6b35;
  color: #ffffff;
  text-align: center;
  padding: 120px 0 140px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h2 {
  color: #ffffff;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 30px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.lead {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.33;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
  letter-spacing: -0.02em;
  opacity: 0.95;
}

/* Section Styles - Apple Inspired */
section {
  padding: 110px 0;
}

section:nth-child(even) {
  background-color: #f5f5f7;
}

.about {
  background: #ffffff;
}

.about h3 {
  font-size: 2.875rem;
  margin-bottom: 50px;
  text-align: center;
}

.about p {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

/* Japanese version only - Left-align specific paragraphs */
.lang-jp .about p,  /* All about section paragraphs */
.lang-jp .feature-block p:first-of-type,  /* 「漫画の共同制作」を paragraph */
.lang-jp .mission-text,  /* MaiTALKが目指しているのは paragraph */
.lang-jp .mission p {
  /* All mission section paragraphs */
  text-align: left;
}

/* Japanese speech text with Shippori Antique font */
.lang-jp .human-speech {
  font-family: "Shippori Antique", serif;
  font-size: 1.1em;
  letter-spacing: 0.02em;
  font-style: normal;
}

/* Features Section */
.features {
  background: #f5f5f7;
}

.features h3 {
  font-size: 2.875rem;
  margin-bottom: 80px;
  text-align: center;
}

.feature-block {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block h4 {
  font-size: 2.25rem;
  margin-bottom: 30px;
  color: #1d1d1f;
}

.feature-block p {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 25px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Layouts - Apple Style with Animations */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.principle-card {
  background: #ffffff;
  padding: 30px 24px;
  border-radius: 18px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(30px);
  animation-fill-mode: forwards;
}

.principle-card.fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-icon svg,
.card-icon i {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle-card h5 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.33;
  color: #1d1d1f;
  margin-bottom: 8px;
  letter-spacing: -0.016em;
}

.principle-card p {
  font-size: 1rem;
  line-height: 1.47;
  color: #86868b;
  margin: 0;
}

/* Applications Showcase - Dynamic MacBook Air Style */
.applications-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  height: 400px;
}

.app-item {
  border-radius: 20px;
  padding: 32px 24px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  hyphens: auto;
  opacity: 0;
  transform: translateY(40px);
  animation-fill-mode: forwards;
}

.app-item.fade-in {
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.app-item:hover {
  transform: translateY(-5px) scale(1.02);
}

.app-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  opacity: 0.1;
  z-index: 1;
}

.app-item > * {
  position: relative;
  z-index: 2;
}

/* Size variants */
.app-item.large {
  grid-column: span 2;
  padding: 32px 28px;
}

.app-item.medium {
  grid-column: span 1;
  padding: 24px 20px;
}

/* Color themes */
.app-item.tourism {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
}

.app-item.public-services {
  background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.app-item.healthcare {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8a3 100%);
}

.app-item.creative {
  background: linear-gradient(135deg, #ffd93d 0%, #ff6b6b 100%);
}

.app-item.education {
  background: linear-gradient(135deg, #6bcf7f 0%, #4d9de0 100%);
}

.app-item.business {
  background: linear-gradient(135deg, #15dea5 0%, #02aab0 100%);
}

.app-item.global-aid {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-item h5 {
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  color: white;
  text-transform: uppercase;
  word-wrap: break-word;
  hyphens: none;
}

/* Individual font sizes for perfect fit */
.app-item.tourism h5 {
  font-size: 3.2rem;
}

.app-item.public-services h5 {
  font-size: 1.6rem;
}

.app-item.healthcare h5 {
  font-size: 1.6rem;
}

.app-item.creative h5 {
  font-size: 1.5rem;
}

.app-item.education h5 {
  font-size: 2.8rem;
}

.app-item.business h5 {
  font-size: 1.6rem;
}

.app-item p {
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

.app-item.large p {
  font-size: 1.125rem;
}

.app-item.small p {
  font-size: 0.9rem;
}

/* Lists - Apple Style */
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spec-block ul li,
.value-block ul li {
  font-size: 1.125rem;
  line-height: 1.47;
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.spec-block ul li::before {
  content: "•";
  color: #1d1d1f;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Specifications Section - MacBook Pro Style */
.specifications {
  background: #ffffff;
}

.specifications h3 {
  font-size: 2.875rem;
  margin-bottom: 80px;
  text-align: center;
}

.specs-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.spec-feature {
  text-align: left;
  padding: 0;
  opacity: 0;
  transform: translateY(30px);
  animation-fill-mode: forwards;
}

.spec-feature.fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.spec-icon {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.spec-icon svg,
.spec-icon i {
  width: 56px;
  height: 56px;
}

.spec-feature h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.33;
  color: #1d1d1f;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.spec-feature p {
  font-size: 1.0625rem;
  line-height: 1.47;
  color: #86868b;
  margin-bottom: 16px;
}

.spec-feature p:last-child {
  margin-bottom: 0;
}

/* Product Lineup Section - Apple Style */
.product-lineup {
  background: #f5f5f7;
  padding: 110px 0;
}

.product-lineup h3 {
  font-size: 2.875rem;
  margin-bottom: 80px;
  text-align: center;
  color: #1d1d1f;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #ffffff;
  padding: 48px 40px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation-fill-mode: forwards;
}

.product-card.fade-in {
  animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-card.featured {
  border: 2px solid #ff6b35;
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.25);
}

.product-card.featured:hover {
  box-shadow: 0 16px 50px rgba(255, 107, 53, 0.35);
}

.product-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b35;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.016em;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.product-icon {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon svg,
.product-icon i {
  width: 64px;
  height: 64px;
}

.product-card h4 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.33;
  color: #1d1d1f;
  margin-bottom: 8px;
  letter-spacing: -0.022em;
}

.product-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: #ff6b35;
  margin-bottom: 24px;
  letter-spacing: -0.016em;
}

.product-card p:not(.product-subtitle) {
  font-size: 1.0625rem;
  line-height: 1.47;
  color: #86868b;
  margin: 0;
}

/* Value Section - Carousel Style */
.value {
  background: #f5f5f7;
}

.value h3 {
  font-size: 2.875rem;
  margin-bottom: 80px;
  text-align: center;
  color: #1d1d1f;
}

.value-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

/* Carousel Controls Container */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

/* Carousel Navigation Buttons */
.carousel-nav {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  color: #1d1d1f;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Hide navigation buttons on small screens */
@media (max-width: 734px) {
  .carousel-nav {
    display: none;
  }

  .carousel-controls {
    justify-content: center;
  }
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-slide {
  min-width: 100%;
  background: #ffffff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  opacity: 0;
  transform: translateX(20px) translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation-fill-mode: forwards;
}

.value-slide.fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.value-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.value-content {
  display: flex;
  align-items: center;
  padding: 60px 50px;
  gap: 50px;
}

.value-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg,
.value-icon i {
  width: 80px;
  height: 80px;
}

.value-text {
  flex: 1;
}

.value-text h4 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1d1d1f;
  margin-bottom: 20px;
  letter-spacing: -0.024em;
}

.value-text p {
  font-size: 1.25rem;
  line-height: 1.4;
  color: #86868b;
  margin: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #d2d2d7;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dot:hover {
  background: #a1a1a6;
  transform: scale(1.1);
}

.dot.active {
  background: #ff6b35;
  transform: scale(1.2);
}

/* Mission Section - Basil Green */
.mission {
  background: #4a7c59;
  color: #ffffff;
  text-align: center;
  padding: 150px 0;
  position: relative;
  overflow: hidden;
}

.mission::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.mission .container {
  position: relative;
  z-index: 2;
}

.mission h3 {
  color: #ffffff;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 80px;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.4);
}

.mission-text {
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.35;
  color: #ffffff;
  margin: 0 auto 60px;
  max-width: 900px;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.mission-text strong {
  font-weight: 700;
  color: #ffffff;
}

.mission p {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.95;
  font-weight: 300;
  letter-spacing: -0.015em;
}

.quote {
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 300;
  color: #ffffff;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.4;
  letter-spacing: -0.02em;
  opacity: 0.9;
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.human-speech {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.9rem;
  color: #ffffff;
  opacity: 1;
  letter-spacing: -0.01em;
}

/* Contact Section */
.contact {
  background: #f5f5f7;
  text-align: center;
  padding: 120px 0;
}

.contact h3 {
  font-size: 2.875rem;
  margin-bottom: 40px;
  color: #1d1d1f;
}

.contact p {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 auto 25px;
  max-width: 600px;
  color: #1d1d1f;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ff6b35;
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 30px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.contact-button:hover {
  background: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4);
}

.contact-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

.contact-icon {
  flex-shrink: 0;
}

/* Footer */
footer {
  background-color: #f5f5f7;
  border-top: 1px solid #d2d2d7;
  padding: 50px 0;
  text-align: center;
}

footer p {
  font-size: 0.875rem;
  color: #86868b;
  margin: 0;
}

/* Special Elements */
.benchmark-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 500;
  padding: 12px 20px;
  background: #ff6b35;
  color: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.benchmark-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
  text-decoration: none;
  color: #ffffff;
}

/* Responsive Design - Apple Style */
@media (max-width: 1068px) {
  .container {
    padding: 0 22px;
  }

  .large-container {
    padding: 0 22px;
  }

  .spec-grid,
  .value-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 1068px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card {
    padding: 40px 30px;
  }
}

@media (max-width: 734px) {
  .container {
    padding: 0 16px;
  }

  .section-padding {
    padding: 80px 0;
  }

  .section-padding-large {
    padding: 100px 0;
  }

  header {
    padding: 60px 0 80px;
  }

  header h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  .hero {
    padding: 80px 0 100px;
  }

  .hero h2,
  .headline {
    font-size: 2.5rem;
  }

  .lead,
  .subheadline {
    font-size: 1.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }

  .mission-text {
    font-size: 1.5rem;
  }

  .about h3,
  .features h3,
  .specifications h3,
  .value h3,
  .mission h3,
  .contact h3 {
    font-size: 2rem;
  }

  .feature-block h4,
  .spec-feature h4 {
    font-size: 1.5rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .principle-card {
    padding: 24px 20px;
  }

  .applications-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
    height: auto;
  }

  .app-item.large,
  .app-item.medium,
  .app-item.small {
    grid-column: span 1;
    padding: 48px 24px;
    min-height: 180px;
  }

  /* Uniform font sizes for mobile - override individual desktop sizes */
  .app-item.tourism h5,
  .app-item.public-services h5,
  .app-item.healthcare h5,
  .app-item.creative h5,
  .app-item.education h5,
  .app-item.business h5 {
    font-size: 2rem !important;
  }

  .specs-showcase {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-card {
    padding: 40px 24px;
  }

  .value-content {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    gap: 30px;
  }

  .value-text h4 {
    font-size: 1.75rem;
  }

  section {
    padding: 80px 0;
  }

  .mission {
    padding: 100px 0;
  }

  .contact {
    padding: 80px 0;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus indicators for keyboard navigation */
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #ff6b35;
  outline-offset: 2px;
}

/* Keyframe Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered animation delays for cards */
.principle-card:nth-child(1).fade-in {
  animation-delay: 0.1s;
}
.principle-card:nth-child(2).fade-in {
  animation-delay: 0.2s;
}
.principle-card:nth-child(3).fade-in {
  animation-delay: 0.3s;
}
.principle-card:nth-child(4).fade-in {
  animation-delay: 0.4s;
}
.principle-card:nth-child(5).fade-in {
  animation-delay: 0.5s;
}
.principle-card:nth-child(6).fade-in {
  animation-delay: 0.6s;
}

.app-item:nth-child(1).fade-in {
  animation-delay: 0.1s;
}
.app-item:nth-child(2).fade-in {
  animation-delay: 0.2s;
}
.app-item:nth-child(3).fade-in {
  animation-delay: 0.3s;
}
.app-item:nth-child(4).fade-in {
  animation-delay: 0.4s;
}
.app-item:nth-child(5).fade-in {
  animation-delay: 0.5s;
}
.app-item:nth-child(6).fade-in {
  animation-delay: 0.6s;
}

.product-card:nth-child(1).fade-in {
  animation-delay: 0.1s;
}
.product-card:nth-child(2).fade-in {
  animation-delay: 0.2s;
}
.product-card:nth-child(3).fade-in {
  animation-delay: 0.3s;
}

.spec-feature:nth-child(1).fade-in {
  animation-delay: 0.1s;
}
.spec-feature:nth-child(2).fade-in {
  animation-delay: 0.2s;
}
.spec-feature:nth-child(3).fade-in {
  animation-delay: 0.3s;
}

/* MaiTALK Brand Styling - Make all instances italic */
h1:contains("MaiTALK"),
h2:contains("MaiTALK"),
h3:contains("MaiTALK"),
h4:contains("MaiTALK"),
.product-name,
.mission-text,
p {
  font-style: normal;
}

/* Target MaiTALK text specifically */
.product-name {
  font-style: italic;
}

/* Use JavaScript to italicize MaiTALK in content */

/* High contrast mode support */
@media (prefers-contrast: high) {
  body {
    background-color: #ffffff;
    color: #000000;
  }

  header,
  .hero,
  .mission {
    background-color: #000000;
    color: #ffffff;
  }

  section:nth-child(even) {
    background-color: #f0f0f0;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  strong {
    color: #000000;
  }

  .hero h2,
  .mission h3,
  .mission-text,
  header h1 {
    color: #ffffff;
  }

  a {
    color: #0000ee;
  }

  a:hover,
  a:focus {
    color: #0000cc;
  }
}
