/* ============================================================
   OWN Solutions Sdn Bhd — Corporate Site Design System v1.0
   Palette: #0A2647 (Deep Navy) / #2E93F4 (Signal Blue)
   Fonts: Inter (EN) + Noto Sans SC (CN)
   ============================================================ */

:root {
  --navy: #0A2647;
  --navy-70: #12355c;
  --navy-05: rgba(10, 38, 71, 0.05);
  --blue: #2E93F4;
  --blue-dark: #1f6fc4;
  --ink: #17293d;
  --slate: #5b6b7b;
  --line: rgba(10, 38, 71, 0.12);
  --bg-soft: #f4f7fb;
  --white: #ffffff;
  --font: "Inter", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  --r: 10px;
  --shadow: 0 10px 30px rgba(10, 38, 71, 0.10);
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
.section-sub { color: var(--slate); max-width: 640px; margin-top: 12px; font-size: 1.02rem; }
.kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-head { margin-bottom: 44px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: 0.95rem;
  transition: all 0.2s ease; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46,147,244,0.35); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-70); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy); color: rgba(255,255,255,0.82);
  font-size: 0.82rem; padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a:hover { color: var(--blue); }
.topbar .lang-toggle {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; border-radius: 999px; padding: 3px 14px; font-size: 0.78rem;
  cursor: pointer; font-weight: 600;
}
.topbar .lang-toggle:hover { background: var(--blue); border-color: var(--blue); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.06rem; letter-spacing: 0.01em; line-height: 1.15; }
.brand-name small { display: block; font-weight: 600; font-size: 0.68rem; color: var(--slate); letter-spacing: 0.12em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  padding: 9px 15px; border-radius: 8px; font-weight: 600; font-size: 0.92rem; color: var(--ink);
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: var(--navy-05); }
.nav-cta { margin-left: 10px; padding: 10px 20px; font-size: 0.88rem; }
.nav-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-grid {
  background-image:
    linear-gradient(rgba(46,147,244,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,147,244,0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridpan 26s linear infinite;
}
@keyframes gridpan { to { background-position: 56px 56px, 56px 56px; } }
.hero-glow {
  position: absolute; z-index: -1; width: 820px; height: 820px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,147,244,0.32) 0%, transparent 65%);
  top: -420px; right: -180px; animation: float 9s ease-in-out infinite alternate;
}
@keyframes float { from { transform: translateY(0); } to { transform: translateY(48px); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: 0.42; z-index: -1; }
/* readability scrim over the data-center video so head-line text pops */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,16,32,0.92) 0%, rgba(6,16,32,0.72) 42%, rgba(6,16,32,0.30) 72%, rgba(6,16,32,0.10) 100%),
    linear-gradient(0deg, rgba(6,16,32,0.85) 0%, transparent 34%);
}
.hero .container { padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 780px; }
.hero h1 .accent { color: var(--blue); }
.hero-sub { margin-top: 20px; max-width: 600px; font-size: 1.08rem; color: rgba(255,255,255,0.82); }
.hero-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats bar ---------- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 34px 0; }
.stat { text-align: center; padding: 8px 12px; border-radius: var(--r); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat b em { font-style: normal; color: var(--blue); }
.stat span { color: var(--slate); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.04em; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .section-sub { color: rgba(255,255,255,0.72); }

/* Service cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 24px; transition: all 0.22s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(46,147,244,0.4); }
.card .num {
  font-size: 0.8rem; font-weight: 800; color: var(--blue); letter-spacing: 0.1em; margin-bottom: 12px; display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.92rem; }
.card .arrow { position: absolute; top: 26px; right: 22px; color: var(--blue); font-weight: 800; opacity: 0.5; }

/* Why us */
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-icon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--navy-05); border: 1px solid var(--line); font-size: 1.25rem; color: var(--blue);
}
.why-item h3 { margin-bottom: 6px; font-size: 1.05rem; }
.why-item p { color: var(--slate); font-size: 0.92rem; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }

