:root {
  --navy: #071427;
  --navy-2: #0d213d;
  --blue: #2b7de9;
  --gold: #d6a53a;
  --white: #ffffff;
  --muted: #667085;
  --line: #e5e7eb;
  --light: #f5f7fb;
  --ink: #162033;
  --shadow: 0 18px 50px rgba(7, 20, 39, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
}

.site-navbar {
  background: rgba(7, 20, 39, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  padding: 0.9rem 0;
  transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.site-navbar.is-scrolled {
  padding: 0.7rem 0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), #f4d98a);
  font-weight: 900;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  padding: 0.55rem 0.9rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--white);
}

.nav-cta {
  border: 1px solid rgba(214, 165, 58, 0.55);
  border-radius: 8px;
  margin-left: 0.4rem;
}

.hero-section {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(43, 125, 233, 0.22), transparent 34%),
    linear-gradient(135deg, #06101f 0%, #0a1d37 48%, #10294a 100%);
}

.hero-section h1,
.page-header h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
  margin: 1rem 0 1.2rem;
}

.hero-copy,
.page-header p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f4d98a;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12rem;
}

.eyebrow.dark {
  color: var(--blue);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn {
  border-radius: 8px;
  font-weight: 800;
  padding: 0.78rem 1.25rem;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: #1f67c4;
  border-color: #1f67c4;
  transform: translateY(-2px);
}

.btn-outline-light:hover,
.btn-light:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.8rem;
  max-width: 620px;
}

