:root {
  --bg: #e8e2d6;
  --bg-warm: #ded8cc;
  --bg-deep: #d4cec2;
  --olive: #3d3b2f;
  --olive-light: #5c5a48;
  --olive-muted: #7a7763;
  --accent: #8b8b3e;
  --text: #1e1d1a;
  --text-muted: #6b675e;
  --border: #d8d3c8;
  --border-light: #e5e1d6;
  --white: #ffffff;
  --shadow: rgba(61, 59, 47, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* FAKTURA TŁA HERMES-STYLE */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.25;
}

/* Typography */
h1, h2, h3, .section-title, .hero-title, .contact-title, .page-title, .demo-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--olive-muted);
  margin-bottom: 1rem;
}

.italic {
  font-style: italic;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--olive);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::before {
  content: "/";
  color: var(--accent);
  margin-right: 0.25rem;
  opacity: 0.7;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--olive);
}

.logo-wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--olive);
  text-decoration: none;
  white-space: nowrap;
}

.logo-divider {
  display: none;
}

.logo-mark, .logo-text, .logo-studio {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-top {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  color: var(--olive);
  margin-bottom: 2rem;
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  max-width: 480px;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  background: transparent;
  color: var(--olive);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--olive);
  border-radius: 0;
  transition: all 0.2s;
}

.hero-cta:hover {
  background: var(--olive);
  color: var(--bg);
}

.cta-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  top: 10%;
  right: 15%;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: var(--olive-muted);
  bottom: 20%;
  right: 25%;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(circle at 70% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 50%, black 0%, transparent 70%);
}

/* Showcase */
.showcase {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  color: var(--olive);
}

.showcase-frame {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 2rem;
  position: relative;
}

.showcase-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  border: 1px dashed var(--border);
  z-index: -1;
  pointer-events: none;
}

.showcase-screen {
  background: var(--olive);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 24px 64px var(--shadow);
}

.demo-open-screen {
  background: var(--olive);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem;
  text-align: center;
}

.demo-open-icon {
  font-size: 3rem;
  opacity: 0.9;
}

.demo-open-text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  max-width: 420px;
  line-height: 1.6;
}

.demo-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.2s;
}

.demo-open-btn:hover {
  background: #6b6b2f;
}

.showcase-iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

@media (max-width: 900px) {
  .showcase-iframe {
    height: 420px;
  }
}

@media (max-width: 520px) {
  .showcase-iframe {
    height: 360px;
  }
}

@media (max-width: 520px) {
  .demo-open-screen {
    min-height: 280px;
    padding: 1.5rem;
  }
  .demo-open-icon {
    font-size: 2.5rem;
  }
  .demo-open-text {
    font-size: 0.85rem;
  }
  .demo-open-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.7rem;
  }
}

.showcase-header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: auto;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--accent);
}

.screen-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.screen-title {
  flex: 1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.screen-body {
  display: flex;
  padding: 1.5rem;
  gap: 1.5rem;
}

.screen-sidebar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.screen-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.screen-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.screen-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-bubble.agent {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 4px;
}

.showcase-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.showcase-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--olive);
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.showcase-link:hover {
  background: var(--olive);
  color: var(--bg);
}

.showcase-caption {
  max-width: 520px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Features */
.features {
  padding: 7rem 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-header {
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-card {
  background: rgba(255, 255, 255, 0.5);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  background: var(--bg);
}

.feature-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 1.5rem;
  color: var(--olive);
  margin-bottom: 0.75rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-arrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-arrow::after {
  content: "→";
  transition: transform 0.2s;
}

.feature-card:hover .feature-arrow::after {
  transform: translateX(4px);
}

/* Approach */
.approach {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.approach-header {
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.step-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--olive);
  margin-bottom: 0.5rem;
}

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

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  border-top: 1px solid var(--border);
}

.contact-inner {
  padding: 7rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  margin-left: auto;
}

.contact-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--olive);
  margin-bottom: 1.5rem;
}

.contact-text {
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 2rem;
}

.contact-email {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  display: inline-block;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

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

.contact-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--olive-muted);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-visual {
  position: relative;
  background: var(--olive);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}

.big-letter {
  font-family: 'Playfair Display', serif;
  font-size: clamp(12rem, 35vw, 28rem);
  line-height: 0.8;
  color: rgba(244, 241, 234, 0.12);
  margin-right: -2vw;
  margin-bottom: -2vw;
  user-select: none;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--olive-muted);
  font-family: 'IBM Plex Mono', monospace;
}

/* PAGE: Voice AI */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 0.95;
  color: var(--olive);
  margin-bottom: 1.5rem;
}

.page-subtitle {
  max-width: 560px;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.page-meta {
  display: flex;
  gap: 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: var(--olive-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.page-meta span::before {
  content: "•";
  color: var(--accent);
}

.demo-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-frame {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
}

.demo-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
  border: 1px dashed var(--border);
  z-index: -1;
  pointer-events: none;
}

.demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.demo-title {
  font-size: 1.4rem;
  color: var(--olive);
}

.demo-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg);
}

.demo-iframe {
  width: 100%;
  height: 680px;
  border: 1px solid var(--border);
  background: var(--olive);
}

.demo-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 700px;
}

.demo-note code {
  font-family: 'IBM Plex Mono', monospace;
  background: var(--bg);
  padding: 0.1rem 0.3rem;
  border: 1px solid var(--border);
  font-size: 0.75rem;
}

/* Feature detail page */
.detail-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.detail-block {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.detail-block h3 {
  font-size: 1.3rem;
  color: var(--olive);
  margin-bottom: 1rem;
}

.detail-block ul {
  list-style: none;
}

.detail-block li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 1.2rem;
  position: relative;
}

.detail-block li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    width: 100%;
    opacity: 0.25;
  }

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

  .contact-visual {
    min-height: 200px;
  }

  .nav-link {
    display: none;
  }

  .nav-logo {
    margin: 0 auto;
  }

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

  .demo-iframe {
    height: 500px;
  }
}

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

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

  .screen-body {
    flex-direction: column;
  }

  .hero,
  .page-hero {
    padding: 7rem 1.5rem 4rem;
  }

  .showcase,
  .features,
  .approach,
  .demo-section,
  .detail-section {
    padding: 4rem 1.5rem;
  }

  .demo-iframe {
    height: 400px;
  }
}