/* Partner wall */
.wall { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.wall img { width: 100%; height: auto; }
.wall-caption { text-align: center; color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 16px; }

/* Custom Design spotlight banner */
.custom-banner {
  margin-top: 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(120deg, rgba(46,147,244,0.10), rgba(10,38,71,0.04));
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--r);
  padding: 28px 30px;
}
.custom-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.custom-copy h3 { margin: 0 0 8px; font-size: 20px; color: var(--navy); font-weight: 800; }
.custom-copy p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.custom-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.custom-tags span {
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px;
}
.custom-banner .btn { justify-self: end; white-space: nowrap; }

/* ---------- Data center photo wall ---------- */
.dc-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dc-fig { margin: 0; border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.10); transition: all 0.25s; }
.dc-fig:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 14px 34px rgba(0,0,0,0.4); }
.dc-fig img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.dc-fig figcaption { padding: 12px 14px; color: #fff; font-size: 0.85rem; font-weight: 600; background: rgba(255,255,255,0.05); border-top: 1px solid rgba(255,255,255,0.08); }
.dc-credit { text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.4); margin-top: 18px; }

/* ---------- Build & Deliver media (video) ---------- */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.media-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: 0 2px 10px rgba(10,38,71,0.05); transition: all 0.25s; }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.video-frame { position: relative; background: #07182e; aspect-ratio: 16/10; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-copy { padding: 22px 24px 26px; }
.media-copy h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.15rem; font-weight: 800; }
.media-copy p { color: var(--slate); font-size: 0.92rem; margin-bottom: 18px; }
@media (max-width: 900px) {
  .dc-wall { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .custom-banner { grid-template-columns: 1fr; gap: 16px; }
  .custom-icon { width: 46px; height: 46px; font-size: 22px; }
  .custom-banner .btn { justify-self: start; width: 100%; text-align: center; }
}
.section-navy .ind-card { border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r); padding: 30px 26px; background: rgba(255,255,255,0.04); transition: all 0.2s; }
.section-navy .ind-card:hover { background: rgba(46,147,244,0.12); border-color: var(--blue); transform: translateY(-4px); }
.section-navy .ind-card .tag { color: var(--blue); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.section-navy .ind-card h3 { color: #fff; margin: 10px 0; }
.section-navy .ind-card p { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
/* Light section variant (default on white bg) */
.ind-card { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; background: var(--white); box-shadow: 0 2px 10px rgba(10,38,71,0.05); transition: all 0.2s; }
.ind-card:hover { border-color: rgba(46,147,244,0.5); box-shadow: var(--shadow); transform: translateY(-4px); }
.ind-card .tag { color: var(--blue); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ind-card h3 { color: var(--navy); margin: 10px 0; font-size: 1.15rem; font-weight: 700; }
.ind-card p { color: var(--slate); font-size: 0.92rem; }

/* CTA band */
.cta-band { padding: 72px 0; background: linear-gradient(120deg, var(--navy) 0%, #10406f 60%, var(--blue-dark) 130%); color: #fff; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { color: rgba(255,255,255,0.78); margin-top: 10px; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: #071c35; color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 44px; padding: 52px 0 36px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--blue); }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand img { height: 42px; width: auto; }
.foot-brand span { color: #fff; font-weight: 800; letter-spacing: 0.06em; line-height: 1.2; }
.foot-brand small { display: block; font-weight: 600; font-size: 0.66rem; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 0.8rem; color: rgba(255,255,255,0.45); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat { border-left: none; }
  .stat { border-top: 1px solid var(--line); padding-top: 18px; }
  .stats-grid .stat:nth-child(-n+2) { border-top: none; padding-top: 8px; }
  .grid-4, .grid-3, .why-list { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; padding: 16px 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .nav-cta { margin: 10px 0 0; text-align: center; }
  .nav-burger { display: block; }
  .topbar .top-left { display: none; }
  .topbar .container { justify-content: flex-end; }
  .cta-band .inner { flex-direction: column; align-items: flex-start; }
}
