/* ============================================================
   Climent Media — styles
   Dark, fast, privacy-first. Accent: fluorescent orange.
   ============================================================ */

:root {
  --bg: #070708;
  --bg-alt: #0c0c0e;
  --surface: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f4f2;
  --muted: #a2a29c;
  --accent: #ff5c00;
  --accent-bright: #ff7a26;
  --accent-glow: rgba(255, 92, 0, 0.35);
  --radius: 18px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }

h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Brand ---------- */

.nav-brand { display: inline-flex; align-items: center; gap: 0.65rem; }

.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
  color: #fff;
  flex-shrink: 0;
}

.brand-word {
  font-weight: 800; font-size: 0.72rem; line-height: 1.22;
  letter-spacing: 0.14em;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(7, 7, 8, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--border); background: rgba(7, 7, 8, 0.82); }

.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }

.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: #000 !important;
  background: var(--accent);
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-weight: 700 !important;
  box-shadow: 0 0 18px var(--accent-glow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover { box-shadow: 0 0 30px var(--accent-glow); transform: translateY(-1px); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #000;
  box-shadow: 0 4px 28px var(--accent-glow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 40px var(--accent-glow); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover { border-color: rgba(255, 92, 0, 0.5); transform: translateY(-2px); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem clamp(1.2rem, 5vw, 3rem) 5rem;
  overflow: hidden;
}

#neural {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.85;
}

.hero-glow {
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 0, 0.14) 0%, transparent 60%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(7, 7, 8, 0.6);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 0, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 92, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 0, 0); }
}

.accent-word { position: relative; color: var(--accent); white-space: nowrap; }

.accent-underline {
  position: absolute; left: 0; right: 0; bottom: 0.02em;
  height: 0.12em;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 999px;
  opacity: 0.6;
}

.hero-sub {
  margin: 1.6rem auto 0;
  max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
}

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

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  z-index: 2;
}

.hero-scroll span {
  position: absolute; top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--accent);
  animation: scrollhint 1.8s ease-in-out infinite;
}

@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Ticker ---------- */

.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.95rem 0;
  background: var(--bg-alt);
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  animation: ticker 30s linear infinite;
  will-change: transform;
}

.ticker-track span {
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

.ticker-track i { color: var(--accent); font-style: normal; font-size: 0.6rem; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

.section { padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.2rem, 5vw, 3rem); max-width: 1200px; margin: 0 auto; }

.section-alt {
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt .steps, .section-alt .section-head { max-width: 1200px; margin-left: auto; margin-right: auto; }

.section-head { max-width: 640px; margin-bottom: 3.2rem; }

.eyebrow {
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-sub { color: var(--muted); margin-top: 1rem; font-size: 1.02rem; }

/* ---------- Cards grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.1rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 92, 0, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover { transform: translateY(-4px); border-color: rgba(255, 92, 0, 0.35); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(255, 92, 0, 0.09);
  border: 1px solid rgba(255, 92, 0, 0.22);
  margin-bottom: 1.2rem;
}

.card-icon svg { width: 24px; height: 24px; }

.card p { color: var(--muted); font-size: 0.94rem; margin-top: 0.6rem; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  background: rgba(7, 7, 8, 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.step:hover { border-color: rgba(255, 92, 0, 0.35); transform: translateY(-4px); }

.step-num {
  display: inline-block;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step p { color: var(--muted); font-size: 0.93rem; margin-top: 0.55rem; }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
}

.about-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}

.about-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(255, 92, 0, 0.18));
  pointer-events: none;
}

.about-fallback {
  display: none;
  position: absolute; inset: 0;
  place-items: center;
}

.about-fallback span {
  font-size: 4rem; font-weight: 800; color: rgba(255, 255, 255, 0.14);
  letter-spacing: 0.04em;
}

.about-frame.img-missing img { display: none; }
.about-frame.img-missing .about-fallback { display: grid; }

.about-copy p { color: var(--muted); margin-top: 1rem; }
.about-copy strong { color: var(--text); }
.about-copy h2 { margin-top: 0.4rem; }

.about-facts { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.55rem; }
.about-facts li { color: var(--muted); font-size: 0.95rem; }
.fact-accent { color: var(--accent); margin-right: 0.5rem; }

/* ---------- Contact ---------- */

.section-contact { padding-bottom: clamp(5rem, 10vw, 8rem); }

.contact-box {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background:
    radial-gradient(600px circle at 50% -10%, rgba(255, 92, 0, 0.13), transparent 60%),
    var(--surface);
}

.contact-box .section-sub { max-width: 460px; margin-left: auto; margin-right: auto; }

.contact-lines {
  margin-top: 2.4rem;
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}

.contact-line {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 1.1rem 1.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 7, 8, 0.6);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 260px;
}

.contact-line:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 34px rgba(255, 92, 0, 0.18);
}

.contact-label {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}

.contact-value { font-weight: 600; font-size: 1.05rem; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2.6rem clamp(1.2rem, 5vw, 3rem) 2rem;
  background: var(--bg-alt);
}

.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.4rem;
  max-width: 1200px; margin: 0 auto;
}

