/* Manmayi Tech — Brand styles */
:root {
  --navy: #0b1e3d;
  --navy-deep: #061428;
  --blue: #0d3b7a;
  --cyan: #00c4e0;
  --cyan-bright: #22e0f5;
  --cyan-soft: rgba(0, 196, 224, 0.12);
  --silver: #8b97a8;
  --text: #1a2332;
  --text-muted: #5a6577;
  --bg: #f5f8fc;
  --bg-alt: #eef3f9;
  --white: #ffffff;
  --border: rgba(11, 30, 61, 0.08);
  --shadow: 0 18px 50px rgba(6, 20, 40, 0.08);
  --radius: 14px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;
  --max: 1140px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 8px 30px rgba(6, 20, 40, 0.06);
}

.site-header.scrolled .nav-link {
  color: var(--navy);
}

.site-header.scrolled .nav-toggle span {
  background: var(--navy);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand img {
  height: 70px;
  width: auto;
}

.brand .logo-dark {
  display: none;
}

.brand .logo-light {
  display: block;
}

.site-header.scrolled .brand .logo-dark,
.page-light .site-header .brand .logo-dark {
  display: block;
}

.site-header.scrolled .brand .logo-light,
.page-light .site-header .brand .logo-light {
  display: none;
}

.brand-text {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan-bright);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--blue);
  background: var(--cyan-soft);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, var(--cyan), #0088cc);
  color: var(--white) !important;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 196, 224, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.08);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.25s;
}

/* Hero */
.hero {
  position: relative;
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 196, 224, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(13, 59, 122, 0.5), transparent 50%),
    linear-gradient(155deg, var(--navy-deep) 0%, var(--navy) 45%, #0a2a5c 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 196, 224, 0.15) 0 1.5px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(0, 196, 224, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
    linear-gradient(rgba(0, 196, 224, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 196, 224, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 0 0, 0 0, 48px 48px, 48px 48px; }
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 196, 224, 0.28), transparent 70%);
  top: 10%;
  right: 8%;
  filter: blur(40px);
  animation: pulseGlow 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  max-width: 900px;
}

.hero-brand {
  height: 72px;
  width: auto;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--cyan-bright), #7de8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.5rem;
  animation: fadeUp 0.8s 0.3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0090c0);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(0, 196, 224, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--blue);
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 620px;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0090b8;
  margin-bottom: 0.75rem;
}

.section-head h2,
.page-hero h1,
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-head p {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.service-item {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 196, 224, 0.35);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--cyan-soft), rgba(13, 59, 122, 0.08));
  color: #0090b8;
  margin-bottom: 1.1rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.product-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.product-item:hover {
  box-shadow: var(--shadow);
  border-color: rgba(0, 196, 224, 0.3);
}

.product-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.product-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.product-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-visual {
  position: relative;
  min-height: 340px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 70% 30%, rgba(0, 196, 224, 0.35), transparent 45%),
    linear-gradient(145deg, var(--navy-deep), var(--blue));
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.why-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
}

.why-visual img {
  position: relative;
  z-index: 1;
  height: 120px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.35));
}

.why-list {
  display: grid;
  gap: 1.25rem;
}

.why-point h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.why-point p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(120deg, var(--navy-deep), var(--blue) 55%, #0a4a7a);
  color: var(--white);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 50%, rgba(0, 196, 224, 0.25), transparent 40%);
}

.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 480px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.4rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
}

.contact-info {
  display: grid;
  gap: 1.25rem;
}

.contact-card {
  padding: 1.35rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0090b8;
  margin-bottom: 0.45rem;
}

.contact-card p,
.contact-card a {
  color: var(--navy);
  font-weight: 500;
  font-size: 1rem;
}

.contact-card a:hover {
  color: #0090b8;
}

.contact-form {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--silver);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 55px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cyan-bright);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--cyan);
}

/* Inner pages */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(0, 196, 224, 0.15), transparent 50%),
    linear-gradient(155deg, var(--navy-deep), var(--navy));
  color: var(--white);
}

.page-hero .section-eyebrow {
  color: var(--cyan-bright);
}

.page-hero h1 {
  color: var(--white);
  margin-top: 0.35rem;
}

.page-hero p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
}

.legal-content {
  padding: 3.5rem 0 5rem;
}

.legal-content .prose {
  /* max-width: 800px; */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content li {
  list-style: disc;
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: #0090b8;
}

.legal-meta {
  font-size: 0.9rem;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

/* About extras */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-box {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-box span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-item {
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.value-item h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header on light pages */
.page-light .site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.page-light .nav-link {
  color: var(--navy);
}

.page-light .nav-toggle span {
  background: var(--navy);
}

.page-light .nav-link:hover,
.page-light .nav-link.active {
  color: var(--blue);
  background: var(--cyan-soft);
}

/* Responsive */
@media (max-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid,
  .contact-grid,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 1.75rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--white);
    box-shadow: 0 16px 40px rgba(6, 20, 40, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    color: var(--navy) !important;
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    margin: 0.5rem 0 0;
    text-align: center;
  }

  .products-grid,
  .services-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    height: 56px;
  }

  .brand img {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .legal-content .prose {
    padding: 1.5rem;
  }
}
