/* ============================================================
   ARCHISYNC TECHNOLOGIES LIMITED — Cipher Protocol
   Colors calibrated to company profile (charcoal + logo teal)
   ============================================================ */

:root {
  /* Profile-matched palette */
  --void:      #131B2E;              /* dark charcoal-navy (matches profile bg) */
  --surface:   #1A2440;
  --srf2:      #222E4E;
  --teal:      #3ABFCF;              /* brighter teal matching logo triangle */
  --teal-dim:  rgba(58,191,207,0.5);
  --teal-glow: rgba(58,191,207,0.08);
  --border:    rgba(58,191,207,0.14);
  --border-s:  rgba(58,191,207,0.28);
  --text:      #B8D4E6;
  --muted:     #64869E;
  --white:     #EDF5FA;

  --fd: 'Barlow Condensed', 'Impact', sans-serif;
  --fb: 'Sora', system-ui, sans-serif;

  --t-xs:   0.72rem;
  --t-sm:   0.875rem;
  --t-base: 1rem;
  --t-md:   1.1rem;
  --t-lg:   1.25rem;
  --t-xl:   1.5rem;
  --t-2xl:  2rem;
  --t-3xl:  2.5rem;
  --t-4xl:  3.25rem;
  --t-hero: clamp(4.5rem, 14vw, 10rem);

  --sp2:  0.5rem;
  --sp3:  0.75rem;
  --sp4:  1rem;
  --sp6:  1.5rem;
  --sp8:  2rem;
  --sp10: 2.5rem;
  --sp12: 3rem;
  --sp16: 4rem;
  --sp24: 6rem;
  --sp32: 8rem;

  --nav-h: 72px;
  --max-w: 1120px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--fb);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp8);
}

/* === NAV === */
.site-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp8);
  gap: var(--sp8);
  background: rgba(19, 27, 46, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease-out;
}

.site-nav.scrolled { border-bottom-color: var(--border); }

.nav-logo { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }

.logo-mark {
  font-family: var(--fd);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--white);
}

.logo-a { color: var(--teal); }

.logo-sub {
  font-family: var(--fb);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links { display: flex; align-items: center; gap: var(--sp8); }

.nav-link {
  font-family: var(--fb);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 3px;
  transition: color 200ms ease-out;
}

.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--teal); }
.nav-link.active::after {
  content: '';
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  height: 1px;
  background: var(--teal);
}

/* === BUTTONS (rounded per company profile style) === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  font-family: var(--fb);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0A1520;
  background: var(--teal);
  padding: 0.72em 1.7em;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 200ms ease-out, transform 180ms ease-out, box-shadow 200ms ease-out;
}

.btn-primary:hover {
  background: #4ACFDF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 191, 207, 0.28);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--fb);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal);
  border: 1px solid var(--border-s);
  padding: 0.72em 1.7em;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color 200ms, color 200ms, background 200ms;
}

.btn-ghost:hover {
  border-color: var(--teal);
  background: var(--teal-glow);
  color: var(--white);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,191,207,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,191,207,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-drift 32s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to   { background-position: 50px 50px; }
}

.hero-glow {
  position: absolute;
  top: 40%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(58,191,207,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-glow--b {
  top: 70%;
  left: 78%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(58,191,207,0.055) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: var(--sp24);
  padding-bottom: var(--sp24);
}

.hero-eye {
  font-family: var(--fb);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp6);
}

.hero-hed {
  display: flex;
  flex-direction: column;
  line-height: 0.88;
  margin-bottom: var(--sp6);
}

.hero-brand {
  font-family: var(--fd);
  font-size: var(--t-hero);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--white);
  text-transform: uppercase;
}

.brand-a { color: var(--teal); }

.hero-subbrand {
  font-family: var(--fd);
  font-size: clamp(1.1rem, 3.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0.25em;
}

.hero-desc {
  font-family: var(--fb);
  font-size: var(--t-xl);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  max-width: 50ch;
  margin-bottom: var(--sp8);
  padding-left: var(--sp4);
  border-left: 2px solid var(--teal);
}

.hero-actions {
  display: flex;
  gap: var(--sp4);
  flex-wrap: wrap;
  margin-bottom: var(--sp16);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--sp6);
  flex-wrap: wrap;
  padding-top: var(--sp8);
  border-top: 1px solid var(--border);
}

.h-stat { display: flex; flex-direction: column; gap: 2px; }

.h-stat-n {
  font-family: var(--fd);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
}

.h-stat-l {
  font-family: var(--fb);
  font-size: var(--t-xs);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.h-stat-div {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* === TICKER === */
