@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&display=swap');

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

:root {
  --bg:      #0e0e0f;
  --bg2:     #161618;
  --bg3:     #1e1e21;
  --bg4:     #26262a;
  --text:    #f2f0eb;
  --text2:   #c8c5be;
  --text3:   #a09d99;
  --accent:  #e8ff47;
  --accent2: #47ffd4;
  --red:     #ff6b6b;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --fhead:   'Syne', sans-serif;
  --fmono:   'DM Mono', monospace;
  --r:       10px;
  --rl:      16px;
  --max:     760px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--fmono);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(14,14,15,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex; align-items: center;
  padding: 0 1.25rem; gap: 1rem;
}

.nav-logo {
  font-family: var(--fhead);
  font-weight: 800; font-size: 16px;
  text-decoration: none; color: var(--text);
  white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  color: var(--text2); padding: 6px; border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: var(--bg3); color: var(--text); }
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

.nav-links {
  display: flex; align-items: center;
  gap: 2px; list-style: none; margin-left: auto;
}
.nav-links a {
  font-size: 12px; color: var(--text2);
  text-decoration: none; padding: 6px 10px; border-radius: 8px;
  transition: color .15s, background .15s;
  white-space: nowrap;
  display: flex; align-items: center; gap: 5px;
}
.nav-links a:hover { color: var(--text); background: var(--bg3); }
.nav-links a.active { color: var(--accent); }

.nav-badge {
  font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--bg4); color: var(--text3);
  padding: 2px 5px; border-radius: 4px;
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: 56px; left: 0; right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border2);
    flex-direction: column; align-items: stretch;
    padding: .75rem 1rem 1rem; gap: 2px;
    z-index: 199;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 14px; border-radius: var(--r); }
}

/* ===== HERO ===== */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 3.25rem 1.25rem 2rem;
  position: relative; z-index: 1;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(232,255,71,.08);
  border: 1px solid rgba(232,255,71,.18);
  padding: 5px 13px; border-radius: 100px;
  margin-bottom: 1.2rem;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: dot 2.2s ease-in-out infinite;
}
@keyframes dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.35; transform:scale(.6); }
}

.hero h1 {
  font-family: var(--fhead);
  font-size: clamp(1.85rem, 6vw, 3.1rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -.025em; margin-bottom: .85rem;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 em.teal { color: var(--accent2); }

.hero-desc {
  font-size: 15px; color: var(--text2);
  max-width: 490px; line-height: 1.7;
}

/* ===== CONVERTER CARD ===== */
.converter-wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  position: relative; z-index: 1;
}

.converter-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--rl); overflow: hidden;
}

