/* ===== Variables (blue & orange to match Manan Softech logo) ===== */
:root {
  --bg: #fafbfc;
  --white: #ffffff;
  --text: #1a1d23;
  --text-muted: #5c6370;
  --accent: #0284c7;
  --accent-light: #0ea5e9;
  --accent-dark: #0369a1;
  --accent-orange: #f59e0b;
  --gradient-1: linear-gradient(135deg, #0284c7 0%, #0ea5e9 45%, #f59e0b 100%);
  --gradient-2: linear-gradient(135deg, #0ea5e9 0%, #f59e0b 100%);
  --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 35%, #fff7ed 100%);
  --shadow-sm: 0 2px 8px rgba(2, 132, 199, 0.08);
  --shadow-md: 0 8px 24px rgba(2, 132, 199, 0.12);
  --shadow-lg: 0 16px 48px rgba(2, 132, 199, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea { font-family: inherit; font-size: 1rem; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(2, 132, 199, 0.1);
  transition: var(--transition);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 0;
}
.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-brand-wrap {
  margin-bottom: 1.25rem;
}
.hero-brand-logo {
  display: block;
  width: 100%;
  max-width: min(280px, 65vw);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(2, 132, 199, 0.15));
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.hero-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-hero {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ===== Sections ===== */
.section {
  padding: 4.5rem 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Why Cards ===== */
.section-why { background: var(--white); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(2, 132, 199, 0.12);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(24px);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.2);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--accent);
}
.card-icon svg { width: 100%; height: 100%; }
.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Services ===== */
.section-services { background: var(--gradient-hero); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(24px);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.service-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== How It Works ===== */
.section-how { background: var(--white); }
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.step {
  text-align: center;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
}
.step.visible {
  opacity: 1;
  transform: translateY(0);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  background: var(--gradient-1);
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== Contact ===== */
.section-contact { background: var(--gradient-hero); }
.contact-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-label span {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}
.form-label input,
.form-label textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}
.form-label input:focus,
.form-label textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
.form-label input::placeholder,
.form-label textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.form-error {
  font-size: 0.8rem;
  color: #dc2626;
  min-height: 1.2em;
}
.form-label.invalid input,
.form-label.invalid textarea {
  border-color: #dc2626;
}
.btn-submit {
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.contact-success {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  padding: 1.5rem;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  text-align: center;
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}
.footer-copy {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 35, 0.5);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition);
}
.modal.is-open .modal-content {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover {
  color: var(--text);
  background: rgba(2, 132, 199, 0.12);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.btn-block { width: 100%; padding: 1rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    background: var(--white);
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .hero { padding-top: 5rem; }
  .section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .cards,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .steps { grid-template-columns: 1fr; }
}
