/* ==========================================================
   Simha Cloud — site styles
   Palette taken from the Simha logo
   ========================================================== */
:root {
  --bg: #050a24;
  --bg-2: #0a1233;
  --surface: #0e1840;
  --line: rgba(80, 140, 255, .16);
  --blue: #1f5eff;
  --blue-2: #2f7bff;
  --cyan: #3cc8ff;
  --text: #e8eeff;
  --muted: #9aa8d1;
  --radius: 18px;
  --wrap: 1180px;
  --font-head: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.grad {
  background: linear-gradient(90deg, var(--blue-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff; font-weight: 600; font-family: var(--font-head); letter-spacing: .02em;
  box-shadow: 0 10px 30px -10px rgba(31, 94, 255, .8);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(47, 123, 255, .95); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn--ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.btn--ghost:hover { border-color: var(--cyan); box-shadow: none; }
.btn--sm { padding: .6rem 1.15rem; font-size: .95rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 10, 36, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 46px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a:not(.btn) { color: var(--muted); font-weight: 500; transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); transition: .3s; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(31, 94, 255, .28), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(60, 200, 255, .10), transparent 70%);
}
.hero__circuits { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(60, 200, 255, .16); }
.hero__circuits .pulse {
  stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 60 900; stroke-dashoffset: 960;
  animation: pulse 6s linear infinite; opacity: .8;
}
.hero__circuits .pulse--2 { animation-delay: 2s; }
.hero__circuits .pulse--3 { animation-delay: 4s; }
@keyframes pulse { to { stroke-dashoffset: 0; } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero__mark { position: relative; display: grid; place-items: center; }
.hero__mark img { position: relative; width: min(100%, 400px); filter: drop-shadow(0 20px 50px rgba(31, 94, 255, .45)); animation: float 7s ease-in-out infinite; }
.hero__glow {
  position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 200, 255, .35), rgba(31, 94, 255, .12) 45%, transparent 70%);
  filter: blur(20px);
}
@keyframes float { 50% { transform: translateY(-12px); } }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section__head { max-width: 46rem; margin-bottom: 3rem; }
.section__head p:last-child { color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative;
  padding: 2rem;
  background: linear-gradient(160deg, rgba(20, 36, 96, .55), rgba(10, 18, 51, .6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(60, 200, 255, .45); }
.card p { color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .45rem; font-size: .95rem; }
.card li { padding-left: 1.3rem; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--cyan); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.4rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 10px 24px -8px rgba(31, 94, 255, .8);
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card--cta {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  background: radial-gradient(100% 100% at 100% 0%, rgba(60, 200, 255, .25), transparent 60%), linear-gradient(160deg, #1440c8, #0b2a8a);
  border-color: rgba(60, 200, 255, .35);
}
.card--cta p { color: #d6e2ff; }
.card--cta .btn { margin-top: .6rem; background: #fff; color: #0b2a8a; box-shadow: none; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.steps li { padding: 1.8rem; border-top: 2px solid var(--blue); background: rgba(14, 24, 64, .5); border-radius: 0 0 var(--radius) var(--radius); }
.steps p { color: var(--muted); margin: 0; }
.steps__n { display: block; font: 800 2.4rem/1 var(--font-head); color: transparent; -webkit-text-stroke: 1px var(--cyan); margin-bottom: 1rem; }

/* Chips */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.chips li {
  padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(14, 24, 64, .6);
  font-weight: 500; font-size: .95rem; color: #cdd8ff; transition: border-color .2s, color .2s;
}
.chips li:hover { border-color: var(--cyan); color: #fff; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why__copy > p { color: var(--muted); }
.why__copy strong { color: var(--text); }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; color: var(--muted); }
.ticks li { padding-left: 2rem; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/70% no-repeat;
}
.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 1rem; }
.gallery__item { margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { object-position: center 60%; }

/* Contact */
.contact { text-align: center; background: radial-gradient(50% 70% at 50% 100%, rgba(31, 94, 255, .3), transparent 70%); }
.contact__inner { max-width: 40rem; }
.contact__lion { margin: 0 auto 1.5rem; width: 96px; filter: drop-shadow(0 8px 24px rgba(31, 94, 255, .6)); }
.contact p { color: var(--muted); }
.contact__actions { margin-top: 2rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer__inner img { height: 40px; width: auto; }
.footer nav { display: flex; gap: 1.5rem; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--text); }
.footer p { margin: 0; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.notfound img { margin: 0 auto 2rem; width: 160px; }
.notfound p { color: var(--muted); }

/* Responsive */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 1rem; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__mark { order: -1; }
  .hero__mark img { width: 220px; }
  .lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
