/* ==========================================================================
   BrightCore Technologies Limited — Global Stylesheet
   Identity: "the bright core" — a luminous gold core on Hong Kong night-ink.
   ========================================================================== */

:root {
  /* Ink (dark surfaces) */
  --ink-900: #06101f;
  --ink-850: #081427;
  --ink-800: #0a1a30;
  --ink-700: #102744;
  --ink-650: #15314f;
  --ink-600: #1c3f62;

  /* Light surfaces */
  --paper: #f5f8fc;
  --paper-2: #ffffff;
  --paper-3: #eef3f9;

  /* Accents — the "bright core" */
  --gold: #e0a94e;
  --gold-bright: #f6cf85;
  --gold-deep: #b9842f;
  --cyan: #5cc6e4;

  /* Text */
  --text: #0c1b2e;
  --text-soft: #41576f;
  --text-muted: #6a7d93;
  --on-dark: #e4ecf7;
  --on-dark-soft: #9fb2cb;
  --on-dark-muted: #6e84a1;

  /* Lines */
  --line-light: #e2e9f1;
  --line-dark: rgba(255, 255, 255, 0.09);

  /* Type */
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Scale */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 56px);
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(12, 27, 46, 0.06), 0 4px 14px rgba(12, 27, 46, 0.05);
  --shadow-md: 0 10px 30px rgba(12, 27, 46, 0.10), 0 2px 8px rgba(12, 27, 46, 0.06);
  --shadow-glow: 0 0 0 1px rgba(224, 169, 78, 0.16), 0 18px 50px rgba(224, 169, 78, 0.18);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------------- Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--text); }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--ink { background: var(--ink-800); color: var(--on-dark); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.section--paper2 { background: var(--paper-2); }

/* ---------------------------------------------------------------- Eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
}
.section--ink .eyebrow { color: var(--gold-bright); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4.2vw, 44px); }
.section-head p { margin-top: 16px; color: var(--text-soft); font-size: 1.06rem; }
.section--ink .section-head p { color: var(--on-dark-soft); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 600; font-size: 0.97rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #2a1a05;
  box-shadow: 0 8px 22px rgba(224, 169, 78, 0.32);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(224, 169, 78, 0.42); }
.btn--ghost { background: transparent; border-color: var(--line-light); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
.section--ink .btn--ghost, .btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.22); color: #fff; }
.section--ink .btn--ghost:hover, .btn--ghost-light:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.link-arrow {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--gold-deep); display: inline-flex; gap: 8px; align-items: center;
  font-weight: 500;
}
.link-arrow .arr { transition: transform .25s var(--ease); }
.link-arrow:hover .arr { transform: translateX(5px); }
.section--ink .link-arrow { color: var(--gold-bright); }

/* ---------------------------------------------------------- Core motif */
.core {
  position: relative; aspect-ratio: 1; width: 100%;
  display: grid; place-items: center;
}
.core__ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(224, 169, 78, 0.28);
}
.core__ring.r1 { inset: 4%; }
.core__ring.r2 { inset: 16%; border-color: rgba(92, 198, 228, 0.20); }
.core__ring.r3 { inset: 30%; border-color: rgba(224, 169, 78, 0.22); }
.core__glow {
  position: absolute; inset: 28%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--gold-bright), var(--gold) 38%, rgba(185,132,47,0.0) 70%);
  filter: blur(2px);
  box-shadow: 0 0 70px 18px rgba(224, 169, 78, 0.45), 0 0 140px 40px rgba(92, 198, 228, 0.12);
  animation: pulse 5.5s var(--ease) infinite;
}
.core__dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 12px 3px var(--gold);
}
.core__orbit { position: absolute; inset: 4%; border-radius: 50%; animation: spin 26s linear infinite; }
.core__orbit.o2 { inset: 16%; animation-duration: 18s; animation-direction: reverse; }
.core__orbit .core__dot { top: -4px; left: 50%; transform: translateX(-50%); }
.core__orbit.o2 .core__dot { background: var(--cyan); box-shadow: 0 0 12px 3px var(--cyan); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .92; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* logo mark */
.mark { width: 30px; height: 30px; flex: none; }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 20, 39, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1; }
.brand__name span { color: var(--gold-bright); }
.brand__tag { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.24em; color: var(--on-dark-muted); text-transform: uppercase; margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  color: var(--on-dark-soft); font-size: 0.94rem; font-weight: 500;
  padding: 9px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav__links a.active { color: var(--gold-bright); }
.nav__cta { margin-left: 12px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; color: #fff; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: .3s; border-radius: 2px; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-850); border-bottom: 1px solid var(--line-dark);
    padding: 12px var(--gut) 24px; transform: translateY(-130%);
    transition: transform .4s var(--ease); max-height: calc(100vh - 70px); overflow:auto;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 8px; border-bottom: 1px solid var(--line-dark); }
  .nav__cta { margin: 14px 0 0; width: 100%; justify-content: center; }
}

