/* ═══════════════════════════════════════════════
   CORDOLLAPDF — STYLESHEET
   ═══════════════════════════════════════════════ */

/* ── Custom Properties ───────────────────────── */
:root {
  --bg:        #0b0b0f;
  --bg-1:      #111118;
  --bg-2:      #18181f;
  --border:    #1e1e28;
  --text:      #e8e8f0;
  --text-2:    #8888a8;
  --text-3:    #48485e;

  /* ── Edit these two to change the accent everywhere ── */
  --accent:          #5e30dbad;
  --accent-2:        #2222227e;
  /* ─────────────────────────────────────────────────── */
  --accent-rgb:      150, 150, 150;   /* keep in sync with --accent */
  --accent-hi:       rgb(122, 122, 122);
  --accent-glow:     rgba(var(--accent-rgb), 0.11);
  --accent-gradient: linear-gradient(to right, var(--accent), var(--accent-2));
  --border-hi:       rgba(var(--accent-rgb), 0.4);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 12px;

  --ease: 0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* ── Layout helpers ──────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }

/* ── Typography helpers ──────────────────────── */
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}
.section-sub {
  margin-top: 14px;
  text-align: center;
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 520px;
  margin-inline: auto;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: all var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.38);
}
.btn--notify {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn--notify:hover {
  border-color: var(--border-hi);
  color: var(--accent-hi);
  background: var(--accent-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--border-hi);
  color: var(--accent-hi);
  background: var(--accent-glow);
}

/* ── Screenshot frames ───────────────────────── */
.screenshot-frame {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: none;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.05),
      0 40px 100px rgba(0, 0, 0, 0.65),
      0 0 80px rgba(var(--accent-rgb), 0.07);
  background: var(--bg-1);
  /* subtle glow + depth shadow */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(var(--accent-rgb), 0.07);
  /* minimum height so empty frames are visible */
  min-height: 180px;
  display: flex;
  align-items: stretch;
}
.screenshot-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav__logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--ease);
}
.nav__links a:hover { color: var(--text); }

/* hamburger button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.25s ease;
}
/* animated X on open */
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  padding: 96px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* accent gradient behind hero text */
.hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 800px;
  background: radial-gradient(ellipse at center,
    rgba(var(--accent-rgb), 0.13) 0%,
    rgba(var(--accent-rgb), 0.05) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero__content { position: relative; }

.hero__logo {
  height: 150px;
  width: auto;
  margin: 0 auto 28px;
  position: relative;
  right: 12px;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 500;
  font-stretch: condensed;
  letter-spacing: -0.05em;
  line-height: 1;
  /* gradient text */
  background: linear-gradient(155deg, #ffffff 25%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 22px;
}

.hero__tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.hero__desc {
  color: var(--text-2);
  font-size: 0.98rem;
  max-width: 480px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero__screenshot .screenshot-frame {
  max-width: 880px;
  margin: 0 auto;
}

/* gradient fade blending hero into next section */
.hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}


/* ══════════════════════════════════════════════
   SHOWCASE  (alternating screenshot rows)
   ══════════════════════════════════════════════ */
.showcase {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.showcase__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-top: 80px;
}
.showcase__item:first-of-type { margin-top: 56px; }

/* flip: move visual to the left */
.showcase__item--flip .showcase__visual { order: -1; }

.showcase__label {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.showcase__text h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.showcase__text p {
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.78;
}

.showcase__visual .screenshot-frame {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.showcase__visual:hover .screenshot-frame {
  transform: scale(1.025);
}

/* ══════════════════════════════════════════════
   PRO
   ══════════════════════════════════════════════ */
.pro__preview {
  margin-top: 56px;
}

.pro__preview video {
  width: 100%;
  display: block;
  border-radius: var(--r-md);
}

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

.pro__feature-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--ease), transform var(--ease);
}
.pro__feature-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
}

.pro__feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.pro__feature-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.6;
}

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

/* ══════════════════════════════════════════════
   DOWNLOAD
   ══════════════════════════════════════════════ */
.download__grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
}

.download__card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 210px;
  transition: border-color var(--ease), transform var(--ease);
}
.download__card:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
}

.download__os-icon {
  color: var(--text-2);
  margin-bottom: 8px;
}

.download__platform {
  font-size: 1rem;
  font-weight: 700;
}

.download__meta {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 16px;
}

.download__note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-3);
}
.inline-link {
  color: var(--accent);
  text-decoration: none;
}

.download__note a {
  color: var(--text-2);
  transition: color var(--ease);
}
.download__note a:hover { color: var(--accent-hi); }

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

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

.footer__brand {
  font-weight: 700;
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  gap: 24px;
}
.footer__links a {
  font-size: 0.83rem;
  color: var(--text-2);
  transition: color var(--ease);
}
.footer__links a:hover { color: var(--text); }

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ══════════════════════════════════════════════
   SCROLL REVEAL  (driven by JS IntersectionObserver)
   ══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .showcase__item {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* reset flip on narrow screens */
  .showcase__item--flip .showcase__visual { order: 0; }
}

@media (max-width: 600px) {
  /* slide-down mobile nav */
  .nav__links {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 11, 15, 0.97);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .nav__links a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__hamburger    { display: flex; }

  .download__grid { flex-direction: column; align-items: stretch; }
  .download__card { min-width: unset; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}
