/* ==========================================================================
   SAKAS Preview Landing Page — Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-bg: #0a0a0b;
  --color-surface: #121214;
  --color-border: #1f1f23;
  --color-border-subtle: #18181b;
  --color-text-primary: #fafafa;
  --color-text-secondary: #a1a1aa;
  --color-text-muted: #71717a;
  --color-accent: #e4e4e7;
  --color-focus: #3b82f6;
  
  /* Red accent - dark, rich red */
  --color-red: #9b1c1c;
  --color-red-light: #c53030;
  --color-red-dark: #742a2a;
  --color-red-glow: rgba(155, 28, 28, 0.4);

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --max-width: 720px;
  --max-width-wide: min(94vw, 1600px);
  --text-measure: 65ch;
  --header-height: 80px;
  --radius: 8px;
  --radius-lg: 12px;
  --side-padding: clamp(1.5rem, 4vw, 4rem);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-system);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Focus States (Accessibility)
   -------------------------------------------------------------------------- */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

p {
  color: var(--color-text-secondary);
}

/* Glossy/Metallic red highlight for keywords */
.highlight {
  color: transparent;
  background: linear-gradient(
    135deg,
    var(--color-red-light) 0%,
    #e05252 25%,
    var(--color-red-light) 50%,
    var(--color-red) 75%,
    var(--color-red-light) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: metallic-shimmer 8s ease-in-out infinite;
}

@keyframes metallic-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Subtle glow variant */
.highlight-glow {
  color: var(--color-red-light);
  text-shadow: 0 0 20px var(--color-red-glow), 0 0 40px rgba(155, 28, 28, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .highlight {
    animation: none;
    background-position: 0% 50%;
  }
}

/* --------------------------------------------------------------------------
   Layout Container
   -------------------------------------------------------------------------- */
.nav-container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

main {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Text measure utility - constrains line length for readability */
.measure {
  max-width: var(--text-measure);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.logo:hover {
  opacity: 0.8;
}

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

.nav-badge {
  position: absolute;
  right: var(--space-md);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-red-light);
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--color-red-dark);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(155, 28, 28, 0.15) 0%, rgba(116, 42, 42, 0.1) 100%);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl) var(--side-padding);
  width: 100%;
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
  background: linear-gradient(
    180deg,
    var(--color-bg) 0%,
    #0d0d10 20%,
    #10101a 50%,
    #0d0d10 80%,
    var(--color-bg) 100%
  );
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(155, 28, 28, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(100, 100, 150, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 70%, rgba(100, 100, 150, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.hero-content.is-scrolling {
  opacity: var(--scroll-opacity, 1);
  transform: translateY(var(--scroll-translate, 0));
}

.hero h1 {
  margin-bottom: var(--space-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.subheadline {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--color-text-secondary);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-red-light), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
  width: 100%;
  max-width: var(--max-width-wide);
  margin-left: auto;
  margin-right: auto;
  border-bottom: 1px solid var(--color-border-subtle);
}

.section:last-of-type {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Problem Section
   -------------------------------------------------------------------------- */
.section--problem {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-headline {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  text-transform: none;
  max-width: var(--text-measure);
}

.section-intro {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: var(--text-measure);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

/* Pain Points Grid */
.pain-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (min-width: 1100px) {
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.pain-card {
  position: relative;
  display: flex;
  min-height: 140px;
}

.pain-card-trigger {
  width: 100%;
  min-height: 100%;
  padding: var(--space-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  text-align: left;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: 
    border-color 0.3s ease-out,
    box-shadow 0.3s ease-out,
    background-color 0.3s ease-out;
}

.pain-card-trigger:hover,
.pain-card-trigger:focus-visible,
.pain-card-trigger[aria-expanded="true"] {
  z-index: 10;
}

.pain-card-trigger:hover {
  border-color: #2a2a2f;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.pain-card-trigger:focus-visible {
  border-color: var(--color-focus);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  outline: none;
}

.pain-icon {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  flex-shrink: 0;
  margin-top: 0.125rem;
  transition: color 0.3s ease;
}

.pain-content {
  flex: 1;
  min-width: 0;
}

.pain-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 0.375rem;
}

.pain-summary {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.pain-detail {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: 
    max-height 0.35s ease-out,
    opacity 0.3s ease-out,
    margin-top 0.35s ease-out;
}

.pain-expand-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  position: relative;
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.3s ease-out;
}

.pain-expand-icon::before,
.pain-expand-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-text-muted);
  transition: transform 0.3s ease-out;
}

.pain-expand-icon::before {
  width: 10px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.pain-expand-icon::after {
  width: 1px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Expanded state - Desktop hover */
@media (hover: hover) and (pointer: fine) {
  .pain-card-trigger:hover .pain-icon,
  .pain-card-trigger:focus-visible .pain-icon {
    color: var(--color-red-light);
  }
  
  .pain-card-trigger:hover .pain-detail,
  .pain-card-trigger:focus-visible .pain-detail {
    max-height: 80px;
    opacity: 1;
    margin-top: 0.625rem;
  }
  
  .pain-card-trigger:hover .pain-expand-icon,
  .pain-card-trigger:focus-visible .pain-expand-icon {
    opacity: 0.7;
  }
  
  .pain-card-trigger:hover .pain-expand-icon::after,
  .pain-card-trigger:focus-visible .pain-expand-icon::after {
    transform: translate(-50%, -50%) scaleY(0);
  }
}

/* Expanded state - Toggle (mobile/touch + keyboard) */
.pain-card-trigger[aria-expanded="true"] .pain-icon {
  color: var(--color-red-light);
}

.pain-card-trigger[aria-expanded="true"] .pain-detail {
  max-height: 80px;
  opacity: 1;
  margin-top: 0.625rem;
}

.pain-card-trigger[aria-expanded="true"] .pain-expand-icon {
  opacity: 0.7;
}

.pain-card-trigger[aria-expanded="true"] .pain-expand-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

/* --------------------------------------------------------------------------
   Impact Section (The Result)
   -------------------------------------------------------------------------- */
.section--impact {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  border-bottom: none;
  position: relative;
}

.section--impact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--color-red), var(--color-red-dark), transparent);
}

.impact-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.section--impact h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.impact-statement {
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.5;
  color: var(--color-text-primary);
  max-width: var(--text-measure);
}

/* Visually hidden but accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .section--impact {
    min-height: 40vh;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
  
  .section--impact::before {
    height: 48px;
  }
}

/* --------------------------------------------------------------------------
   Shift Section (Comparison)
   -------------------------------------------------------------------------- */
.section--shift {
  padding-top: calc(var(--space-2xl) * 1.5);
  padding-bottom: var(--space-2xl);
  margin-top: var(--space-xl);
  position: relative;
}

.section--shift::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(400px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red), var(--color-red-dark), transparent);
}

.comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .comparison {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

.comparison-column {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.comparison-column--before {
  background-color: transparent;
  border-color: var(--color-border-subtle);
}

.comparison-column--after {
  background: linear-gradient(135deg, rgba(155, 28, 28, 0.08) 0%, var(--color-surface) 100%);
  border-color: var(--color-red-dark);
  box-shadow: 0 0 40px rgba(155, 28, 28, 0.1);
}

/* Hover states for comparison */
.comparison-column--before:hover {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: var(--color-border);
  transform: scale(1.02);
}

.comparison-column--before:hover .comparison-list li {
  color: var(--color-text-primary);
}

.comparison-column--before:hover .comparison-list li::before {
  background-color: var(--color-text-muted);
  width: 8px;
}

.comparison-column--after:hover {
  background: linear-gradient(135deg, rgba(155, 28, 28, 0.15) 0%, var(--color-surface) 100%);
  border-color: var(--color-red-light);
  box-shadow: 0 0 60px rgba(155, 28, 28, 0.2);
  transform: scale(1.02);
}

.comparison-column--after:hover .comparison-heading {
  color: #e05252;
}

.comparison-column--after:hover .comparison-list li::before {
  background-color: var(--color-red-light);
  width: 8px;
}

/* Dim the other column on hover */
.comparison:has(.comparison-column--before:hover) .comparison-column--after {
  opacity: 0.5;
}

.comparison:has(.comparison-column--after:hover) .comparison-column--before {
  opacity: 0.5;
}

.comparison-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  text-transform: none;
}

.comparison-column--after .comparison-heading {
  color: var(--color-red-light);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.comparison-list li {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  padding-left: var(--space-md);
  position: relative;
}

.comparison-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 1px;
  background-color: var(--color-border);
}

.comparison-column--after .comparison-list li {
  color: var(--color-text-primary);
}

.comparison-column--after .comparison-list li::before {
  background-color: var(--color-text-muted);
}

.section-closing {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-style: italic;
  max-width: var(--text-measure);
}

/* --------------------------------------------------------------------------
   SakasOS Reveal Section
   -------------------------------------------------------------------------- */
.section--reveal {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--color-bg) 0%,
    #0d0d10 20%,
    #10101a 50%,
    #0d0d10 80%,
    var(--color-bg) 100%
  );
}

.reveal-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(155, 28, 28, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(100, 100, 150, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 70%, rgba(100, 100, 150, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.reveal-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.reveal-intro {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Frosted glass headline */
.frosted-glass {
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: transparent;
  background: linear-gradient(
    120deg,
    #ffffff 0%,
    #e8e8ec 15%,
    #ffffff 25%,
    #d4d4dc 40%,
    #ffffff 55%,
    #e8e8ec 70%,
    #ffffff 85%,
    #d4d4dc 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 
    0 0 30px rgba(255, 255, 255, 0.08),
    0 0 60px rgba(255, 255, 255, 0.04);
  animation: frosted-shimmer 10s linear infinite;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Frosted glass pseudo-element overlay for depth */
.frosted-glass::before {
  content: 'Sakas OS';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 20%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.9) 45%,
    #ffffff 50%,
    rgba(255, 255, 255, 0.9) 55%,
    rgba(255, 255, 255, 0.3) 70%,
    transparent 80%,
    transparent 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: glass-shine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes frosted-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glass-shine {
  0% { background-position: 100% 50%; }
  100% { background-position: -50% 50%; }
}

.reveal-tagline {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  max-width: 500px;
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   What is Sakas OS Section
   -------------------------------------------------------------------------- */
.section--what-is {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  background-color: var(--color-bg);
  text-align: center;
}

.section--what-is .section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.what-is-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  max-width: var(--text-measure);
  margin-left: auto;
  margin-right: auto;
}

.what-is-intro {
  max-width: var(--text-measure);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border-subtle);
}

.what-is-intro p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.what-is-explanation {
  max-width: var(--text-measure);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
}

.what-is-explanation p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.what-is-explanation p:last-child {
  margin-bottom: 0;
}

.element-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 640px;
  text-align: left;
  flex: 1;
}

/* Element wrapper with connection lines */
.element-wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-lg);
  max-width: 780px;
  margin: 0 auto;
}

.connection-line {
  position: relative;
  width: 24px;
  flex-shrink: 0;
}

.connection-track {
  position: absolute;
  top: 70px;
  bottom: 70px;
  left: 50%;
  width: 2px;
  background-color: var(--color-red-dark);
  transform: translateX(-50%);
}

.connection-dot {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: var(--color-red-light);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--color-red-glow), 0 0 4px var(--color-red-light);
}

/* Static dot positions aligned with card centers */
.connection-dot--1 {
  top: 70px;
  animation: pulse-dot 2s ease-in-out infinite;
}

.connection-dot--2 {
  top: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-dot 2s ease-in-out infinite 0.3s;
}

.connection-dot--3 {
  bottom: 70px;
  animation: pulse-dot 2s ease-in-out infinite 0.6s;
}

/* Animated traveling dots */
.connection-line::before,
.connection-line::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--color-red-light), 0 0 20px var(--color-red-glow);
  opacity: 0.9;
}

.connection-line--left::before {
  animation: travel-down 3s ease-in-out infinite;
}

.connection-line--left::after {
  animation: travel-up 3s ease-in-out infinite 1.5s;
}

.connection-line--right::before {
  animation: travel-up 3s ease-in-out infinite;
}

.connection-line--right::after {
  animation: travel-down 3s ease-in-out infinite 1.5s;
}

@keyframes travel-down {
  0% {
    top: 60px;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  40% {
    top: 50%;
    opacity: 1;
  }
  60% {
    top: 50%;
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 60px);
    opacity: 0;
  }
}

@keyframes travel-up {
  0% {
    top: calc(100% - 60px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  40% {
    top: 50%;
    opacity: 1;
  }
  60% {
    top: 50%;
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 60px;
    opacity: 0;
  }
}

@keyframes pulse-dot {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 12px var(--color-red-glow), 0 0 4px var(--color-red-light);
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 20px var(--color-red-glow), 0 0 8px var(--color-red-light);
  }
}

.connection-dot--2 {
  animation: pulse-dot-center 2s ease-in-out infinite 0.3s;
}

@keyframes pulse-dot-center {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 12px var(--color-red-glow), 0 0 4px var(--color-red-light);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 20px var(--color-red-glow), 0 0 8px var(--color-red-light);
  }
}

@media (prefers-reduced-motion: reduce) {
  .connection-dot,
  .connection-line::before,
  .connection-line::after {
    animation: none;
  }
}

@media (max-width: 767px) {
  .element-wrapper {
    gap: var(--space-sm);
  }
  
  .connection-line {
    width: 16px;
  }
  
  .connection-dot {
    width: 8px;
    height: 8px;
  }
  
  .connection-line::before,
  .connection-line::after {
    width: 6px;
    height: 6px;
  }
}

/* --------------------------------------------------------------------------
   Why Sakas OS Section
   -------------------------------------------------------------------------- */
.section--why {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  background-color: var(--color-bg);
}

.section--why .section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-red-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.feature-card:hover .feature-title {
  color: var(--color-red-light);
}

.feature-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Get Started Section */
.section--get-started {
  position: relative;
  text-align: center;
  padding-block: var(--space-2xl);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--color-bg) 0%,
    #0d0d10 20%,
    #10101a 50%,
    #0d0d10 80%,
    var(--color-bg) 100%
  );
}

