/* ============================================================
   SarvmTech — Design tokens (light theme)
   ============================================================ */
:root{
  --bg:        #F7F8FC;   /* app background — soft cool white */
  --surface:   #FFFFFF;   /* cards / panels */
  --surface-2: #EFF1FA;   /* tinted panel, alt sections */
  --line:      #E3E6F2;

  --ink:       #14162B;   /* primary text */
  --muted:     #5B5F7A;
  --muted-2:   #9297B3;

  --primary:   #5B4FE9;   /* violet */
  --primary-2: #7C6FFF;
  --accent:    #00A99A;   /* teal */
  --accent-soft: #E4F7F4;
  --coral:     #FF6B57;   /* single warm highlight, used sparingly */
  --led:       #17B26A;

  --font-display: 'Fraunces', serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius: 16px;
  --container: 1180px;

  --shadow-sm: 0 1px 2px rgba(20,22,43,.04), 0 1px 1px rgba(20,22,43,.03);
  --shadow-md: 0 8px 24px rgba(20,22,43,.06), 0 2px 6px rgba(20,22,43,.04);
  --shadow-lg: 0 24px 60px rgba(20,22,43,.10), 0 6px 16px rgba(20,22,43,.05);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

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

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content:"";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

a:focus-visible, button:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

::selection{ background: var(--primary); color: #fff; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   Top utility bar (phone / email)
   ============================================================ */
.topbar{
  background: var(--ink);
  color: rgba(255,255,255,.75);
}
.topbar .wrap{
  display: flex; align-items: center; justify-content: space-between;
  height: 40px;
  font-size: 12.5px;
}
.topbar-contact{ display: flex; gap: 26px; }
.topbar-contact a{
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.82);
  transition: color .2s;
}
.topbar-contact a:hover{ color: #fff; }
.topbar-contact svg{ width: 14px; height: 14px; flex-shrink: 0; }
.topbar-note{ color: rgba(255,255,255,.5); font-family: var(--font-mono); font-size: 11.5px; }

@media (max-width: 700px){
  .topbar-note{ display: none; }
  .topbar .wrap{ justify-content: center; }
  .topbar-contact{ gap: 18px; }
}
@media (max-width: 460px){
  .topbar-contact a span.label-full{ display:none; }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav{
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,248,252,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.nav.is-scrolled{ box-shadow: 0 4px 20px rgba(20,22,43,.06); }
.nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}
.logo-mark{
  width: 34px; height: 34px;
  object-fit: contain;
  display: block;
}
.nav-links{
  display: flex; align-items: center; gap: 38px;
  list-style: none; margin:0; padding:0;
}
.nav-links a{
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a.active{ color: var(--ink); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-24px;
  height: 2px; background: var(--primary);
  border-radius: 2px;
}
.nav-cta{
  display: inline-flex; align-items:center;
  padding: 10px 20px;
  background: var(--ink);
  color: #fff !important;
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover{ background: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-toggle{ display:none; background:none; border:none; color:var(--ink); font-size: 22px; }

@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero{
  padding: 88px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero h1{
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.08;
  color: var(--ink);
  font-weight: 500;
}
.hero h1 em{
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead{
  color: var(--muted);
  font-size: 17.5px;
  max-width: 480px;
  margin: 0 0 32px;
}
.hero-ctas{
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 46px;
}
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600; font-size: 14.5px;
  transition: all .22s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary{
  background: linear-gradient(100deg, var(--primary), #4A3ED9);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px rgba(91,79,233,.28); }
.btn-ghost{
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover{ border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }

.platform-row{
  display: flex; gap: 26px; flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.platform-row span{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted-2);
}
.platform-row span b{ color: var(--muted); font-weight: 600; }

/* --- Hero animation: orbiting platform nodes around the core --- */
.orbit-stage{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
.orbit-ring{
  position: absolute; inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.orbit-ring.r2{ inset: 12%; border-color: #E9EBF6; }
.orbit-ring.r3{ inset: 24%; border-color: #EEF0F9; }

.orbit-core{
  position: absolute;
  top: 50%; left: 50%;
  width: 108px; height: 108px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px #fff, 0 20px 44px rgba(91,79,233,.28);
  display: flex; align-items:center; justify-content:center;
  z-index: 5;
  padding: 14px;
}
.orbit-core img{
  width: 100%; height: 100%;
  object-fit: contain;
}
.orbit-core::after{
  content:"";
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(91,79,233,.25);
  animation: spin 14s linear infinite;
}

.orbit-spin{
  position: absolute; inset: 0;
  animation: spin var(--dur, 22s) linear infinite;
}
.orbit-spin.rev{ animation-direction: reverse; }

.orbit-node{
  position: absolute;
  width: 66px; height: 66px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  animation: counter-spin var(--dur, 22s) linear infinite;
}
.orbit-spin.rev .orbit-node{ animation-direction: reverse; }
.orbit-node svg{ width: 28px; height: 28px; }

.orbit-spin.ring1{ --dur: 20s; }
.orbit-spin.ring2{ --dur: 30s; }
.orbit-spin.ring1 .orbit-node{ top: 6%; left: 50%; transform: translate(-50%,-50%); }
.orbit-spin.ring2 .orbit-node{ top: -2%; left: 50%; transform: translate(-50%,-50%); }
.orbit-spin.ring2b{ --dur: 30s; animation-delay: -15s; }
.orbit-spin.ring2b .orbit-node{ top: -2%; left: 50%; transform: translate(-50%,-50%); }

@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes counter-spin{ to{ transform: translate(-50%,-50%) rotate(-360deg); } }

.orbit-pulse{
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  top: 50%; left: 50%;
  animation: pulse-out 3.4s ease-out infinite;
}
.orbit-pulse:nth-child(2){ animation-delay: 1.1s; }
.orbit-pulse:nth-child(3){ animation-delay: 2.2s; }
@keyframes pulse-out{
  0%{ transform: translate(-50%,-50%) scale(0.4); opacity: .5; }
  100%{ transform: translate(-50%,-50%) scale(9.5); opacity: 0; }
}

@media (max-width: 900px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .orbit-stage{ max-width: 320px; margin-top: 10px; }
}

/* ============================================================
   Section basics
   ============================================================ */
.section{ padding: 96px 0; }
.section-head{ max-width: 640px; margin-bottom: 54px; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; }
.section-head p{ color: var(--muted); font-size: 16.5px; }
.section-alt{ background: var(--surface-2); }

/* ============================================================
   Service cards
   ============================================================ */
.services-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px){ .services-grid{ grid-template-columns: 1fr; } }

.service-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.service-card:hover{ border-color: var(--primary-2); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg{ width: 26px; height: 26px; }
.service-icon.violet{ background: #EFECFF; }
.service-icon.teal{ background: var(--accent-soft); }

.service-card h3{ font-size: 21px; margin-bottom: 10px; font-weight: 600; }
.service-card p{ color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.service-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.service-tags span{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 760px){ .stats{ grid-template-columns: 1fr 1fr; } }
.stat{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.stat b{
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  display:block;
}
.stat span{ color: var(--muted); font-size: 13.5px; }

/* ============================================================
   Process / approach list
   ============================================================ */
.approach{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
@media (max-width: 900px){ .approach{ grid-template-columns: 1fr; } }
.approach-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.approach-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.approach-card h4{ font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.approach-card p{ color: var(--muted); font-size: 14.5px; margin:0; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band{
  background: linear-gradient(120deg, #EFECFF, #E4F7F4);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3{ font-size: 27px; margin: 0 0 6px; font-weight: 600; }
.cta-band p{ color: var(--muted); margin:0; }

/* ============================================================
   Footer
   ============================================================ */
footer{
  border-top: 1px solid var(--line);
  padding: 52px 0 32px;
  background: var(--surface);
}
.footer-top{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
  margin-bottom: 36px;
}
.footer-cols{ display:flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5{
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing:.08em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px;
}
.footer-col a{
  display:block; color: var(--muted); font-size: 14px; margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover{ color: var(--primary); }
.footer-bottom{
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: var(--muted-2); font-size: 13px;
}

/* ============================================================
   Inner page hero (About / Services / Contact)
   ============================================================ */
.page-hero{ padding: 68px 0 24px; }
.page-hero h1{ font-size: clamp(32px, 4vw, 46px); font-weight: 500; }
.page-hero p{ color: var(--muted); max-width: 560px; font-size: 16.5px; }

/* ============================================================
   Contact form
   ============================================================ */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; } }

.field{ margin-bottom: 18px; }
.field label{
  display:block; font-size: 13px; color: var(--muted); margin-bottom: 7px;
  font-family: var(--font-mono);
}
.field input, .field select, .field textarea{
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px #EFECFF;
}
.field textarea{ resize: vertical; min-height: 120px; }

.contact-info{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}
.contact-info .row{
  display:flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .row:last-child{ border-bottom: none; }
.contact-info .row b{ display:block; font-size: 14.5px; font-weight: 600; }
.contact-info .row span{ color: var(--muted); font-size: 13.5px; }

.form-note{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 12px;
}
.alert-success{
  background: var(--accent-soft);
  border: 1px solid #C4EBE5;
  color: #0A7A6E;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 22px;
}
.alert-error{
  background: #FFF1EE;
  border: 1px solid #FFD9D0;
  color: #C4401F;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 22px;
}

/* ============================================================
   Scroll reveal (subtle, one-time fade + rise)
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Floating WhatsApp button
   ============================================================ */
.whatsapp-float{
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.whatsapp-float:hover{ transform: scale(1.07); }
.whatsapp-float svg{ width: 28px; height: 28px; }

@media (max-width: 480px){
  .whatsapp-float{ right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .whatsapp-float svg{ width: 25px; height: 25px; }
}
