/* Zeray Technology Limited — single page site */
:root {
  --navy: #0b2a4a;
  --navy-2: #123f6b;
  --navy-3: #1b5487;
  --ink: #142638;
  --muted: #5c6c7d;
  --gold: #c8a45c;
  --gold-dark: #a8843c;
  --gold-soft: #f6efdf;
  --bg: #f5f8fb;
  --card: #ffffff;
  --line: #e2eaf2;
  --radius: 14px;
  --shadow-sm: 0 4px 18px rgba(11, 42, 74, .06);
  --shadow-md: 0 18px 46px rgba(11, 42, 74, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--card);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- top strip + header ---------- */
.topstrip { background: #071e36; color: #b9c9d9; font-size: 12px; letter-spacing: .04em; }
.topstrip-inner { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; }
.topstrip-right { color: #8ea6bd; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,42,74,.08); }
.nav { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; color: #fff; font-weight: 700; font-size: 20px;
  background: linear-gradient(145deg, var(--navy-2), var(--navy));
  box-shadow: 0 6px 14px rgba(11,42,74,.24);
  font-family: Georgia, serif;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; letter-spacing: .18em; color: var(--navy); }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .05em; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: #364b60; position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  min-width: 42px; height: 34px; padding: 0 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  transition: all .2s;
}
.lang-toggle:hover { border-color: var(--navy-3); background: #f2f7fc; }
.menu-toggle { display: none; width: 40px; height: 38px; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 9px;
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 13px; }
.btn-gold { background: var(--gold); color: #2b210c; box-shadow: 0 10px 24px rgba(200,164,92,.28); }
.btn-gold:hover { background: #d7b56c; box-shadow: 0 14px 28px rgba(200,164,92,.36); }
.btn-outline-light { border-color: rgba(255,255,255,.42); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-outline { border-color: var(--navy-3); color: var(--navy); }
.btn-outline:hover { background: #f1f6fb; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1000px 620px at 78% 18%, #1b5487 0%, transparent 62%),
              linear-gradient(135deg, #0b2a4a 0%, #082038 100%);
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .13; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px;
  align-items: center; padding: 104px 0 116px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #d9c38f; border: 1px solid rgba(200,164,92,.42); border-radius: 100px;
  padding: 7px 15px; background: rgba(200,164,92,.08);
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); line-height: 1.18; letter-spacing: -.02em; margin: 28px 0 22px; font-weight: 650; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { max-width: 580px; font-size: 16px; line-height: 1.9; color: #c6d5e4; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 34px; font-size: 13px; color: #92aac2; }
.hero-note-icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(200,164,92,.18); color: var(--gold); font-size: 12px; }

.hero-visual { position: relative; min-height: 440px; display: flex; align-items: center; justify-content: center; }
.visual-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(200,164,92,.14), transparent 68%); }
.path-card {
  position: relative; z-index: 2; width: 100%; max-width: 470px;
  border-radius: 16px; padding: 24px 26px 20px;
  background: linear-gradient(160deg, rgba(255,255,255,.98), rgba(239,246,252,.94));
  box-shadow: 0 30px 70px rgba(0,0,0,.28); color: var(--ink);
  border: 1px solid rgba(255,255,255,.7);
}
.path-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.path-card-title { font-size: 15px; font-weight: 700; color: var(--navy); }
.path-card-tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--gold-dark); border: 1px solid #e6d5b0; background: var(--gold-soft); padding: 4px 9px; border-radius: 100px; }
.path-steps { list-style: none; margin: 0; padding: 18px 0 6px; }
.path-steps li { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 14px; font-weight: 500; color: #29415a; position: relative; }
.path-steps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 39px; height: 18px; width: 1px; background: #cddce9; }
.path-num { flex: 0 0 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #e9f1f8; color: var(--navy-3); font-size: 11px; font-weight: 700; }
.path-steps li:first-child .path-num { background: var(--navy); color: #fff; }
.path-steps i { margin-left: auto; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #c5d5e3; flex: 0 0 auto; }
.path-steps li:first-child i { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px #fff; }
.path-card-foot { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.path-avatars { display: flex; }
.path-avatars b { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #fff; background: var(--navy-2); border: 2px solid #fff; }
.path-avatars b + b { margin-left: -8px; background: var(--gold); color: #3a2b0c; }

.floating-card {
  position: absolute; z-index: 3; background: #fff; color: var(--ink);
  border-radius: 11px; padding: 13px 16px; box-shadow: 0 16px 36px rgba(0,0,0,.22);
  display: flex; flex-direction: column; gap: 3px; border: 1px solid #edf1f5;
}
.float-a { left: -6px; top: 0; transform: rotate(-3deg); }
.float-b { right: -14px; bottom: 56px; flex-direction: row; align-items: center; gap: 9px; transform: rotate(2deg); font-size: 13px; font-weight: 600; }
.float-label { font-size: 11px; color: var(--muted); }
.floating-card strong { font-size: 13px; color: var(--navy); }
.float-check { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e8f5ee; color: #278457; font-size: 12px; font-weight: 700; }

/* ---------- capability strip ---------- */
.capabilities { background: #fff; border-bottom: 1px solid var(--line); }
.capability-inner { display: flex; align-items: center; gap: 30px; padding: 20px 0; }
.capability-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--gold-dark); text-transform: uppercase; flex-shrink: 0; }
.capability-list { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.capability-list span { font-size: 13px; color: #44596e; font-weight: 500; position: relative; }
.capability-list span:not(:last-child)::after { content: "·"; color: #bdccda; margin-left: 28px; }

/* ---------- generic sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg); }
.section-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.section-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--gold-dark); text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.35; letter-spacing: -.015em; color: var(--navy); margin: 0; font-weight: 650; }
.section-head p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.85; }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 28px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.service-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy-2), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfdfec; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: #edf4fa; color: var(--navy-2); }
.service-icon svg { width: 23px; height: 23px; }
.service-index { position: absolute; top: 28px; right: 28px; font-size: 12px; font-weight: 700; color: #cbd8e4; letter-spacing: .1em; }
.service-card h3 { font-size: 18px; color: var(--navy); margin: 22px 0 10px; }
.service-card > p { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0 0 22px; min-height: 76px; }
.deliverables { border-top: 1px dashed #dce6ef; padding-top: 16px; }
.deliverables > span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--gold-dark); margin-bottom: 10px; text-transform: uppercase; }
.deliverables ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.deliverables li { font-size: 12px; color: #455c72; background: #f2f6fa; border-radius: 5px; padding: 5px 9px; }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-grid::before { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 1px; background: #ccdbe8; }
.step { position: relative; padding-right: 26px; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 50%; background: #fff; border: 1px solid #cad9e6; color: var(--navy);
  font-size: 13px; font-weight: 700; box-shadow: 0 0 0 6px var(--bg); margin-bottom: 24px;
}
.step:nth-child(1) .step-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.step:nth-child(2) .step-num, .step:nth-child(3) .step-num { border-color: var(--gold); color: var(--gold-dark); }
.step h3 { font-size: 17px; color: var(--navy); margin: 0 0 10px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: start; }
.about-copy > p { font-size: 15px; line-height: 1.95; color: var(--muted); margin: 24px 0 32px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 22px; }
.about-point { display: flex; gap: 12px; align-items: flex-start; }
.point-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 9px; }
.about-point strong { display: block; font-size: 14px; color: var(--navy); margin-bottom: 4px; }
.about-point p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }

.boundary-card { background: linear-gradient(155deg, #0e3156, #0a2440); color: #fff; border-radius: 16px; padding: 34px 32px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.boundary-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -110px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 40px rgba(255,255,255,.02); }
.boundary-top { display: flex; align-items: center; gap: 11px; font-size: 12px; letter-spacing: .12em; color: var(--gold); font-weight: 600; }
.boundary-seal { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; border: 1px solid rgba(200,164,92,.55); font-family: Georgia, serif; font-size: 16px; }
.boundary-card h3 { font-size: 20px; line-height: 1.5; margin: 24px 0 14px; color: #fff; }
.boundary-card > p { font-size: 14px; line-height: 1.9; color: #c3d3e3; margin: 0 0 26px; }
.boundary-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.boundary-list > div { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #d6e2ee; }
.tag { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 5px; }
.tag-yes { color: #9fe0c0; background: rgba(64,180,125,.14); }
.tag-no { color: #f0c9a2; background: rgba(214,146,76,.14); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gold); border-bottom: 1px solid rgba(200,164,92,.5); padding-bottom: 3px; }
.text-link:hover { color: #e3c98e; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: start; }
.faq-intro p { font-size: 15px; color: var(--muted); line-height: 1.85; margin: 20px 0 28px; }
.faq-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px; box-shadow: var(--shadow-sm); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { cursor: pointer; list-style: none; padding: 21px 30px 21px 0; font-size: 15px; font-weight: 600; color: var(--navy); position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 18px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: #eef4f9; color: var(--navy-2); font-size: 17px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { font-size: 14px; line-height: 1.85; color: var(--muted); margin: 0 0 22px; padding-right: 26px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.contact-copy > p { font-size: 15px; color: var(--muted); margin: 22px 0 34px; line-height: 1.85; }
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail { display: flex; gap: 14px; align-items: center; }
.detail-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; display: grid; place-items: center; background: #eef4f9; color: var(--navy-2); font-size: 17px; font-weight: 600; }
.detail-label { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 2px; }
.contact-detail a, .contact-detail div > span:last-child { font-size: 15px; color: var(--ink); font-weight: 500; }
.contact-detail a:hover { color: var(--navy-3); }
.contact-hint { font-size: 12px !important; color: #94a3b2 !important; margin-top: 28px !important; border-left: 2px solid var(--gold); padding-left: 12px; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 20px; font-size: 13px; font-weight: 600; color: #344b61; }
.contact-form label > span { display: block; margin-bottom: 8px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; border: 1px solid #dce5ee; border-radius: 8px; background: #fafcfe;
  padding: 12px 14px; font-size: 14px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 116px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27,84,135,.1); background: #fff; }
.form-note { font-size: 12px; color: #8b9aa9; line-height: 1.7; margin: 14px 0 0; text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: #071e36; color: #9db0c3; padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-mark { width: 36px; height: 36px; font-size: 18px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand strong { color: #fff; letter-spacing: .18em; font-size: 15px; }
.footer-brand span:last-child { font-size: 11px; }
.footer-note { margin: 0 auto 0 0; font-size: 12px; max-width: 480px; }
.footer-copy { font-size: 12px; white-space: nowrap; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; font-size: 13px; padding: 12px 20px; border-radius: 9px; z-index: 100;
  box-shadow: 0 14px 34px rgba(0,0,0,.25); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { gap: 18px; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; padding: 76px 0 90px; }
  .hero-visual { min-height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-points { max-width: 620px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1160px); }
  .nav { height: 66px; gap: 12px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 22px;
    flex-direction: column; align-items: stretch; gap: 0; box-shadow: var(--shadow-sm);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid #f0f4f8; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .topstrip-right { display: none; }
  .hero h1 { font-size: 2.25rem; }
  .section { padding: 72px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card > p { min-height: 0; }
  .process-grid { grid-template-columns: 1fr; gap: 30px; }
  .process-grid::before { display: none; }
  .step { padding-right: 0; }
  .step-num { margin-bottom: 14px; }
  .contact-form { padding: 24px; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { min-height: 380px; }
  .float-a { left: 0; }
  .float-b { right: 0; }
  .about-points { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .service-card:hover { transform: none; }
}