.get-started-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(155, 28, 28, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 30%, rgba(100, 100, 150, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 70%, rgba(100, 100, 150, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.get-started-headline {
  position: relative;
  z-index: 1;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 50ch;
  margin: 0 auto var(--space-lg);
  color: var(--color-text-primary);
}

.get-started-highlight {
  background: linear-gradient(
    90deg,
    var(--color-red-light) 0%,
    #e88a8a 25%,
    #f5c4c4 50%,
    #e88a8a 75%,
    var(--color-red-light) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallic-shimmer 6s ease-in-out infinite;
}

@keyframes metallic-shimmer {
  0%, 100% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
}

.get-started-subheadline {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.cta-button {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%);
  color: white;
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(220, 38, 38, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(220, 38, 38, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button:active {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.element-block {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s ease;
  min-height: 140px;
  align-items: flex-start;
}

.element-block:hover {
  border-color: var(--color-red-dark);
}

.element-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-red-light);
  background-color: rgba(155, 28, 28, 0.1);
  border-radius: 50%;
}

.element-content {
  flex: 1;
}

.element-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.element-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

/* Elements and Flow Layout */
.elements-and-flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .elements-and-flow {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-2xl);
  }
  
  .elements-and-flow .element-stack {
    flex: 1;
    max-width: 500px;
  }
  
  .elements-and-flow .orchestration-flow {
    flex: 1;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    border-left: 1px solid var(--color-border-subtle);
    padding-left: var(--space-xl);
  }
}

/* Orchestration Flow Animation */
.orchestration-flow {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-subtle);
}

.flow-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: var(--space-md) 0;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.flow-node-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.flow-node--start .flow-node-icon {
  background-color: var(--color-bg);
  border-color: var(--color-text-muted);
  color: var(--color-text-muted);
}

.flow-node--people .flow-node-icon,
.flow-node--ai .flow-node-icon,
.flow-node--systems .flow-node-icon {
  color: var(--color-red-light);
  border-color: var(--color-red-dark);
  background-color: rgba(155, 28, 28, 0.15);
}

.flow-node--end .flow-node-icon {
  color: var(--color-text-primary);
  border-color: var(--color-text-primary);
  background-color: var(--color-surface);
}

.flow-node-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  font-weight: 500;
}

.flow-node--start .flow-node-label,
.flow-node--end .flow-node-label {
  color: var(--color-text-muted);
}

.flow-connector {
  position: relative;
  width: 44px;
  height: 32px;
  flex-shrink: 0;
}

.flow-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--color-border);
  transform: translateX(-50%);
}

