/* ===================================================
   Wakara Technologies — theme.css
   Brand palette & design system
   =================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --navy:        #0f1e3d;
  --navy-light:  #1a2d52;
  --sky:         #4a90d9;
  --orange:      #f26522;
  --yellow:      #fcd116;
  --cream:       #fafaf7;
  --white:       #ffffff;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-600:    #4b5563;
  --gray-800:    #1f2937;
  --green:       #10b981;

  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.18);
  --transition: all .25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--navy); }
.section-light { background: var(--white); }
.section-cream { background: var(--cream); }

.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-sky    { color: var(--sky); }
.text-orange { color: var(--orange); }

.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #d9581a;
  border-color: #d9581a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242,101,34,.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,30,61,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: box-shadow .3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-links a {
  position: relative;
  padding: .4rem .75rem;
  font-family: var(--font-head);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.06);
}

.nav-links a.active {
  color: var(--white);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* ---- Dropdown nav ---- */
.nav-links li {
  position: relative;
  list-style: none;
}

.nav-links li.has-dropdown > a .caret {
  display: inline-block;
  margin-left: .25rem;
  font-size: .6rem;
  opacity: .55;
  transition: transform .2s ease;
  vertical-align: middle;
}

.nav-links li.has-dropdown.open > a .caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + .75rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 190px;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  z-index: 500;
  padding: .5rem 0;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav-links li.has-dropdown.open .nav-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: .6rem 1.1rem;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  border-radius: 0;
  white-space: nowrap;
  transition: var(--transition);
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  color: var(--white);
  background: rgba(255,255,255,.07);
  padding-left: 1.4rem;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile Nav ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
  z-index: 999;
  padding: 1rem 0;
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.mobile-nav a {
  display: block;
  padding: .75rem 1.5rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  border-left: 3px solid transparent;
  transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--white);
  border-left-color: var(--orange);
  background: rgba(255,255,255,.04);
}

.mobile-nav .mobile-cta {
  margin: 1rem 1.5rem 0;
}

/* ---------- Page Hero ---------- */
.page-hero {
  padding: 8rem 0 4rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(74,144,217,.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(242,101,34,.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: .75rem;
}

.page-hero .hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.65);
  max-width: 580px;
}

/* ---------- Home Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(74,144,217,.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(242,101,34,.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: .04em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(252,209,22,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(252,209,22,0); }
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
}

.stat-item .stat-val {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.stat-item .stat-val span { color: var(--orange); }

.stat-item .stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
}

/* Hero visual blob */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob {
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, rgba(74,144,217,.2) 0%, rgba(242,101,34,.15) 60%, rgba(252,209,22,.1) 100%);
  border-radius: 60% 40% 50% 45% / 45% 55% 40% 60%;
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: blobFloat 8s ease-in-out infinite;
  position: relative;
}

.hero-blob::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: inherit;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}

.blob-text {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  text-align: center;
  letter-spacing: .04em;
  z-index: 1;
  padding: 1rem;
}

.blob-text strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: .25rem;
}

@keyframes blobFloat {
  0%,100% { transform: translateY(0) rotate(0deg); border-radius: 60% 40% 50% 45% / 45% 55% 40% 60%; }
  33%      { transform: translateY(-16px) rotate(2deg); border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%; }
  66%      { transform: translateY(8px) rotate(-1deg); border-radius: 55% 45% 55% 45% / 50% 50% 50% 50%; }
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--orange));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.icon-sky    { background: rgba(74,144,217,.12); }
.icon-orange { background: rgba(242,101,34,.12); }
.icon-yellow { background: rgba(252,209,22,.15); }
.icon-navy   { background: rgba(15,30,61,.08); }

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: .6rem;
  color: var(--navy);
}

.service-card p {
  font-size: .9rem;
  color: var(--gray-600);
  margin: 0;
}

.service-cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4080 100%);
  border: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.service-cta-card h3 { color: var(--white); }
.service-cta-card p  { color: rgba(255,255,255,.65); }

/* ---------- Case Study Cards ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
}

.case-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.case-bg-1 { background: linear-gradient(135deg, #1a2d52 0%, #0f1e3d 100%); }
.case-bg-2 { background: linear-gradient(135deg, #1e3a5f 0%, #0f1e3d 100%); }
.case-bg-3 { background: linear-gradient(135deg, #2a1f4f 0%, #0f1e3d 100%); }

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
  z-index: 1;
}

.case-content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
}

.case-tag {
  display: inline-block;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

.case-card h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: .4rem;
}

.case-card p {
  font-size: .875rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1rem;
}

.case-stat {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--yellow);
  font-size: 1.1rem;
}

/* Case study full-width variant */
.case-card-full {
  min-height: 260px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

/* ---------- Package Cards ---------- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.package-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid var(--gray-200);
  border-top: 4px solid transparent;
  transition: var(--transition);
}

.package-card:hover {
  border-top-color: var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.package-number {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .5rem;
}

.package-card h3 {
  color: var(--navy);
  margin-bottom: .75rem;
  font-size: 1.3rem;
}

.package-card p {
  color: var(--gray-600);
  font-size: .95rem;
  margin: 0;
}

/* ---------- Prototype Cards ---------- */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.proto-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.proto-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
}

.proto-card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  flex: 1;
}

.proto-card p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.proto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.proto-tag {
  background: #e0f2fe;
  color: #0369a1;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
}

.proto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.proto-link {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--sky);
  transition: var(--transition);
}

.proto-link:hover {
  color: var(--orange);
}

/* Status Badges */
.badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 999px;
}

