/* =========================================================
   SilverWater Sylva — main stylesheet
   Theme: silver-water + sylva (forest). Dark, elegant, modern.
   ========================================================= */

:root {
  --bg: #0a0f14;
  --bg-2: #0e151c;
  --surface: #121b24;
  --surface-2: #16212c;
  --line: rgba(159, 233, 255, 0.12);
  --text: #e8f1f6;
  --muted: #9bb0bd;
  --silver: #9fe9ff;
  --blue: #6f8bff;
  --teal: #36e0c8;
  --accent-grad: linear-gradient(120deg, #9fe9ff 0%, #6f8bff 55%, #36e0c8 100%);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1140px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand__name {
  font-family: "Sora", "Inter", sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

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

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

.muted { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--silver);
  margin: 0 0 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn--primary {
  background: var(--accent-grad);
  color: #06121a;
  box-shadow: 0 10px 30px -10px rgba(111, 139, 255, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(111, 139, 255, 0.75); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--silver); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--full { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 15, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { display: grid; place-items: center; }
.brand__name { font-weight: 700; font-size: 1.12rem; }
.brand__name em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 500; font-size: 0.95rem; color: var(--muted); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a.btn { color: var(--text); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.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 ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.orb--1 { width: 460px; height: 460px; background: radial-gradient(circle, #6f8bff, transparent 70%); top: -120px; left: -80px; }
.orb--2 { width: 380px; height: 380px; background: radial-gradient(circle, #36e0c8, transparent 70%); top: 40px; right: -60px; animation-delay: -4s; }
.orb--3 { width: 320px; height: 320px; background: radial-gradient(circle, #9fe9ff, transparent 70%); bottom: -120px; left: 40%; animation-delay: -8s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

.hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 34px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: "Sora", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: 0.85rem; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 16px 0;
}
.marquee__track {
  display: flex;
  gap: 26px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 26s linear infinite;
  font-family: "Sora", sans-serif;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.marquee__track span:nth-child(even) { color: var(--silver); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); }
.section__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 18px; }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__sub { font-size: 1.05rem; }

.grid { display: grid; gap: 56px; }
.grid--split { grid-template-columns: 1.05fr 0.95fr; align-items: center; }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 9px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.about__cards { display: grid; gap: 16px; }
.mini {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.mini:hover { transform: translateY(-4px); border-color: rgba(159, 233, 255, 0.3); }
.mini h3 { font-size: 1.1rem; margin-bottom: 8px; }
.mini p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.service::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at top right, rgba(111, 139, 255, 0.12), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.service:hover { transform: translateY(-6px); border-color: rgba(159, 233, 255, 0.32); }
.service:hover::after { opacity: 1; }
.service__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(111, 139, 255, 0.12);
  color: var(--silver);
  margin-bottom: 20px;
}
.service h3 { font-size: 1.4rem; margin-bottom: 12px; }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Work cards ---------- */
.work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(159, 233, 255, 0.32); }
.card__media {
  height: 150px;
  position: relative;
  display: flex; align-items: flex-end; padding: 14px;
}
.card__media--a { background: linear-gradient(135deg, #1a2740, #3a4ea8); }
.card__media--b { background: linear-gradient(135deg, #123a3a, #2aa58f); }
.card__media--c { background: linear-gradient(135deg, #2a1840, #7a4bd0); }
.card__media--d { background: linear-gradient(135deg, #401a28, #c0506a); }
.card__badge {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(6, 12, 18, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
}
.card__body { padding: 20px; }
.card__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card__body p { margin: 0; font-size: 0.92rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step__n {
  font-family: "Sora", sans-serif; font-weight: 800;
  font-size: 1.4rem;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.92rem; }

/* ---------- Contact / CTA ---------- */
.contact { background: var(--bg-2); }
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
}
.cta__text .section__title { margin-bottom: 14px; }
.cta__mail {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px;
  font-family: "Sora", sans-serif; font-weight: 600;
  color: var(--silver);
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.25s ease, transform 0.2s ease;
}
.cta__mail:hover { border-color: var(--silver); transform: translateY(-2px); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--silver);
  box-shadow: 0 0 0 3px rgba(159, 233, 255, 0.12);
}
.field textarea { resize: vertical; }
.form__note { margin: 4px 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form__note.is-ok { color: var(--teal); }
.form__note.is-err { color: #ff7a8a; }

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer__brand p { max-width: 320px; margin: 12px 0 0; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer__cols h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: 0.92rem; padding: 4px 0; transition: color 0.2s ease; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px;
  font-size: 0.85rem; color: var(--muted);
  flex-wrap: wrap; gap: 8px;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--split { grid-template-columns: 1fr; gap: 36px; }
  .services { grid-template-columns: 1fr; }
  .work { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px 24px 28px;
    background: rgba(10, 15, 20, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.32s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 12px 4px; font-size: 1rem; }
  .nav__links a.btn { margin-top: 8px; }
  .nav__toggle { display: flex; }
  .hero { padding: 130px 0 72px; }
  .hero__stats { gap: 28px; }
  .work { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: center; text-align: center; }
}

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