/* ============================================================
   Pralayantaka Solutions — Modern corporate theme
   ============================================================ */

:root {
  --ink: #101426;
  --ink-soft: #4a5068;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --border: #e6e8f0;
  --primary: #4338ca;
  --primary-dark: #3730a3;
  --violet: #8b5cf6;
  --grad: linear-gradient(100deg, #4338ca, #8b5cf6);
  --dark: #0d1120;
  --dark-soft: #b7bdd4;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(16, 20, 38, 0.08);
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 48px; max-width: 640px; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
p { color: var(--ink-soft); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 24px rgba(67, 56, 202, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(67, 56, 202, 0.45); }
.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--border);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 24px rgba(16,20,38,0.05); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
}
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 180px 0 110px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -220px; right: -180px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), rgba(67, 56, 202, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero-sub { font-size: 1.15rem; margin: 24px 0 36px; max-width: 620px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.hero-stats dt { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.hero-stats dd { font-size: 0.88rem; color: var(--ink-soft); }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--dark-soft); }
.section-dark .eyebrow { color: var(--violet); }

/* ===== Grids & Cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(67, 56, 202, 0.3);
}
.card-icon { font-size: 1.7rem; margin-bottom: 16px; }
.card-featured { border: 1.5px solid var(--primary); position: relative; }
.card-featured::before {
  content: "Signature";
  position: absolute;
  top: -11px; right: 20px;
  background: var(--grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
}

/* ===== Why Us ===== */
.why-grid { margin-top: 8px; gap: 40px 48px; }
.why-item { display: flex; gap: 20px; align-items: flex-start; }
.why-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--violet);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  padding: 8px 12px;
  flex-shrink: 0;
}

/* ===== Process ===== */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.process li {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 16px;
}

/* ===== Tech badges ===== */
.stack { margin-top: 72px; }
.stack-title { margin-bottom: 20px; }
.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badges li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  transition: all 0.2s ease;
}
.badges li:hover { color: var(--primary); border-color: var(--primary); background: #fff; }

/* ===== Portfolio ===== */
.work-card { display: flex; flex-direction: column; }
.work-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(67, 56, 202, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.work-result {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

/* ===== Testimonials ===== */
.quotes { position: relative; max-width: 720px; min-height: 190px; }
.quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote p {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
}
.quote footer { margin-top: 18px; color: var(--ink-soft); font-size: 0.92rem; }
.quote-dots { display: flex; gap: 8px; margin-top: 28px; }
.quote-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.quote-dots button.is-active { background: var(--primary); transform: scale(1.25); }

/* ===== About ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-inner p { margin-bottom: 16px; }
.about-inner strong { color: #fff; }
.about-inner em { color: var(--violet); font-style: normal; font-weight: 600; }
.about-card {
  background: linear-gradient(145deg, rgba(67, 56, 202, 0.25), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
}
.about-mark {
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  border-radius: 24px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3rem;
}
.about-tagline {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff !important;
}

/* ===== Contact ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-sub { margin: 8px 0 32px; max-width: 480px; }
.contact-details { font-style: normal; display: grid; gap: 28px; }
.contact-details h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); margin-bottom: 4px; }
.contact-details a { color: var(--primary); text-decoration: none; font-weight: 500; }
.contact-details a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.footer { background: var(--dark); padding: 56px 0 32px; }
.footer .brand-name { color: #fff; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-legal { color: var(--dark-soft); font-size: 0.88rem; margin-top: 12px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--dark-soft); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
}
.footer-bottom p { color: var(--dark-soft); font-size: 0.82rem; }
.footer-tag { font-family: var(--font-head); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .process { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 80px; }
  .section { padding: 72px 0; }
  .hero-stats { gap: 28px; }
  .why-grid { gap: 28px; }
  .quotes { min-height: 260px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(16,20,38,0.1);
  }
  .nav-links.is-open { transform: none; }
  .nav-links a:not(.btn) { padding: 10px 0; font-size: 1rem; width: 100%; }
  .nav-links .btn { margin-top: 10px; }
}
