/* ==========================================================================
   Tacet marketing landing page
   Flat, black & white design system (matches the Tacet app's AppColors),
   single mint accent reserved for highlights.
   ========================================================================== */

@font-face {
  font-family: 'Univa Nova';
  src: url('/fonts/UnivaNova-Bold.woff2') format('woff2'),
       url('/fonts/UnivaNova-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Univa Nova';
  src: url('/fonts/UnivaNova-SemiBold.woff2') format('woff2'),
       url('/fonts/UnivaNova-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Univa Nova';
  src: url('/fonts/UnivaNova-Medium.woff2') format('woff2'),
       url('/fonts/UnivaNova-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Univa Nova';
  src: url('/fonts/UnivaNova-Regular.woff2') format('woff2'),
       url('/fonts/UnivaNova-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --title: #111111;
  --subtitle: #717171;
  --button-main: #111111;
  --button-main-text: #ffffff;
  --button-main-press: #2d2d2d;
  --button-default: #f2f2f5;
  --accent: #01c896;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --icon-bg: #f2f2f5;
  --hr-line: #e6e6e6;
  --danger: #df7777;
  --shadow: 0 8px 30px rgba(17, 17, 17, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --title: #ffffff;
    --subtitle: #9a9a9a;
    --button-main: #ffffff;
    --button-main-text: #0a0a0a;
    --button-main-press: #e1e1e1;
    --button-default: #1c1c1e;
    --accent: #01fbb9;
    --card-bg: #1c1c1e;
    --card-border: rgba(255, 255, 255, 0.08);
    --icon-bg: #1c1c1e;
    --hr-line: #28282a;
    --danger: #df7777;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--title);
  font-family: 'Univa Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { margin: 0; padding: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn-pill:active { transform: scale(.97); }

.btn-primary {
  background: var(--button-main);
  color: var(--button-main-text);
}
.btn-primary:hover { background: var(--button-main-press); }

.btn-secondary {
  background: transparent;
  color: var(--title);
  border-color: var(--card-border);
}
.btn-secondary:hover { background: var(--icon-bg); }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--icon-bg);
  border: 1px solid var(--card-border);
  color: var(--title);
  font-weight: 600;
  font-size: 14px;
}
.btn-store img { width: 20px; height: 20px; }
.store-row.on-dark .btn-store {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}
.header .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo-wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .5px;
}
.nav-main ul {
  display: flex;
  gap: 32px;
}
.nav-main a {
  font-size: 15px;
  font-weight: 500;
  color: var(--subtitle);
}
.nav-main a:hover { color: var(--title); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  background: var(--icon-bg);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger span,
.burger span::before,
.burger span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--title);
  position: relative;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

.mobile-menu {
  display: none;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--card-border);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.mobile-menu a { font-size: 16px; font-weight: 500; }

/* ---------- Section base ---------- */

.section { padding: 96px 0; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section h2 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 16px;
  max-width: 720px;
}
.section .subtitle {
  font-size: 18px;
  color: var(--subtitle);
  max-width: 620px;
  margin: 0 0 40px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

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

.hero {
  padding: 64px 0 40px;
  text-align: center;
}
.hero .top-text {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--icon-bg);
  border: 1px solid var(--card-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--subtitle);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero .subtitle {
  margin: 0 auto 36px;
  font-size: 19px;
  max-width: 560px;
}
.hero .store-row { justify-content: center; margin-bottom: 56px; }

.hero-stage {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.hero-stage .float-card {
  position: absolute;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.hero-stage .float-card.card-left {
  left: -70px;
  top: 90px;
  width: 160px;
}
.hero-stage .float-card.card-right {
  right: -60px;
  bottom: 140px;
  width: 140px;
}
@media (max-width: 900px) {
  .hero-stage .float-card { display: none; }
}

/* ---------- Phone mockup ---------- */

.phone {
  width: 300px;
  margin: 0 auto;
  border-radius: 46px;
  background: #111;
  padding: 12px;
  box-shadow: var(--shadow);
}
.phone .screen {
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  aspect-ratio: 300 / 620;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone .notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  border-radius: 20px;
  background: #111;
  z-index: 5;
}
.phone .statusbar {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--title);
}
.phone .screen-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }

.mock-balance-label { font-size: 12px; color: var(--subtitle); margin: 20px 0 4px; text-align: center; }
.mock-balance { font-size: 34px; font-weight: 700; text-align: center; margin-bottom: 22px; }
.mock-actions { display: flex; justify-content: space-around; margin-bottom: 24px; }
.mock-action { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mock-action .circle {
  width: 44px; height: 44px; border-radius: 100px;
  background: var(--icon-bg); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.mock-action span { font-size: 10px; color: var(--title); font-weight: 500; }
.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 16px; background: var(--card-bg);
  border: 1px solid var(--card-border); margin-bottom: 8px;
}
.mock-row .coin { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.mock-row .dot { width: 22px; height: 22px; border-radius: 100px; }
.mock-row .val { font-size: 12px; font-weight: 600; }
.mock-navbar {
  margin-top: auto;
  display: flex; justify-content: space-around;
  padding: 10px 4px 14px;
  border-top: 1px solid var(--card-border);
}
.mock-navbar .nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8px; color: var(--subtitle); font-weight: 600; }
.mock-navbar .nav-item.active { color: var(--accent); }

.mock-lock { align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.mock-lock .lock-icon {
  width: 64px; height: 64px; border-radius: 20px; background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px;
}
.mock-lock h4 { font-size: 18px; margin: 0 0 8px; }
.mock-lock p { font-size: 13px; color: var(--subtitle); margin: 0 0 24px; }
.mock-lock .dots { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; }
.mock-lock .dots span { width: 12px; height: 12px; border-radius: 100px; background: var(--card-border); }
.mock-lock .dots span.filled { background: var(--title); }
.mock-lock .keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.mock-lock .keypad .key {
  aspect-ratio: 1; border-radius: 100px; background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px;
}

/* ---------- Why ---------- */

.why { text-align: center; }
.why .tags {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 48px;
}
.why .tags span {
  padding: 10px 18px; border-radius: 999px; background: var(--icon-bg);
  border: 1px solid var(--card-border); font-size: 14px; font-weight: 500;
}

/* ---------- Standard ---------- */

.standart-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.standart-box .top-text { color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.standart-box h2 { font-size: 34px; }
.standart-text h3 { font-size: 20px; margin: 24px 0 10px; }
.standart-text p { color: var(--subtitle); font-size: 15px; line-height: 1.6; }
.standart-visual {
  background: var(--icon-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.standart-visual .mock-row .dot.eth { background: #627eea; }
.standart-visual .mock-row .dot.bnb { background: #f0b90b; }
.standart-visual .mock-row .dot.sol { background: #14f195; }
.standart-visual .mock-row .dot.trx { background: #ff0013; }

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

/* ---------- Architecture ---------- */

.architecture .flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.architecture .item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow);
}
.architecture .item img { width: 40px; height: 40px; margin-bottom: 20px; }
.architecture .item h3 { font-size: 18px; margin: 0 0 10px; }
.architecture .item p { font-size: 14px; color: var(--subtitle); line-height: 1.6; margin: 0; }

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

/* ---------- Ecosystem ---------- */

.ecosystem { background: var(--icon-bg); }
.ecosystem .flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.ecosystem h2 { font-size: 34px; }
.ecosystem > .container > .flex > .col > p { color: var(--subtitle); font-size: 16px; margin: 0 0 24px; }
.ecosystem ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.ecosystem ul li { font-size: 15px; color: var(--title); line-height: 1.5; }
.ecosystem ul li::before { content: '— '; color: var(--accent); font-weight: 700; }
.ecosystem-visual {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  display: flex;
  gap: 24px;
  justify-content: center;
}

@media (max-width: 900px) {
  .ecosystem .flex { grid-template-columns: 1fr; }
  .ecosystem-visual { flex-direction: column; align-items: center; }
}

/* ---------- Key elements ---------- */

.key .flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.key-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
}
.key-item .icon-box {
  width: 56px; height: 56px; border-radius: 18px; background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.key-item .icon-box img { width: 28px; height: 28px; }
.key-item h3 { font-size: 18px; margin: 0 0 10px; }
.key-item p { font-size: 14px; color: var(--subtitle); line-height: 1.6; margin: 0; }

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

/* ---------- FAQ ---------- */

.faq h2 { text-align: center; margin: 0 auto 48px; }
.faq .flex { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.acc-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card-bg);
}
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.acc-btn .number { font-size: 13px; color: var(--subtitle); font-weight: 600; width: 24px; flex-shrink: 0; }
.acc-btn span { flex: 1; font-size: 16px; font-weight: 600; }
.acc-btn .acc-icon {
  width: 28px; height: 28px; border-radius: 100px; background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .2s ease;
}
.acc-item.is-open .acc-btn .acc-icon { transform: rotate(90deg); }
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.acc-item.is-open .acc-content { max-height: 300px; }
.acc-content p { margin: 0; padding: 0 22px 20px 62px; color: var(--subtitle); font-size: 15px; line-height: 1.6; }

/* ---------- Download CTA ---------- */

.download .download-box {
  background: var(--title);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 72px 40px;
  text-align: center;
}
.download .top-flex {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.download .top-flex img { width: 18px; height: 18px; }
.download h2 { color: var(--bg); font-size: 40px; margin: 0 auto 16px; max-width: 600px; }
.download p { color: rgba(255,255,255,.7); font-size: 17px; margin: 0 auto 36px; max-width: 480px; }

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

.footer { padding: 72px 0 32px; border-top: 1px solid var(--card-border); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-text { color: var(--subtitle); font-size: 15px; max-width: 360px; }
.social { display: flex; gap: 12px; }
.social a {
  width: 40px; height: 40px; border-radius: 100px; background: var(--icon-bg);
  display: flex; align-items: center; justify-content: center;
}
.social img { width: 18px; height: 18px; }
.footer .flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
}
.nav-footer ul { display: flex; gap: 28px; flex-wrap: wrap; }
.nav-footer a, .privacy-menu a { font-size: 14px; color: var(--subtitle); }
.nav-footer a:hover, .privacy-menu a:hover { color: var(--title); }
.privacy-menu { display: flex; gap: 24px; }

/* ---------- Simple page hero (Press kit / Privacy / Terms) ---------- */

.page-hero {
  padding: 72px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}
.page-hero .section-tag { display: block; margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; margin: 0 0 16px; }
.page-hero p { color: var(--subtitle); font-size: 17px; max-width: 560px; margin: 0 auto; }
.page-hero .updated { font-size: 13px; color: var(--subtitle); margin-top: 20px; }

/* ---------- Legal / long-form article content ---------- */

.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 16px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--subtitle);
  margin: 0 0 16px;
}
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 4px;
}
.legal-content ul li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--subtitle);
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
}
.legal-content ul li::before {
  content: '—';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}
.legal-content strong { color: var(--title); }
.legal-content a { color: var(--title); text-decoration: underline; text-underline-offset: 3px; }

.disclaimer-box {
  background: var(--icon-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--subtitle);
  line-height: 1.6;
  margin-bottom: 40px;
}
.disclaimer-box strong { color: var(--title); }

/* ---------- Press kit ---------- */

.press-section { padding: 0 0 64px; }
.press-section h2 { font-size: 26px; margin: 0 0 20px; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fact-grid .fact {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.fact-grid .fact .num { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.fact-grid .fact .label { font-size: 13px; color: var(--subtitle); }

.logo-showcase {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.logo-card {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-card.on-light { background: #ffffff; }
.logo-card.on-dark { background: #0a0a0a; }
.logo-card .wordmark { font-size: 32px; font-weight: 700; letter-spacing: .5px; }
.logo-card.on-light .wordmark { color: #111111; }
.logo-card.on-dark .wordmark { color: #ffffff; }
.logo-card .wordmark .dot { color: var(--accent); }

.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.swatch { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--card-border); }
.swatch .chip { height: 84px; }
.swatch .meta { padding: 12px 14px; background: var(--card-bg); }
.swatch .meta .name { font-size: 13px; font-weight: 600; }
.swatch .meta .hex { font-size: 12px; color: var(--subtitle); font-family: monospace; }

.boilerplate {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--subtitle);
}

.download-assets {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .fact-grid, .swatches { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .nav-main, .header-actions .store-row { display: none; }
  .burger { display: flex; }
  .section { padding: 64px 0; }
  .section h2 { font-size: 28px; }
  .architecture .flex, .key .flex { grid-template-columns: 1fr; }
  .legal-content { padding: 40px 20px 64px; }
}