.hero-stats div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats strong {
  display: block;
  font-size: 1.4rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.hero-showcase {
  position: relative;
}

.system-window {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  padding: 1rem;
  backdrop-filter: blur(18px);
}

.window-bar {
  display: flex;
  gap: 0.45rem;
  padding-bottom: 1rem;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.window-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.metric-card {
  min-height: 120px;
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

.metric-card span {
  color: rgba(255, 255, 255, 0.68);
}

.metric-card strong {
  display: block;
  margin-top: 1.4rem;
  font-size: 1.7rem;
}

.metric-card.gold {
  background: rgba(214, 165, 58, 0.28);
}

.metric-card.blue {
  background: rgba(43, 125, 233, 0.32);
}

.window-table {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.window-table span {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.page-header {
  padding: 9rem 0 4rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.section-padding {
  padding: 5.5rem 0;
}

.muted-section {
  background: var(--light);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 2rem;
}

.section-heading h2,
.section-title-left {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  font-weight: 900;
  margin: 0.8rem 0 1rem;
  letter-spacing: 0;
}

.section-heading p,
.lead-muted {
  color: var(--muted);
  font-size: 1.06rem;
}

.feature-card,
.service-card,
.portfolio-card,
.contact-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(7, 20, 39, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover,
.service-card:hover,
.portfolio-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(43, 125, 233, 0.3);
  box-shadow: var(--shadow);
}

.feature-card,
.service-card {
  padding: 1.6rem;
}

.feature-icon,
.service-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--navy);
  background: #f2c85e;
  font-weight: 900;
  margin-bottom: 1.2rem;
}

.feature-card h3,
.service-card h2,
.portfolio-card h2,
.portfolio-card h3 {
  font-size: 1.25rem;
  font-weight: 850;
  margin-bottom: 0.75rem;
}

.feature-card p,
.service-card p,
.portfolio-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-card.full-height {
  display: flex;
  flex-direction: column;
}

.portfolio-card .card-body {
  padding: 1.25rem;
}

.project-thumb {
  height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1.8rem;
  color: var(--white);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0;
}

.logo-thumb img {
  width: min(250px, 78%);
  max-width: min(250px, 78%);
  max-height: 152px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.18));
}

.logo-thumb.wide-logo img {
  width: min(310px, 88%);
  max-width: min(310px, 88%);
  max-height: 164px;
}

.clmb.logo-thumb img {
  width: min(176px, 54%);
  max-width: min(176px, 54%);
  max-height: 176px;
  filter: none;
}

.sutuwaki.logo-thumb img {
  width: min(360px, 94%);
  max-width: min(360px, 94%);
  max-height: 172px;
}

.premium.logo-thumb img {
  max-width: min(330px, 88%);
  max-height: 142px;
}

.tomas.logo-thumb img {
  width: min(430px, 96%);
  max-width: min(430px, 96%);
  height: 150px;
  max-height: 150px;
  object-fit: cover;
  object-position: center;
}

.fabulous.logo-thumb img {
  width: min(470px, 98%);
  max-width: min(470px, 98%);
  height: 164px;
  max-height: 164px;
  margin-top: -18px;
  object-fit: cover;
  object-position: center 44%;
}

.pickle.logo-thumb img {
  width: min(176px, 58%);
  max-width: min(176px, 58%);
  max-height: 176px;
  margin-top: -18px;
  filter: none;
}

.garage.logo-thumb img {
  width: min(176px, 58%);
  max-width: min(176px, 58%);
  max-height: 176px;
  margin-top: -12px;
  filter: none;
}

.endoshelf.logo-thumb img {
  width: min(560px, 118%);
  max-width: min(560px, 118%);
  height: 158px;
  max-height: 158px;
  object-fit: cover;
  object-position: center;
}

.maf.logo-thumb img {
  width: min(560px, 120%);
  max-width: min(560px, 120%);
  height: 154px;
  max-height: 154px;
  object-fit: cover;
  object-position: center;
}

.poultry.logo-thumb img {
  width: min(250px, 76%);
  max-width: min(250px, 76%);
  height: 178px;
  max-height: 178px;
  margin-top: -16px;
  object-fit: contain;
  object-position: center;
  filter: none;
}

.rael.logo-thumb img {
  width: min(500px, 98%);
  max-width: min(500px, 98%);
  max-height: 170px;
  margin-top: -24px;
  filter: none;
}

.pickle { background: transparent; }
.clmb { background: transparent; }
.maf { background: #ffffff; }
.sutuwaki { background: #ffffff; }
.premium { background: #050707; }
.jollypig { background: #080464; }
.tomas { background: #ffffff; }
.fabulous { background: #080464; }
.garage { background: transparent; }
.endoshelf { background: #ffffff; }
.rael { background: #000000; }
.poultry { background: #05132f; }

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.status.completed {
  color: #05603a;
  background: #d1fadf;
}

.status.ongoing {
  color: #92400e;
  background: #fef3c7;
}

.status.demo {
  color: #1d4ed8;
  background: #dbeafe;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.choose-grid div {
  border-left: 3px solid var(--gold);
  padding: 1.2rem 1.2rem 1.2rem 1.4rem;
  background: var(--light);
  border-radius: 8px;
}

.choose-grid strong,
.choose-grid span {
  display: block;
}

.choose-grid strong {
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.choose-grid span {
  color: var(--muted);
}

.cta-section {
  padding: 5rem 0;
  background: var(--white);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.4rem;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #163b69);
}

.cta-panel h2 {
  max-width: 780px;
  margin: 0.75rem 0 0;
  font-weight: 900;
}

.profile-panel {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  padding: 2rem;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #18375f);
  box-shadow: var(--shadow);
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 14px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), #f7df94);
  font-size: 2rem;
  font-weight: 900;
}

.profile-panel h3 {
  font-weight: 900;
}

.profile-panel p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.45rem;
}

.profile-panel span {
  color: #f4d98a;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  display: block;
  padding: 1.4rem;
  color: var(--ink);
}

.contact-card span {
  display: block;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  margin-bottom: 0.45rem;
}

.contact-card strong {
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.72);
  background: #050d19;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 991.98px) {
  .nav-cta {
    margin: 0.4rem 0 0;
    display: inline-block;
  }

  .hero-section {
    min-height: auto;
    padding-top: 7.5rem;
  }

  .hero-stats,
  .choose-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .brand-mark span:last-child {
    font-size: 0.95rem;
  }

  .hero-section h1,
  .page-header h1 {
    font-size: 2.45rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 0.75rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .window-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-panel {
    padding: 1.5rem;
  }
}
