/* =========================================================================
   Octopus Information Pte Ltd — Corporate site styles
   Palette: corporate navy + muted teal accent on white/light backgrounds.
   No external dependencies. System font stack for fast, private loading.
   ========================================================================= */

:root {
  --ink:        #0a2236;   /* primary headings / deep navy */
  --navy:       #0a3a5e;   /* brand navy */
  --accent:     #0f6fb0;   /* primary blue — links & icons */
  --accent-dk:  #0a4f80;   /* hover / active */
  --accent-br:  #1f8fd0;   /* bright highlight (logo gradient top) */
  --grad:       linear-gradient(135deg, #1f8fd0 0%, #0a3a5e 58%, #08243d 100%);
  --body:       #3b4956;   /* body text — a touch deeper for crisper contrast */
  --muted:      #67768a;   /* secondary text */
  --line:       #e5e9ef;   /* hairline borders */
  --line-2:     #d7dfe8;   /* stronger hairline */
  --bg:         #ffffff;
  --page:       #fbfcfe;   /* page base — softer than pure white */
  --bg-soft:    #f3f6fb;   /* alternating section background */
  --bg-tint:    #edf3f9;   /* faint accent tint */
  --white:      #ffffff;
  --shadow-sm:  0 1px 2px rgba(10, 34, 54, .04);
  --shadow-md:  0 2px 5px rgba(10, 34, 54, .05);
  --shadow-lg:  0 24px 60px rgba(10, 34, 54, .12);
  --radius:     12px;
  --radius-sm:  8px;
  --maxw:       1140px;
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--page);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.16; letter-spacing: -.022em; margin: 0; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ------------------------------ Layout ------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 116px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin: 0 0 60px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.03em; margin-top: 14px; max-width: 16ch; }
.section-intro { margin-top: 16px; font-size: 1.06rem; color: var(--muted); }