.badge-live     { background: rgba(16,185,129,.12); color: #059669; border: 1px solid rgba(16,185,129,.25); }
.badge-progress { background: rgba(252,209,22,.15); color: #92600a; border: 1px solid rgba(252,209,22,.35); }
.badge-concept  { background: rgba(156,163,175,.12); color: #4b5563; border: 1px solid rgba(156,163,175,.25); }

/* ---------- Insight Cards ---------- */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.insight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.insight-img {
  height: 180px;
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.insight-img-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: .3;
}

.insight-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.insight-cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .5rem;
}

.insight-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .6rem;
  line-height: 1.4;
}

.insight-card p {
  font-size: .875rem;
  color: var(--gray-600);
  flex: 1;
  margin: 0;
}

.insight-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: 1.25rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: var(--sky);
  transition: var(--transition);
}

.insight-link:hover { color: var(--orange); gap: .5rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(74,144,217,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .2rem;
}

.contact-item-val {
  font-size: .95rem;
  color: var(--gray-800);
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: .4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  /* 16px min prevents mobile Safari from auto-zooming on focus */
  font-size: 16px;
  color: var(--gray-800);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--sky);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74,144,217,.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: .8rem;
  color: var(--gray-400);
  margin-top: 1rem;
  font-style: italic;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: .75rem;
}

.cta-banner p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.btn-white {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
  font-weight: 700;
}

.btn-white:hover {
  background: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ---------- Credentials & About ---------- */
.cred-card {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 2rem;
}

.cred-card h3 {
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.cred-item:last-child { border-bottom: none; }

.cred-dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  margin-top: .4rem;
  flex-shrink: 0;
}

.cred-text { color: rgba(255,255,255,.8); font-size: .9rem; }
.cred-text strong { color: var(--white); }

.career-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.career-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--sky);
}

.career-role {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: .25rem;
}

.career-org {
  font-size: .85rem;
  color: var(--gray-600);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}

.footer-col ul li { margin-bottom: .5rem; }

.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  transition: var(--transition);
}

.footer-legal a:hover { color: rgba(255,255,255,.65); }

/* ---------- Card hover utility ---------- */
.card-hover {
  transition: transform .25s ease, box-shadow .25s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Fade-in on scroll ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section divider ---------- */
.divider {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ---------- Two-col about layout ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ---------- Services expanded ---------- */
.service-expanded {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-expanded:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.service-expanded h3 { margin-bottom: .5rem; }
.service-expanded p  { color: var(--gray-600); font-size: .95rem; margin: 0; }

/* ---------- Scroll padding for fixed nav ---------- */
[id] { scroll-margin-top: 90px; }

/* ===================================================
   RESPONSIVE
   =================================================== */

/* 1024px — two-column collapses */
@media (max-width: 1024px) {
  .hero-grid    { grid-template-columns: 1fr; text-align: center; }
  .hero-visual  { display: none; }
  .hero-ctas    { justify-content: center; }
  .hero-stats   { justify-content: center; }

  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .case-grid      { grid-template-columns: repeat(2, 1fr); }
  .packages-grid  { grid-template-columns: repeat(2, 1fr); }
  .proto-grid     { grid-template-columns: repeat(2, 1fr); }
  .insights-grid  { grid-template-columns: repeat(2, 1fr); }

  .about-grid     { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }

  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: span 2; }
}

/* 640px — single column */
@media (max-width: 640px) {
  .services-grid  { grid-template-columns: 1fr; }
  .case-grid      { grid-template-columns: 1fr; }
  .packages-grid  { grid-template-columns: 1fr; }
  .proto-grid     { grid-template-columns: 1fr; }
  .insights-grid  { grid-template-columns: 1fr; }
  .career-grid    { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .footer-brand   { grid-column: auto; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section  { padding: 3.5rem 0; }
  .cta-banner { padding: 3.5rem 0; }

  /* ---- Larger, better-spaced tap targets on mobile ---- */
  .footer-col ul li { margin-bottom: .15rem; }
  .footer-col ul li a { display: inline-block; padding: .55rem 0; }
  .footer-legal { gap: 1.25rem; flex-wrap: wrap; }
  .footer-legal a { padding: .45rem 0; display: inline-block; }

  /* ---- Mobile typography: scale text down so pages don't
         read as a wall of oversized copy on small screens ---- */
  html { font-size: 15px; }

  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }

  .hero-title { margin-bottom: 1rem; }

  .hero-subtitle,
  .section-subtitle,
  .page-hero .hero-sub {
    font-size: 1rem;
    line-height: 1.6;
  }

  .section-subtitle { margin-bottom: 2rem; }

  .page-hero { padding: 6.5rem 0 3rem; }
}

/* Show hamburger at 768 too for nav-heavy screens */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  /* Keep the primary CTA visible in the bar (compact) instead of
     burying the main conversion action inside the hamburger menu. */
  .nav-cta { display: flex; margin-right: .25rem; }
  .nav-cta .btn { padding: .5rem 1rem; font-size: .85rem; }
  /* CTA already lives in the bar now — drop the duplicate in the menu. */
  .mobile-nav .mobile-cta { display: none; }
}

/* Very small phones — shrink logo/CTA/padding so the bar never overflows */
@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .nav-logo-img { height: 30px; }
  .nav-cta .btn { padding: .45rem .8rem; font-size: .8rem; }
}

/* ===================== ACCESSIBILITY ===================== */

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Visible focus ring on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Remove outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Ensure sufficient colour contrast on badges */
.badge-live   { background: #065f46; color: #d1fae5; }
.badge-progress { background: #78350f; color: #fef3c7; }
.badge-concept  { background: #374151; color: #f3f4f6; }
