/* Obsidian Rain — Network Optimization Tech */

:root {
  --bg-void: #050508;
  --bg-obsidian: #0a0e16;
  --bg-panel: rgba(12, 18, 28, 0.72);
  --midnight: #0d1b2a;
  --midnight-deep: #071018;
  --silver: #c5cdd6;
  --silver-dim: #8a96a4;
  --cyan: #7ec8d4;
  --cyan-soft: #5aa8b4;
  --cyan-glow: rgba(126, 200, 212, 0.18);
  --line: rgba(197, 205, 214, 0.12);
  --line-strong: rgba(126, 200, 212, 0.28);
  --text: #d8dee6;
  --text-muted: #8f9aa8;
  --danger: #d48a8a;
  --ok: #8bc4a8;
  --font-display: "Saira Condensed", sans-serif;
  --font-body: "Saira", sans-serif;
  --space: clamp(1rem, 2vw, 1.75rem);
  --max: 1120px;
  --header-h: 4rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(13, 27, 42, 0.9), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(126, 200, 212, 0.06), transparent 50%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--midnight-deep) 45%, var(--bg-void) 100%);
  background-attachment: fixed;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--silver);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--silver);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 200; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 400; }

p { margin: 0 0 1em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Rain atmosphere */
.rain-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      105deg,
      transparent 0,
      transparent 2px,
      rgba(197, 205, 214, 0.03) 2px,
      rgba(197, 205, 214, 0.03) 3px
    );
  animation: rain-drift 18s linear infinite;
}

@keyframes rain-drift {
  from { background-position: 0 0; }
  to { background-position: 40px 120px; }
}

.site-header,
main,
.site-footer,
.cookie-banner {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 8, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
}

.site-logo:hover { color: var(--cyan); }

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver-dim);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: var(--silver);
  margin: 0.28rem 0;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 8, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--space) 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list {
    flex-direction: column;
    gap: 0.85rem;
  }
}

/* Buttons with rain ripple */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(126, 200, 212, 0.12), rgba(5, 5, 8, 0.4));
  color: var(--silver);
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.btn:hover {
  color: var(--cyan);
  border-color: var(--cyan-soft);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
}

.btn--ripple::after {
  content: "";
  position: absolute;
  left: var(--rx, 50%);
  top: var(--ry, 50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    0 0 0 0 rgba(126, 200, 212, 0.45),
    0 0 0 0 rgba(197, 205, 214, 0.25);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.btn--ripple.is-rippling::after {
  animation: rain-ripple 0.85s var(--ease) forwards;
}

@keyframes rain-ripple {
  0% {
    opacity: 1;
    box-shadow:
      0 0 0 0 rgba(126, 200, 212, 0.5),
      0 0 0 0 rgba(197, 205, 214, 0.3);
  }
  100% {
    opacity: 0;
    box-shadow:
      0 0 0 28px rgba(126, 200, 212, 0),
      0 0 0 48px rgba(197, 205, 214, 0);
  }
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38rem;
}

.glass {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(197, 205, 214, 0.06);
}

/* Droplet texture on glass surfaces */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(197, 205, 214, 0.25) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 32%, rgba(126, 200, 212, 0.2) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 78%, rgba(197, 205, 214, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 62%, rgba(126, 200, 212, 0.15) 0 1px, transparent 2px);
  background-size: 100% 100%;
}

.glass { position: relative; }

/* Hero — full-bleed, brand-first, asymmetric */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.45) contrast(1.1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 8, 0.92) 0%, rgba(5, 5, 8, 0.55) 48%, rgba(5, 5, 8, 0.35) 100%),
    linear-gradient(0deg, rgba(5, 5, 8, 0.9) 0%, transparent 45%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) var(--space) clamp(3rem, 8vh, 5rem);
  width: 100%;
  animation: rise-in 1s var(--ease) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0 0 1.25rem;
  max-width: 12ch;
  line-height: 0.95;
}

.hero__line {
  width: 3rem;
  height: 1px;
  background: var(--cyan);
  margin-bottom: 1.25rem;
  animation: line-grow 1.2s var(--ease) 0.3s both;
}

