:root {
  /* Product-Aligned Light Theme - High Contrast */
  --bg-core: #ffffff;
  --bg-surface: #f8f9fa;
  /* Light gray for cards */
  --bg-elevated: #e9ecef;

  --text-primary: #111827;
  /* Gray 900 - Sharp Black */
  --text-secondary: #4b5563;
  /* Gray 600 - Readable Gray */
  --text-tertiary: #9ca3af;

  /* Toraken Brand Colors */
  --accent-primary: #007aff;
  /* Blue */
  --accent-primary-dark: #0051d5;
  --accent-purple: #5856D6;
  /* Purple */
  --accent-purple-dark: #4b0082;
  /* Indigo from main theme */

  /* Gradients */
  --gradient-blue: linear-gradient(135deg, #007aff 0%, #0051d5 100%);
  --gradient-purple: linear-gradient(135deg, #5856D6 0%, #4b0082 100%);

  --accent-primary-light: #e0f2fe;
  /* Sky 100 - Light Backgrounds */
  --accent-glow: rgba(0, 122, 255, 0.15);

  --border-subtle: #e5e7eb;
  --border-highlight: #007aff;

  /* System Font Stack */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container-width: 1350px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 60px;
    /* Smaller nav on mobile */
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-core);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(88, 86, 214, 0.3), 0 2px 4px -1px rgba(88, 86, 214, 0.1);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(88, 86, 214, 0.4);
  filter: brightness(1.1);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  /* High opacity white */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  /* Ensure black text */
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  /* Vertical alignment */
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

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

/* Hero Section */
.hero-section {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  background: radial-gradient(50% 50% at 50% 50%, #ffffff 0%, #f0f9ff 100%);
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: var(--header-height);
    padding-bottom: 2rem;
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Image Right, Text Left as requested */
.hero-visual {
  order: 2;
  margin-top: 0;
  perspective: 1000px;
  position: relative;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.hero-content {
  order: 1;
  text-align: left;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 100%;
  /* Allow full width in column */
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  /* Align left */
  margin-bottom: 2rem;
}

.hero-image:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--bg-core);
  z-index: 1000;
  padding: 80px 1.5rem 2rem;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.show {
  right: 0;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav a:hover {
  color: var(--accent-primary);
}

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 1rem;
  }

  .hero-visual {
    order: 1;
    margin-top: 0;
  }

  .hero-content {
    order: 2;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

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

  .mobile-menu-overlay,
  .mobile-nav {
    display: block;
  }
}

.hero-image {
  width: 100%;
  height: auto;
  transform: rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: rotateX(0deg) scale(1.01);
}

.hero-trust {
  margin-top: 1rem;
}

.trust-text {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.trust-badges {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Mobile: horizontal scroll for trust badges */
@media (max-width: 768px) {
  .trust-badges {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    gap: 1rem;
    justify-content: flex-start;
  }

  .trust-badges::-webkit-scrollbar {
    display: none;
  }

  .trust-badge {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.badge-icon {
  font-size: 1rem;
}

/* Section Common */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.section-label {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* Problem Section */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Mobile: horizontal scroll carousel for stat-cards */
@media (max-width: 768px) {
  .problem-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    padding: 0 1rem 1rem;
    margin: 0 -1rem;
  }

  .problem-grid::-webkit-scrollbar {
    display: none;
  }

  .problem-grid .stat-card {
    scroll-snap-align: center;
    flex: 0 0 85%;
    min-width: 280px;
  }
}

.stat-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-primary-light);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.stat-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.stat-source {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 0.75rem;
  font-style: italic;
  font-weight: 500;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.pillar-card {
  background: #fff;
  padding: 3rem 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.pillar-card:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pillar-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pillar-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.pillar-list {
  text-align: left;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.pillar-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pillar-list li::before {
  content: '•';
  color: var(--accent-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

/* Pilot Section */
.pilot-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 2rem;
  background: #fff;
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
}

.pilot-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 3px;
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-phase {
  position: relative;
  z-index: 1;
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.phase-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pilot-cta-box {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  /* Light purple background */
  border: 1px solid var(--accent-purple);
  padding: 4rem;
  text-align: center;
  border-radius: 12px;
  margin-top: 4rem;
}

/* Tech Section */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.tech-features {
  display: grid;
  gap: 1.5rem;
}

.tech-item {
  display: flex;
  gap: 1.25rem;
}

/* Footer */
footer {
  background: #fff;
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Infographic Placeholder Style */
.infographic-zone {
  text-align: center;
  font-size: 0.9rem;
  margin-top: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {

  /* Typography */
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.75rem);
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .section-desc {
    font-size: 1rem;
  }

  /* Hero Actions */
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-height: 48px;
    /* Touch-friendly */
  }

  /* Layout Grids */
  .step-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .step-item::after {
    display: none;
  }

  /* Horizontal scroll carousel for pillar cards */
  .pillars-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    padding: 0 1rem 1rem;
    margin: 0 -1rem;
  }

  .pillars-grid::-webkit-scrollbar {
    display: none;
  }

  .pillar-card {
    scroll-snap-align: center;
    flex: 0 0 85%;
    min-width: 280px;
    padding: 1.5rem;
  }

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

  /* Timeline */
  .pilot-timeline {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }

  .pilot-timeline::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    height: auto;
    transform: translateX(-50%);
  }

  /* Tech Grid */
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Solution Diagram */
  .solution-diagram {
    padding: 1.5rem;
  }

  /* Section Spacing */
  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin: 0 auto 2rem;
  }

  /* Stat Cards */
  .stat-card {
    padding: 1.25rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 1.1rem;
  }

  /* Trust Badges - font size only, horizontal scroll defined earlier */
  .trust-badge {
    font-size: 0.8rem;
  }

  /* Hero Visual - mobile padding only */
  .hero-visual {
    padding: 0 0.5rem;
    margin-top: 0;
  }

  .hero-image {
    transform: none;
  }

  /* Container Padding */
  .container {
    padding: 0 1rem;
  }

  /* Pilot CTA Box */
  .pilot-cta-box {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }
}

/* --- New Agent Grid --- */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.agent-card {
  background: var(--bg-core);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-primary);
}

.agent-avatar img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  display: block;
}

.agent-content {
  flex: 1;
  text-align: left;
}

.agent-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.agent-scenario {
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-query {
  color: var(--text-secondary);
  font-style: italic;
}

.arrow {
  color: var(--accent-primary);
  font-weight: bold;
}

.ai-action {
  color: var(--text-primary);
  font-weight: 600;
}

.impact-badge {
  display: inline-block;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Enterprise Control Section --- */
.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.control-item {
  margin-bottom: 2.5rem;
}

.control-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Responsive - Agents & Controls */
@media (max-width: 768px) {

  /* Horizontal scroll carousel for agent cards */
  .agents-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1rem;
    padding: 0 1rem 1rem;
    margin: 0 -1rem;
  }

  .agents-grid::-webkit-scrollbar {
    display: none;
  }

  .agent-card {
    scroll-snap-align: center;
    flex: 0 0 80%;
    min-width: 280px;
    flex-direction: row;
    text-align: left;
    align-items: center;
    padding: 1rem;
  }

  .agent-avatar img {
    width: 80px;
    height: 80px;
  }

  .agent-content {
    text-align: left;
    flex: 1;
  }

  .agent-title {
    font-size: 1rem;
    text-align: left;
  }

  .agent-scenario {
    flex-direction: column;
    text-align: left;
    gap: 0.25rem;
    font-size: 0.85rem;
  }

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

  .control-item {
    margin-bottom: 1.5rem;
  }

  .control-item h3 {
    font-size: 1.1rem;
  }
}

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

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .pillar-title {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  nav {
    height: 60px;
  }

  .logo {
    font-size: 1.25rem;
  }
}