:root {
  --fg:#0f172a;
  --bg:#ffffff;
  --muted:#64748b;
  --link:#2563eb;
}

/* === Global reset === */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,AppleSDGothicNeo,Malgun Gothic,Helvetica,Arial,sans-serif;
  color: var(--fg);
  background: var(--bg);
}
a { color: var(--link); text-decoration: none; }
a.nolink { color: inherit; }

/* === Navigation Bar === */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  line-height: 56px;
  font-weight: 700;
  font-size: 18px;
  pointer-events: none;
}
.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* === Dropdown Button === */
.dropbtn {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}
.caret {
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: var(--fg);
  margin-top: 2px;
}

/* === Dropdown Container === */
.dropdown { position: relative; }

/* Dropdown menu (default hidden) */
.dropdown-menu {
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 160px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: none; /* hidden by default */
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  z-index: 1000;
}

/* Dropdown menu (visible when .open is toggled by JS) */
.dropdown.open .dropdown-menu {
  display: block;
}

/* Dropdown menu items */
.dropdown-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--fg);
}
.dropdown-menu a:hover {
  background: #f3f4f6;
}

/* === Hero section === */
.hero {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 16px;
  text-align: center;
}
h1 { font-size: 42px; margin: 10px 0 12px; }
.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 0 auto 30px;
  max-width: 720px;
}

/* === Miscellaneous UI elements === */
.pill {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
}
footer {
  border-top: 1px solid #e5e7eb;
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
}
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 16px;
}
@media(max-width:480px){
  .subnav h1 { font-size: 22px; }
}
.back { color: #334155; }

/* === Card layout === */
.cards {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 14px;
}
.card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

/* === Intro section === */
.intro .frame {
  background: radial-gradient(1200px 600px at 50% 30%,#ffffff 0%,#f8fafc 60%,#f1f5f9 100%);
  border: 1px solid #e2e8f0;
}
.intro .inner {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 40px 32px;
  transform: translateY(-20px);
}
.intro h1 {
  font-size: clamp(32px,5vw,44px);
  letter-spacing: .2px;
  color: #0f172a;
}
.lead {
  max-width: 920px;
  color: #475569;
  line-height: 1.6;
  text-align: center;
  margin: 0 auto;
}
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.badges .pill {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  color: #334155;
  background: #fff;
}

/* === Section layout === */
.section { padding: 64px 0; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.h-title {
  font-size: clamp(28px,5vw,42px);
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0 0 28px;
  text-align: left;
  color: #0f172a;
}
.lead-left {
  max-width: 980px;
  line-height: 1.7;
  font-size: clamp(16px,2.2vw,20px);
  color: #1f2937;
  margin: 0 0 28px;
  text-align: left;
}

/* === Bullet list === */
.bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.bullets li {
  margin: 10px 0;
  font-weight: 800;
  font-size: clamp(15px,2vw,20px);
}
.bullets li::before {
  content: "– ";
  font-weight: 800;
}

/* === Misc text === */
.mail {
  margin: 6px 0;
  font-size: 14px;
  color: #1f2937;
  font-family: "Segoe UI",Arial,sans-serif;
}
.mail span:first-child {
  font-weight: 600;
  margin-right: 6px;
  color: #2563eb;
}
.career {
  margin: 4px 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #374151;
  font-family: "Arial",sans-serif;
  max-width: 800px;
}
.career span { display: block; }

/* === Scroll hint === */
.scroll-hint {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #64748b;
}
.bounce {
  display: inline-block;
  font-size: 20px;
  animation: bounce 1.2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}

/* === Responsive fixes === */
@media(max-width:768px){
  .menu {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 14px;
    white-space: nowrap;
    max-width: 100%;
    padding-bottom: 6px;
    margin: 0 -8px 0 0;
  }
  .menu > a, .menu .dropbtn {
    flex: 0 0 auto;
    display: inline-block;
  }
  .dropdown-menu {
    left: 0;
    right: auto;
    top: 100%;
  }
}
