:root {
  --ink: #0b0f1a;
  --ink-2: #131a2b;
  --accent: #4263eb;
  --accent-deep: #1b2a6b;
  --red: #b22234;
  --navy: #08122e;
  --muted: #5b6577;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --border: #e3e8f2;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, 0.05), 0 24px 48px rgba(16, 24, 40, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.nb { white-space: nowrap; }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 40; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; text-decoration: none; }

/* Icons (SVG sprite) */
.i { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 15, 26, 0.94);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.12rem; color: #fff; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: #b9c2d6; font-weight: 500; font-size: 0.93rem; transition: color 0.2s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta { background: #fff; color: var(--ink) !important; padding: 10px 20px; border-radius: 999px; font-size: 0.9rem !important; font-weight: 600 !important; }
.nav-cta:hover { background: #dfe6ff; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  padding: 120px 0 112px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 80% at 88% 8%, rgba(66, 99, 235, 0.42), transparent 62%),
    radial-gradient(50% 70% at 4% 108%, rgba(178, 34, 52, 0.26), transparent 62%),
    radial-gradient(40% 50% at 50% 120%, rgba(66, 99, 235, 0.18), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(70% 90% at 50% 40%, #000 25%, transparent 75%);
}
.hero-mark { position: absolute; right: 7%; top: 50%; height: 440px; width: auto; transform: translateY(-50%); opacity: 0.1; z-index: -1; pointer-events: none; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbe3f7;
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 26px;
}
.eyebrow img { width: 24px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.hero h1 {
  font-size: clamp(2.9rem, 7.5vw, 5.4rem);
  line-height: 1.02;
  font-weight: 800;
  margin: 0 0 22px;
  letter-spacing: -0.04em;
  max-width: 820px;
  background: linear-gradient(180deg, #ffffff 30%, #aab7e0 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.28rem; color: #b9c2d6; max-width: 640px; margin: 0 0 36px; text-wrap: balance; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 46px 0 0; padding: 0; list-style: none; color: #98a3bb; font-size: 0.9rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 9px; }
.hero-facts .i { color: #7f9bff; font-size: 1.1rem; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--accent); text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(66, 99, 235, 0.35); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border); margin-left: 10px; }
.btn-ghost:hover { background: var(--bg-soft); box-shadow: none; }
.hero .btn { background: #fff; color: var(--ink); }
.hero .btn:hover { background: #dfe6ff; box-shadow: 0 10px 30px rgba(255, 255, 255, 0.18); }
.hero .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: none; }

/* Sections */
section { padding: 100px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 660px; margin-bottom: 48px; }
.kicker { display: inline-block; color: var(--accent); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.08; font-weight: 800; margin: 0 0 14px; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; text-wrap: pretty; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cbd5f7; }
.card .ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 10px 22px rgba(66, 99, 235, 0.3);
  font-size: 1.6rem;
}
.card h3 { margin: 0 0 9px; font-size: 1.2rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.99rem; }

/* United States */
.us {
  position: relative;
  background: var(--navy);
  color: #d5dcf0;
  overflow: hidden;
  isolation: isolate;
  padding: 112px 0 104px;
}
.us::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 70% at 90% 20%, rgba(60, 59, 110, 0.7), transparent 65%),
    radial-gradient(40% 60% at 0% 100%, rgba(178, 34, 52, 0.28), transparent 65%),
    radial-gradient(rgba(255, 255, 255, 0.07) 1.2px, transparent 1.4px) 0 0 / 34px 34px;
}
.us::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--red) 0 33.4%, #fff 33.4% 66.6%, #3c5fd0 66.6% 100%);
}
.us-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.us .kicker { color: #ff8b99; }
.us h2 { color: #fff; font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 0.98; font-weight: 800; letter-spacing: -0.045em; margin: 0 0 24px; }
.us h2 span { background: linear-gradient(90deg, #ff6b7d, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.us p.us-lead { font-size: 1.2rem; line-height: 1.6; color: #c3cde6; margin: 0 0 34px; max-width: 540px; }
.flag-card { display: block; margin: 0; }
.flag-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 40px 70px -10px rgba(0, 0, 0, 0.65), 0 0 90px rgba(178, 34, 52, 0.25);
  transform: rotate(-2.2deg);
  animation: drift 7s ease-in-out infinite;
}
@keyframes drift { 0%, 100% { transform: rotate(-2.2deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-8px); } }
.stats { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); border-radius: 14px; padding: 18px 20px; }
.stat dt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; color: #8d9abb; }
.stat dd { margin: 5px 0 0; font-size: 1.22rem; font-weight: 700; color: #fff; }

/* Apply */
.apply-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.apply-intro .section-head { margin-bottom: 26px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: #34405a; }
.ticks .i { color: var(--accent); font-size: 1.25rem; margin-top: 2px; }
.apply-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 34px; box-shadow: var(--shadow-lg); }
.apply label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 18px; }
.apply .opt { font-weight: 400; color: var(--muted); }
.apply input, .apply select, .apply textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.apply input, .apply select { height: 48px; }
.apply textarea { resize: vertical; min-height: 130px; }
.apply input:focus-visible, .apply select:focus-visible, .apply textarea:focus-visible {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(66, 99, 235, 0.16);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.apply button.btn { border: 0; cursor: pointer; font-family: inherit; width: 100%; padding: 16px 28px; font-size: 1.02rem; }
.apply button.btn:disabled { opacity: 0.6; cursor: wait; }
.form-note { color: var(--muted); font-size: 0.82rem; margin: 14px 0 0; text-align: center; }
.notice { display: none; margin: 16px 0 0; padding: 13px 16px; border-radius: 12px; font-size: 0.95rem; }
.notice.show, .notice:target { display: block; }
.notice.ok { background: #eaf7ef; border: 1px solid #b9dfc5; color: #1d5a33; }
.notice.err { background: #fdeceb; border: 1px solid #f3c0bb; color: #8a2a21; }
.notice.err a { color: inherit; text-decoration: underline; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.about-grid p { font-size: 1.08rem; color: #34405a; }
.facts { background: var(--bg); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.facts dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 15px; }
.facts .row { display: flex; flex-direction: column; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.facts .row:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform 0.28s ease, box-shadow 0.28s ease; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--accent); background: #e9eeff; font-size: 1.4rem; flex: none; }
.contact-card h3 { margin: 0 0 4px; font-size: 0.82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
.contact-card p { margin: 0; font-size: 1.1rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-card address { font-style: normal; font-size: 1.05rem; line-height: 1.55; font-weight: 500; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 4px 24px; margin-bottom: 12px; box-shadow: var(--shadow); transition: border-color 0.2s; }
.faq details[open] { border-color: #cbd5f7; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Footer */
.site-footer { position: relative; background: var(--ink); color: #aab3c7; padding: 64px 0 36px; font-size: 0.92rem; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), #fff 50%, #3c5fd0); opacity: 0.85; }
.site-footer a { color: #b4c1f5; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-stack a { display: block; margin-bottom: 9px; }
.footer-note { margin: 8px 0 0; color: #8c97ae; }
.legal { margin-top: 28px; color: #8c97ae; font-size: 0.82rem; line-height: 1.75; }
.legal strong { color: #d3d9e8; }

/* Legal document pages */
.doc { max-width: 780px; }
.doc h1 { font-size: 2.3rem; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 6px; }
.doc .updated { color: var(--muted); margin-top: 0; }
.doc h2 { font-size: 1.25rem; margin-top: 36px; }
.doc p, .doc li { color: #34405a; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 600; }

@media (max-width: 900px) {
  .us-grid, .apply-grid, .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-mark { display: none; }
}
@media (max-width: 720px) {
  .hero { padding: 76px 0 72px; }
  section { padding: 68px 0; }
  .us { padding: 80px 0 72px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .apply-card { padding: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flag-card img { animation: none; }
  .card, .contact-card, .btn { transition: none; }
}