.flow-pulse {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: var(--color-red-light);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--color-red-glow), 0 0 4px var(--color-red-light);
  animation: flow-cascade 4s ease-out infinite;
}

.flow-pulse--delayed-1 {
  animation-delay: 0.8s;
}

.flow-pulse--delayed-2 {
  animation-delay: 1.6s;
}

.flow-pulse--delayed-3 {
  animation-delay: 2.4s;
}

@keyframes flow-cascade {
  0% {
    top: -4px;
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }
  5% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  95% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  100% {
    top: calc(100% - 6px);
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-pulse {
    animation: none;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
  }
}

@media (max-width: 640px) {
  .flow-node-icon {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
  
  .flow-connector {
    width: 36px;
    height: 24px;
  }
  
  .flow-node-label {
    font-size: 0.75rem;
  }
}

.concept-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.concept-block {
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-surface);
  border-left: 2px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.concept-block:hover {
  border-left-color: var(--color-red-dark);
}

.concept-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}

.concept-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.what-is-anchor {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-style: italic;
  max-width: var(--text-measure);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-subtle);
}

@media (prefers-reduced-motion: reduce) {
  .frosted-glass {
    animation: none;
    background-position: 50% 50%;
  }
  
  .frosted-glass::before {
    animation: none;
  }
}

