
:root{
  --bg:#ffffff;
  --surface:#ffffff;
  --surface-2:#f6f7fb;
  --text:#0b1020;
  --muted:#55607a;
  --border:rgba(11,16,32,.12);
  --shadow:0 14px 40px rgba(11,16,32,.08);
  --radius:18px;
  --radius-sm:12px;
  --accent:#0b5cff;
  --accent-2:#00b894;
  --focus:rgba(11,92,255,.22);
  --max:1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 50% -180px, rgba(11,92,255,.10), rgba(255,255,255,0) 60%),
    radial-gradient(900px 420px at 90% -120px, rgba(0,184,148,.10), rgba(255,255,255,0) 55%),
    var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

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

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 0;
}

.brand{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.brand h1{
  margin:0;
  font-size:16px;
  letter-spacing:.2px;
}
.brand p{
  margin:0;
  color:var(--muted);
  font-size:12.5px;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.7);
  font-size:13px;
  line-height:1;
  box-shadow:0 8px 20px rgba(11,16,32,.04);
}
.pill:hover{border-color:rgba(11,92,255,.35); text-decoration:none}
.pill:focus{outline:2px solid var(--focus); outline-offset:2px}

/* Hero */
.hero{
  padding:26px 0 8px;
  text-align:center;
}
.hero h2{
  margin:0 0 10px;
  font-size:32px;
  letter-spacing:-.3px;
}
.hero p{
  margin:0 auto;
  max-width:760px;
  color:var(--muted);
  line-height:1.55;
  font-size:15px;
}

/* Search */
.search-wrap{
  margin:18px auto 0;
  max-width:820px;
}
.search{
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow);
}
.search input{
  width:100%;
  border:0;
  outline:none;
  font-size:15px;
  background:transparent;
  color:var(--text);
}
.search .kbd{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--border);
  padding:6px 8px;
  border-radius:10px;
  background:var(--surface-2);
}
.quick-result{
  margin:12px auto 0;
  max-width:820px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.9);
  box-shadow:var(--shadow);
  padding:14px 16px;
  display:none;
}
.quick-result strong{display:block; font-size:18px}
.quick-result span{display:block; margin-top:4px; color:var(--muted); font-size:13px}

/* Sections / cards */
.section{
  margin:22px 0 28px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.85);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.section h3{
  margin:0 0 12px;
  font-size:16px;
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  letter-spacing:-.2px;
}
.badge{
  font-size:12px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(11,92,255,.10);
  border:1px solid rgba(11,92,255,.18);
  color:var(--accent);
}

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

.cardlink{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 12px;
  border-radius:16px;
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,247,251,.92));
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  font-size:14px;
  font-weight:650;
  text-decoration:none;
}
.cardlink:hover{
  transform: translateY(-1px);
  border-color: rgba(11,92,255,.30);
  box-shadow:0 14px 34px rgba(11,16,32,.08);
}

/* Converter box */
.converter{
  max-width:820px;
  margin: 18px auto 0;
  padding: 22px;
}
.converter h1{
  margin: 0 0 16px;
  font-size: 26px;
  text-align:center;
  letter-spacing:-.4px;
}
.form-row{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:14px
}
label{
  font-size:13px;
  color:var(--muted);
  font-weight:600;
}
input, select{
  padding:13px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.92);
  color: var(--text);
  outline:none;
  font-size:15px;
  box-shadow:0 10px 22px rgba(11,16,32,.04);
}
input:focus, select:focus{
  border-color: rgba(11,92,255,.35);
  box-shadow:0 0 0 4px var(--focus);
}

.swap{
  display:flex;
  justify-content:center;
  margin: 6px 0 14px;
}
.swap button{
  cursor:pointer;
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(11,92,255,.22);
  background:rgba(11,92,255,.08);
  color: var(--accent);
  font-size:18px;
}
.swap button:hover{background:rgba(11,92,255,.12)}
.swap button:focus{outline:2px solid var(--focus); outline-offset:2px}

.result{
  margin-top:12px;
  border-radius: 18px;
  border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,247,251,.92));
  padding:16px;
  text-align:center;
  box-shadow:0 14px 34px rgba(11,16,32,.06);
}
.result strong{display:block; font-size:20px}
.result span{display:block; margin-top:6px; color:var(--muted); font-size:13px}
.result .actions{
  margin-top:12px;
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 22px rgba(11,16,32,.05);
  font-size:13px;
  font-weight:650;
  cursor:pointer;
}
.btn:hover{border-color:rgba(11,92,255,.30)}
.btn.primary{
  border-color: rgba(11,92,255,.22);
  background: rgba(11,92,255,.08);
  color: var(--accent);
}

/* Ad slots */
.ad-slot{
  margin: 14px auto;
  max-width: 820px;
  border: 1px dashed rgba(11,16,32,0.22);
  border-radius: 18px;
  padding: 12px;
  color: rgba(11,16,32,0.55);
  font-size: 13px;
  text-align:center;
  background:rgba(255,255,255,.75);
}
.ad-slot[data-ad-slot]{
  border-style:solid;
  border-color:rgba(11,16,32,.12);
  padding:0;
  overflow:hidden;
}

/* Long-form content */
.prose{
  max-width:820px;
  margin:0 auto;
  color:var(--text);
}
.prose p{color:var(--muted); line-height:1.75; margin:0 0 12px}
.prose h2{margin:18px 0 10px; font-size:18px; letter-spacing:-.2px}
.prose h3{margin:14px 0 8px; font-size:15px; letter-spacing:-.15px}
.prose ul{margin:0 0 12px 18px; color:var(--muted)}
.prose li{margin:6px 0}

/* Footer */
.footer{
  margin-top:28px;
  border-top:1px solid var(--border);
  padding:18px 0 28px;
  color: var(--muted);
  font-size:13px;
}

/* Sticky footer on short pages */
body{min-height:100vh; display:flex; flex-direction:column}
main{flex:1 0 auto}
.footer{margin-top:auto}

@media (min-width: 800px){
  .hero h2{font-size:38px}
  .hero p{font-size:16px}
}
