/* Base Styles */
* {
  box-sizing: border-box;
}

:root {
  --primary-orange: hsl(19, 57%, 47%);
  --primary-orange-light: hsl(19, 65%, 52%);
  --dark-blue: hsl(232, 24%, 24%);
  --light-blue: hsl(19, 40%, 95%);
  --background: hsl(0, 0%, 100%);
  --text-primary: hsl(232, 24%, 24%);
  --text-secondary: hsl(232, 15%, 50%);
  --border-color: hsl(19, 20%, 80%);
  --border-radius: 1rem;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
  --flowchart-node-bg: #000000;
  --flowchart-node-text: #ffffff;
  --flowchart-agent-bg: #ffffff;
  --flowchart-agent-text: #000000;
  --flowchart-line-color: #333333;
  --flowchart-dashed-line: #999999;
  --flowchart-hover-color: #3498db;
}

html {
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  background-image: radial-gradient(circle, hsla(19, 50%, 55%, 0.25) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.5rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: hsl(19, 60%, 50%);
  text-decoration: underline;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Language Toggle */
.language-toggle {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lang-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--light-blue);
  background: var(--light-blue);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.lang-trigger:hover,
.language-toggle.open .lang-trigger {
  border-color: var(--primary-orange);
  background: rgba(245, 120, 66, 0.08);
}

.lang-flag {
  font-size: 1.1rem;
  line-height: 1;
  pointer-events: none;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  background: #fff;
  border-radius: 0.625rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 200;
  min-width: 130px;
}

.language-toggle.open .lang-dropdown {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.15s ease;
  text-align: left;
}

.lang-option:hover {
  background: var(--light-blue);
}

.lang-option.active {
  color: var(--primary-orange);
  font-weight: 700;
}

.lang-option-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-option-label {
  white-space: nowrap;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}

.header .container {
  padding: 0;
}

.navbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.navbar .nav-links {
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
}

.logo-img {
  height: 1.5rem;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-primary);
}

.logo-text-container {
  display: flex;
  flex-direction: column;
}

.logo-subtext {
  font-size: 0.6rem;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: background-color 0.3s ease;
}

.nav-links a:hover {
  background-color: var(--light-blue);
  text-decoration: none;
}

/* Navigation Button */
.btn-nav {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: white !important;
}

.btn-nav:hover {
  background: linear-gradient(135deg, var(--primary-orange-light), var(--primary-orange));
  color: white !important;
}

/* Hero Section */
.hero {
  color: var(--text-primary);
  padding: 6rem 0 7rem;
  text-align: center;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

/* Noise texture overlay — two strengths */

.noise {
  position: relative;
}

.noise > .noise-layer {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Grain stacked on glow sections */
.carousel-section,
.showcase:nth-child(even),
.steps-section {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
}

/* .hero-dotted is now identical to .hero — no override needed */

/* Wave divider between sections */
.wave-divider {
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

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

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.85;
}

/* Hero Tagline Highlights */
.hero-tagline {
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--text-primary);
  opacity: 1;
}

.hero-tagline .highlight {
  color: var(--primary-orange);
  font-weight: 600;
}

.hero-tagline .highlight-strong {
  color: var(--primary-orange);
  font-weight: 700;
  position: relative;
}

.hero-tagline .highlight-strong::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
  border-radius: 2px;
  opacity: 0.6;
}

.hero-tagline .highlight-accent {
  display: inline-block;
  background: var(--dark-blue);
  color: white;
  padding: 0.3rem 0.85rem;
  border-radius: 0.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
  box-shadow: 0 3px 12px hsla(232, 24%, 24%, 0.35);
}

/* Button Styles */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  text-transform: none;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px hsla(19, 57%, 47%, 0.4);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px hsla(19, 57%, 47%, 0.5);
  text-decoration: none;
  color: white;
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px hsla(19, 57%, 47%, 0.4);
}

.btn-secondary {
  background: var(--light-blue);
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: hsl(19, 45%, 90%);
  color: var(--text-primary);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-orange);
  color: white;
  box-shadow: 0 4px 14px hsla(19, 57%, 47%, 0.4);
}

