:root {
  --bg: #0f1724;
  --bg2: #111e31;
  --card: #14243a;
  --line: #2a466a;
  --text: #eef5ff;
  --muted: #b6c8df;
  --accent: #44d1ff;
  --accent2: #8effc9;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: linear-gradient(160deg,var(--bg),var(--bg2)); color: var(--text); font-family: "Trebuchet MS","Segoe UI",sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
.container { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: #0d1626e6; backdrop-filter: blur(6px); }
.header-row { min-height: 72px; display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 190px; max-width: 38vw; height: auto; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; }
.top-nav a, .top-nav .nav-link { color: var(--muted); font-size: 14px; font-weight: 700; }
.top-nav a:hover, .top-nav a.active, .top-nav .nav-link:hover, .top-nav .nav-link.active { color: var(--text); }
.nav-dropdown { position: relative; padding-bottom: 10px; margin-bottom: -10px; }
.nav-link.nav-trigger {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
}
.nav-dropdown.active .nav-trigger { color: var(--text); border-color: var(--accent); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 280px;
  background: #0d1a2b;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 36px #0000004d;
}
.dropdown-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
  color: var(--text);
  background: #15314f;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }
.main-nav-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
}
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 10px 16px; border: 1px solid transparent; font-weight: 800; }
.btn-primary { background: linear-gradient(120deg,var(--accent),var(--accent2)); color: #03202b; }
.page-hero { padding: 28px 0 12px; }
.hero-card { background: linear-gradient(180deg,#1a2f4b,#15253d); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.hero-card h1 { margin: 0 0 8px; font-size: clamp(30px,4vw,46px); line-height: 1.1; }
.hero-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.home-slider-wrap { padding: 8px 0 10px; }
.hero-slider { margin-top: 14px; position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-height: 220px; }
.hero-slider.long {
  margin: 0 auto;
  width: min(1320px, calc(100% - 28px));
  min-height: clamp(230px, 35vw, 430px);
}
.hero-slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.hero-slider .slide.active { opacity: 1; }
.hero-slider img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82); }
.hero-slider .cap { position: absolute; left: 10px; right: 10px; bottom: 10px; background: #09121dde; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.hero-slider .cap .slide-cta { margin-top: 8px; display: inline-flex; font-size: 13px; padding: 8px 12px; }
.section { padding: 18px 0 28px; }
.content-card { background: linear-gradient(180deg,#1a2f4b,#132236); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; overflow-wrap: anywhere; }
.content-card h2 { margin: 16px 0 8px; font-size: clamp(22px,3vw,32px); }
.content-card h3 { margin: 14px 0 8px; font-size: clamp(18px,2.3vw,25px); }
.content-card p, .content-card li { color: var(--text); line-height: 1.72; font-size: 17px; }
.content-card ul, .content-card ol { margin: 8px 0 12px 20px; }
.content-card hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.slot-card-grid { display: grid; gap: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 12px 0; }
.slot-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0f1b2a; }
.slot-card img { width: 100%; height: 170px; object-fit: cover; }
.slot-card .pad { padding: 10px; }
.demo-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16/9; margin: 12px 0; }
.demo-frame iframe { width: 100%; height: 100%; border: 0; min-height: 300px; }
.home-meta-grid { display: grid; gap: 14px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.author-home-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.author-home-head img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.author-home-head h3 { margin: 0; }
.author-home-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.author-home-links a { color: var(--accent2); font-weight: 700; }
.office-list { margin: 10px 0 0; padding-left: 18px; }
.office-list li { margin: 4px 0; }
.site-footer { border-top: 1px solid var(--line); background: #0d1626; margin-top: 22px; }
.footer-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); padding: 20px 0 10px; }
.footer-grid a { color: var(--muted); }
.rg-line { display: flex; justify-content: center; padding: 8px 0; }
.age { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 800; color: var(--muted); }
.fine { margin: 0; color: var(--muted); font-size: 12px; text-align: center; padding: 0 0 16px; }
@media (max-width: 900px) { .slot-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .container { width: min(1180px, calc(100% - 20px)); }
  .header-row { align-items: flex-start; flex-wrap: wrap; }
  .top-nav { display: flex; width: 100%; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .dropdown-menu { position: static; min-width: 240px; margin-top: 8px; }
  .hero-slider.long { width: min(1320px, calc(100% - 20px)); min-height: 210px; }
  .slot-card-grid { grid-template-columns: 1fr; }
  .home-meta-grid { grid-template-columns: 1fr; }
  .content-card { padding: 14px; }
  .demo-frame iframe { min-height: 220px; }
}
