/* Import Premium Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;700;800;900&family=Geist+Mono:wght@300;400;500&display=swap');

/* Define Design Tokens */
:root {
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', monospace;

  /* Layout Spacing */
  --space-unit: 1rem;
  --space-xs: calc(var(--space-unit) * 0.5);
  --space-sm: calc(var(--space-unit) * 0.75);
  --space-md: calc(var(--space-unit) * 1.5);
  --space-lg: calc(var(--space-unit) * 3);
  --space-xl: calc(var(--space-unit) * 5);
  --space-xxl: calc(var(--space-unit) * 8);

  --max-width: 1280px;
  --transition-smooth: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-fast: all 0.15s ease-out;

  /* Theme: Light (Default) */
  --bg-color: #ffffff;
  --bg-offset: #faf9f6;
  --bg-card: #fdfdfd;
  --text-color: #121212;
  --text-muted: #666663;
  --border-color: #e5e5e0;
  --border-color-dark: #b8b8b3;
  --accent-color: #556b2f; /* Muted Sage / Olive */
  --accent-light: #f2f4ec;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.06);
  --selection-bg: #e8eae2;
}

html[data-theme="dark"] {
  --bg-color: #0a0a0a;
  --bg-offset: #181818;
  --bg-card: #151515;
  --text-color: #f3f3f3;
  --text-muted: #a0a0a0;
  --border-color: #2a2a2a;
  --border-color-dark: #484848;
  --accent-color: #8fa870;
  --accent-light: #1c2415;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --selection-bg: #2d3624;
}

html[data-theme="dark"] .ambient-glow { opacity: 0.12; }
html[data-theme="dark"] .glow-3 { opacity: 0.06; }

/* Reset & Base Styles */
*, *::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-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::selection {
  background-color: var(--selection-bg);
  color: var(--text-color);
}

/* Typography & Links */
h1, h2, h3, h4, .about-quote {
  font-family: var(--font-serif);
  font-weight: 600; /* Increased weight for premium Cormorant Garamond font */
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: color 0.4s ease, opacity 0.4s ease;
  cursor: default;
}


p {
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-muted);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.mono-tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-color);
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-tagline {
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tagline::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--accent-color);
  flex-shrink: 0;
}

.mono-tag.no-line {
  display: inline-block;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-md);
  max-width: 800px;
}

.section-desc {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 650px;
  margin-bottom: var(--space-lg);
}

/* Lead paragraph — larger, full color, for opening statements */
.lead-text {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-color);
  line-height: 1.7;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(var(--bg-color), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* Ambient decorative background glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.glow-1 {
  top: 5%;
  left: 10%;
  width: 420px;
  height: 420px;
  background-color: var(--accent-color);
}

.glow-2 {
  top: 35%;
  right: 5%;
  width: 500px;
  height: 500px;
  background-color: var(--border-color-dark);
}

.glow-3 {
  top: 70%;
  left: 30%;
  width: 350px;
  height: 350px;
  background-color: var(--accent-color);
  opacity: 0.1;
}


/* Premium 3D Monogram Logo Box */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  perspective: 1000px;
}

.logo-3d-wrapper {
  width: 38px;
  height: 38px;
  perspective: 800px;
}

.logo-3d-box {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-25deg) rotateY(-25deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo:hover .logo-3d-box {
  transform: rotateX(155deg) rotateY(155deg);
}

.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  border: 3px solid var(--text-color); /* Thicker premium border */
  line-height: 32px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 900; /* Extra bold letter M */
  font-size: 1.2rem;
  color: var(--text-color);
}

/* Position faces of the cube monogram */
.face-front  { transform: rotateY(  0deg) translateZ(19px); }
.face-back   { transform: rotateY(180deg) translateZ(19px); background: var(--bg-offset); }
.face-left   { transform: rotateY(-90deg) translateZ(19px); }
.face-right  { transform: rotateY( 90deg) translateZ(19px); }
.face-top    { transform: rotateX( 90deg) translateZ(19px); background: var(--accent-color); color: var(--bg-color); border-color: var(--accent-color); }
.face-bottom { transform: rotateX(-90deg) translateZ(19px); }

