/* ============================================================
   Nabıyon — site styles
   Ink navy + brand teal→sky gradient. Bricolage / Plex Sans / Plex Mono.
   ============================================================ */

:root {
  --ink:        #0A1620;
  --ink-2:      #0C1A26;
  --surface:    #0F1E2B;
  --surface-2:  #13283A;
  --line:       rgba(124, 149, 166, 0.18);
  --line-soft:  rgba(124, 149, 166, 0.10);

  --teal:       #35E6B2;
  --sky:        #4CC9FF;
  --grad:       linear-gradient(120deg, #35E6B2 0%, #4CC9FF 100%);

  --mist:       #E8F0F4;
  --muted:      #7C95A6;
  --muted-2:    #5C7385;

  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1140px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(76, 201, 255, 0.10), transparent 60%),
    radial-gradient(800px 600px at -10% 10%, rgba(53, 230, 178, 0.08), transparent 55%),
    var(--ink);
  color: var(--mist);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.04; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 22, 32, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 18px rgba(53, 230, 178, 0.25); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--muted); font-size: 0.96rem; transition: color 0.18s; }
.nav-links a:hover { color: var(--mist); }
.nav-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--mist); padding: 6px; margin: -6px; line-height: 0; }
.nav-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle .ic-close { display: none; }
.nav.menu-open .nav-toggle .ic-menu { display: none; }
.nav.menu-open .nav-toggle .ic-close { display: block; }
.nav-contract { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 500; padding: 7px 14px; border: 1px solid rgba(53, 230, 178, 0.35); border-radius: 999px; color: var(--mist); transition: background 0.18s, border-color 0.18s; white-space: nowrap; }
.nav-contract:hover { background: rgba(53, 230, 178, 0.10); border-color: rgba(53, 230, 178, 0.6); }
.nav-contract svg { width: 15px; height: 15px; flex: none; }
.nav-right { display: flex; align-items: center; gap: 22px; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding-left: 18px; border-left: 1px solid var(--line-soft); }
.lang a { display: inline-flex; padding: 3px; border-radius: 5px; border: 1px solid transparent; opacity: 0.4; transition: opacity 0.18s, border-color 0.18s; }
.lang a:hover { opacity: 1; }
.lang a.active { opacity: 1; border-color: var(--line); }
.lang svg { width: 23px; height: 15px; border-radius: 3px; overflow: hidden; display: block; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 86px 0 70px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
.hero .lede {
  color: var(--muted);
  font-size: 1.16rem;
  max-width: 30ch;
  margin: 22px 0 0;
}
.hero .sub-en {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted-2);
  margin-top: 14px;
  letter-spacing: 0.01em;
}

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  cursor: not-allowed;
  user-select: none;
  transition: border-color 0.2s, transform 0.2s;
}
.store-btn:hover { border-color: rgba(76,201,255,0.4); transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .st-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .st-small { font-size: 0.66rem; color: var(--muted); letter-spacing: 0.04em; }
.store-btn .st-big { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.soon-pill {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--grad);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 4px;
  font-weight: 600;
}

/* ---- phone / chat signature ---- */
.phone-stage { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 300px;
  border-radius: 42px;
  padding: 14px;
  background: linear-gradient(160deg, #18324a, #0b1822);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03) inset;
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.12);
}
.phone-screen {
  background: var(--ink);
  border-radius: 30px;
  padding: 38px 16px 18px;
  height: 540px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line-soft); }
.chat-head .av { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--ink); }
.chat-head .who { font-weight: 600; font-size: 0.95rem; }
.chat-head .lock { margin-left: auto; font-family: var(--mono); font-size: 0.62rem; color: var(--teal); letter-spacing: 0.08em; }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 6px; flex: 1; }
.bubble {
  max-width: 80%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.bubble.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--grad); color: var(--ink); border-bottom-right-radius: 5px; font-weight: 500; }
.bubble.cipher {
  align-self: flex-end;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal);
  background: rgba(53, 230, 178, 0.07);
  border: 1px solid rgba(53, 230, 178, 0.22);
  word-break: break-all;
  min-height: 60px;
}
.enc-tag { font-family: var(--mono); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.1em; align-self: flex-end; margin-top: -4px; }