/* -------------------------------------------------------------------- Hero */
.hero {
  position: relative; background: radial-gradient(120% 100% at 80% 0%, var(--ink-700), var(--ink-850) 55%, var(--ink-900));
  color: var(--on-dark); overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 50% at 78% 42%, rgba(224,169,78,0.16), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; padding-block: clamp(56px, 9vw, 110px); position: relative; z-index: 1;
}
.hero h1 { color: #fff; font-size: clamp(34px, 5.6vw, 62px); letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero__lead { margin-top: 22px; max-width: 540px; color: var(--on-dark-soft); font-size: 1.13rem; }
.hero__cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__core { max-width: 420px; margin-inline: auto; width: 100%; }
.hero__strip {
  position: relative; z-index: 1; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark);
}
.hero__strip .cell { background: var(--ink-850); padding: 22px var(--gut); }
.hero__strip .cell:not(:first-child) { padding-left: clamp(16px, 3vw, 34px); }
.hero__strip .num { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: #fff; }
.hero__strip .num b { color: var(--gold-bright); font-weight: 700; }
.hero__strip .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__core { display: none; }
  .hero__strip { grid-template-columns: repeat(2, 1fr); }
}

/* page hero (interior) */
.phero { background: radial-gradient(120% 120% at 85% -10%, var(--ink-700), var(--ink-850) 60%, var(--ink-900)); color: var(--on-dark); position: relative; overflow: hidden; }
.phero::after { content:""; position:absolute; inset:0; background: radial-gradient(36% 60% at 90% 20%, rgba(224,169,78,0.13), transparent 70%); }
.phero__in { position: relative; z-index: 1; padding-block: clamp(50px, 8vw, 92px); max-width: 760px; }
.phero h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); }
.phero p { margin-top: 18px; color: var(--on-dark-soft); font-size: 1.1rem; max-width: 600px; }
.breadcrumb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--on-dark-muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--gold-bright); }
.breadcrumb span { color: var(--gold-bright); }

/* ----------------------------------------------------------------- Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-2); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(224,169,78,0.4); }
.card__icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(224,169,78,0.16), rgba(92,198,228,0.10));
  color: var(--gold-deep); margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.97rem; }
.card .num-tag { font-family: var(--mono); font-size: 12px; color: var(--gold-deep); letter-spacing: 0.1em; }

/* card on ink */
.card--ink { background: var(--ink-700); border-color: var(--line-dark); }
.card--ink h3 { color: #fff; }
.card--ink p { color: var(--on-dark-soft); }
.card--ink:hover { border-color: rgba(224,169,78,0.45); }

/* feature list */
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat__num { font-family: var(--mono); font-size: 13px; color: var(--gold-deep); padding-top: 4px; flex: none; }
.feat h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feat p { color: var(--text-soft); font-size: 0.96rem; }
.section--ink .feat p { color: var(--on-dark-soft); }

/* ---------------------------------------------------------------- Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: center; }
.split.rev > .split__media { order: -1; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > .split__media { order: 0; } }
.split__media {
  border-radius: var(--radius); aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 20% 10%, var(--ink-700), var(--ink-850));
  border: 1px solid var(--line-dark);
}
.split__media .core { position: absolute; inset: 8%; }

.lead-p { font-size: 1.12rem; color: var(--text-soft); }
.section--ink .lead-p { color: var(--on-dark-soft); }
.prose p { margin-bottom: 16px; color: var(--text-soft); }
.prose p:last-child { margin-bottom: 0; }

/* check list */
.checks { display: grid; gap: 14px; margin-top: 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.checks .ico { width: 22px; height: 22px; border-radius: 50%; background: rgba(224,169,78,0.16); color: var(--gold-deep); display: grid; place-items: center; flex: none; margin-top: 2px; }
.checks .ico svg { width: 13px; height: 13px; }
.section--ink .checks li { color: var(--on-dark-soft); }

/* ----------------------------------------------------------------- Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--ink-700); padding: 34px 26px; text-align: center; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--gold-bright); letter-spacing: -0.02em; }
.stat .l { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-soft); margin-top: 6px; }

/* ----------------------------------------------------------- Testimonials */
.quote {
  background: var(--paper-2); border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 32px; position: relative;
}
.quote .mark-q { font-family: var(--display); font-size: 3rem; line-height: 0.6; color: var(--gold); opacity: .5; }
.quote p { font-size: 1.04rem; color: var(--text); margin: 12px 0 22px; }
.quote .who { display: flex; align-items: center; gap: 14px; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--ink-600), var(--ink-700)); display: grid; place-items: center; color: var(--gold-bright); font-family: var(--display); font-weight: 700; font-size: 1rem; flex: none; }
.quote .who b { display: block; font-size: 0.95rem; }
.quote .who small { color: var(--text-muted); font-size: 0.82rem; }

