/* Growi Tech demo hub. Colours and type follow growitech.in. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F; }

@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #14160f;
  --ink-2: #4a4e40;
  --paper: #f3f0e4;
  --paper-2: #e9e5d5;
  --surface: #fdfcf6;
  --line: #d9d4c0;
  --green: #3abe82;
  --green-deep: #17663f;
  --green-tint: #d5f2e3;
  --amber-ink: #744a05;
  --amber-tint: #f8e6bd;
  --rust-ink: #8c2b12;
  --rust-tint: #f8dcd0;
  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Sora", "Segoe UI", sans-serif;
  --r-pill: 999px;
  --r-frame: 18px;
  --r-box: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { font-family: var(--display); font-stretch: 112%; font-weight: 800; letter-spacing: -0.022em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; }

/* Same content width as the main site, so header, tiles and footer share edges */
.wrap { width: min(100% - 56px, 1144px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-pill); font-weight: 600; font-size: 0.9375rem; text-decoration: none; cursor: pointer; transition: background-color .16s, border-color .16s, transform .08s; }
.btn:active, .mini:active { transform: translateY(1px); }
.btn-solid { background: var(--green); color: var(--ink); }
.btn-solid:hover { background: #55d39a; }
.btn-line { border-color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--paper-2); }
.btn-ghost { border-color: #4b503d; color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 0.875rem; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 0.875rem; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .16s; }
.link:hover { text-decoration-color: var(--green); }

/* Tile page */
.systems { padding: 44px 0 96px; }
.systems-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.systems-head h1 { max-width: 19ch; font-size: clamp(2rem, 3.8vw, 3.1rem); }
.systems-head p { margin-top: 12px; color: var(--ink-2); }
.search label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; }
.search-row { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; font-size: 0.9375rem; }
.search input::placeholder { color: #6a6d5e; }
.js .search-row .btn { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: border-color .16s, background-color .16s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.tile a:hover { transform: translateY(-3px); border-color: var(--ink); }
.cover { aspect-ratio: 342 / 196; overflow: hidden; background: var(--tint); }
.cover svg, .cover img { display: block; width: 100%; height: 100%; }
.cover img { object-fit: cover; object-position: top; }
.cover .w { fill: #fff; }
.cover .g { fill: #e9ebe6; }
.cover .l { fill: #c3c7bd; }
.cover .k { fill: #3b3f33; }
.cover .a { fill: var(--accent); }
.cover .s { fill: color-mix(in srgb, var(--accent) 22%, #fff); }
.cover .warn { fill: #d4820f; }
.cover .warn-s { fill: #f6dca6; }
.cover .ring { stroke: var(--accent); stroke-width: 2.5; }
.cover path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cover .sa { stroke: var(--accent); stroke-width: 3.5; }
.cover .sl { stroke: #c3c7bd; stroke-width: 2; }
.cover .sg { stroke: #e9ebe6; stroke-width: 1; }
.cover .sw { stroke: #fff; stroke-width: 6; }
.cover path.sw { opacity: .9; }
.tile-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 18px 20px 20px; border-top: 1px solid var(--line); }
.tile h2 { font-stretch: 106%; font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.008em; }
.tile p { color: var(--ink-2); font-size: 0.875rem; line-height: 1.55; }
.tile-state { align-self: flex-start; margin-top: auto; padding: 4px 12px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2); font-size: 0.75rem; font-weight: 600; }
.tile-state.is-live { padding: 9px 18px; background: var(--green); color: var(--ink); font-size: 0.8125rem; }
.empty { padding: 24px 0; }

/* Holding page */
.holding { padding: 72px 0 96px; }
.holding-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.holding h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.holding p { max-width: 48ch; margin-top: 16px; }
.holding-summary { font-size: 1.125rem; color: var(--ink-2); }
.holding-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.holding .cover { border: 1px solid var(--line); border-radius: var(--r-frame); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .tile a:hover { transform: none; }
}

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 900px) {
  .systems-head, .holding-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
}

@media (max-width: 720px) {
  .systems { padding: 28px 0 64px; }
  .filters { margin: 20px 0; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filter { justify-content: center; padding: 4px 10px; text-align: center; line-height: 1.25; }
  .filter:first-child { grid-column: 1 / -1; }
  .tile-state { font-size: 0.8125rem; }
  .holding { padding: 40px 0 64px; }
  .holding-actions .btn { width: 100%; }
}

@media (max-width: 620px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 400px) {
  .search-row { flex-wrap: wrap; }
}

/* ================================================================== */
/* Header and footer: copied from the main site's styles.css           */
/* ================================================================== */
.nav, .footer { --cream-line: rgba(20, 22, 15, 0.12); --dark: #14160f; --dark-2: #1c2016; --dark-line: #33372a; --font-body: "Sora", "Segoe UI", sans-serif; --font-mono: "IBM Plex Mono", monospace; --ease: cubic-bezier(0.16, 1, 0.3, 1); line-height: 1.5; }
.nav a, .footer a { text-decoration: none; }
.nav img, .footer img, .footer svg { display: block; max-width: 100%; }

.nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.nav .btn-primary {
  background: var(--green);
  color: var(--dark);
  box-shadow: 0 10px 28px -12px rgba(58, 190, 130, 0.65);
}
.nav .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(58, 190, 130, 0.8);
}

.nav .btn-nav { display: inline-flex; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 240, 228, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-logo {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(20, 22, 15, 0.72);
}
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.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); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 28px 22px;
  border-top: 1px solid var(--cream-line);
}
.nav-mobile a {
  padding: 12px 4px;
  font-weight: 500;
  border-bottom: 1px solid var(--cream-line);
}
.nav-mobile .btn { margin-top: 14px; justify-content: center; }
.nav-mobile.open { display: flex; }

.footer {
  background: var(--dark);
  color: #f4f2e6;
  padding-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--dark-line);
}

.footer-logo { height: 26px; }

.footer-brand p {
  margin: 16px 0 0;
  color: rgba(244, 242, 230, 0.55);
  max-width: 32ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 242, 230, 0.45);
  margin: 0 0 18px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(244, 242, 230, 0.72);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
  line-height: 1.5;
}
.footer-col a:hover { color: var(--green); }

.footer-icon-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  color: rgba(244, 242, 230, 0.72);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.footer-icon-link svg { width: 18px; height: 18px; }
.footer-icon-link:hover {
  color: var(--green);
  border-color: rgba(58, 190, 130, 0.4);
  background: #232819;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 30px;
  border-top: 1px solid var(--dark-line);
  font-size: 0.82rem;
  color: rgba(244, 242, 230, 0.45);
}

.footer-bottom .mono {
  font-family: var(--font-mono);
  color: var(--green);
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-top { text-align: center; }
  .footer-brand, .footer-col { align-items: center; }
  .footer-brand .brand-logo { display: block; margin: 0 auto; }
  .footer-brand p { max-width: none; }
  .footer-icon-row { justify-content: center; }
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
  .nav { background: var(--paper); backdrop-filter: none; }
}
