/* ============ base feel ============ */
::selection {
  background: #DA5A2A;
  color: #F7F3EA;
}

html {
  scroll-behavior: smooth;
}

body {
  cursor: default;
}

/* subtle paper grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* custom cursor dot (desktop only) */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 999px;
  background: #DA5A2A;
  pointer-events: none;
  z-index: 70;
  transform: translate(-100px, -100px);
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { opacity: 1; }
}
.cursor-dot.is-active {
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  background: rgba(218, 90, 42, 0.15);
  border: 1px solid #DA5A2A;
}

/* ============ nav ============ */
.nav-bar {
  background: rgba(247, 243, 234, 0);
  border-bottom: 1px solid rgba(17, 24, 17, 0);
  transition: background 0.4s ease, border-color 0.4s ease;
  backdrop-filter: blur(0px);
}
.nav-bar.is-scrolled {
  background: rgba(247, 243, 234, 0.85);
  border-bottom: 1px solid rgba(17, 24, 17, 0.08);
  backdrop-filter: blur(10px);
}
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

.mobile-menu {
  position: fixed;
  inset: 0;
  top: 80px;
  background: #F7F3EA;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 40;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ============ hero ============ */
.hero-grid {
  background-image:
    linear-gradient(rgba(17,24,17,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,17,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}
.hero-grid--dark {
  background-image:
    linear-gradient(rgba(247,243,234,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,243,234,0.06) 1px, transparent 1px);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #DA5A2A;
  display: inline-block;
  box-shadow: 0 0 0 4px rgba(218,90,42,0.15);
}

/* line reveal for hero headline */
.line-in {
  transform: translateY(110%);
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
}

/* ============ buttons ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #111811;
  color: #F7F3EA;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s ease, background 0.3s ease;
}
.btn-primary:hover { background: #DA5A2A; }
.btn-lg { padding: 1.1rem 2rem; font-size: 0.95rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #111811;
  border-bottom: 1px solid rgba(17,24,17,0.3);
  padding-bottom: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.3s ease, gap 0.3s ease;
}
.btn-ghost:hover { border-color: #DA5A2A; gap: 0.75rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17,24,17,0.2);
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.btn-outline:hover { border-color: #111811; background: rgba(17,24,17,0.04); }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(247,243,234,0.25);
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #F7F3EA;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.btn-outline-light:hover { border-color: #F7F3EA; background: rgba(247,243,234,0.08); }

/* ============ stat ============ */
.stat { line-height: 1; }

/* ============ marquee ============ */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee-track span { display: inline-block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ hero product shot ============ */
.browser-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(17,24,17,0.1);
  background: #FFFDF8;
  box-shadow: 0 50px 100px -30px rgba(17,24,17,0.3);
}
.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(17,24,17,0.08);
}
.browser-dot { width: 10px; height: 10px; border-radius: 999px; }
.browser-dot--red { background: #E4573D; }
.browser-dot--yellow { background: #E8B84B; }
.browser-dot--green { background: #4C9A6A; }
.browser-frame-url {
  margin-left: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: rgba(17,24,17,0.4);
  background: rgba(17,24,17,0.04);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

/* ============ bento ============ */
.bento-card {
  background: #FFFDF8;
  border: 1px solid rgba(17,24,17,0.08);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.bento-card:hover {
  border-color: rgba(17,24,17,0.18);
  transform: translateY(-4px);
}

.mockup-checkout {
  background: #F7F3EA;
  border: 1px solid rgba(17,24,17,0.08);
  border-radius: 0.9rem;
  padding: 1.25rem;
}
.pay-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(17,24,17,0.15);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: rgba(17,24,17,0.55);
}
.pay-chip--active {
  background: #111811;
  color: #F7F3EA;
  border-color: #111811;
}

.flip-card {
  width: 220px;
  height: 150px;
  perspective: 1000px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.6, 0.1, 0.15, 1);
  transform-style: preserve-3d;
}
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 0.85rem;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
}
.flip-card-front {
  background: #16302B;
  color: #F7F3EA;
}
.flip-card-back {
  background: #EFE9DA;
  transform: rotateY(180deg);
}

.video-mock {
  background: #111811;
  border-radius: 0.9rem;
  overflow: hidden;
}
.video-bar {
  height: 4px;
  background: rgba(247,243,234,0.15);
  border-radius: 999px;
  overflow: hidden;
}
.video-bar-fill {
  width: 34%;
  height: 100%;
  background: #DA5A2A;
}

.lang-chip {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  border: 1px solid rgba(17,24,17,0.15);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  color: rgba(17,24,17,0.7);
}
.lang-chip--muted {
  color: rgba(17,24,17,0.4);
  border-style: dashed;
}

/* ============ steps ============ */
.step { border-top: 1px solid rgba(247,243,234,0.15); padding-top: 1.75rem; }

/* ============ feature groups ============ */
.feature-group li {
  position: relative;
  padding-left: 1.1rem;
}
.feature-group li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #DA5A2A;
}

/* ============ payment tiles ============ */
.method-tile {
  border: 1px solid rgba(247,243,234,0.15);
  border-radius: 0.9rem;
  padding: 1.5rem 1rem;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.method-tile:hover {
  border-color: #DA5A2A;
  background: rgba(218,90,42,0.06);
  transform: translateY(-3px);
}

/* ============ plans ============ */
.plan-card {
  background: #FFFDF8;
  border: 1px solid rgba(17,24,17,0.1);
  border-radius: 1.25rem;
  padding: 2.25rem;
  transition: transform 0.3s ease;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card--highlight {
  background: #111811;
  color: #F7F3EA;
  border-color: #111811;
}
.plan-card--highlight li { color: rgba(247,243,234,0.8); }

/* ============ quotes ============ */
.quote-card {
  background: #FFFDF8;
  border: 1px solid rgba(17,24,17,0.08);
  border-radius: 1.25rem;
  padding: 2.25rem;
}

/* ============ faq ============ */
.faq-item { border-bottom: 1px solid rgba(17,24,17,0.1); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 0;
  text-align: left;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}
.faq-icon {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.25rem;
  color: #DA5A2A;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-panel p {
  color: rgba(17,24,17,0.6);
  padding-bottom: 1.75rem;
  max-width: 40rem;
}
.faq-item.is-open .faq-panel { max-height: 200px; }

/* ============ cta ============ */
.cta-input {
  flex: 1;
  background: rgba(247,243,234,0.08);
  border: 1px solid rgba(247,243,234,0.25);
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  color: #F7F3EA;
  font-size: 0.9rem;
}
.cta-input::placeholder { color: rgba(247,243,234,0.4); }
.cta-input:focus { outline: none; border-color: #DA5A2A; }

/* ============ footer ============ */
.footer-link { transition: color 0.2s ease; }
.footer-link:hover { color: #DA5A2A; }

/* ============ magnetic buttons ============ */
.magnetic { will-change: transform; }

@media (max-width: 767px) {
  .flip-card { width: 100%; }
}