@keyframes line-grow {
  from { width: 0; opacity: 0; }
  to { width: 3rem; opacity: 1; }
}

.hero__statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  letter-spacing: 0.06em;
  color: var(--text);
  max-width: 28rem;
  margin: 0 0 0.75rem;
}

.hero__support {
  color: var(--text-muted);
  max-width: 26rem;
  margin-bottom: 2rem;
}

.hero__cta {
  display: inline-flex;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Home sections */
.primary-offer {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 800px) {
  .primary-offer { grid-template-columns: 1fr; }
}

.primary-offer__figure {
  overflow: hidden;
  border: 1px solid var(--line);
}

.primary-offer__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.85);
}

.offer-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.offer-list__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s var(--ease);
}

.offer-list__item:hover {
  background: rgba(126, 200, 212, 0.04);
}

.offer-list__num {
  font-family: var(--font-display);
  color: var(--cyan-soft);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.offer-list__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--silver);
  margin: 0;
}

.offer-list__price {
  font-family: var(--font-display);
  color: var(--silver-dim);
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .evidence { grid-template-columns: 1fr; }
}

.evidence__quote {
  padding: 1.5rem;
  margin: 0;
}

.evidence__quote p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
}

.evidence__quote cite {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

/* Service / blog grids — interaction containers, not decorative cards */
.listing {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.listing__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.listing__row:hover .listing__title {
  color: var(--cyan);
}

@media (max-width: 700px) {
  .listing__row { grid-template-columns: 1fr; }
}

.listing__media {
  overflow: hidden;
  border: 1px solid var(--line);
}

.listing__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.65) brightness(0.8);
}

.listing__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  color: var(--silver);
  margin: 0 0 0.4rem;
  transition: color 0.25s var(--ease);
}

.listing__meta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.5rem;
}

.listing__excerpt {
  color: var(--text-muted);
  margin: 0;
}

/* Page heroes (inner) */
.page-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.page-hero--media {
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: none;
  padding: 0;
}

.page-hero--media .page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero--media .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.4);
}

.page-hero--media .page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 8, 0.95), rgba(5, 5, 8, 0.35));
}

.page-hero--media .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(5rem, 14vh, 8rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

/* Content prose */
.prose {
  max-width: 42rem;
}

.prose h2 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--text-muted); }
.prose li { margin-bottom: 0.45rem; }

.price-note {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin: 1rem 0;
}

/* Forms */
.form {
  max-width: 34rem;
  display: grid;
  gap: 1.1rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--text);
  background: rgba(5, 5, 8, 0.65);
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--cyan-soft);
  box-shadow: 0 0 0 1px rgba(126, 200, 212, 0.25);
}

.form__error {
  color: var(--danger);
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form__status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  display: none;
}

.form__status.is-success {
  display: block;
  border-color: rgba(139, 196, 168, 0.4);
  color: var(--ok);
}

.form__status.is-error {
  display: block;
  border-color: rgba(212, 138, 138, 0.4);
  color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Method timeline */
.timeline {
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line-strong);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
}

.timeline__step {
  position: relative;
  padding-bottom: 2rem;
}

.timeline__step::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(126, 200, 212, 0.15);
}

.timeline__label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 0.35rem;
}

/* About team */
.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 700px) {
  .team { grid-template-columns: 1fr; }
}

.team__portrait {
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: 1rem;
}

.team__portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.85);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 8, 0.7);
  padding: 3rem 0 2rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
  margin: 0 0 0.4rem;
}

.site-footer__tag,
.site-footer__contact p {
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__legal a {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--silver-dim);
}

.site-footer__copy {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 1.25rem var(--space) 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  z-index: 60;
  left: var(--space);
  right: var(--space);
  bottom: var(--space);
  max-width: 36rem;
}

.cookie-banner__inner {
  padding: 1.25rem 1.35rem;
  background: rgba(8, 12, 20, 0.94);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(197, 205, 214, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.45);
}

.cookie-banner__text {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner__error {
  color: var(--danger);
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem var(--space);
}

.error-page__code {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(4rem, 15vw, 8rem);
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
  line-height: 1;
  margin: 0;
  opacity: 0.5;
}

/* Legal */
.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}
