/* ═══════════════════════════════════════════════════════════
   DAMSAİ — Brutalist Signal Design System
   Palette: Paper #E8E4DD | Signal Red #E63B2E | Off-white #F5F3EE | Black #111111
   ═══════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --paper: #E8E4DD;
  --red: #E63B2E;
  --off-white: #F5F3EE;
  --black: #111111;
  --dark: #1A1A1A;
  --mid: #3A3A3A;
  --border: rgba(17, 17, 17, 0.12);
  --border-red: rgba(230, 59, 46, 0.35);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-drama: 'DM Serif Display', serif;
  --font-mono: 'Space Mono', monospace;
  --r-card: 1.75rem;
  --ease-mag: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--black);
  overflow-x: hidden;
}

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

/* ── Typography ── */
.mono {
  font-family: var(--font-mono);
}

/* ══════════════════════════════════════════════════ NAVBAR ══ */
.navbar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 3rem);
  max-width: 1100px;
  transition: all 0.45s var(--ease-mag);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.45s var(--ease-mag);
}

.navbar.scrolled .nav-inner {
  background: rgba(248, 246, 240, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--border);
  box-shadow: 0 4px 32px rgba(17, 17, 17, 0.08);
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--off-white);
  text-decoration: none;
  margin-right: auto;
  transition: color 0.4s;
}

.navbar.scrolled .nav-logo {
  color: var(--black);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(248, 246, 240, 0.8);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  transition: all 0.25s var(--ease-mag);
  letter-spacing: 0.01em;
}

.navbar.scrolled .nav-links a {
  color: var(--mid);
}

.nav-links a:hover {
  color: var(--red);
  transform: translateY(-1px);
}

/* CTA Button — Magnetic */
.btn-cta {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--off-white);
  border: none;
  border-radius: 100px;
  padding: 0.55rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-mag), box-shadow 0.25s var(--ease-mag);
  white-space: nowrap;
}

.btn-cta .btn-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease-mag);
  border-radius: 100px;
}

.btn-cta .btn-label {
  position: relative;
  z-index: 1;
}

.btn-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(230, 59, 46, 0.35);
}

.btn-cta:hover .btn-bg {
  transform: translateX(0);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--off-white);
  border-radius: 2px;
  transition: background 0.3s;
}

.navbar.scrolled .nav-hamburger span {
  background: var(--black);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: rgba(248, 246, 240, 0.95);
  backdrop-filter: blur(18px);
  border-radius: 1.5rem;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
}

.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.btn-cta-mobile {
  background: var(--red);
  color: var(--off-white);
  border: none;
  border-radius: 100px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
  width: 100%;
}

/* ══════════════════════════════════════════════════ HERO ════ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(17, 17, 17, 0.97) 0%,
      rgba(17, 17, 17, 0.65) 40%,
      rgba(17, 17, 17, 0.25) 75%,
      rgba(17, 17, 17, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 4rem 6rem;
  max-width: 900px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  opacity: 0;
}

.hero-label .mono {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(248, 246, 240, 0.6);
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.6);
    opacity: 0.6;
  }
}

.hero-heading {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.hero-line1 {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: -0.04em;
  opacity: 0;
}

.hero-line2 {
  font-family: var(--font-drama);
  font-style: italic;
  font-size: clamp(5rem, 16vw, 12rem);
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 0.9;
  opacity: 0;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(248, 246, 240, 0.7);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0;
}

/* Primary Button */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--off-white);
  border: none;
  border-radius: 100px;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-mag), box-shadow 0.25s var(--ease-mag);
}

.btn-primary .btn-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease-mag);
  border-radius: 100px;
}

.btn-primary .btn-label {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(230, 59, 46, 0.4);
}

.btn-primary:hover .btn-bg {
  transform: translateX(0);
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: rgba(248, 246, 240, 0.65);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.25s var(--ease-mag);
  padding: 0.5rem 0;
}

.btn-ghost:hover {
  color: var(--off-white);
  transform: translateY(-1px);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  opacity: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--off-white);
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(248, 246, 240, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(248, 246, 240, 0.15);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(248, 246, 240, 0.4));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.scroll-hint .mono {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(248, 246, 240, 0.35);
  writing-mode: vertical-rl;
}

/* ══════════════════════════════════════════════ FEATURES ════ */
.features-section {
  padding: 8rem 4rem;
  background: var(--off-white);
}

.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--black);
}

.section-title em {
  font-family: var(--font-drama);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Feature Card Base */
.feature-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 16px rgba(17, 17, 17, 0.05);
  transition: transform 0.3s var(--ease-mag), box-shadow 0.3s var(--ease-mag);
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.1);
}

.card-tag {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 700;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ── Card 1: Shuffler ── */
.shuffler-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 140px;
  margin-top: 0.5rem;
}