.logo-text {
  font-family: var(--font-sans);
  font-weight: 900; /* Native Black weight */
  font-size: 1.8rem; /* Larger and bolder */
  letter-spacing: 0.15em;
  color: var(--text-color);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.nav-menu a:hover {
  color: var(--text-color);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language Toggle Button */
.lang-switcher {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2px;
  background-color: var(--bg-offset);
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 18px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.lang-btn.active {
  background-color: var(--bg-color);
  color: var(--text-color);
  box-shadow: var(--shadow-subtle);
  font-weight: 500;
}

/* Premium Theme Switcher */
.theme-toggle {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--text-color);
}

.theme-toggle-label {
  opacity: 0.4;
  transition: opacity 0.3s ease, font-weight 0.3s ease;
}

.theme-toggle-label.active {
  opacity: 1;
  color: var(--text-color);
  font-weight: 500;
}

.theme-toggle-divider {
  opacity: 0.3;
}

/* Button & CTA styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--text-color);
  color: var(--bg-color);
  border: 1px solid var(--text-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-offset);
  border-color: var(--text-color);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border-color-dark);
}

.btn-link:hover {
  border-color: var(--text-color);
  color: var(--accent-color);
}

/* Sections Global */
section {
  padding: var(--space-xxl) 0;
  border-bottom: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--space-xxl) + 50px);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

/* Display Headline — MODUS.DESIGN */
.hero-display {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(3.5rem, 11vw, 10rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  text-align: center;
}


.display-modus,
.display-design {
  color: var(--text-color);
  display: inline;
  position: relative;
}

/* Proximity Scale Letters */
.scale-letter {
  display: inline-block;
  will-change: transform;
  transform-origin: center bottom;
}


.display-dot {
  color: var(--accent-color);
  display: inline;
}

.hero-slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

/* Stats Bar */
.stats-bar {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-md) 0;
  background-color: var(--bg-offset);
}

.stats-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px var(--space-lg);
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-color);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  line-height: 1.3;
  max-width: 80px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin: 0 auto var(--space-lg) auto;
  max-width: 560px;
  text-align: center !important;
  display: block;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

/* Styled Premium Web Mockup Component */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
}

.browser-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 4/3;
  width: 100%;
}

.browser-header {
  height: 38px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-offset);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  position: relative;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color-dark);
}

.browser-url-bar {
  flex: 1;
  max-width: 250px;
  margin: 0 auto;
  height: 22px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.browser-content {
  flex: 1;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-color);
  position: relative;
}

/* Stilizierte Renderings der Templates */
.preview-grid-mockup {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-xs);
  height: 100%;
}

.mockup-item {
  background: var(--bg-offset);
  border: 1px solid var(--border-color);
  border-radius: 3px;
}

.mockup-header {
  grid-column: 1 / 13;
  height: 20px;
}

.mockup-sidebar {
  grid-column: 1 / 4;
  height: 100px;
}

.mockup-main {
  grid-column: 4 / 13;
  height: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
}

.mockup-line {
  height: 6px;
  background: var(--border-color);
  border-radius: 2px;
}

.mockup-line.short {
  width: 60%;
}

/* Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.product-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
  animation: cardFadeIn 0.5s ease-out both;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.12s; }
.product-card:nth-child(3) { animation-delay: 0.19s; }

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.product-preview {
  aspect-ratio: 4/3;
  background: var(--bg-offset);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

/* iframe Live-Preview — zeigt die echte Demo skaliert */
.preview-iframe-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  pointer-events: none; /* Klicks gehen an die Card-Buttons, nicht den iframe */
}

.preview-iframe-wrap iframe {
  width: 400%;       /* 4x breiter als Container */
  height: 400%;      /* 4x höher als Container */
  transform: scale(0.25);
  transform-origin: top left;
  border: none;
  pointer-events: none;
  background: var(--bg-offset);
  color-scheme: light; /* Force template previews to render in their default light mode */
}