/* ----------------------------------------------------------------- CTA band */
.cta-band { background: linear-gradient(120% 100% at 0% 0%, var(--ink-700), var(--ink-850)); border-radius: var(--radius); padding: clamp(36px, 6vw, 64px); position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; right:-10%; top:-40%; width:50%; height:180%; background: radial-gradient(circle, rgba(224,169,78,0.18), transparent 65%); }
.cta-band__in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 3.4vw, 36px); max-width: 560px; }
.cta-band p { color: var(--on-dark-soft); margin-top: 12px; max-width: 460px; }

/* ----------------------------------------------------------------- Forms */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1px solid var(--line-light); border-radius: var(--radius-sm);
  background: var(--paper-2); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,169,78,0.16);
}
.form-note { font-size: 0.84rem; color: var(--text-muted); margin-top: 14px; }
.form-status { font-size: 0.95rem; margin-top: 14px; display: none; padding: 12px 16px; border-radius: var(--radius-sm); }
.form-status.ok { display: block; background: rgba(46, 160, 110, 0.12); color: #1c7a52; border: 1px solid rgba(46,160,110,.3); }
.form-status.err { display: block; background: rgba(210, 70, 70, 0.10); color: #b83232; border: 1px solid rgba(210,70,70,.3); }

/* ------------------------------------------------------------ Contact info */
.cinfo { display: grid; gap: 4px; }
.cinfo__item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-light); align-items: flex-start; }
.cinfo__item:last-child { border-bottom: 0; }
.cinfo__ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(224,169,78,0.14); color: var(--gold-deep); display: grid; place-items: center; flex: none; }
.cinfo__ico svg { width: 19px; height: 19px; }
.cinfo__item .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.cinfo__item .v { color: var(--text); font-size: 1rem; margin-top: 3px; }
.cinfo__item .v a { color: var(--text); }
.cinfo__item .v a:hover { color: var(--gold-deep); }

/* On dark sections, switch the contact info back to light text */
.section--ink .cinfo__item { border-bottom-color: var(--line-dark); }
.section--ink .cinfo__ico { color: var(--gold-bright); }
.section--ink .cinfo__item .k { color: var(--on-dark-muted); }
.section--ink .cinfo__item .v,
.section--ink .cinfo__item .v a { color: #fff; }
.section--ink .cinfo__item .v a:hover { color: var(--gold-bright); }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--ink-900); color: var(--on-dark-soft); padding-top: clamp(56px, 7vw, 84px); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand p { font-size: 0.92rem; max-width: 320px; }
.footer h4 { color: #fff; font-size: 0.8rem; font-family: var(--mono); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { font-size: 0.93rem; transition: color .2s; }
.footer ul a:hover { color: var(--gold-bright); }
.footer__addr { font-size: 0.92rem; font-style: normal; line-height: 1.7; }
.footer__addr a:hover { color: var(--gold-bright); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 0 38px; font-size: 0.84rem; color: var(--on-dark-muted); }
.footer__bottom a:hover { color: var(--gold-bright); }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }

/* --------------------------------------------------------------- Reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* --------------------------------------------------------- Misc utilities */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--gold-deep); background: rgba(224,169,78,0.10); border: 1px solid rgba(224,169,78,0.24); padding: 6px 13px; border-radius: 999px; }
.section--ink .tag { color: var(--gold-bright); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line-light); border: 0; margin: 0; }