/* Section eyebrow label */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-orange);
  background: hsla(19, 57%, 47%, 0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 0.85rem;
  /* Reset heading defaults */
  line-height: 1.4;
}

/* When eyebrow is used as a <p> inside text-center, keep inline-block centered */
.text-center .section-eyebrow,
.section-eyebrow.text-center {
  display: block;
  text-align: center;
}

/* Card Styles */
.feature-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid transparent;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
    linear-gradient(135deg, hsla(19, 57%, 47%, 0.35) 0%, hsla(232, 24%, 24%, 0.12) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
}

.feature-card h3 {
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Feature Icon */
.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 14px hsla(19, 57%, 47%, 0.3);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

/* Features Section */
.features {
  padding: 5rem 0;
  margin-bottom: 0;
}

/* Features Grid - Three Column Layout */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Footer */
.footer {
  background-color: var(--background);
  color: var(--text-primary);
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 0;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary-orange);
  text-decoration: none;
}

.footer p {
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Pricing Section Styles */
.pricing-section {
  margin-bottom: 0;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--primary-orange);
  position: relative;
  transform: scale(1.05);
  background: white;
  z-index: 1;
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
  color: white;
  padding: 0.35rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Coming Soon Pricing Cards */
.pricing-card.coming-soon {
  position: relative;
  opacity: 0.7;
}

.pricing-card.coming-soon:hover {
  transform: none;
}

.coming-soon-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-secondary);
  color: white;
  padding: 0.35rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  z-index: 1;
}

.pricing-card.coming-soon .pricing-header h3,
.pricing-card.coming-soon .price {
  color: var(--text-secondary);
}

.pricing-card.coming-soon s {
  text-decoration: line-through;
  color: var(--text-secondary);
}

/* Disabled Button */
.btn-disabled {
  background: hsl(0, 0%, 75%);
  color: hsl(0, 0%, 95%);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-disabled:hover {
  transform: none;
  box-shadow: none;
  background: hsl(0, 0%, 75%);
  color: hsl(0, 0%, 95%);
}

.pricing-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
  margin-bottom: 0.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: 600;
}

