/* ===== Bluetooth Coffee™ — styles ===== */

:root {
  --coffee-950: #1a0f0a;
  --coffee-900: #241510;
  --coffee-800: #33201a;
  --coffee-700: #46291f;
  --coffee-600: #5c3826;
  --cream: #f3e6d0;
  --cream-dim: #d8c6a9;
  --blue: #2b8fe0;
  --blue-bright: #4fb2ff;
  --blue-deep: #0d4a8f;
  --tooth: #4d8fc4;
  --danger: #e05a3a;
  --shadow: rgba(0, 0, 0, 0.5);
  --radius: 14px;
  --maxw: 1080px;
  --font-display: Impact, "Arial Narrow Bold", "Helvetica Inserat", "Franklin Gothic Heavy", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(ellipse at top, var(--coffee-800), var(--coffee-950) 70%);
  color: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
}

body.rainbow-mode {
  animation: hue-spin 4s linear infinite;
}

@keyframes hue-spin {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(360deg); }
}

body.shake-all {
  animation: page-shake 0.4s ease-in-out infinite;
}

@keyframes page-shake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(1px, -1px) rotate(-0.2deg); }
  50% { transform: translate(-1px, 1px) rotate(0.2deg); }
  75% { transform: translate(1px, 1px) rotate(-0.1deg); }
}

a {
  color: var(--blue-bright);
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 15, 10, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--coffee-700);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  font-size: 1.35rem;
  cursor: pointer;
  user-select: none;
}

.brand .glyph {
  color: var(--blue-bright);
  filter: drop-shadow(0 0 6px rgba(79, 178, 255, 0.6));
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: var(--blue-bright);
  border-color: var(--blue-bright);
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58e06a;
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 6px #58e06a;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 40px;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coffee-800);
  border: 1px solid var(--coffee-600);
  color: var(--blue-bright);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.98;
  margin: 0 0 14px;
  letter-spacing: 1px;
  text-shadow: 0 4px 0 rgba(0,0,0,0.35);
}

.hero h1 .blue {
  color: var(--blue-bright);
  text-shadow: 0 0 18px rgba(79, 178, 255, 0.55), 0 4px 0 rgba(0,0,0,0.35);
}

.hero .sub {
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--cream-dim);
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: white;
  box-shadow: 0 8px 20px rgba(43, 143, 224, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(43, 143, 224, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--coffee-600);
}

.btn-ghost:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
}

.hero-image-wrap {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.hero-image-wrap img {
  border-radius: 20px;
  box-shadow: 0 30px 60px var(--shadow), 0 0 0 1px rgba(255,255,255,0.05);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.hero-image-wrap img:active {
  transform: scale(0.98);
}

.hero-image-wrap.shaking img {
  animation: mug-shake 0.35s ease-in-out;
}

@keyframes mug-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-3deg); }
  40% { transform: rotate(3deg); }
  60% { transform: rotate(-2deg); }
  80% { transform: rotate(2deg); }
}

.hero-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--coffee-600);
  opacity: 0.75;
}

.click-tooltip {
  position: absolute;
  top: -12px;
  right: 6px;
  background: var(--coffee-950);
  border: 1px solid var(--blue);
  color: var(--cream);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  white-space: nowrap;
  pointer-events: none;
  animation: float-up 1.1s ease-out forwards;
}

@keyframes float-up {
  0% { opacity: 0; transform: translateY(6px); }
  15% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-16px); }
}

/* ---------- Sections ---------- */

section {
  padding: 70px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.section-title .blue {
  color: var(--blue-bright);
}

.section-sub {
  text-align: center;
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto 44px;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.step-card {
  background: var(--coffee-900);
  border: 1px solid var(--coffee-700);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--blue-deep);
  position: absolute;
  top: 6px;
  right: 14px;
  opacity: 0.5;
}

.step-card h3 {
  margin: 6px 0 8px;
  color: var(--blue-bright);
}

.step-card p {
  color: var(--cream-dim);
  margin: 0;
  font-size: 0.95rem;
}

/* Feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--coffee-900);
  border: 1px solid var(--coffee-700);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.feature-card h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: var(--cream);
}

.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

/* Spec sheet */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--coffee-900);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--coffee-700);
}