.eyebrow {
  display: inline-block;
  margin: 0;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b { color: var(--accent); font-weight: 600; margin-right: .7em; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease),
              box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn-primary:hover { background: #15334e; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dk); background: var(--white); }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-logo { height: 42px; width: auto; display: block; transform-origin: center 70%; transition: transform .3s var(--ease); }
.brand:hover .brand-logo { animation: brandBreathe 1.3s ease-in-out infinite; }
@keyframes brandBreathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.08) rotate(-2.5deg); }
  70% { transform: scale(1.08) rotate(2.5deg); }
}
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-weight: 700; font-size: 1.12rem; line-height: 1.06; color: var(--ink); letter-spacing: -.01em; }
.brand-suffix { font-family: var(--mono); font-size: .67rem; line-height: 1; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.site-nav { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu > li > a {
  display: inline-block; padding: 9px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 500; font-size: .96rem;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav-menu > li > a:hover { background: var(--bg-tint); color: var(--accent-dk); text-decoration: none; }
.nav-cta { margin-left: 6px; }
.nav-menu > li.nav-cta > a { color: #fff; }
.nav-menu > li.nav-cta > a:hover { color: #fff; background: #15334e; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; padding: 11px;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle-bar { height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--bg-tint), transparent 70%),
    linear-gradient(180deg, #fbfdfe 0%, #ffffff 60%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center;
  padding: 104px 24px 108px;
}
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); letter-spacing: -.035em; font-weight: 700; margin: 20px 0 0; }
.hero-sub { margin-top: 24px; font-size: 1.12rem; line-height: 1.6; color: var(--muted); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-chips li {
  font-size: .85rem; font-weight: 600; color: var(--navy);
  background: var(--white); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero-visual { display: flex; justify-content: center; align-items: center; }

/* tmux-style operations terminal (hero visual) */
.terminal {
  width: 100%; max-width: 500px;
  background: #0b2236;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: #cfdbe5;
}
.term-bar {
  display: flex; align-items: center; gap: 10px;
  background: #0e2c45; padding: 9px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.term-dots { display: inline-flex; gap: 6px; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a5a72; }
.term-dots i:nth-child(1) { background: #ff5f57; }
.term-dots i:nth-child(2) { background: #febc2e; }
.term-dots i:nth-child(3) { background: #28c840; }
.term-title { font-size: .76rem; color: #7f97a9; letter-spacing: .02em; }
.term-body { display: flex; gap: 14px; padding: 16px; font-size: .78rem; line-height: 1.55; }
.term-ascii { margin: 0; color: #4db5e8; white-space: pre; font-size: .7rem; line-height: 1.2; }
.term-log { margin: 0; white-space: pre; flex: 1; border-left: 1px solid rgba(255, 255, 255, .08); padding-left: 14px; }
.t-host { color: #4cd6a0; }
.t-dim { color: #6f8a9c; }
.t-ok { color: #38c98b; }
.t-tag { color: #5cb8e6; }
.term-cursor { display: inline-block; width: .5em; height: 1.02em; background: #cfdbe5; vertical-align: -2px; margin-left: 3px; }
.term-status {
  display: flex; justify-content: space-between; align-items: center;
  background-image: var(--grad); color: #eaf4fb; font-size: .72rem; padding: 5px 12px;
}
.ts-win { opacity: .82; margin-right: 10px; }
.ts-active { background: rgba(255, 255, 255, .22); color: #fff; padding: 1px 7px; border-radius: 4px; opacity: 1; font-weight: 600; }
.ts-right { opacity: .92; }

/* Terminal motion — only for users who haven't asked to reduce it. */
@media (prefers-reduced-motion: no-preference) {
  .term-log .t-line { opacity: 0; animation: termLine .4s ease forwards; }
  .term-log .t-line:nth-child(1) { animation-delay: .2s; }
  .term-log .t-line:nth-child(2) { animation-delay: .5s; }
  .term-log .t-line:nth-child(3) { animation-delay: .8s; }
  .term-log .t-line:nth-child(4) { animation-delay: 1.1s; }
  .term-log .t-line:nth-child(5) { animation-delay: 1.4s; }
  .term-log .t-line:nth-child(6) { animation-delay: 1.7s; }
  .term-log .t-line:nth-child(7) { animation-delay: 2s; }
  .term-cursor { animation: termBlink 1.1s steps(1) infinite; }
}
@keyframes termLine { to { opacity: 1; } }
@keyframes termBlink { 50% { opacity: 0; } }

@media (max-width: 560px) {
  .term-body { flex-direction: column; gap: 12px; }
  .term-ascii { text-align: center; }
  .term-log { border-left: none; border-top: 1px solid rgba(255, 255, 255, .08); padding-left: 0; padding-top: 12px; }
}

/* ------------------------------ About ------------------------------ */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
.about-copy p { font-size: 1.06rem; }
.about-copy p:last-child { margin-bottom: 0; }

.about-points { display: grid; gap: 14px; }
.about-points li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.point-icon {
  flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); color: var(--accent);
}
.about-points strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.about-points span { color: var(--muted); font-size: .94rem; line-height: 1.5; }

/* ------------------------------ Leadership ------------------------------ */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.leader-card {
  text-align: center;
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 32px; box-shadow: none;
}
.leader-avatar {
  display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px;
  border-radius: 50%; font-family: var(--mono); font-size: 1.3rem; font-weight: 500; letter-spacing: .03em;
  color: #fff; background: var(--ink);
}
.leader-name { font-size: 1.32rem; }
.leader-role { margin: 4px 0 0; color: var(--accent-dk); font-weight: 600; font-size: .98rem; }
.leader-bio-text { margin: 18px 0 22px; text-align: left; color: var(--body); font-size: 1rem; line-height: 1.62; }
.leader-edu {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin: auto auto 0;
  font-family: var(--mono); font-weight: 400; color: var(--muted); font-size: .76rem; line-height: 1.5;
  border-top: 1px solid var(--line); padding: 20px 0 0; width: 100%;
}
.edu-icon { color: var(--muted); display: inline-flex; flex: none; }

/* ------------------------------ Services ------------------------------ */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: none;
  transition: border-color .2s var(--ease);
}
.card:hover { border-color: var(--accent); }
.card-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 18px;
  transition: border-color .2s var(--ease);
}
.card:hover .card-icon { border-color: var(--accent); }
.card h3 { font-size: 1.16rem; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.62; }

/* ------------------------------ Engagement (split) ------------------------------ */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.split-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.03em; margin: 14px 0 22px; }
.split-text p { font-size: 1.06rem; }
.split-text p:last-child { margin-bottom: 0; }

.engagement-list { display: grid; gap: 0; }
.engagement-list li {
  position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 20px;
  align-items: start; padding-bottom: 34px;
}
.engagement-list li:last-child { padding-bottom: 0; }
.engagement-list li:not(:last-child)::before {
  content: ""; position: absolute; left: 14px; top: 34px; bottom: 0; width: 1px; background: var(--line-2);
}
.badge-num {
  position: relative; z-index: 1; flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: .82rem;
  color: var(--ink); background: var(--white); border: 1px solid var(--line-2);
}
.engagement-list strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 600; margin: 3px 0 5px; }
.engagement-list span { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* ------------------------------ Governance ------------------------------ */
.governance-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.governance-copy p { font-size: 1.06rem; }
.tick-list { display: grid; gap: 12px; margin-top: 22px; }
.tick-list li {
  position: relative; padding-left: 34px; color: var(--body); font-weight: 500;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--bg-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a2236' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.callout {
  background: var(--ink); color: #cdd9e2; border-radius: var(--radius);
  padding: 30px; box-shadow: none;
  border: 1px solid rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.callout::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent);
}
.callout-title {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em;
  color: #7fd0e6; font-size: .78rem; font-weight: 600; margin-bottom: 14px;
}
.callout p { margin: 0; font-family: var(--mono); font-size: .85rem; line-height: 1.78; color: #b7c5d1; }

/* ------------------------------ Contact ------------------------------ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); text-align: left;
}
.contact-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line-2); color: var(--accent); margin-bottom: 16px;
}
.contact-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--body); line-height: 1.6; }
.contact-card a { font-weight: 600; word-break: break-word; }
.contact-cta { margin-top: 36px; text-align: center; }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--ink); color: #aebcc6; padding: 56px 0 30px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { color: var(--accent); }
.footer-logo { height: 40px; width: auto; display: block; }
.footer-name { margin: 0; color: #fff; font-weight: 700; font-size: 1.06rem; }
.footer-tag { margin: 2px 0 0; font-size: .88rem; color: #8c9ba6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: #c4d2da; font-size: .94rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-legal { padding-top: 26px; }
.disclaimer { font-size: .86rem; line-height: 1.7; color: #8c9ba6; max-width: 980px; margin: 0 0 14px; }
.copyright { margin: 0; font-size: .85rem; color: #7c8b96; }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 60px; padding-bottom: 64px; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 380px; }
  .about-grid, .split, .governance-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-card { padding: 32px 28px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .header-inner { height: 64px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 16px 20px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .22s var(--ease), opacity .22s var(--ease);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu > li > a { display: block; padding: 12px 14px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-cta a { width: 100%; }

  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 540px) {
  .cards-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 34px; }
  .callout, .leader-card { padding: 26px; }
}

/* ===== Spec-sheet blocks (About + Contact) ===== */
.about-cols { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: start; }
.about-main h2 { margin-top: 14px; }
.about-main .lead { margin-top: 34px; }
.about-graphic {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 28px;
  background-color: var(--white);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px; background-position: center;
}
.about-graphic svg { width: 100%; height: auto; display: block; }
.lead { margin: 0; font-size: 1.5rem; line-height: 1.42; font-weight: 500; letter-spacing: -.015em; color: var(--ink); }
.spec { margin: 0; border-top: 1px solid var(--line-2); }
.spec-row { display: grid; grid-template-columns: 132px 1fr; gap: 22px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.spec-row dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding-top: 4px; }
.spec-row dd { margin: 0; color: var(--body); font-size: 1.02rem; line-height: 1.5; }
.spec-row dd a { font-weight: 600; word-break: break-word; }

/* ===== Services index ===== */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid var(--line-2); }
.svc { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 26px 2px; border-bottom: 1px solid var(--line); align-items: start; }
.svc-mark { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding-top: 2px; }
.svc-ic { color: var(--ink); display: inline-flex; }
.svc-n { font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.svc h3 { font-size: 1.16rem; font-weight: 600; }
.svc p { grid-column: 2; margin: 7px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* ===== Contact record ===== */
.contact-record { max-width: 680px; }
.contact-record .btn { margin-top: 30px; }

/* ===== Legal / Privacy page ===== */
.legal { max-width: 720px; }
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.03em; margin-top: 14px; }
.legal-meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin: 12px 0 6px; }
.legal h2 { font-size: 1.3rem; margin: 42px 0 12px; }
.legal p { color: var(--body); font-size: 1.02rem; line-height: 1.7; }
.legal a { font-weight: 600; }
.footer-legal a { color: #c4d2da; }

@media (max-width: 860px) {
  .about-cols { grid-template-columns: 1fr; gap: 36px; }
  .svc-list { grid-template-columns: 1fr; column-gap: 0; }
}
@media (max-width: 480px) {
  .spec-row { grid-template-columns: 96px 1fr; gap: 14px; }
  .lead { font-size: 1.3rem; }
}

/* =========================================================================
   Interactive terminal (progressive enhancement)
   Hidden by default; main.js adds body.term-mode to activate it, so no-JS
   visitors, crawlers, and screen readers get the full standard page.
   ========================================================================= */
.terminal-app { display: none; }
body.term-mode { overflow: hidden; }
body.term-mode .site-header,
body.term-mode main,
body.term-mode .site-footer { display: none !important; }
body.term-mode .terminal-app {
  display: flex; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center; padding: clamp(0px, 3vw, 40px);
  background:
    radial-gradient(1200px 600px at 80% -10%, #0e2c45, transparent 70%),
    linear-gradient(180deg, #07182a, #0a1f33);
}
.ta-frame {
  width: 100%; max-width: 940px; height: min(86vh, 660px);
  display: flex; flex-direction: column;
  background: #0b2236; border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.ta-bar {
  display: flex; align-items: center; gap: 10px;
  background: #0e2c45; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.ta-bar .term-title { flex: 1; }
.ta-exit {
  font: inherit; font-size: .76rem; color: #cfe0ee;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px; padding: 5px 12px; cursor: pointer;
}
.ta-exit:hover { background: rgba(255, 255, 255, .13); color: #fff; }

.ta-screen {
  flex: 1; overflow-y: auto; padding: 18px 20px;
  font-size: .9rem; line-height: 1.55; color: #cfdbe5; -webkit-overflow-scrolling: touch;
}
.ta-line { white-space: pre-wrap; word-break: break-word; }
.ta-line.ta-pre { white-space: pre; word-break: normal; }
.ta-line:empty { height: .6em; }
.t-head { color: #eaf4fb; font-weight: 700; }
.t-host { color: #4cd6a0; }
.t-ok   { color: #38c98b; }
.t-tag  { color: #5cb8e6; }
.t-dim  { color: #8aa0b2; }
.t-err  { color: #ff7a7a; }
.t-note { color: #cdd9e2; }
.t-octo { color: #4db5e8; }
.ta-echo { margin-top: 5px; }

.ta-inputline { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ta-prompt { color: #4cd6a0; flex: none; }
.ta-input {
  flex: 1; min-width: 0; font: inherit; color: #eaf4fb;
  background: transparent; border: none; outline: none; padding: 2px 0; caret-color: #1f8fd0;
}

.ta-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px; background: #0a1f33; border-top: 1px solid rgba(255, 255, 255, .07);
}
.ta-chips button {
  font: inherit; font-size: .8rem; color: #bcd0e0;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.ta-chips button:hover { background: rgba(31, 143, 208, .18); border-color: #1f8fd0; color: #fff; }
.ta-chips .chip-alt { margin-left: auto; background: rgba(31, 143, 208, .14); border-color: rgba(31, 143, 208, .42); color: #eaf4fb; }

.open-terminal { display: none; }
.open-terminal.is-on {
  display: inline-flex; align-items: center; gap: 6px;
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem;
  color: #eaf4fb; background: #0b2236; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px; padding: 10px 16px; cursor: pointer; box-shadow: var(--shadow-md);
}
.open-terminal.is-on:hover { background: #0e2c45; }

@media (max-width: 640px) {
  body.term-mode .terminal-app { padding: 0; }
  .ta-frame { height: 100dvh; max-width: none; border-radius: 0; border: none; }
  .ta-screen { font-size: .82rem; padding: 16px; }
  .ta-chips { flex-wrap: nowrap; overflow-x: auto; }
  .ta-chips .chip-alt { margin-left: 0; }
  .ta-bar .term-title { font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