.pricing-card .btn {
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

.pricing-card .btn-outline {
  padding: 0.875rem 1.75rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  z-index: 102;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.hamburger:focus {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links.active {
  display: flex;
}

/* About page — intro paragraph */
.about-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* About page — timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}

/* About page — founder quote box */
.quote-box {
  background-color: var(--light-blue);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
}

/* About page — author attribution */
.author-attribution {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* About page — European hosting benefit list */
.benefit-list {
  display: grid;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

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

/* Responsive Design — rules are consolidated at the end of the file
   so they correctly override all base styles above. */

/* Showcase Sections */
.showcase {
  padding: 5rem 0;
}

.showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.showcase-reverse .showcase-content {
  direction: rtl;
}

.showcase-reverse .showcase-content > * {
  direction: ltr;
}

.showcase-text h2 {
  margin-bottom: 1.5rem;
}

.showcase-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.showcase-image {
  position: relative;
}

.showcase-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
}

/* Carousel Section - Two Column Layout */
.carousel-section {
  padding: 5rem 0;
}

.carousel-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.carousel-text h2 {
  margin-bottom: 1rem;
}

.carousel-text > p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.carousel-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.carousel-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.carousel-feature:hover,
.carousel-feature.active {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--primary-orange);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.carousel-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.carousel-feature h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.carousel-feature p {
  font-size: 0.875rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.carousel-container {
  position: relative;
}

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

.carousel-track-container {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 3 / 4;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
}

/* ---- Mock UI Components ---- */
.mock-ui-frame {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  color: #1e2340;
}

.mock-ui-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.875rem;
  background: #f5f5f7;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.mock-ui-header-dots {
  display: flex;
  gap: 4px;
}

.mock-ui-header-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  display: block;
}

.mock-ui-header-dots span:first-child { background: #fc6058; }
.mock-ui-header-dots span:nth-child(2) { background: #fec02f; }
.mock-ui-header-dots span:last-child { background: #2aca3e; }

.mock-ui-title {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 auto;
}

.mock-ui-body {
  padding: 0.875rem;
  flex: 1;
  overflow: hidden;
}

.mock-ui-body-gap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-text {
  font-size: 11.5px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 0.75rem;
}

.mock-text-muted {
  color: #9ca3af;
  font-size: 11px;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.mock-highlight {
  background: #fff3cd;
  border-bottom: 2px solid #f59e0b;
  padding: 0 2px;
  border-radius: 2px;
  cursor: pointer;
}

/* Popover */
.mock-popover {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  padding: 0.75rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-popover-heading {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e2340;
  margin: 0 0 0.2rem;
}

.mock-popover-desc {
  font-size: 11px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.mock-popover-box {
  background: #f9fafb;
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.mock-popover-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mock-popover-sep {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.375rem;
}

.mock-label {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mock-val {
  font-size: 11.5px;
  color: #374151;
  margin: 0;
}

.mock-val-bold {
  font-weight: 700;
  color: #1e2340;
}

.mock-explanation {
  font-size: 10.5px;
  color: #9ca3af;
  font-style: italic;
  margin: 0;
}

.mock-btn-row {
  display: flex;
  gap: 0.375rem;
}

.mock-btn {
  flex: 1;
  padding: 0.35rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 11px;
  font-weight: 600;
  cursor: default;
  border: none;
  text-align: center;
}

.mock-btn-primary {
  background: var(--primary-orange);
  color: white;
}

.mock-btn-outline {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
}

/* Badges */
.mock-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  color: #374151;
  background: transparent;
  white-space: nowrap;
}

.mock-badge-orange {
  border-color: #f59e0b;
  color: #92400e;
  background: #fffbeb;
}

.mock-badge-red {
  border-color: #ef4444;
  color: #991b1b;
  background: #fef2f2;
}

/* History */
.mock-history-item {
  display: flex;
  gap: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.625rem;
  background: #ffffff;
  flex-shrink: 0;
}

.mock-history-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.mock-icon-applied {
  background: #dcfce7;
  color: #16a34a;
}

.mock-icon-dismissed {
  background: #f3f4f6;
  color: #6b7280;
}

.mock-history-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mock-history-badges {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.mock-timestamp {
  font-size: 10px;
  color: #9ca3af;
}

.mock-history-desc {
  font-size: 10.5px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Quality Metrics */
.mock-section-heading {
  font-size: 11px;
  font-weight: 700;
  color: #1e2340;
  margin: 0 0 0.4rem;
}

.mock-status-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  border-radius: 0.5rem;
  text-align: center;
  gap: 0.25rem;
}

.mock-status-warning {
  background: #fffbeb;
}

.mock-status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-status-icon-warning {
  background: #fef3c7;
  color: #d97706;
}

.mock-status-title {
  font-size: 12px;
  font-weight: 700;
}

.mock-status-title-warning {
  color: #92400e;
}

.mock-status-sub {
  font-size: 10.5px;
  color: #9ca3af;
}

.mock-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mock-breakdown-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mock-breakdown-label {
  font-size: 11px;
  width: 48px;
  flex-shrink: 0;
  font-weight: 500;
}

.mock-breakdown-label-red   { color: #dc2626; }
.mock-breakdown-label-orange { color: #d97706; }
.mock-breakdown-label-amber  { color: #b45309; }

.mock-bar-wrap {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.mock-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease;
}

.mock-bar-red    { background: #f87171; }
.mock-bar-orange { background: #fb923c; }
.mock-bar-amber  { background: #fbbf24; }

.mock-breakdown-count {
  font-size: 11px;
  font-weight: 700;
  width: 14px;
  text-align: right;
  flex-shrink: 0;
}

.mock-issue-types {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mock-issue-type-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-issue-type-name {
  font-size: 11px;
  color: #6b7280;
}

.mock-review-summary {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.625rem;
}

.mock-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mock-summary-row {
  display: flex;
  justify-content: space-between;
}

.mock-summary-label {
  font-size: 11px;
  color: #6b7280;
}

.mock-summary-val {
  font-size: 11px;
  font-weight: 700;
  color: #1e2340;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--background);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  z-index: 10;
  color: var(--text-primary);
}

.carousel-btn:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: -18px;
}

.carousel-btn-next {
  right: -18px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--primary-orange);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot:hover,
.carousel-dot.active {
  background: var(--primary-orange);
}

/* Flow Section (How It Works Page) */
.flow-section {
  padding: 5rem 0;
}

.flow-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.flow-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
}

.flow-description h2 {
  margin-bottom: 1.5rem;
}

.flow-description > p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

.flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px hsla(19, 57%, 47%, 0.3);
}

.step-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.alert-warning {
  background-color: hsl(19, 30%, 92%);
  color: var(--primary-orange);
}

.alert-info {
  background-color: var(--dark-blue);
  color: white;
}

/* Page Title (for pages without hero) */
.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

/* Page Header Section (How It Works) */
.page-header-section {
  padding: 4rem 0 3rem;
}

.page-header-section .page-title {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.5rem;
}

.page-subtitle {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* Workflow Overview Section */
.workflow-overview {
  padding: 3rem 0;
}

.workflow-image-container {
  max-width: 800px;
  margin: 0 auto;
}

.workflow-image-container img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-hover);
}

/* Steps Section */
.steps-section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.step-card {
  background: var(--background);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.step-card-number {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px hsla(19, 57%, 47%, 0.3);
}

.step-card-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.step-card-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Legal Content Section */
.legal-content {
  padding: 4rem 0;
}

.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

/* Organized Footer */
.footer-content {
  display: flex;
  justify-content: center;
  gap: 6rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-section {
  text-align: left;
}

.footer-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section .footer-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0;
}

.footer-section .footer-links li {
  list-style: none;
}

.footer-section .footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
}

/* Flowchart Styles */
.flowchart-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  overflow: hidden;
}

.flowchart-svg {
  width: 100%;
  height: auto;
  max-height: 500px;
  display: block;
  margin: 0 auto;
  background-color: transparent;
  transition: var(--transition);
}

.flowchart-loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
}

/* Enable transforms and shadows for SVG elements */
.flowchart-svg {
  overflow: visible;
}

.flowchart-node-bg, .flowchart-agent-bg {
  transition: all 0.2s ease;
  transform-origin: center;
}

.flowchart-connection, .flowchart-agent-connection {
  transition: stroke 0.2s ease;
}

.flowchart-node-shadow, .flowchart-agent-shadow {
  transition: all 0.2s ease;
}

/* Ensure proper z-ordering - connections behind nodes */
.flowchart-connection, .flowchart-agent-connection {
  z-index: 1;
}

.node, .agent-node {
  z-index: 2;
}

/* Remove bouncy animations - use smooth transitions instead */
.node:hover .flowchart-node-bg {
  transform: translateY(-2px);
}

.node:hover .flowchart-node-shadow {
  opacity: 0.8;
}

.agent-node:hover .flowchart-agent-bg {
  transform: translateY(-1px);
}

.agent-node:hover .flowchart-agent-shadow {
  opacity: 0.6;
}

/* Feedback loop animation */
.flowchart-feedback-loop {
  animation: dashFlow 1.5s linear infinite;
}

@keyframes dashFlow {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Iterative label styling */
.iterative-label text {
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE DESIGN
   All media queries are consolidated here, after all base
   styles, so overrides correctly take precedence in the cascade.
   ============================================================ */

@media (max-width: 1200px) {
  .flowchart-svg {
    max-height: 350px;
  }
}

@media (max-width: 1024px) {
  .flowchart-svg {
    max-height: 320px;
  }

  .flowchart-svg text {
    font-size: 13px !important;
  }
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: scale(1);
  }

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

  .carousel-container {
    order: -1;
  }

  .carousel {
    max-width: 320px;
  }

  .carousel-btn-prev {
    left: 15px;
  }

  .carousel-btn-next {
    right: 15px;
  }
}

@media (max-width: 768px) {
  /* Header & Nav */
  .header {
    position: relative;
  }

  .navbar {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    padding: 13px 10px 13px;
    box-sizing: border-box;
  }

  .language-toggle {
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 1rem;
  }

  /* Typography */
  h2 {
    margin-bottom: 1.5rem;
  }

  /* Hero */
  .hero {
    padding: 1.5rem 0;
  }

  .hero p {
    font-size: 0.95rem;
  }

  /* Features */
  .features {
    padding: 2.5rem 0;
  }

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

  .feature-card {
    padding: 1.25rem;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
  }

  .feature-icon svg {
    width: 20px;
    height: 20px;
  }

  .feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .feature-card p {
    font-size: 0.875rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  /* Showcase */
  .showcase {
    padding: 2rem 0;
  }

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

  .showcase-reverse .showcase-content {
    direction: ltr;
  }

  .showcase-image {
    order: -1;
  }

  /* Show simplified image on mobile */
  .showcase-reverse .showcase-image {
    display: block;
    margin-top: 1rem;
  }

  .showcase-reverse .showcase-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
  }

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

  .showcase-text p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
  }

  /* Carousel */
  .carousel-section {
    padding: 2rem 0;
  }

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

  .carousel-text h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .carousel-text > p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .carousel-feature {
    padding: 1.25rem;
  }

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

  .carousel-feature h4 {
    font-size: 0.875rem;
  }

  .carousel-feature p {
    font-size: 0.75rem;
  }

  /* Flow section */
  .flow-section {
    padding: 2rem 0;
  }

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

  .flow-image {
    order: -1;
  }

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

  .flow-description > p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .flow-steps {
    gap: 1rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.875rem;
  }

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

  .step-content p {
    font-size: 0.8rem;
  }

  /* Steps section */
  .steps-section {
    padding: 2rem 0;
  }

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

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .step-card {
    padding: 1rem;
    gap: 0.75rem;
  }

  .step-card-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1rem;
  }

  .step-card-content h3 {
    font-size: 0.95rem;
    margin-bottom: 0.375rem;
  }

  .step-card-content p {
    font-size: 0.8rem;
  }

  /* How it works page */
  .page-header-section {
    padding: 1.5rem 0 1rem;
  }

  .page-title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
  }

  .page-subtitle {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .workflow-overview {
    padding: 1.5rem 0;
  }

  /* Hide the flowchart SVG on mobile — step cards convey the same info */
  .flowchart-container {
    display: none;
  }

  /* Pricing */
  .pricing-card.featured {
    transform: scale(1);
  }

  /* CTA */
  .cta-section {
    padding: 2rem 0;
  }

  .cta-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .cta-section p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  /* Legal */
  .legal-content {
    padding: 2rem 0;
  }

  .legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.15rem;
  }

  .legal-section p {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  /* About page */
  .about-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .timeline {
    padding-left: 2rem;
    margin-bottom: 2rem;
  }

  .quote-box {
    padding: 1.25rem;
    margin-top: 1.5rem;
  }

  .benefit-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 0;
    margin-top: 1.5rem;
  }

  .footer-content {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-section h4 {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .footer-section .footer-links {
    gap: 0.375rem;
  }

  .footer-section .footer-links a {
    font-size: 0.8rem;
  }

  .footer-bottom p {
    font-size: 0.75rem;
  }

  /* Flowchart sizing (kept for tablet range) */
  .flowchart-svg {
    max-height: 300px;
  }

  .flowchart-svg text {
    font-size: 12px !important;
  }
}

@media (max-width: 640px) {
  .pricing-card.featured {
    order: -1;
  }

  .carousel {
    max-width: 280px;
  }

  .carousel-feature {
    padding: 0.75rem;
  }

  .carousel-feature h4 {
    font-size: 0.95rem;
  }

  .carousel-feature p {
    font-size: 0.8rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section .footer-links {
    align-items: center;
  }
}

@media (max-width: 480px) {
  .flowchart-svg {
    max-height: 280px;
  }

  .flowchart-svg text {
    font-size: 11px !important;
  }
}
