/* ============================================================
   GrineTech — Design System
   Intelligent Software. Real Impact.
   ============================================================ */

:root {
  /* Brand palette */
  --gt-navy: #0A2240;
  --gt-ink: #061224;
  --gt-navy-700: #133458;
  --gt-emerald: #10B981;
  --gt-emerald-deep: #0A8F63;
  --gt-mint: #6EE7B7;
  --gt-slate: #5B6B7F;
  --gt-border: #D8E0EA;
  --gt-mist: #F4F7FA;
  --gt-white: #FFFFFF;

  /* Type */
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gt-navy);
  background: var(--gt-white);
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Loading overlay ---------- */
.gt-loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gt-white);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.gt-loading.is-done { opacity: 0; visibility: hidden; }
.gt-loading svg { width: 56px; height: 56px; }
.gt-loading .spin {
  transform-origin: 32px 32px;
  animation: gt-spin 1s cubic-bezier(0.45, 0.1, 0.55, 0.9) infinite;
}
@keyframes gt-spin { to { transform: rotate(360deg); } }

/* ---------- Navbar ---------- */
.gt-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--gt-border);
}
.gt-nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.gt-nav__logo { display: flex; align-items: center; }
.gt-nav__logo img { height: 32px; width: auto; display: block; }
.gt-nav__links {
  display: flex;
  gap: 28px;
  margin-left: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gt-slate);
}
.gt-nav__links a:hover { color: var(--gt-navy); }
.gt-nav__cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--primary { background: var(--gt-emerald); color: var(--gt-ink); }
.btn--primary:hover { background: var(--gt-mint); }
.btn--dark { background: var(--gt-navy); color: var(--gt-white); }
.btn--dark:hover { background: var(--gt-navy-700); }
.btn--ghost { border-color: var(--gt-border); color: var(--gt-navy); background: transparent; }
.btn--ghost:hover { border-color: var(--gt-navy); }
.btn--ghost-dark { border-color: rgba(255, 255, 255, 0.28); color: var(--gt-white); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--gt-mint); color: var(--gt-mint); }
.btn--lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

/* ---------- Hero ---------- */
.gt-hero {
  background: var(--gt-ink);
  color: var(--gt-white);
  position: relative;
  overflow: hidden;
}
.gt-hero::before {
  /* engineering grid — quiet, flat */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 40%, transparent 100%);
}
.gt-hero__inner {
  position: relative;
  padding: 96px 0 104px;
  text-align: center;
}
.gt-hero__logo { margin-bottom: 44px; }
.gt-hero__logo img { height: 56px; width: auto; }
.gt-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gt-mint);
  margin-bottom: 22px;
}
.gt-hero__eyebrow::before,
.gt-hero__eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(110, 231, 183, 0.4);
}
.gt-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  max-width: 820px;
  margin: 0 auto 20px;
}
.gt-hero h1 em {
  font-style: normal;
  color: var(--gt-mint);
}
.gt-hero__sub {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 640px;
  margin: 0 auto 36px;
}
.gt-hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.gt-hero__trust {
  margin-top: 72px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.gt-hero__sectors {
  display: flex;
  justify-content: center;
  gap: 14px 36px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Sections ---------- */
.gt-section { padding: 96px 0; }
.gt-section--mist { background: var(--gt-mist); }
.gt-section__head { max-width: 640px; margin-bottom: 56px; }
.gt-section__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gt-emerald-deep);
  margin-bottom: 12px;
}
.gt-section h2 { font-size: clamp(28px, 4vw, 40px); }
.gt-section__head p { color: var(--gt-slate); font-size: 17px; }

/* ---------- Cards ---------- */
.gt-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.gt-card {
  background: var(--gt-white);
  border: 1px solid var(--gt-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gt-card:hover { border-color: var(--gt-emerald); transform: translateY(-3px); }
.gt-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--gt-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.gt-card h3 { font-size: 20px; margin-bottom: 8px; }
.gt-card p { color: var(--gt-slate); font-size: 15px; margin: 0; }
.gt-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gt-emerald-deep);
  margin-bottom: 10px;
}

/* feature list */
.gt-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.gt-feature { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--gt-border); }
.gt-feature__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gt-emerald);
  margin-top: 7px;
}
.gt-feature h3 { font-size: 17px; margin-bottom: 4px; }
.gt-feature p { color: var(--gt-slate); font-size: 15px; margin: 0; }

/* ---------- Stats band ---------- */
.gt-stats {
  background: var(--gt-navy);
  color: var(--gt-white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.gt-stat__num {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--gt-mint);
}
.gt-stat__label { font-size: 14px; color: rgba(255, 255, 255, 0.65); margin-top: 6px; }

/* ---------- CTA ---------- */
.gt-cta {
  background: var(--gt-ink);
  color: var(--gt-white);
  text-align: center;
  padding: 96px 0;
}
.gt-cta h2 { font-size: clamp(28px, 4vw, 42px); }
.gt-cta p { color: rgba(255, 255, 255, 0.7); max-width: 540px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.gt-footer {
  background: var(--gt-ink);
  color: rgba(255, 255, 255, 0.66);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.gt-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.gt-footer__brand img { height: 34px; width: auto; margin-bottom: 16px; }
.gt-footer__brand p { max-width: 280px; }
.gt-footer h4 {
  color: var(--gt-white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.gt-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gt-footer a:hover { color: var(--gt-mint); }
.gt-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .gt-nav__links { display: none; }
  .gt-grid { grid-template-columns: 1fr; }
  .gt-features { grid-template-columns: 1fr; }
  .gt-stats { grid-template-columns: repeat(2, 1fr); padding: 40px 28px; }
  .gt-footer__grid { grid-template-columns: 1fr 1fr; }
  .gt-section { padding: 64px 0; }
  .gt-hero__inner { padding: 64px 0 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gt-card, .gt-card:hover { transform: none; transition: none; }
}