.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }

.footer-links a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 1.8rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  color: var(--muted); font-size: 0.82rem;
}

.footer-privacy { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 9rem clamp(1.2rem, 5vw, 2rem) 5rem;
}

.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.6rem; }
.legal .legal-updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 2.6rem; }
.legal h2 { font-size: 1.35rem; margin: 2.6rem 0 0.8rem; }
.legal h3 { font-size: 1.05rem; margin: 1.8rem 0 0.5rem; }
.legal p, .legal li { color: var(--muted); font-size: 0.97rem; }
.legal p { margin-bottom: 0.9rem; }
.legal ul { margin: 0.4rem 0 1.1rem 1.3rem; display: grid; gap: 0.45rem; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); }

.legal-callout {
  border: 1px solid rgba(255, 92, 0, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 92, 0, 0.06);
  padding: 1.2rem 1.4rem;
  margin: 1.4rem 0;
}

.legal-callout p { margin: 0; }

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .pulse-dot, .hero-scroll span { animation: none; }
  #neural { display: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }

  .nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: 61px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: rgba(7, 7, 8, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 1.5rem 1.8rem;
    gap: 1.3rem;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }

  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.05rem; }

  /* Legal pages: simple nav with a visible back link, no hamburger */
  .nav-simple .nav-links {
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
    transform: none;
  }

  .nav-simple .nav-links a { font-size: 0.9rem; }

  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 340px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Technologies / platform logos ---------- */

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.6rem 1rem;
  background: var(--bg);
  transition: background 0.3s ease;
}

.logo-item:hover { background: var(--bg-alt); }

.logo-item svg {
  width: 30px; height: 30px;
  fill: var(--muted);
  transition: fill 0.3s ease, transform 0.3s ease;
}

.logo-item:hover svg { fill: var(--text); transform: translateY(-2px); }

.logo-item span {
  font-size: 0.82rem; font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.tech-note {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 760px;
}
.tech-note strong { color: var(--text); font-weight: 600; }

.tech-oss {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: 1.6rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem; font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.tech-oss:hover { border-color: rgba(255, 92, 0, 0.5); transform: translateY(-2px); }
.tech-oss svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- GitHub / download buttons on offer cards ---------- */

.offer-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }

.btn-github {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.btn-github:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.35); }
.btn-github svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Paperclip (future platform) ---------- */

.paperclip-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.paperclip-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--st-build, #ffb020);
  border: 1px solid rgba(255, 176, 32, 0.35);
  background: rgba(255, 176, 32, 0.1);
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.paperclip-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }


/* ---------- Distribution buttons (download / github / soon) — used site-wide ---------- */

.btn-download, .btn-gh, .btn-soon {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.btn-download {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #000; border: 1px solid transparent;
  box-shadow: 0 4px 28px var(--accent-glow);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 40px var(--accent-glow); }
.btn-gh {
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
.btn-gh:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.35); }
.btn-download svg, .btn-gh svg, .btn-soon svg { width: 20px; height: 20px; fill: currentColor; }
/* "Soon" = clearly not active yet (honest placeholder, not clickable) */
.btn-soon {
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--muted);
  cursor: not-allowed;
}
.btn-soon em {
  font-style: normal; font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); opacity: 0.8;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.08rem 0.45rem;
}
