/* VibeForge Tech — single stylesheet. Theme lives in the variables below. */
:root {
  --bg: #0E0E14;
  --bg-2: #14141C;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.09);
  --text: #F0F0F5;
  --muted: #A0A0B0;
  --faint: #6A6A7A;
  --teal: #2FD8C4;
  --purple: #8A6CFF;
  --grad: linear-gradient(120deg, #2FD8C4 0%, #8A6CFF 100%);
  --radius: 22px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* Per-app accents */
.accent-ml { --accent: #4FD1A5; --accent-2: #6B7BFF; }
.accent-he { --accent: #2BA79F; --accent-2: #F0A030; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg-2); padding: .5rem 1rem; z-index: 100; }

/* Background glow */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 15% -5%, rgba(47, 216, 196, 0.18), transparent 60%),
    radial-gradient(38rem 30rem at 95% 10%, rgba(138, 108, 255, 0.20), transparent 60%),
    radial-gradient(50rem 40rem at 50% 110%, rgba(138, 108, 255, 0.10), transparent 60%);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(14, 14, 20, 0.6);
  border-bottom: 1px solid var(--glass-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--glass-border); color: var(--text);
  border-radius: 10px; width: 42px; height: 42px; cursor: pointer; font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #0B0B10; box-shadow: 0 8px 30px rgba(47, 216, 196, 0.25); }
.btn-primary:hover { box-shadow: 0 12px 36px rgba(138, 108, 255, 0.35); }
.btn-ghost { background: var(--glass); border-color: var(--glass-border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero { padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 8vw, 5rem); text-align: center; }
.eyebrow {
  display: inline-block; padding: .35rem .9rem; border-radius: 999px;
  border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--muted); font-size: .85rem; margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: 1.08; margin: 0 auto 1.2rem;
  max-width: 14ch; letter-spacing: -1.5px; font-weight: 800;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 38rem; margin: 0 auto 2rem; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.2rem; }
.pill { padding: .35rem .85rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); font-size: .9rem; }

/* Sections */
section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.section-title { text-align: center; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .6rem; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 2.8rem; max-width: 36rem; }

/* Glass card */
.card {
  position: relative; background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.2rem);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.6rem; }
.app-card { overflow: hidden; display: flex; flex-direction: column; }
.app-card::before {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; height: 70%;
  background: radial-gradient(circle, var(--accent), transparent 65%); opacity: .18; pointer-events: none;
}
.app-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); flex-shrink: 0; }
.app-head h3 { margin: 0; font-size: 1.45rem; }
.app-head .tag { display: block; color: var(--muted); font-size: .92rem; }
.app-head .app-name { display: block; font-size: 1.45rem; }
.app-card p { color: var(--muted); margin: 0 0 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .65rem; align-items: flex-start; }
.ticks li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: .15rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, var(--teal)), var(--accent-2, var(--purple)));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; }
.more { display: inline-block; margin-top: 1.1rem; color: var(--muted); font-size: .93rem; }
.more:hover { color: var(--text); }

/* Promise strip */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.2rem; }
.promise { text-align: center; }
.promise .ico {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(47, 216, 196, .18), rgba(138, 108, 255, .18));
  border: 1px solid var(--glass-border); font-size: 1.5rem;
}
.promise h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.promise p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Product page */
.product-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; padding: clamp(3rem, 9vw, 6rem) 0 2rem; }
.product-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.1; letter-spacing: -1px; margin: 1rem 0; }
.product-hero .lead { color: var(--muted); font-size: 1.12rem; margin: 0 0 1.8rem; }
.product-hero .app-icon { width: 84px; height: 84px; border-radius: 24px; }
.phone {
  justify-self: center; width: min(260px, 70vw); aspect-ratio: 9 / 18.5; border-radius: 38px; padding: 12px;
  background: linear-gradient(160deg, #2A2A36, #121218); border: 1px solid var(--glass-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.phone-screen {
  height: 100%; border-radius: 28px; display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
              radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--accent-2) 40%, transparent), transparent 60%), #101016;
}
.phone-screen img { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 1rem; }
.phone-screen strong { display: block; font-size: 1.25rem; }
.phone-screen span { color: var(--muted); font-size: .88rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.2rem; }
.feature h3 { margin: 0 0 .7rem; font-size: 1.1rem; display: flex; gap: .6rem; align-items: center; }
.feature ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.feature li { margin-bottom: .3rem; }
.download { text-align: center; }
.download .actions { justify-content: center; margin-top: 1.5rem; }
.checksum { margin-top: 1.4rem; color: var(--faint); font-size: .85rem; word-break: break-all; }
.checksum code { color: var(--muted); }
.note { color: var(--muted); font-size: .92rem; max-width: 40rem; margin: 1rem auto 0; }

/* FAQ */
.faq { max-width: 50rem; margin: 0 auto; display: grid; gap: .8rem; }
.faq details { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; padding: 1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: .8rem 0 0; }

/* Legal / prose pages */
.prose { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) 0; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -.5px; margin-bottom: .4rem; }
.prose h2 { margin-top: 2.4rem; font-size: 1.3rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.08rem; }
.prose p, .prose li { color: #CFCFDA; }
.prose .meta { color: var(--muted); font-size: .92rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--glass-border); vertical-align: top; }
.prose th { color: var(--text); }
.prose .summary-box { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 16px; padding: 1rem 1.3rem; margin: 1.5rem 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--glass-border); padding: 2.5rem 0; margin-top: 2rem; color: var(--faint); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }
.footer-contact { margin: .6rem 0 0; }

/* 404 */
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.center-page h1 { font-size: clamp(4rem, 16vw, 8rem); margin: 0; line-height: 1; }

/* Scroll reveal (JS adds .js to <html>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Mobile */
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(14, 14, 20, 0.97); border-bottom: 1px solid var(--glass-border);
    display: none; padding: .5rem 1.25rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .8rem 0; font-size: 1.05rem; }
  .product-hero { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .phone { width: min(200px, 55vw); }
  .product-hero .app-head { justify-content: center; }
  .product-hero .actions { justify-content: center; }
  .actions .btn { flex: 1 1 auto; }
  .footer-grid { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