.ticker-wrap {
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.ticker {
  display: flex;
  gap: var(--sp8);
  white-space: nowrap;
  animation: ticker-run 30s linear infinite;
}

.ticker span {
  font-family: var(--fd);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.ticker .tick-sep { color: var(--teal); font-weight: 300; }

@keyframes ticker-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === SECTION === */
.section {
  padding: var(--sp32) 0;
  border-top: 1px solid var(--border);
}

.section--surface { background: var(--surface); }

.s-header {
  position: relative;
  margin-bottom: var(--sp12);
}

.s-num {
  position: absolute;
  top: -1rem;
  left: -0.25rem;
  font-family: var(--fd);
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(58,191,207,0.055);
  pointer-events: none;
  user-select: none;
}

.s-label {
  display: inline-block;
  font-family: var(--fb);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp4);
  position: relative;
  z-index: 1;
}

.s-head {
  font-family: var(--fd);
  font-size: var(--t-4xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 26ch;
  position: relative;
  z-index: 1;
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp12);
  align-items: start;
}

.body-p {
  font-family: var(--fb);
  font-size: var(--t-md);
  line-height: 1.78;
  color: var(--text);
  margin-bottom: var(--sp4);
}

.mv-col { display: flex; flex-direction: column; gap: var(--sp4); }

.mv-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--sp6);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 250ms ease-out;
}

.section--surface .mv-card { background: var(--srf2); }
.mv-card:hover { border-color: var(--border-s); }

.mv-bar {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--teal);
}

.mv-lbl {
  display: block;
  font-family: var(--fb);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp3);
}

.mv-txt {
  font-family: var(--fb);
  font-size: var(--t-base);
  line-height: 1.72;
  color: var(--text);
}

/* === BENTO (SERVICES) === */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.bcard {
  background: var(--void);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 250ms ease-out;
}

.section--surface .bcard { background: var(--surface); }
.bcard:hover { background: var(--srf2); }
.bcard--wide { grid-column: span 2; }
.bcard--full { grid-column: span 3; }

/* Image strip with hover zoom */
.bcard-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: var(--srf2);
  flex-shrink: 0;
  transition: transform 500ms ease-out;
}

.bcard:hover .bcard-img { transform: scale(1.04); }

.bcard--full .bcard-img { height: 220px; }

.bcard-body {
  padding: var(--sp8);
  display: flex;
  flex-direction: column;
  gap: var(--sp4);
  flex: 1;
}

.bcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp4);
}

.bcard-top > div { flex: 1; }

.bcard-num {
  display: block;
  font-family: var(--fd);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: var(--sp3);
}

.bcard-name {
  font-family: var(--fd);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--sp2);
}

.bcard-desc {
  font-family: var(--fb);
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--muted);
}

.bcard-icon {
  width: 30px;
  height: 30px;
  color: var(--teal);
  opacity: 0.65;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.bcard-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: var(--sp4);
  border-top: 1px solid var(--border);
}

/* Full-width card shows list in columns */
.bcard--full .bcard-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem var(--sp8);
}

.bcard-list li {
  font-family: var(--fb);
  font-size: var(--t-xs);
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}

.bcard-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 0.65em;
  top: 0.25em;
}

/* === VALUES === */
.val-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--border);
  gap: 1px;
  border-radius: var(--radius);
  overflow: hidden;
}