.product-info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
}

.product-name {
  font-size: 1.75rem;
  font-family: var(--font-serif);
}

.product-price {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
}

.product-tagline {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.product-desc {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  flex: 1;
}

.product-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: auto;
}

.product-details-extra {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-sm);
}

/* Individual Template CSS Previews */
.preview-satori {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

/* Large watermark letter in Satori preview */
.preview-satori::after {
  content: 'S';
  position: absolute;
  right: -8px;
  bottom: -10px;
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent-color);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
}

.preview-satori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  flex: 1;
}

.preview-satori-box {
  background: var(--bg-offset);
  border: 1px solid var(--border-color);
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  padding: 4px;
  transition: var(--transition-fast);
}

.preview-satori-box:first-child {
  background: var(--accent-light);
  border-color: var(--accent-color);
}

.preview-kanso {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* Horizontal accent stripe in Kanso */
.preview-kanso::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
}

.preview-kanso-title {
  width: 65%;
  height: 10px;
  background: var(--text-color);
  border-radius: 1px;
}

.preview-kanso-subtitle {
  width: 40%;
  height: 6px;
  background: var(--accent-color);
  opacity: 0.6;
  border-radius: 1px;
  margin-top: -6px;
}

.preview-kanso-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

.preview-kanso-line {
  height: 3px;
  background: var(--border-color-dark);
  width: 100%;
  border-radius: 1px;
}

.preview-kanso-line:last-child {
  width: 75%;
}

.preview-forma {
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  padding: 10px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
}

.preview-forma-left {
  border: 1px solid var(--border-color);
  background: var(--bg-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--accent-color);
  position: relative;
  overflow: hidden;
}

.preview-forma-left::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
}

.preview-forma-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-forma-box {
  flex: 1;
  border: 1px solid var(--border-color);
  background: var(--bg-offset);
}

.preview-forma-box:first-child {
  background: var(--accent-light);
  border-color: var(--accent-color);
  flex: 0.6;
}

/* Why Modus Section (USP) */
.usp-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
}

.usp-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.usp-card {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-color);
}

.usp-card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

/* Featured Template Section */
.featured-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: var(--space-xl);
}

.featured-visual {
  background: var(--bg-offset);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  border-radius: 4px;
}

.featured-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.featured-name {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.featured-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
}

.featured-bullets li {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.featured-bullets li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

/* About Section */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.2;
}

/* Purchase Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.process-step {
  border-top: 1px solid var(--text-color);
  padding-top: var(--space-md);
}

.process-step h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

/* Trust Section */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

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

.trust-quote {
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-header {
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question {
  font-size: 1.15rem;
  font-weight: 500;
}

.faq-icon {
  width: 16px;
  height: 16px;
  transition: var(--transition-smooth);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-answer-inner {
  padding-bottom: var(--space-md);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Final CTA Section — Inverted block, theme-aware */
.final-cta {
  text-align: center;
  background-color: var(--text-color);
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
  border-top: none;
}

/* Diagonal line pattern overlay */
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.015) 20px,
    rgba(255, 255, 255, 0.015) 21px
  );
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: var(--space-xs);
  color: var(--bg-color);
}

.final-cta p {
  color: color-mix(in srgb, var(--bg-color) 55%, transparent);
}

.final-cta p {
  margin-bottom: var(--space-lg);
}

.final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.btn-cta-primary {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--bg-color);
}

.btn-cta-primary:hover {
  background: transparent;
  color: var(--bg-color);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--bg-color);
  border: 1px solid color-mix(in srgb, var(--bg-color) 35%, transparent);
}

.btn-cta-secondary:hover {
  border-color: var(--bg-color);
}

