/* RECURSA LOGIC — site styles */

:root {
  --bg: #101a2b;
  --bg-deep: #0c1422;
  --surface: #1d2a3d;
  --surface-2: #233249;
  --border: rgba(131, 183, 255, 0.12);
  --border-strong: rgba(131, 183, 255, 0.3);
  --accent: #83b7ff;
  --accent-strong: #a9cdff;
  --on-accent: #0b1424;
  --heading: #ffffff;
  --text: #c3d0e2;
  --muted: #94a6bf;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(131, 183, 255, 0.1), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(131, 183, 255, 0.05), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.7;
}

.icon {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn svg {
  transition: transform 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 24px -10px rgba(131, 183, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 12px 32px -10px rgba(131, 183, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn:focus-visible {
  border-radius: 999px;
  outline-offset: 4px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(16, 26, 43, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(16, 26, 43, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
}

.brand-mark {
  flex: none;
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 12px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-nav .icon {
  color: var(--accent);
}

.site-nav a:hover {
  color: var(--heading);
  background: rgba(131, 183, 255, 0.08);
}

.site-nav .nav-cta {
  border: 1px solid var(--border-strong);
  color: var(--heading);
}

.site-nav .nav-cta:hover {
  border-color: var(--accent);
  background: rgba(131, 183, 255, 0.12);
}

.site-nav a:focus-visible {
  border-radius: 999px;
}

/* Hero */

.hero {
  position: relative;
  padding-block: clamp(56px, 10vw, 128px) clamp(64px, 10vw, 136px);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.35rem, 1.4rem + 4.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 15ch;
  text-wrap: balance;
}

.hero .lead {
  margin-top: 26px;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 40px;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.tagline-rule {
  width: 28px;
  height: 1px;
  background: var(--border-strong);
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 360px;
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: 22.6%;
  background:
    radial-gradient(circle at 78% 78%, rgba(131, 183, 255, 0.2), transparent 55%),
    linear-gradient(160deg, rgba(29, 42, 61, 0.9), rgba(16, 26, 43, 0.6));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

/* Sections */

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head .eyebrow {
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  text-wrap: balance;
}

/* Services */

.services {
  padding-block: clamp(72px, 10vw, 128px);
  border-top: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.card {
  position: relative;
  padding: clamp(28px, 3.5vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(29, 42, 61, 0.55));
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 200px at 0% 0%, rgba(131, 183, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(131, 183, 255, 0.08);
  color: var(--accent);
}

.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.45rem);
  letter-spacing: -0.015em;
}

.card p {
  margin-top: 12px;
  max-width: 34rem;
  color: var(--muted);
}

/* Contact */

.contact {
  padding-block: 0 clamp(72px, 10vw, 128px);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(131, 183, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-deep));
  text-align: center;
}

.contact-panel .eyebrow {
  margin-bottom: 14px;
}

.contact-panel .lead {
  margin-top: 18px;
  max-width: 30rem;
}

.contact-email {
  margin: 32px 0 28px;
  color: var(--heading);
  font-size: clamp(1.15rem, 0.9rem + 1.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.3s var(--ease), color 0.2s var(--ease);
}

.contact-email:hover {
  color: var(--accent-strong);
  background-size: 100% 1px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 40px 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.footer-brand > span > span {
  color: var(--accent);
}

.footer-contact {
  font-style: normal;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-meta li,
.footer-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-meta .icon {
  color: var(--accent);
}

.footer-meta a {
  color: var(--text);
  transition: color 0.2s var(--ease);
}

.footer-meta a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-block: 20px 28px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero h1 {
    max-width: 18ch;
  }
}

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

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  :root {
    --header-h: 64px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }

  .site-nav a {
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .site-nav .icon {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

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