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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #130F0D;
  color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(35, 29, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 51, 45, 0.5);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 60px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  border-radius: 8px;
}

.lang-toggle {
  display: flex;
  gap: 8px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #888888;
  color: #888888;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: #E8642C;
  border-color: #E8642C;
  color: #FFFFFF;
}

.lang-btn:hover:not(.active) {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 140px 60px 60px;
  text-align: center;
  min-height: 100vh;
  justify-content: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 800px;
}

.hero-headline {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-subcopy {
  font-size: 18px;
  line-height: 1.6;
  color: #888888;
  max-width: 600px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #E8642C;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 40px;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 100, 44, 0.4);
}

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

.hero-mockup {
  width: 300px;
  border-radius: 40px;
  overflow: hidden;
  border: 2px solid #3D332D;
  box-shadow: 0 20px 60px rgba(232, 100, 44, 0.15);
}

.hero-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Features Section ===== */
.features {
  background: #1A1614;
  padding: 80px 60px;
}

.features-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.02em;
}

.features-spacer {
  height: 60px;
}

.feature-block {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-block--reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 560px;
  border-radius: 12px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.feature-text h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.feature-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #888888;
}

.feature-sep {
  height: 1px;
  background: #3D332D;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Before/After Section ===== */
.before-after {
  background: #130F0D;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.ba-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  max-width: 800px;
  letter-spacing: -0.02em;
}

/* ===== Before/After Slider ===== */
.ba-slider-wrapper {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ba-slider {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #3D332D;
  cursor: col-resize;
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 3/2;
  transition: opacity 0.15s ease;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-after-clip {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  will-change: width;
}

.ba-after-clip .ba-img--after {
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.ba-handle-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: #FFFFFF;
  pointer-events: none;
}

.ba-handle-grip {
  position: relative;
  z-index: 11;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #3D332D;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #130F0D;
  transition: box-shadow 0.2s ease;
  cursor: col-resize;
  pointer-events: auto;
  touch-action: none;
}

.ba-slider:hover .ba-handle-grip,
.ba-handle-grip:focus-visible {
  box-shadow: 0 0 12px rgba(232, 100, 44, 0.6);
}

.ba-label {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  position: absolute;
  bottom: 12px;
  z-index: 5;
  pointer-events: none;
  background: rgba(19, 15, 13, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.ba-label--before {
  left: 12px;
  color: #FFFFFF;
}

.ba-label--after {
  right: 12px;
  color: #E8642C;
}

.ba-filter-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(19, 15, 13, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 6;
  pointer-events: none;
}

.ba-filter-badge__name {
  color: #FFFFFF;
}

.ba-filter-badge__percent {
  color: #E8642C;
}

.ba-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3D332D;
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ba-dot.active::before {
  width: 10px;
  height: 10px;
  background: #E8642C;
  box-shadow: 0 0 8px rgba(232, 100, 44, 0.5);
}

.ba-dot:hover:not(.active)::before {
  background: #888888;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ba-slider, .ba-after-clip, .ba-dot, .ba-handle-grip {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== Mid CTA Section ===== */
.mid-cta {
  background: #1E1815;
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.mid-cta h2 {
  font-size: 28px;
  font-weight: 700;
}

/* ===== ToneCraft Plus Section ===== */
.plus-section {
  background: #130F0D;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.plus-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
  letter-spacing: -0.02em;
}

.plus-sub {
  font-size: 18px;
  line-height: 1.6;
  color: #888888;
  max-width: 600px;
}

.plus-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  width: 100%;
  max-width: 1120px;
}

.plus-card {
  flex: 1;
  max-width: 350px;
  background: #2E2420;
  border: 1px solid #3D332D;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.plus-card:hover {
  border-color: #E8642C;
  transform: translateY(-4px);
}

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

.plus-card h3 {
  font-size: 20px;
  font-weight: 700;
}

.plus-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #888888;
  max-width: 280px;
}

/* ===== Final CTA Section ===== */
.final-cta {
  background: #1A1614;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.final-cta h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 700px;
  letter-spacing: -0.02em;
}

.final-cta p {
  font-size: 18px;
  color: #888888;
}

/* ===== Footer ===== */
.footer {
  background: #130F0D;
  border-top: 1px solid #3D332D;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  border-radius: 7px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 13px;
  color: #888888;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-copy {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: #6B5F57;
}

/* ===== Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
  .header-inner {
    padding: 16px 32px;
  }

  .hero {
    padding: 120px 32px 60px;
  }

  .hero-headline {
    font-size: 44px;
  }

  .features {
    padding: 60px 32px;
  }

  .features-title {
    font-size: 32px;
  }

  .feature-block {
    gap: 40px;
  }

  .feature-image {
    flex: 0 0 400px;
  }

  .feature-text h3 {
    font-size: 24px;
  }

  .before-after {
    padding: 60px 32px;
  }

  .ba-title {
    font-size: 32px;
  }

  .ba-slider-wrapper {
    gap: 16px;
  }

  .mid-cta {
    padding: 48px 32px;
  }

  .plus-section {
    padding: 60px 32px;
  }

  .plus-title {
    font-size: 32px;
  }

  .final-cta {
    padding: 60px 32px;
  }

  .final-cta h2 {
    font-size: 30px;
  }

  .footer {
    padding: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header-inner {
    padding: 14px 20px;
  }

  .logo {
    font-size: 18px;
  }

  .lang-btn {
    font-size: 12px;
    padding: 5px 12px;
  }

  .hero {
    padding: 100px 20px 40px;
    min-height: auto;
  }

  .hero-headline {
    font-size: 32px;
  }

  .hero-subcopy {
    font-size: 16px;
  }

  .hero-mockup {
    width: 240px;
    border-radius: 32px;
  }

  .features {
    padding: 48px 20px;
  }

  .features-title {
    font-size: 26px;
  }

  .features-spacer {
    height: 32px;
  }

  .feature-block,
  .feature-block--reverse {
    flex-direction: column;
    gap: 24px;
    padding: 40px 0;
  }

  .feature-image {
    flex: none;
    width: 100%;
  }

  .feature-text h3 {
    font-size: 22px;
  }

  .feature-text p {
    font-size: 15px;
  }

  .before-after {
    padding: 48px 20px;
    gap: 32px;
  }

  .ba-title {
    font-size: 26px;
  }

  .ba-slider-wrapper {
    gap: 14px;
  }

  .ba-handle-grip {
    width: 44px;
    height: 44px;
  }

  .mid-cta {
    padding: 40px 20px;
  }

  .mid-cta h2 {
    font-size: 22px;
  }

  .plus-section {
    padding: 48px 20px;
    gap: 32px;
  }

  .plus-title {
    font-size: 26px;
  }

  .plus-sub {
    font-size: 16px;
  }

  .plus-cards {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .plus-card {
    max-width: 100%;
    width: 100%;
  }

  .final-cta {
    padding: 48px 20px;
  }

  .final-cta h2 {
    font-size: 26px;
  }

  .final-cta p {
    font-size: 16px;
  }

  .cta-button {
    font-size: 15px;
    padding: 14px 32px;
  }

  .footer {
    padding: 32px 20px;
  }

  .footer-links {
    gap: 20px;
  }
}