.card-header {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.card-header-left { display: flex; align-items: center; gap: 8px; }

.format-pill {
  font-family: var(--fmono); font-size: 13px; font-weight: 500;
  padding: 4px 10px; border-radius: 6px;
}
.format-pill.from { background: var(--bg4); color: var(--text2); }
.format-pill.to   { background: rgba(232,255,71,.12); color: var(--accent); border: 1px solid rgba(232,255,71,.22); }
.format-pill.to-teal { background: rgba(71,255,212,.1); color: var(--accent2); border: 1px solid rgba(71,255,212,.22); }
.format-arrow { color: var(--text3); font-size: 14px; }
.card-meta { font-size: 11px; color: var(--text3); }

.card-body { padding: 1.1rem; }

.drop {
  border: 1.5px dashed var(--border2);
  border-radius: var(--rl);
  padding: 2.25rem 1.25rem;
  text-align: center; cursor: pointer; position: relative;
  background: var(--bg);
  transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(232,255,71,.03); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-icon {
  width: 44px; height: 44px; background: var(--bg3); border-radius: 11px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto .85rem;
}
.drop-icon svg { width: 20px; height: 20px; stroke: var(--text2); fill: none; stroke-width: 1.5; }
.drop h3 { font-family: var(--fhead); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.drop p  { font-size: 12px; color: var(--text3); }
.drop p strong { color: var(--accent); font-weight: 500; }

.frow {
  display: none; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 12px;
  align-items: center; gap: 10px; margin-top: 10px;
}
.frow.on { display: flex; }
.ficon {
  width: 33px; height: 33px; flex-shrink: 0;
  background: var(--bg4); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
}
.ficon svg { width: 15px; height: 15px; stroke: var(--text2); fill: none; stroke-width: 1.5; }
.fmeta { flex: 1; overflow: hidden; min-width: 0; }
.fname { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsize { font-size: 11px; color: var(--text3); margin-top: 1px; }
.xbtn {
  background: none; border: none; cursor: pointer;
  color: var(--text3); padding: 5px; border-radius: 6px; display: flex; flex-shrink: 0;
  transition: color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.xbtn:hover { color: var(--text); background: var(--bg4); }
.xbtn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.prog { display: none; margin-top: 14px; }
.prog.on { display: block; }
.prog-row { display: flex; justify-content: space-between; margin-bottom: 7px; }
.prog-row span { font-size: 11px; color: var(--text2); }
.prog-row b { font-size: 11px; color: var(--accent); }
.track { height: 3px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 2px; width: 0%; transition: width .35s ease; }

.btn-convert {
  margin-top: 13px; width: 100%; height: 48px;
  background: var(--accent); color: #0e0e0f;
  border: none; border-radius: var(--r);
  font-family: var(--fhead); font-size: 14px; font-weight: 700;
  cursor: pointer; letter-spacing: .02em;
  display: none; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-convert.teal { background: var(--accent2); }
.btn-convert:hover { opacity: .85; transform: translateY(-1px); }
.btn-convert:active { opacity: .7; transform: translateY(0); }
.btn-convert.on { display: flex; }
.btn-convert:disabled { opacity: .3; cursor: not-allowed; transform: none; }
.btn-convert svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.5; }

.btn-download {
  margin-top: 8px; width: 100%; height: 48px;
  background: transparent; color: var(--accent);
  border: 1px solid rgba(232,255,71,.28); border-radius: var(--r);
  font-family: var(--fhead); font-size: 14px; font-weight: 600;
  cursor: pointer; letter-spacing: .02em;
  display: none; align-items: center; justify-content: center; gap: 8px;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-download.teal { color: var(--accent2); border-color: rgba(71,255,212,.28); }
.btn-download:hover { background: rgba(232,255,71,.07); border-color: rgba(232,255,71,.45); }
.btn-download.teal:hover { background: rgba(71,255,212,.07); border-color: rgba(71,255,212,.45); }
.btn-download.on { display: flex; }
.btn-download svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

.status { margin-top: 10px; font-size: 12px; color: var(--text3); text-align: center; min-height: 16px; }
.status.err { color: var(--red); }
.status.ok  { color: var(--accent2); }

.privacy {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 1.1rem;
  background: var(--bg); border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text3);
}
.privacy svg { width: 12px; height: 12px; stroke: var(--text3); fill: none; stroke-width: 1.5; flex-shrink: 0; }

/* ===== HOW IT WORKS ===== */
.how-section {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  position: relative; z-index: 1;
}
.section-label {
  font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text3); font-weight: 500; margin-bottom: 1rem;
}
.steps {
  display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem;
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1rem;
}
.step-num {
  font-family: var(--fhead); font-size: 10px; font-weight: 700;
  color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .45rem;
}
.step h4 { font-family: var(--fhead); font-size: 13px; font-weight: 600; margin-bottom: .3rem; }
.step p  { font-size: 12px; color: var(--text2); line-height: 1.55; }

/* ===== TOOLS GRID ===== */
.tools-section {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  position: relative; z-index: 1;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
@media (max-width: 380px) { .tools-grid { grid-template-columns: 1fr 1fr; } }

.tool-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 13px;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
  transition: border-color .2s, background .2s, transform .18s;
  -webkit-tap-highlight-color: transparent;
}
.tool-card:hover { border-color: var(--border2); background: var(--bg3); transform: translateY(-2px); }
.tool-card.active { border-color: rgba(232,255,71,.22); background: rgba(232,255,71,.04); }
.tool-card.soon { cursor: default; }
.tool-card.soon:hover { transform: none; border-color: var(--border); background: var(--bg2); }

.tool-formats { display: flex; align-items: center; gap: 5px; font-family: var(--fmono); font-size: 13px; font-weight: 500; }
.tool-formats .from { color: var(--text2); }
.tool-formats .arr  { color: var(--text3); font-size: 10px; }
.tool-formats .to      { color: var(--accent); }
.tool-formats .to-teal { color: var(--accent2); }
.tool-formats .to-dim  { color: var(--text2); }
.tool-desc { font-size: 11px; color: var(--text3); line-height: 1.45; padding-right: 2.5rem; }

.tool-badge {
  position: absolute; top: 9px; right: 9px;
  font-size: 9px; letter-spacing: .07em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
}
.tool-badge.ready { background: rgba(71,255,212,.12); color: var(--accent2); }
.tool-badge.soon  { background: var(--bg4); color: var(--text3); }

/* ===== CONTENT SECTION ===== */
.content-section {
  max-width: var(--max); margin: 0 auto;
  padding: 2.5rem 1.25rem 2.5rem;
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
}
.content-section h2 {
  font-family: var(--fhead); font-size: 1.3rem; font-weight: 700;
  margin-bottom: .8rem; line-height: 1.25;
}
.content-section h3 {
  font-family: var(--fhead); font-size: 1rem; font-weight: 600;
  margin: 1.6rem 0 .55rem; color: var(--text);
}
.content-section p {
  font-size: 14px; color: var(--text2);
  line-height: 1.8; margin-bottom: .85rem;
}
.content-section p:last-child { margin-bottom: 0; }
.content-section strong { color: var(--text); font-weight: 500; }
.content-section a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(232,255,71,.25); }
.content-section a:hover { border-color: var(--accent); }

.content-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.1rem; }
@media (max-width: 480px) { .content-cols { grid-template-columns: 1fr; } }

.content-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1rem;
}
.content-box h4 { font-family: var(--fhead); font-size: 13px; font-weight: 600; margin-bottom: .55rem; }
.content-box ul { list-style: none; padding: 0; }
.content-box li {
  font-size: 13px; color: var(--text2); padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 7px; line-height: 1.5;
}
.content-box li:last-child { border-bottom: none; }
.content-box li::before { content: '·'; color: var(--accent); flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-section {
  max-width: var(--max); margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
}
.faq-section h2 { font-family: var(--fhead); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.1rem; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  font-family: var(--fhead); font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 1rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.faq-q svg { width: 15px; height: 15px; stroke: var(--text3); fill: none; stroke-width: 2; flex-shrink: 0; transition: transform .22s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); stroke: var(--accent); }
.faq-a {
  font-size: 13px; color: var(--text2); line-height: 1.7;
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding-bottom .3s;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1rem; }

/* ===== COMING SOON ===== */
.coming-wrap {
  max-width: var(--max); margin: 3.5rem auto;
  padding: 0 1.25rem; position: relative; z-index: 1;
}
.coming-hero {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--rl); padding: 2.25rem 1.5rem;
  text-align: center; margin-bottom: 2rem;
}
.coming-icon {
  width: 58px; height: 58px; background: var(--bg3); border-radius: 13px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.35rem;
}
.coming-icon svg { width: 25px; height: 25px; stroke: var(--text2); fill: none; stroke-width: 1.5; }
.coming-hero h1 { font-family: var(--fhead); font-size: clamp(1.55rem, 5vw, 2.3rem); font-weight: 800; margin-bottom: .7rem; }
.coming-hero p  { font-size: 14px; color: var(--text2); max-width: 400px; margin: 0 auto 1.35rem; line-height: 1.65; }
.back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border2); border-radius: var(--r);
  padding: 10px 17px; font-family: var(--fmono); font-size: 13px;
  text-decoration: none; transition: background .15s;
}
.back-btn:hover { background: var(--bg4); }
.back-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
  padding: 2.5rem 1.25rem 0;
}

.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-logo {
  font-family: var(--fhead); font-size: 15px; font-weight: 800;
  color: var(--text); text-decoration: none; display: inline-block; margin-bottom: .6rem;
}
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: 12px; color: var(--text3); line-height: 1.6; }

.footer-col h4 {
  font-family: var(--fhead); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text3); margin-bottom: .75rem;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul a { font-size: 13px; color: var(--text2); text-decoration: none; transition: color .15s; }
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.5rem;
  font-size: 11px; color: var(--text3);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}