.shuffler-stack {
  position: relative;
  width: 100%;
  height: 110px;
}

.shuffler-item {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  top: calc(var(--idx) * 18px);
  transition: top 0.6s var(--ease-spring), opacity 0.4s ease;
  opacity: calc(1 - var(--idx) * 0.25);
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.06);
}

.si-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.si-label {
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
}

.si-val {
  font-size: 0.7rem;
  color: var(--red);
  font-weight: 700;
}

/* ── Card 2: Typewriter ── */
.typewriter-container {
  flex: 1;
  background: var(--black);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.tw-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.5s ease-in-out infinite;
}

.tw-live {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--red);
  text-transform: uppercase;
}

.tw-feed {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(248, 246, 240, 0.9);
  line-height: 1.6;
  min-height: 80px;
  overflow: hidden;
}

.tw-cursor {
  animation: blinkCursor 0.8s step-end infinite;
  color: var(--red);
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Card 3: Scheduler ── */
.scheduler-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
  position: relative;
  min-height: 120px;
}

.sched-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}

.sched-day {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--mid);
  transition: all 0.3s var(--ease-spring);
  cursor: pointer;
}

.sched-day.active {
  background: var(--red);
  color: var(--off-white);
  border-color: var(--red);
  transform: scale(1.08);
}

.sched-day:hover {
  border-color: var(--red);
}

.sched-cursor {
  font-size: 0.75rem;
  color: var(--red);
  font-family: var(--font-mono);
  transition: all 0.5s var(--ease-spring);
  position: absolute;
  top: 1.8rem;
  left: 0;
}

.sched-save {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--off-white);
  background: var(--black);
  border: 1px solid var(--black);
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.25s var(--ease-mag);
  position: relative;
  opacity: 0.5;
}

.sched-save.active {
  opacity: 1;
  transform: scale(0.95);
  background: var(--red);
  border-color: var(--red);
}

.sched-save:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ══════════════════════════════════════════════ PHILOSOPHY ══ */
.philosophy-section {
  position: relative;
  background: var(--black);
  padding: 10rem 4rem;
  overflow: hidden;
  min-height: 550px;
  display: flex;
  align-items: center;
}

.phil-bg-img {
  position: absolute;
  inset: 0;
  opacity: 0.06;
}

.phil-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
}

.phil-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
}

.phil-statement-sm {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 400;
  color: rgba(248, 246, 240, 0.5);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.red-text {
  color: var(--red);
  font-weight: 600;
}

.phil-statement-lg {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 2rem;
}

.phil-statement-lg em {
  font-family: var(--font-drama);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  font-size: 1.2em;
}

.phil-detail {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(248, 246, 240, 0.35);
  text-transform: uppercase;
}

.red-italic {
  font-family: var(--font-drama);
  font-style: italic;
  color: var(--red);
}

/* ══════════════════════════════════════════════ PROTOCOL ════ */
.protocol-section {
  padding: 8rem 4rem;
  background: var(--paper);
}

.section-header.light .section-title {
  color: var(--black);
}

.protocol-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.proto-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2.5rem;
  box-shadow: 0 2px 20px rgba(17, 17, 17, 0.05);
  transition: transform 0.4s var(--ease-mag), box-shadow 0.4s var(--ease-mag);
}

.proto-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(17, 17, 17, 0.1);
}

.proto-canvas canvas {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--black);
}

.proto-content {
  flex: 1;
}

.proto-num {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--red);
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.proto-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.proto-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════ PRICING ════ */
.pricing-section {
  padding: 8rem 4rem;
  background: var(--off-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.3s var(--ease-mag), box-shadow 0.3s var(--ease-mag);
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(17, 17, 17, 0.1);
}

.price-card.featured {
  background: var(--black);
  color: var(--off-white);
  border-color: var(--red);
  box-shadow: 0 8px 32px rgba(230, 59, 46, 0.2);
  transform: scale(1.03);
}

.price-card.featured:hover {
  transform: scale(1.03) translateY(-6px);
}

.price-badge {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: -0.75rem;
}

.price-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--mid);
  font-weight: 700;
}

.price-card.featured .price-tag {
  color: rgba(248, 246, 240, 0.5);
}

.price-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
}

.price-card.featured .price-num {
  color: var(--off-white);
}

.price-period {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.6;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.price-list li {
  font-size: 0.875rem;
  color: var(--mid);
  font-weight: 500;
}

.price-card.featured .price-list li {
  color: rgba(248, 246, 240, 0.75);
}

.price-list li.dim {
  opacity: 0.4;
}

/* Outline Button */
.btn-outline {
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
  border-radius: 100px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s var(--ease-mag);
  width: 100%;
}

.btn-outline .btn-bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease-mag);
}

.btn-outline .btn-label {
  position: relative;
  z-index: 1;
}