/* ============================================================
   Trust ticker
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
}
.ticker .wrap { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.ticker span b { color: var(--mist); font-weight: 600; }
.ticker .dot { color: var(--teal); }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 96px 0; }
.section-head { max-width: 56ch; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 1.08rem; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.feat {
  background: var(--surface);
  padding: 32px 28px 36px;
  transition: background 0.2s;
}
.feat:hover { background: var(--surface-2); }
.feat .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(76,201,255,0.10); border: 1px solid rgba(76,201,255,0.22); }
.feat .ic svg { width: 22px; height: 22px; stroke: var(--teal); }
.feat h3 { font-size: 1.18rem; }
.feat p { color: var(--muted); font-size: 0.98rem; margin: 10px 0 0; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--teal);
  position: absolute;
  top: -11px;
  background: var(--ink);
  padding-right: 12px;
  letter-spacing: 0.1em;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); margin: 12px 0 0; font-size: 0.98rem; }

/* CTA */
.cta-band {
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(53,230,178,0.12), transparent 65%),
    var(--surface);
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--muted); margin: 18px auto 0; max-width: 46ch; }
.cta-band .stores { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { margin-bottom: 16px; }
.footer .tag { color: var(--muted); max-width: 32ch; font-size: 0.96rem; }
.footer-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.95rem; padding: 5px 0; transition: color 0.18s; }
.footer-col a:hover { color: var(--mist); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.04em; }

.app-by { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; font-family: var(--mono); font-size: clamp(0.9rem, 2.2vw, 1.15rem); letter-spacing: 0.04em; color: var(--muted); }
.app-by-logo { display: inline-flex; align-items: center; background: #F2F2EE; border-radius: 12px; padding: 10px 18px; box-shadow: 0 6px 22px rgba(0,0,0,0.3); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.app-by-logo:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.38); }
.app-by-logo img { height: clamp(30px, 6vw, 48px); display: block; }

/* ============================================================
   Blog
   ============================================================ */
.blog-hero { padding: 80px 0 30px; }
.blog-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); max-width: 16ch; }
.blog-hero p { color: var(--muted); font-size: 1.12rem; max-width: 52ch; margin: 20px 0 0; }

.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 30px 0 60px;
}
.featured .art { background: var(--grad); min-height: 320px; position: relative; overflow: hidden; }
.featured .art .glyph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 9rem; color: rgba(10,22,32,0.22); }
.featured .meta { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
.tagline-row { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.cat {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(53,230,178,0.3); padding: 4px 10px; border-radius: 999px;
}
.date { font-family: var(--mono); font-size: 0.74rem; color: var(--muted-2); }
.featured h2 { font-size: 1.9rem; }
.featured p { color: var(--muted); margin: 16px 0 0; }
.read { margin-top: 24px; font-family: var(--mono); font-size: 0.82rem; color: var(--sky); letter-spacing: 0.04em; }
.read::after { content: " →"; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(76,201,255,0.35); }
.card .top { height: 130px; background: var(--surface-2); position: relative; overflow: hidden; }
.card .top .bars { position: absolute; inset: 0; opacity: 0.5; }
.card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card .tagline-row { margin-bottom: 14px; }
.card h3 { font-size: 1.18rem; line-height: 1.2; }
.card p { color: var(--muted); font-size: 0.92rem; margin: 10px 0 0; flex: 1; }
.card .read { margin-top: 18px; font-size: 0.76rem; }

.blog-note {
  margin: 64px 0 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}
.blog-note b { color: var(--mist); font-family: var(--display); }

/* CMS-driven blog states + rendered post body */
.blog-status { color: var(--muted); font-family: var(--mono); font-size: 0.9rem; }
.post-cover { width: 100%; border-radius: var(--radius); margin-top: 28px; }
.post-content { margin-top: 8px; }
.post-content ul, .post-content ol { color: var(--muted); margin-top: 18px; padding-left: 22px; line-height: 1.7; }
.post-content li { margin: 6px 0; }
.post-content a { color: var(--sky); text-decoration: underline; }
.post-content img { max-width: 100%; border-radius: 12px; margin: 20px 0; }
.post-content blockquote { border-left: 2px solid var(--teal); margin: 24px 0; padding: 4px 0 4px 18px; color: var(--mist); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero .lede { max-width: none; }
  .phone-stage { order: -1; }
  .feat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .featured { grid-template-columns: 1fr; }
  .featured .art { min-height: 180px; }
  .post-grid { grid-template-columns: 1fr; }

  /* ---- mobile navigation: collapse into a hamburger panel ---- */
  .nav-toggle { display: inline-flex; }
  .nav-right { display: none; }

  .nav.menu-open .nav-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 16px 22px 22px;
    background: var(--surface);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45);
    animation: nav-drop 0.28s ease;
  }

  .nav.menu-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav.menu-open .nav-links > a {
    padding: 13px 12px;
    border-radius: 11px;
    font-size: 1.05rem;
  }
  .nav.menu-open .nav-links > a:hover { background: rgba(255, 255, 255, 0.05); }
  .nav.menu-open .nav-contract { justify-content: flex-start; align-self: flex-start; }
  .nav.menu-open .nav-cta { text-align: center; }

  .nav.menu-open .lang {
    justify-content: center;
    gap: 10px;
    padding: 14px 0 4px;
    margin-top: 8px;
    border-left: none;
    border-top: 1px solid var(--line-soft);
  }
  .nav.menu-open .lang svg { width: 30px; height: 20px; }
}

body.nav-locked { overflow: hidden; }

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