/* Footer Section */
footer {
  padding: var(--space-xl) 0;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-rights {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Alternating section backgrounds for visual rhythm */
section.section-alt {
  background-color: var(--bg-offset);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-layout, .showcase-grid, .usp-layout, .featured-layout, .about-layout, .process-grid, .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero {
    padding-top: calc(var(--space-xl) + 60px);
  }

  .hero-layout {
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .usp-content {
    grid-template-columns: 1fr;
  }

  .footer-layout {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .stats-bar-inner {
    gap: var(--space-sm);
  }

  .stat-item {
    padding: 6px var(--space-md);
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

/* Product Specifications list style inside showcase cards */
.product-specs-list {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: var(--space-xs) 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Interactive 3D hover zoom effect on product previews */
.product-preview > div {
  transition: var(--transition-smooth);
  transform-style: preserve-3d;
}

.product-card:hover .product-preview > div {
  transform: scale(1.05) rotateY(-8deg) rotateX(4deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Clean Code Showcase Box in Philosophy / USP section */
.code-showcase-box {
  background-color: #0c0c0c;
  border: 1px solid #222222;
  border-radius: 4px;
  overflow: hidden;
  margin-top: var(--space-md);
  box-shadow: var(--shadow-subtle);
  font-family: var(--font-mono);
  text-align: left;
}

@media (prefers-color-scheme: light) {
  .code-showcase-box {
    background-color: #faf9f6;
    border-color: #e5e5e0;
  }
}

.code-box-header {
  background-color: #121212;
  border-bottom: 1px solid #222222;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (prefers-color-scheme: light) {
  .code-box-header {
    background-color: #f2f1ed;
    border-bottom-color: #e5e5e0;
  }
}

.code-box-tabs {
  display: flex;
  gap: 6px;
}

.code-tab-btn {
  background: none;
  border: 1px solid transparent;
  color: #888888;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.code-tab-btn.active {
  background-color: #222222;
  color: #ffffff;
  border-color: #333333;
}

@media (prefers-color-scheme: light) {
  .code-tab-btn.active {
    background-color: #ffffff;
    color: #121212;
    border-color: #e5e5e0;
  }
}

.code-box-body {
  padding: var(--space-sm);
  font-size: 0.75rem;
  color: #c5c9db;
  overflow-x: auto;
  line-height: 1.45;
  height: 190px;
}

@media (prefers-color-scheme: light) {
  .code-box-body {
    color: #2c2c2c;
  }
}

.code-box-body pre {
  margin: 0;
  white-space: pre-wrap;
}

/* Spotlight interactive Tabs */
.spotlight-tabs {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

.spotlight-tab-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-xs) 0;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

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

.spotlight-tab-btn.active {
  color: var(--text-color);
  font-weight: 500;
}

.spotlight-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-color);
}

#featured-dynamic-desc {
  min-height: 80px;
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

/* =====================================================
   BOLD REDESIGN ADDITIONS
   ===================================================== */

/* Animated Marquee Ticker */
.marquee-ticker {
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 11px 0;
  background: var(--bg-color);
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  will-change: transform;
}

.marquee-ticker:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-color);
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* USP Card Numbers */
.usp-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-color);
  opacity: 0.5;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.usp-card {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.usp-card:hover {
  border-top-color: var(--accent-color);
}

.usp-card:hover .usp-num {
  opacity: 1;
}

/* Process Step Large Numbers */
.process-step {
  border-top: 1px solid var(--text-color);
  padding-top: var(--space-md);
  position: relative;
  overflow: hidden;
}

.process-step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-color);
  opacity: 0.05;
  position: absolute;
  top: 0;
  right: -4px;
  letter-spacing: -0.05em;
  pointer-events: none;
  user-select: none;
}

/* About Section — Magazine-style full layout */
.about-headline-block {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.about-quote-big {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-top: var(--space-md);
  color: var(--text-color);
  transition: color 0.4s ease, opacity 0.4s ease;
  cursor: default;
}


.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

@media (max-width: 1024px) {
  .about-body {
    grid-template-columns: 1fr;
  }
}

/* Trust Section Upgrade */
.trust-stars {
  font-size: 0.9rem;
  color: var(--accent-color);
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.trust-author {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.trust-card {
  padding: var(--space-lg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-card);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.trust-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.trust-quote {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-color);
}