.btn-outline:hover {
  color: var(--off-white);
  transform: scale(1.02);
}

.btn-outline:hover .btn-bg {
  transform: translateX(0);
}

/* Primary Dark Button */
.btn-primary-dark {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: var(--off-white);
  border: none;
  border-radius: 100px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  width: 100%;
  transition: transform 0.25s var(--ease-mag), box-shadow 0.25s var(--ease-mag);
}

.btn-primary-dark .btn-bg {
  position: absolute;
  inset: 0;
  background: var(--off-white);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease-mag);
}

.btn-primary-dark .btn-label {
  position: relative;
  z-index: 1;
  color: inherit;
}

.btn-primary-dark:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(230, 59, 46, 0.4);
}

.btn-primary-dark:hover .btn-label {
  color: var(--black);
}

.btn-primary-dark:hover .btn-bg {
  transform: translateX(0);
}

/* ══════════════════════════════════════════════ FOOTER ══════ */
.footer {
  background: var(--black);
  border-radius: 3rem 3rem 0 0;
  padding: 5rem 4rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(248, 246, 240, 0.1);
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.75rem;
  color: rgba(248, 246, 240, 0.4);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

.status-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(248, 246, 240, 0.45);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-title {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(248, 246, 240, 0.4);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(248, 246, 240, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--off-white);
  transform: translateY(-1px);
  display: inline-block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(248, 246, 240, 0.25);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ══════════════════════════════════════════════ CHATBOT ══════ */
.chatbot-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  background: var(--red);
  border: none;
  border-radius: 100px;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(230, 59, 46, 0.4);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-mag);
  animation: fabBob 4s ease-in-out infinite;
}

.chatbot-fab:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 40px rgba(230, 59, 46, 0.5);
  animation: none;
}

@keyframes fabBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 100px;
  border: 2px solid var(--red);
  opacity: 0;
  animation: fabRing 3s ease-in-out infinite 1s;
}

@keyframes fabRing {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.fab-icon {
  font-size: 1.1rem;
}

.fab-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: 0.05em;
}

/* Chatbot Overlay */
.chatbot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 2rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease-mag);
}

.chatbot-overlay.open {
  pointer-events: all;
  opacity: 1;
}

.chatbot-panel {
  width: 100%;
  max-width: 400px;
  background: var(--off-white);
  border-radius: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(17, 17, 17, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(40px) scale(0.96);
  transition: transform 0.45s var(--ease-spring);
  max-height: 620px;
}

.chatbot-overlay.open .chatbot-panel {
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: var(--black);
  border-bottom: 1px solid rgba(248, 246, 240, 0.08);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--off-white);
  position: relative;
}

.chat-online {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--black);
}

.chat-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: -0.01em;
}

.chat-status {
  font-size: 0.65rem;
  color: rgba(248, 246, 240, 0.45);
  letter-spacing: 0.05em;
}

.chat-close {
  background: rgba(248, 246, 240, 0.08);
  border: none;
  color: rgba(248, 246, 240, 0.6);
  font-size: 1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chat-close:hover {
  background: rgba(248, 246, 240, 0.15);
  color: var(--off-white);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 250px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-msg {
  display: flex;
  flex-direction: column;
}

.chat-msg.user {
  align-items: flex-end;
}

.chat-msg.bot {
  align-items: flex-start;
}

.msg-bubble {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
}

.chat-msg.bot .msg-bubble {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
  color: var(--black);
}

.chat-msg.user .msg-bubble {
  background: var(--red);
  color: var(--off-white);
  border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
}

.chat-quick-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.25rem 0.25rem;
}

.quick-btn {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  font-size: 0.775rem;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-mag);
  color: var(--black);
}

.quick-btn:hover {
  background: var(--red);
  color: var(--off-white);
  border-color: var(--red);
  transform: scale(1.03);
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--off-white);
}

.chat-input {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--red);
}

.chat-send {
  background: var(--red);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  color: var(--off-white);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease-spring), background 0.2s;
}

.chat-send:hover {
  transform: scale(1.1);
  background: var(--black);
}

/* ══════════════════════════════════════════════ RESPONSIVE ══ */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .btn-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .mobile-menu.open {
    display: flex;
  }

  .hero-content {
    padding: 0 1.5rem 5rem;
  }

  .features-section {
    padding: 5rem 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .philosophy-section {
    padding: 6rem 1.5rem;
  }

  .protocol-section {
    padding: 5rem 1.5rem;
  }

  .proto-card {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .pricing-section {
    padding: 5rem 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .footer {
    padding: 4rem 1.5rem 2rem;
    border-radius: 2rem 2rem 0 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .chatbot-overlay {
    padding: 1rem;
  }

  .chatbot-fab {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

@media (max-width: 600px) {
  .hero-line2 {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  .section-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    gap: 1rem;
  }
}