/* Digital360 — digital360.com.sg
   Design tokens from the Industry design system. */

:root {
  --bg: #f2f2f3;
  --surface: #e9e9ea;
  --text: #1d1f20;
  --muted: rgba(29, 31, 32, 0.72);
  --faint: rgba(29, 31, 32, 0.55);
  --divider: rgba(29, 31, 32, 0.16);
  --accent: #5980a6;
  --accent-200: #d6ebff;
  --accent-300: #b5d9fd;
  --accent-600: #597ea3;
  --accent-700: #416180;
  --accent-900: #1d2d3d;
  --paper: #f2f2f3;
  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

p { margin: 0; }

a { color: var(--accent-700); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--accent-900); text-decoration: underline; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(89, 128, 166, 0.3); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.rule { border-bottom: 1px solid var(--divider); }

/* blueprint frame */
.blueprint { position: relative; border: 1px solid var(--divider); border-radius: 0; }
.blueprint > .corner { position: absolute; width: 11px; height: 11px; color: rgba(29, 31, 32, 0.55); }
.blueprint > .corner::before,
.blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-0.5px); }
.blueprint > .corner::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-0.5px); }
.blueprint > .corner.tl { left: -6px; top: -6px; }
.blueprint > .corner.tr { right: -6px; top: -6px; }
.blueprint > .corner.bl { left: -6px; bottom: -6px; }
.blueprint > .corner.br { right: -6px; bottom: -6px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-600); color: var(--paper); }
.btn-primary:active { background: var(--accent-700); }
.btn-secondary { border-color: var(--divider); color: var(--text); }
.btn-secondary:hover { background: rgba(29, 31, 32, 0.07); color: var(--text); }
.btn-secondary:active { background: rgba(29, 31, 32, 0.14); }

/* labels */
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-700); }
.label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.section-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-700); margin: 6px 0 0; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(242, 242, 243, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--divider);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { font-family: var(--font-heading); font-weight: 600; font-size: 22px; letter-spacing: 0.01em; color: var(--text); }
.brand:hover { color: var(--text); text-decoration: none; }
.brand span { color: var(--accent-700); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.site-nav a:hover { color: var(--accent-700); text-decoration: none; }

/* hero */
.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.hero .eyebrow { display: block; margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 15em;
  text-wrap: pretty;
}
.hero-lede { font-size: 18px; line-height: 1.6; max-width: 34em; margin-bottom: 32px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.facts { padding: 22px 24px; display: grid; gap: 18px; }
.facts .divider { height: 1px; background: var(--divider); }
.facts dt { margin: 0; }
.facts dd { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 21px; }

/* sections */
.section { padding: 80px 0; }
.section-grid { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 48px; }
.statement { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.4; margin-bottom: 40px; max-width: 30em; text-wrap: pretty; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.points h3 { font-size: 20px; margin-bottom: 6px; }
.points p { color: var(--muted); }

/* products */
.products { background: var(--accent-900); color: var(--paper); padding: 88px 0; }
.products .section-label { color: var(--accent-300); }
.product-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.product-name { font-family: var(--font-heading); font-weight: 600; font-size: clamp(34px, 4.4vw, 52px); line-height: 1; }
.product-link {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-300);
  border-bottom: 1px solid rgba(242, 242, 243, 0.4);
  padding-bottom: 2px;
}
.product-link:hover { color: var(--paper); text-decoration: none; }
.product-claim { font-family: var(--font-heading); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin-bottom: 28px; }
.product-body { font-size: 17px; line-height: 1.65; max-width: 40em; color: rgba(242, 242, 243, 0.84); }

.routing { margin-top: 44px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.routing .node { border: 1px solid rgba(242, 242, 243, 0.35); padding: 14px 20px; font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.routing .node.api { border-color: var(--accent-300); color: var(--accent-200); }
.routing .link { flex: 0 0 40px; height: 1px; background: rgba(242, 242, 243, 0.4); }
.routing .channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; flex: 1 1 300px; }
.routing .channel {
  border: 1px solid rgba(242, 242, 243, 0.28);
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.15s ease;
}
.routing .channel:hover { border-color: var(--accent); }

/* contact */
.contact { padding: 88px 0; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; align-items: start; }
.contact-card { padding: 24px; }
.contact-card .label { display: block; margin-bottom: 10px; }
.contact-card .big { font-family: var(--font-heading); font-weight: 600; font-size: 26px; }
.contact-card .addr { font-family: var(--font-heading); font-weight: 600; font-size: 22px; line-height: 1.25; }
.contact-card p { margin-top: 14px; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--divider); }
.site-footer .wrap {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .col { display: grid; gap: 4px; font-size: 14px; }
.site-footer .brand { font-size: 20px; display: block; }
.site-footer .fine { font-size: 13px; color: var(--faint); }
.site-footer .addr { color: var(--muted); }

/* legal pages */
.legal-header { border-bottom: 1px solid var(--text); }
.legal-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.legal-back { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal-main { max-width: 1000px; margin: 0 auto; padding: 64px 28px 0; }
.legal-main h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.02; letter-spacing: -0.02em; margin: 18px 0 20px; }
.legal-date { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 40px; }
.legal-body { border-top: 1px solid var(--text); }
.legal-section { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 40px; padding: 30px 0; border-bottom: 1px solid var(--divider); }
.legal-section:last-child { border-bottom: 0; }
.legal-section h2 { font-size: 20px; line-height: 1.2; }
.legal-section p { margin-bottom: 14px; font-size: 16px; line-height: 1.7; color: rgba(29, 31, 32, 0.82); }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 10px; }
.legal-section ul:last-child { margin-bottom: 0; }
.legal-section li { font-size: 16px; line-height: 1.65; color: rgba(29, 31, 32, 0.82); }
.legal-caps { font-size: 14px; letter-spacing: 0.02em; }
.legal-footer { border-top: 1px solid var(--divider); margin-top: 56px; }
.legal-footer .inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 13px;
  color: var(--faint);
}
.legal-footer .links { display: flex; gap: 22px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 860px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid,
  .section-grid,
  .legal-section { grid-template-columns: 1fr; gap: 32px; }
  .legal-section { gap: 14px; }
  .section, .products, .contact { padding: 56px 0; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 11px; }
  .routing .link { display: none; }
}
