/* =====================================================================
   NOVA — landing page styles
   Design tokens: edit these to re-theme the whole site in one place.
   ===================================================================== */
:root {
  --bg: #050507;
  --bg-soft: rgba(255, 255, 255, 0.03);
  --line: #1a1a1f;          /* grid lines */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(34, 211, 238, 0.45);

  --accent: #d6a15e;        /* <- your brand color (coffee caramel) */
  --accent-hover: #e8ba7c;
  --accent-rgb: 214, 161, 94;
  --glow: #d6a15e;          /* radial glow color */

  /* glass surfaces */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.1);

  --text: #ffffff;
  --text-70: rgba(255, 255, 255, 0.7);
  --text-60: rgba(255, 255, 255, 0.6);
  --text-50: rgba(255, 255, 255, 0.5);

  --radius: 0.625rem;
  --radius-xl: 1rem;
  --maxw: 80rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 70% -10%, rgba(var(--accent-rgb), 0.12), transparent 60%),
    radial-gradient(50rem 40rem at 10% 110%, rgba(var(--accent-rgb), 0.08), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container-narrow { max-width: 56rem; }

/* ----- Custom scrollbar (matches original) ----- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(var(--accent-rgb),.4), rgba(var(--accent-rgb),.7), rgba(var(--accent-rgb),.4));
  border: 2px solid var(--bg);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .6rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.05); }
.btn-lg { padding: .85rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--border-hover); }

/* =====================================================================
   Navbar
   ===================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}
.logo { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.logo .accent { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links > a:not(.btn) { color: var(--text-70); font-weight: 500; transition: color .2s; }
.nav-links > a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem 0 4rem;
}
/* faint grid, faded toward the center so text stays clean */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 15%, #000 80%);
  mask-image: radial-gradient(ellipse at center, transparent 15%, #000 80%);
  opacity: .6;
}

/* animated gold glow blobs */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  background: radial-gradient(var(--glow) 40%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.glow-a { width: 26rem; height: 26rem; top: 6rem; left: -6rem; opacity: .22; animation: glow-float 8s ease-in-out infinite; }
.glow-b { width: 22rem; height: 22rem; bottom: 2rem; right: -5rem; opacity: .18; animation: glow-float 10s ease-in-out infinite reverse; }
.glow-c { width: 30rem; height: 30rem; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: .12; }

@keyframes glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .2; }
  25% { transform: translate(20px, -20px) scale(1.1); opacity: .3; }
  50% { transform: translate(-20px, 20px) scale(1.2); opacity: .35; }
  75% { transform: translate(25px, 10px) scale(1.1); opacity: .3; }
}

.hero-inner { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.gradient {
  background: linear-gradient(90deg, var(--accent), #fff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-70);
  line-height: 1.7;
}

.hero-cta { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* =====================================================================
   Generic section
   ===================================================================== */
.section { position: relative; padding: 6rem 0; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3.5rem; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { margin-top: 1rem; color: var(--text-60); font-size: 1.05rem; }

/* =====================================================================
   Features grid (bordered cards with sliding gold accent bar)
   ===================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.feature {
  position: relative;
  display: flex;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color .3s;
}
.feature:hover { background: rgba(255, 255, 255, 0.03); }
.feature-bar {
  width: 3px;
  flex-shrink: 0;
  background: var(--border);
  transition: background-color .3s;
}
.feature:hover .feature-bar { background: var(--accent); }
.feature-body { padding: 1.75rem; transition: transform .3s; }
.feature:hover .feature-body { transform: translateX(6px); }
.feature-icon {
  font-size: 1.75rem;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.feature p { color: var(--text-60); font-size: .95rem; line-height: 1.6; }

/* =====================================================================
   Pricing
   ===================================================================== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 52rem;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.18); }
.best-value {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .3rem .9rem;
  border-radius: 999px;
}
.price-name { font-size: .85rem; font-weight: 600; letter-spacing: .1em; color: var(--text-60); }
.price-row { display: flex; align-items: baseline; gap: .4rem; margin: .75rem 0; }
.price-amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.price-per { color: var(--text-50); font-size: .95rem; }
.price-desc { color: var(--text-60); font-size: .95rem; margin-bottom: 1.5rem; }
.price-features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: .75rem; flex-grow: 1; }
.price-features li { position: relative; padding-left: 1.75rem; color: var(--text-70); font-size: .95rem; }
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* =====================================================================
   FAQ accordion
   ===================================================================== */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}
.faq-icon { color: var(--accent); font-size: 1.5rem; font-weight: 400; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 0 1.4rem; color: var(--text-60); line-height: 1.7; max-width: 60ch; }

/* =====================================================================
   CTA + signup
   ===================================================================== */
.cta { text-align: center; overflow: hidden; }
.cta-inner { position: relative; z-index: 10; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.cta p { margin: 1rem auto 2rem; color: var(--text-60); max-width: 38rem; font-size: 1.05rem; }
.signup { display: flex; gap: .75rem; max-width: 30rem; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.signup input {
  flex: 1 1 14rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  outline: none;
  transition: border-color .2s;
}
.signup input:focus { border-color: var(--accent); }
.signup input::placeholder { color: var(--text-50); }
.signup-msg { margin-top: 1rem; font-size: .95rem; min-height: 1.2rem; }
.signup-msg.ok { color: var(--accent); }
.signup-msg.err { color: #ff6b6b; }

/* =====================================================================
   Footer
   ===================================================================== */
.footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-tag { color: var(--text-50); font-size: .9rem; margin-top: .75rem; max-width: 22rem; }
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--text-60); font-size: .95rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-50);
  font-size: .85rem;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 4.25rem;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
}

/* ===================== Landing (Coffee Machine Simulator) ===================== */
.landing { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.5rem; }
.landing-card {
  width: 100%; max-width: 40rem; text-align: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl); backdrop-filter: blur(18px);
  padding: 3rem 2rem;
}
.landing-mark { font-size: 3.5rem; line-height: 1; margin-bottom: 1rem; }
.landing-title { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.landing-sub { color: var(--text-60); margin: 1rem auto 2rem; max-width: 32rem; }
.landing-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.accent { color: var(--accent); }
