/* ============================================
   Bad Breath Studios — style.css
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg:            #0a0a0a;
  --bg-elevated:   #121012;
  --bg-surface:    #161416;
  --text:          #e8e4e0;
  --text-muted:    #9a9296;
  --accent:        #c2697a;
  --accent-soft:   rgba(194, 105, 122, 0.15);
  --accent-glow:   rgba(194, 105, 122, 0.4);
  --accent-gold:   #d4a853;
  --gold-soft:     rgba(212, 168, 83, 0.12);
  --gold-glow:     rgba(212, 168, 83, 0.3);
  --tech-gray:     #7a6d72;
  --border:        rgba(232, 228, 224, 0.07);
  --border-accent: rgba(194, 105, 122, 0.2);
  --border-hover:  rgba(194, 105, 122, 0.35);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 700ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

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

/* --- Film Grain Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(24px, 5vw, 64px);
  background: transparent;
  transition: background var(--duration) var(--ease-out),
              padding 400ms var(--ease-out),
              border-color 400ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--border);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text);
  transition: color 300ms var(--ease-out);
}

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

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  position: relative;
  transition: color 300ms var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 400ms var(--ease-out);
}

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

.nav__link:hover::after {
  width: 100%;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 clamp(24px, 5vw, 64px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: heroFadeIn 1400ms var(--ease-out) 200ms forwards;
}

@keyframes heroFadeIn {
  to { opacity: 1; }
}

/* Ambient glow orbs */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero__glow--rose {
  width: 500px;
  height: 500px;
  top: 15%;
  right: 5%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.5;
  animation: glowDrift 12s ease-in-out infinite alternate;
}

.hero__glow--gold {
  width: 350px;
  height: 350px;
  bottom: 20%;
  left: 10%;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  opacity: 0.35;
  animation: glowDrift 10s ease-in-out 2s infinite alternate-reverse;
}

@keyframes glowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

.hero__content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent-gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 100% center; }
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

.hero__footer {
  position: absolute;
  bottom: 80px;
  left: clamp(24px, 5vw, 64px);
  right: clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

.hero__detail {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tech-gray);
  white-space: nowrap;
}

.hero__rule {
  flex: 1;
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-soft) 20%,
    var(--accent) 50%,
    var(--accent-soft) 80%,
    transparent
  );
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%      { opacity: 1; transform: scaleY(1); }
}

/* --- Sections (shared) --- */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 56px;
  color: var(--text);
}

/* --- About --- */
.about__accent-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
  margin-bottom: 48px;
  border-radius: 1px;
}

.about__text {
  font-size: clamp(1.2rem, 2.8vw, 1.65rem);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 24px;
}

.about__text:last-child {
  margin-bottom: 0;
}

.about__highlight {
  color: var(--text);
  font-weight: 500;
}

/* --- Product Spotlight --- */
.spotlight {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  padding: 48px 44px;
  display: flex;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  transition: border-color 600ms var(--ease-out),
              box-shadow 600ms var(--ease-out);
}

.spotlight:hover {
  border-color: var(--border-hover);
  box-shadow:
    0 0 60px rgba(194, 105, 122, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.3);
}

.spotlight__glow {
  position: absolute;
  top: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.12;
  filter: blur(60px);
  pointer-events: none;
  transition: opacity 600ms var(--ease-out);
}

.spotlight:hover .spotlight__glow {
  opacity: 0.2;
}

.spotlight__content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.spotlight__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.spotlight__title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
}

.spotlight__type {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

.spotlight__badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(194, 105, 122, 0.25);
  border-radius: 20px;
  padding: 6px 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.spotlight__description {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.spotlight__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.spotlight__footer {
  display: flex;
  align-items: center;
}

.spotlight__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  padding: 10px 22px;
  border: 1px solid rgba(194, 105, 122, 0.3);
  border-radius: 8px;
  transition: all 400ms var(--ease-out);
}

.spotlight__link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text);
  transform: translateX(4px);
}

.spotlight__link svg {
  transition: transform 300ms var(--ease-out);
}

.spotlight__link:hover svg {
  transform: translate(2px, -2px);
}

/* Abstract visual element */
.spotlight__visual {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}

.spotlight__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
}

.spotlight__ring--1 {
  inset: 0;
  animation: ringRotate 20s linear infinite;
}

.spotlight__ring--2 {
  inset: 25px;
  border-color: rgba(194, 105, 122, 0.15);
  animation: ringRotate 15s linear infinite reverse;
}

.spotlight__ring--3 {
  inset: 50px;
  border-color: rgba(212, 168, 83, 0.12);
  animation: ringRotate 25s linear infinite;
}

@keyframes ringRotate {
  0%   { transform: rotate(0deg); border-radius: 50%; }
  25%  { border-radius: 45% 55% 50% 50%; }
  50%  { transform: rotate(180deg); border-radius: 50%; }
  75%  { border-radius: 55% 45% 50% 50%; }
  100% { transform: rotate(360deg); border-radius: 50%; }
}

.spotlight__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(194, 105, 122, 0.2);
}

.product__more {
  font-size: 0.9rem;
  color: var(--tech-gray);
  margin-top: 28px;
  font-style: italic;
}

/* --- Principles --- */
.principle {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.principle:first-of-type {
  border-top: 1px solid var(--border);
}

.principle:hover .principle__number {
  color: var(--accent);
}

.principle__number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--tech-gray);
  min-width: 32px;
  padding-top: 2px;
  transition: color 400ms var(--ease-out);
}

.principle__body {
  flex: 1;
}

.principle__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.principle__text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 600px;
}

/* --- Contact --- */
.contact {
  text-align: center;
  padding-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
}

.contact__glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.1;
  filter: blur(80px);
  pointer-events: none;
}

.contact .section__heading {
  margin-bottom: 28px;
}

.contact__email {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 500;
  color: var(--text);
  display: inline-block;
  position: relative;
  transition: color 300ms var(--ease-out);
}

.contact__email::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 500ms var(--ease-out);
}

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

.contact__email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact__info {
  font-size: 0.85rem;
  color: var(--tech-gray);
  line-height: 1.6;
}

.contact__info:first-of-type {
  margin-top: 32px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

.footer__copyright {
  font-size: 0.8rem;
  color: var(--tech-gray);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--tech-gray);
  transition: color 300ms var(--ease-out);
}

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

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration) var(--ease-out),
              transform var(--duration) var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 150ms; }
.reveal--delay-2 { transition-delay: 300ms; }
.reveal--delay-3 { transition-delay: 450ms; }

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

  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero {
    opacity: 1;
    animation: none;
  }

  .hero__title-accent {
    -webkit-text-fill-color: var(--accent);
    background: none;
  }
}

/* --- Responsive --- */

/* Tablet */
@media (max-width: 768px) {
  .nav__links {
    gap: 20px;
  }

  .hero__footer {
    bottom: 60px;
  }

  .spotlight {
    flex-direction: column;
    padding: 36px 28px;
    gap: 36px;
  }

  .spotlight__visual {
    width: 150px;
    height: 150px;
    order: -1;
    align-self: center;
  }

  .hero__glow--rose {
    width: 300px;
    height: 300px;
  }

  .hero__glow--gold {
    width: 200px;
    height: 200px;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .nav__links {
    display: none;
  }

  .hero__title {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .hero__footer {
    bottom: 50px;
  }

  .spotlight {
    padding: 28px 22px;
  }

  .spotlight__header {
    flex-direction: column;
    gap: 10px;
  }

  .spotlight__visual {
    width: 120px;
    height: 120px;
  }

  .principle {
    flex-direction: column;
    gap: 8px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
