
:root{
  --navy:#082f49;
  --navy-dark:#061f33;
  --blue:#0f4c81;
  --blue-2:#0369a1;
  --sky:#38bdf8;
  --orange:#f97316;
  --white:#ffffff;
  --background:#f4f8fb;
  --card:#ffffff;
  --text:#172033;
  --muted:#64748b;
  --border:#dbe5ee;
  --shadow:0 16px 38px rgba(15,76,129,.12);
  --radius:20px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  min-height:100vh;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:var(--background);
  color:var(--text);
  padding-bottom:92px;
}
a{color:inherit;text-decoration:none}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit}
.app-shell{width:min(100%,760px);margin:0 auto;min-height:100vh;background:var(--background)}
.topbar{
  position:sticky;top:0;z-index:100;
  background:rgba(8,47,73,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
  color:var(--white);
}
.topbar-inner{
  min-height:68px;padding:10px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:16px
}
.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
  width:42px;height:42px;display:grid;place-items:center;border-radius:13px;
  background:linear-gradient(145deg,#0f4c81,#0369a1);
  border:1px solid rgba(255,255,255,.16);
  color:var(--white);font-size:21px;font-weight:900;
  box-shadow:0 8px 20px rgba(0,0,0,.16)
}
.brand-copy strong{display:block;font-size:17px;line-height:1.1;letter-spacing:.01em}
.brand-copy span{color:#b9dff1;font-size:12px;font-weight:700}
.top-actions{display:flex;align-items:center;gap:8px}
.icon-button,.language-button{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:var(--white);border-radius:11px;cursor:pointer;
}
.icon-button{width:40px;height:40px;display:grid;place-items:center;font-size:17px}
.language-button{padding:9px 11px;font-size:13px;font-weight:800}
.hero{
  padding:34px 20px 28px;
  background:
    radial-gradient(circle at 90% 12%,rgba(56,189,248,.23),transparent 30%),
    linear-gradient(145deg,#082f49,#0f4c81);
  color:var(--white);border-radius:0 0 28px 28px;
  box-shadow:0 18px 38px rgba(8,47,73,.18)
}
.hero.compact{padding:24px 20px 24px}
.hero-kicker{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:14px;
  padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.14);color:#dff5ff;
  font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase
}
.hero h1{max-width:620px;margin-bottom:12px;font-size:clamp(34px,9vw,54px);line-height:1.02;letter-spacing:-.045em}
.hero.compact h1{font-size:clamp(30px,8vw,44px)}
.hero h1 span{color:var(--sky)}
.hero p{max-width:610px;color:#d7e8f2;font-size:16px;line-height:1.55}
.hero-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:22px}
.primary-button,.secondary-button,.install-button{
  min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 16px;border-radius:12px;font-size:14px;font-weight:850;cursor:pointer
}
.primary-button,.install-button{background:var(--orange);color:var(--white);border:none;box-shadow:0 10px 22px rgba(249,115,22,.25)}
.secondary-button{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);color:var(--white)}
.install-button[hidden]{display:none}
.content{padding:26px 16px 32px}
.section-heading{margin-bottom:16px}
.section-heading span{
  display:block;color:var(--blue-2);font-size:12px;font-weight:900;
  letter-spacing:.12em;text-transform:uppercase;margin-bottom:6px
}
.section-heading h2{color:var(--navy);font-size:25px;line-height:1.15;letter-spacing:-.025em}
.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.category-card{
  position:relative;min-height:190px;display:flex;flex-direction:column;justify-content:space-between;
  padding:21px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  box-shadow:0 10px 26px rgba(15,76,129,.07);overflow:hidden;
  transition:transform .2s ease,box-shadow .2s ease
}
.category-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.category-card:active{transform:scale(.985)}
.category-card::after{
  content:"";position:absolute;width:105px;height:105px;right:-30px;bottom:-38px;
  border-radius:50%;background:#e9f6fc
}
.category-icon{
  width:52px;height:52px;display:grid;place-items:center;border-radius:15px;
  background:#e7f5fb;color:var(--blue-2);font-size:25px;position:relative;z-index:1
}
.category-card h3{margin:20px 0 7px;color:var(--navy);font-size:20px;line-height:1.15;position:relative;z-index:1}
.category-card p{color:var(--muted);font-size:13px;line-height:1.45;position:relative;z-index:1}
.category-footer{
  margin-top:18px;display:flex;align-items:center;justify-content:space-between;
  color:var(--blue-2);font-size:13px;font-weight:850;position:relative;z-index:1
}
.info-card{
  margin-top:24px;padding:18px;background:var(--white);border:1px solid var(--border);
  border-radius:17px;box-shadow:0 8px 20px rgba(15,76,129,.05)
}
.info-card strong{display:block;color:var(--navy);margin-bottom:6px}
.info-card p{color:var(--muted);font-size:13px;line-height:1.55}
.tool-list{display:grid;gap:10px}
.tool-link{
  min-height:72px;display:flex;align-items:center;gap:14px;padding:13px 14px;
  background:var(--white);border:1px solid var(--border);border-radius:15px;
  box-shadow:0 7px 18px rgba(15,76,129,.05)
}
.tool-link:active{transform:scale(.99)}
.tool-icon{
  flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;
  border-radius:12px;background:#edf7fc;color:var(--blue-2);font-size:19px;font-weight:900
}
.tool-copy{min-width:0;flex:1}
.tool-copy strong{display:block;color:var(--navy);font-size:14px;line-height:1.3}
.tool-copy span{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.tool-arrow{color:var(--orange);font-size:20px;font-weight:900}
.back-link{
  display:inline-flex;align-items:center;gap:7px;margin-bottom:14px;color:#dff5ff;
  font-size:13px;font-weight:800
}
.offline-banner{
  display:none;padding:9px 14px;background:#fff7ed;color:#9a3412;
  border-bottom:1px solid #fed7aa;text-align:center;font-size:12px;font-weight:800
}
.offline-banner.show{display:block}
.bottom-nav{
  position:fixed;left:50%;bottom:0;transform:translateX(-50%);
  z-index:200;width:min(100%,760px);
  padding:9px 10px max(9px,env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96);backdrop-filter:blur(16px);
  border-top:1px solid var(--border);box-shadow:0 -12px 28px rgba(8,47,73,.10)
}
.bottom-nav-inner{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.nav-item{
  min-height:55px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:4px;border-radius:12px;color:var(--muted);font-size:11px;font-weight:800
}
.nav-item span:first-child{font-size:20px;line-height:1}
.nav-item.active{background:#eaf6fd;color:var(--blue-2)}
@media(max-width:430px){
  .category-grid{grid-template-columns:1fr}
  .category-card{min-height:160px}
  .hero-actions{flex-direction:column}
  .primary-button,.secondary-button,.install-button{width:100%}
}
@media(min-width:760px){
  body{padding-top:20px}
  .app-shell{border-radius:26px 26px 0 0;overflow:hidden;box-shadow:0 18px 50px rgba(8,47,73,.14)}
}