@media (max-width: 767px) {
  .section--reveal {
    min-height: 80vh;
  }
  
  .reveal-tagline {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 767px) {
  .comparison-column {
    padding: var(--space-md);
  }
  
  .comparison-list li {
    font-size: 0.875rem;
  }
}

@media (max-width: 767px) {
  .section-headline {
    font-size: 1.375rem;
  }
  
  .pain-expand-icon {
    opacity: 0.6;
  }
}

/* Touch devices - show expand icon more prominently */
@media (hover: none) {
  .pain-expand-icon {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pain-card-trigger {
    transition: border-color 0.15s ease-out;
  }
  
  .pain-card-trigger:hover,
  .pain-card-trigger:focus-visible {
    box-shadow: none;
  }
  
  .pain-detail {
    transition: none;
  }
  
  .pain-expand-icon,
  .pain-expand-icon::before,
  .pain-expand-icon::after {
    transition: none;
  }
}
    border-color: #2a2a2f;
  }
}

/* --------------------------------------------------------------------------
   Card List
   -------------------------------------------------------------------------- */
.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.card {
  padding: var(--space-md);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.card p {
  font-size: 0.9375rem;
  line-height: 1.55;
}

.card--muted {
  background-color: transparent;
  border-color: var(--color-border-subtle);
}

.card--muted p {
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */
.prose {
  max-width: 560px;
}

.prose p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.prose p + p {
  margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .hero-content {
    transition: none;
  }
  
  .hero-content.is-scrolling {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .scroll-indicator-line {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.section--contact {
  text-align: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.contact-content p {
  color: var(--color-text-secondary);
  margin: 0;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-red-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-email:hover {
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--color-border-subtle);
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Responsive — Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .subheadline {
    font-size: 1.0625rem;
  }

  .card {
    padding: var(--space-sm) var(--space-md);
  }
  
  .scroll-indicator {
    bottom: var(--space-md);
  }
}