.spec-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--coffee-700);
}

.spec-table td {
  padding: 14px 20px;
  font-size: 0.94rem;
}

.spec-table td:first-child {
  color: var(--blue-bright);
  font-weight: 700;
  width: 40%;
}

.spec-table td:last-child {
  color: var(--cream-dim);
}

/* Testimonials */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.testimonial {
  background: var(--coffee-900);
  border: 1px solid var(--coffee-700);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 0.92rem;
}

.testimonial .stars {
  color: var(--blue-bright);
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.testimonial .who {
  margin-top: 12px;
  color: var(--cream-dim);
  font-size: 0.82rem;
}

/* FAQ */

.faq-item {
  background: var(--coffee-900);
  border: 1px solid var(--coffee-700);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 700;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q .arrow {
  color: var(--blue-bright);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.faq-a-inner {
  padding: 0 20px 18px;
}

/* Newsletter */

.newsletter {
  background: linear-gradient(135deg, var(--coffee-900), var(--coffee-800));
  border: 1px solid var(--coffee-700);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.newsletter h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
}

.newsletter p {
  color: var(--cream-dim);
  margin: 0 0 22px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--coffee-600);
  background: var(--coffee-950);
  color: var(--cream);
  font-size: 0.95rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--blue-bright);
}

.newsletter-msg {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--blue-bright);
  min-height: 1.4em;
}

/* Footer */

footer {
  border-top: 1px solid var(--coffee-700);
  padding: 34px 0 50px;
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.82rem;
}

footer .legal {
  max-width: 620px;
  margin: 0 auto 12px;
  opacity: 0.6;
  font-size: 0.74rem;
  line-height: 1.6;
}

footer .easter-dot {
  color: var(--coffee-700);
  cursor: default;
  transition: color 0.4s ease;
}

footer .easter-dot:hover {
  color: var(--blue-bright);
  cursor: help;
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 4, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--coffee-900);
  border: 1px solid var(--blue-deep);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.modal-box h3 {
  font-family: var(--font-display);
  color: var(--blue-bright);
  margin: 10px 0;
  letter-spacing: 0.5px;
}

.modal-box .device-name {
  font-family: monospace;
  font-size: 1.05rem;
  color: var(--cream);
  min-height: 1.4em;
  margin: 14px 0;
}

.progress-bar {
  height: 8px;
  background: var(--coffee-700);
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-bright));
  transition: width 0.15s ease;
}

.modal-close {
  margin-top: 16px;
}

/* Toast */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--coffee-950);
  border: 1px solid var(--blue);
  color: var(--cream);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Secret panel (unlocked via mug clicks) */

.secret-panel {
  margin-top: 40px;
  background: var(--coffee-950);
  border: 1px dashed var(--blue);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  animation: fade-in 0.4s ease;
}

.secret-panel h3 {
  color: var(--blue-bright);
  font-family: var(--font-display);
  margin-top: 0;
}

.secret-panel .code {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--coffee-800);
  border-radius: 8px;
  font-family: monospace;
  letter-spacing: 2px;
  color: var(--blue-bright);
}

/* Tooth rain particles */

.tooth-particle {
  position: fixed;
  top: -40px;
  font-size: 1.6rem;
  z-index: 9999;
  pointer-events: none;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

.trail-particle {
  position: fixed;
  pointer-events: none;
  z-index: 40;
  font-size: 1rem;
  opacity: 0.9;
  animation: trail-float 0.9s ease-out forwards;
}

@keyframes trail-float {
  to {
    transform: translateY(-40px) scale(0.6);
    opacity: 0;
  }
}