.val-item {
  background: var(--void);
  padding: var(--sp8) var(--sp6);
  display: flex;
  flex-direction: column;
  gap: var(--sp3);
  transition: background 250ms ease-out;
}

.val-item:hover { background: var(--surface); }

.val-n {
  font-family: var(--fd);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.val-name {
  font-family: var(--fd);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.1;
}

.val-desc {
  font-family: var(--fb);
  font-size: var(--t-xs);
  color: var(--muted);
  line-height: 1.65;
}

/* === CREDENTIALS === */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp4);
}

.cred-card {
  background: var(--void);
  border: 1px solid var(--border);
  padding: var(--sp6);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: var(--sp2);
  transition: border-color 250ms ease-out, background 250ms ease-out, transform 200ms ease-out;
}

.section--surface .cred-card { background: var(--surface); }

.cred-card:hover {
  border-color: var(--teal);
  background: var(--srf2);
  transform: translateY(-3px);
}

.cred-icon { width: 22px; height: 22px; color: var(--teal); margin-bottom: var(--sp2); }
.cred-auth { font-family: var(--fd); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.22em; color: var(--teal); }

.cred-title {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  line-height: 1.25;
}

.cred-detail { font-family: var(--fb); font-size: var(--t-xs); color: var(--text); line-height: 1.5; }
.cred-date   { font-family: var(--fb); font-size: 0.68rem; color: var(--muted); margin-top: auto; padding-top: var(--sp3); }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp16);
  align-items: start;
}

.contact-hed {
  font-family: var(--fd);
  font-size: var(--t-4xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: var(--sp6);
}

.c-item { margin-bottom: var(--sp8); }

.c-lbl {
  display: block;
  font-family: var(--fb);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp2);
}

.c-item p, .c-item address { font-family: var(--fb); font-size: var(--t-md); color: var(--text); line-height: 1.65; }

.c-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-s);
  transition: color 200ms, text-decoration-color 200ms;
}

.c-item a:hover { color: var(--teal); text-decoration-color: var(--teal); }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--sp12) 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--sp8);
  align-items: center;
}

.footer-brand { display: flex; flex-direction: column; gap: 2px; }

.footer-mark {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.footer-a { color: var(--teal); }

.footer-sub { font-family: var(--fb); font-size: 0.6rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

.footer-legal { font-family: var(--fb); font-size: var(--t-xs); color: var(--muted); line-height: 1.75; text-align: center; }

.footer-nav { display: flex; gap: var(--sp6); justify-content: flex-end; }

.footer-nav a { font-family: var(--fb); font-size: var(--t-xs); color: var(--muted); transition: color 200ms ease-out; }
.footer-nav a:hover { color: var(--teal); }

/* === FADE-UP === */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}
.fade-up.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero-grid, .ticker { animation: none; }
  .bcard:hover .bcard-img { transform: none; }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cred-grid { grid-template-columns: repeat(3, 1fr); }
  .val-grid  { grid-template-columns: repeat(3, 1fr); }
  .bcard--full .bcard-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bcard--wide { grid-column: span 1; }
  .bcard--full { grid-column: span 2; }
  .bcard--full .bcard-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .s-head { font-size: var(--t-3xl); }
}

@media (max-width: 768px) {
  :root { --sp32: 5rem; }
  .nav-links { display: none; }
  .site-nav  { padding: 0 var(--sp6); }
  .container { padding: 0 var(--sp6); }
  .bento { grid-template-columns: 1fr; }
  .bcard--full { grid-column: span 1; }
  .bcard--full .bcard-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--sp10); }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .val-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: var(--sp6); }
  .footer-nav { justify-content: center; }
}

@media (max-width: 520px) {
  :root { --sp32: 4rem; }
  .cred-grid { grid-template-columns: 1fr; }
  .val-grid  { grid-template-columns: 1fr; }
  .hero-subbrand { letter-spacing: 0.14em; }
  .h-stat-div { display: none; }
  .bcard-img { height: 140px; }
}
