/* =========================================================
   Saulsberry Technologies — Techy / Modern / Cool
   ========================================================= */

:root {
  /* Palette — cool slate + electric blue→cyan */
  --ink: #0a0f1c;
  --ink-soft: #28324a;
  --ink-mute: #5b6680;
  --paper: #f5f8fd;
  --paper-2: #ffffff;
  --line: #e2e8f3;
  --line-soft: #eef2f9;

  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --cyan: #06b6d4;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --grad: linear-gradient(110deg, #2563eb 0%, #0ea5e9 55%, #06b6d4 100%);
  --grad-soft: linear-gradient(110deg, #eaf1ff 0%, #e6f7fb 100%);

  /* Type */
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 28, 0.05), 0 6px 18px rgba(10, 15, 28, 0.05);
  --shadow-md: 0 10px 34px rgba(13, 31, 71, 0.10);
  --shadow-lg: 0 30px 60px -22px rgba(37, 99, 235, 0.40);

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(37, 99, 235, 0.22); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Decorative background ---------- */
.bg-canvas { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.orb--1 { width: 560px; height: 560px; top: -200px; left: -140px;
  background: radial-gradient(circle at 30% 30%, #bcd4ff, transparent 70%); }
.orb--2 { width: 500px; height: 500px; top: 260px; right: -180px;
  background: radial-gradient(circle at 30% 30%, #b6ecf7, transparent 70%); animation: float 20s var(--ease) infinite; }
.orb--3 { width: 440px; height: 440px; bottom: -180px; left: 28%;
  background: radial-gradient(circle at 30% 30%, #c7dbff, transparent 70%); opacity: 0.35; }
.grid { position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 0%, transparent 78%);
  opacity: 0.6; }
@keyframes float { 50% { transform: translate(-28px, 36px); } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(245, 248, 253, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(245, 248, 253, 0.88); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; }
.brand__mark { display: grid; place-items: center; }
.brand__text { font-family: var(--display); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.brand__sub { display: block; font-family: var(--mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--accent); }
.nav__cta {
  font-family: var(--sans);
  padding: 9px 18px; border-radius: 8px; color: #fff !important;
  background: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease) !important;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --pad: 13px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad); border-radius: 9px; font-weight: 600; font-size: 0.96rem;
  border: 1px solid transparent; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap; letter-spacing: -0.01em;
}
.btn--primary { color: #fff; background: var(--accent); box-shadow: 0 6px 18px -4px rgba(37, 99, 235, 0.5); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--accent-deep); }
.btn--ghost { color: var(--ink); background: var(--paper-2); border-color: var(--line); }
.btn--ghost:hover { transform: translateY(-2px); border-color: #c5d3ec; color: var(--accent); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep);
  padding: 6px 12px 6px 11px; border-radius: 7px; background: var(--grad-soft);
  border: 1px solid #dbe7ff; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 8px rgba(6, 182, 212, 0.7); }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background:
  linear-gradient(180deg, transparent, rgba(233, 240, 252, 0.7) 12%, rgba(233, 240, 252, 0.7) 88%, transparent); }
.section__head { max-width: 730px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section__head--left { text-align: left; margin-left: 0; }
.section__title {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(2rem, 4.6vw, 3.05rem); line-height: 1.08; color: var(--ink);
}
.section__title em { font-style: normal; color: var(--accent); }
.section__sub { margin-top: 18px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-mute); }

/* ---------- Hero ---------- */
.hero { padding: clamp(66px, 10vw, 124px) 0 clamp(48px, 7vw, 96px); text-align: center; }
.hero__inner { max-width: 900px; margin: 0 auto; }
.hero__title {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.04em;
  font-size: clamp(2.7rem, 7vw, 5.1rem); line-height: 1.0; color: var(--ink);
}
.hero__accent {
  display: block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  max-width: 640px; margin: 26px auto 0; font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  color: var(--ink-soft);
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none;
  margin-top: 48px;
}
.hero__chips li {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--ink-soft);
  padding: 8px 15px; border-radius: 8px; background: var(--paper-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.hero__chips li::before { content: "› "; color: var(--cyan); font-weight: 700; }

/* ---------- Cards (services) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity 0.35s var(--ease);
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover::before { opacity: 0.6; }
.card:hover::after { transform: scaleX(1); }
.card--feature { grid-column: span 3; display: grid; grid-template-columns: auto 1fr;
  gap: 6px 24px; align-items: center; background: var(--grad-soft); border-color: #d6e6ff; }
.card--feature .card__icon { grid-row: span 2; }
.card--feature h3, .card--feature p { grid-column: 2; }
.card__icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent-deep); background: var(--grad-soft); border: 1px solid #dbe7ff; margin-bottom: 18px;
}
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { color: var(--ink-mute); font-size: 0.98rem; }

/* ---------- Steps (approach) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; }
.step {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step__num {
  font-family: var(--mono); font-weight: 600; font-size: 1.4rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-family: var(--display); font-weight: 600; font-size: 1.16rem; margin: 12px 0 8px; letter-spacing: -0.02em; }
.step p { color: var(--ink-mute); font-size: 0.96rem; }

/* ---------- Rendevuz spotlight ---------- */
.spotlight {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: clamp(34px, 5vw, 60px); border-radius: 22px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(6, 182, 212, 0.25), transparent 55%),
    linear-gradient(135deg, #060b18 0%, #0b1733 55%, #0a2150 100%);
  color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; position: relative;
}
.spotlight::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 10%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 80% at 70% 10%, #000, transparent 70%);
}
.spotlight__body { position: relative; z-index: 1; }
.spotlight .eyebrow { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); color: #7dd3fc; }
.spotlight__title { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.04em; }
.spotlight__text { margin: 16px 0 28px; color: rgba(226, 240, 255, 0.78); font-size: 1.08rem; max-width: 46ch; }
.spotlight .btn--primary { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -8px rgba(56, 189, 248, 0.5); }
.spotlight .btn--primary:hover { background: #eaf4ff; }

.spotlight__visual { display: grid; place-items: center; position: relative; z-index: 1; }
.phone {
  width: 190px; height: 380px; border-radius: 32px; padding: 14px;
  background: linear-gradient(160deg, #11203f, #0a1124); position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(56, 189, 248, 0.25);
  animation: floatY 6s var(--ease) infinite;
}
@keyframes floatY { 50% { transform: translateY(-12px); } }
.phone__notch { width: 70px; height: 18px; border-radius: 999px; background: #060a14; margin: 0 auto 10px; }
.phone__screen {
  height: calc(100% - 28px); border-radius: 22px; padding: 22px 18px;
  background: linear-gradient(160deg, #0e1c38, #0a1430); display: flex; flex-direction: column; gap: 12px;
  border: 1px solid rgba(56, 189, 248, 0.18);
}
.phone__pill { height: 46px; border-radius: 10px; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.18); }
.phone__pill--lg { height: 120px; background: var(--grad); opacity: 0.92; border: 0; }
.phone__pill--sm { height: 32px; width: 70%; }
.phone__brand { margin-top: auto; font-family: var(--display); font-weight: 700; color: #7dd3fc; letter-spacing: -0.02em; }

/* ---------- Contact ---------- */
.section--contact { padding-top: clamp(60px, 8vw, 110px); }
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.section--contact .section__head { margin-bottom: 0; position: sticky; top: 100px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  background: var(--paper-2); padding: clamp(26px, 4vw, 40px); border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.optional { font-weight: 400; color: var(--ink-mute); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); width: 100%;
  padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #97a4bd; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14); background: var(--paper-2);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.1); }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-mute); border-bottom: 2px solid var(--ink-mute);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__footer { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.btn__spinner {
  width: 17px; height: 17px; border-radius: 50%; display: none;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .btn__label { opacity: 0.7; }
.is-loading .btn__spinner { display: inline-block; }

.form__status { font-size: 0.94rem; font-weight: 500; min-height: 1.2em; font-family: var(--mono); letter-spacing: -0.01em; }
.form__status.is-success { color: #0e9f6e; }
.form__status.is-error { color: #d23842; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--paper-2); }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px 40px; align-items: start; }
.footer__brand p { color: var(--ink-mute); font-size: 0.94rem; margin-top: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: flex-end; }
.footer__links a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__copy { grid-column: 1 / -1; padding-top: 24px; margin-top: 8px;
  border-top: 1px solid var(--line-soft); color: var(--ink-mute); font-size: 0.86rem; font-family: var(--mono); letter-spacing: -0.01em; }

/* ---------- Reveal animation ---------- */
/* Progressive enhancement: content is fully visible by default, and only
   starts hidden (to animate in) once JS marks the document with .js. This
   guarantees the page is readable even if JavaScript fails to load. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 4px;
    background: rgba(245, 248, 253, 0.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px; transform: translateY(-130%); transition: transform 0.4s var(--ease); }
  .nav.is-open .nav__links { transform: none; }
  .nav__links a { width: 100%; padding: 12px 4px; font-size: 1rem; }
  .nav__cta { width: 100%; text-align: center; margin-top: 6px; }
  .nav__toggle { display: flex; }

  .cards { grid-template-columns: 1fr 1fr; }
  .card--feature { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .spotlight { grid-template-columns: 1fr; text-align: center; }
  .spotlight__text { margin-inline: auto; }
  .spotlight__visual { order: -1; }
  .contact { grid-template-columns: 1fr; }
  .section--contact .section__head { position: static; }
}
@media (max-width: 560px) {
  .cards, .card--feature, .steps { grid-template-columns: 1fr; }
  /* Reset the feature card's column span (set at <=900px) — otherwise it
     forces an implicit 2nd column on .cards and squishes the other cards. */
  .card--feature { display: block; grid-column: auto; }
  .card--feature h3, .card--feature p { grid-column: auto; }
  .form { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
