/* ==========================================================================
   Oxussoft — static one-pager
   Ported 1:1 from the Airo (Vite + React + Tailwind) build.
   Design tokens mirror src/styles/globals.css of the original project.
   ========================================================================== */

:root {
  /* Core colors (HSL triplets, used as hsl(var(--x))) */
  --background: 0 0% 100%;
  --foreground: 0 0% 4%;
  --primary: 195 100% 40%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 96%;
  --secondary-foreground: 0 0% 44%;
  --muted: 0 0% 94%;
  --muted-foreground: 0 0% 40%;
  --border: 0 0% 88%;
  --destructive: 0 84% 60%;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Syne", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   Reset (subset of Tailwind preflight that the page relies on)
   -------------------------------------------------------------------------- */
*,
::before,
::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading) !important;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button, input, textarea {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

button {
  cursor: pointer;
  -webkit-appearance: button;
  text-transform: none;
}

img, svg {
  display: block;
  vertical-align: middle;
}

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

::placeholder {
  color: hsl(var(--muted-foreground));
  opacity: 1;
}

/* The [hidden] attribute must beat any author `display` rule below
   (e.g. `.form { display: flex }`), otherwise JS-hidden elements stay visible. */
[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Shared helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 64rem; /* max-w-5xl */
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container--wide {
  max-width: 80rem; /* max-w-7xl */
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.eyebrow {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.icon {
  flex-shrink: 0;
}

/* Fade-up entrance (port of the motion.js `fadeUp` variant) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}

.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .fade-up {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--background));
  border-bottom: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.is-scrolled {
  border-bottom-color: hsl(var(--border));
}

.site-header__inner {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo img {
  height: auto;
  max-height: 2.25rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

.site-nav__link {
  position: relative;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__link:hover {
  color: hsl(var(--foreground));
}

.site-nav__link::after {
  content: "";
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  height: 1px;
  width: 0;
  background: hsl(var(--primary));
  transition: all 0.2s ease-out;
}

.site-nav__link:hover::after {
  width: 100%;
}

.site-nav__cta {
  margin-left: 1rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav__cta:hover {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}

.site-header__toggle {
  display: block;
  padding: 0.25rem;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .site-header__toggle {
    display: none;
  }
}

.site-header__toggle .icon-x { display: none; }
.site-header.menu-open .icon-menu { display: none; }
.site-header.menu-open .icon-x { display: block; }

/* Enter and exit both animate over 150ms, mirroring the original's
   AnimatePresence transition. The closed panel stays `display: none` so it is
   out of the accessibility tree and out of the tab order. */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
}

/* Shown and hidden outright rather than faded. An entrance animation on an
   element revealed from `display: none` can stay pinned at its first frame
   until the element is first painted, which would leave the open panel
   invisible; a menu that always shows beats a 150ms fade. */
.site-header.menu-open .mobile-menu {
  display: flex;
}

@media (min-width: 768px) {
  .site-header.menu-open .mobile-menu {
    display: none;
  }
}

.mobile-menu__link {
  text-align: left;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu__link:hover {
  color: hsl(var(--foreground));
}

.mobile-menu__cta {
  display: block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: hsl(var(--background));
  overflow: hidden;
  padding-top: 4rem;
}

.hero__accent-v,
.hero__accent-h {
  position: absolute;
  top: 0;
  left: 0;
  background: hsl(var(--primary));
  opacity: 0.4;
  pointer-events: none;
}

.hero__accent-v { width: 1px; height: 10rem; }
.hero__accent-h { width: 10rem; height: 1px; }

.hero__inner {
  padding-top: 8rem;
  padding-bottom: 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .hero__inner {
    padding-top: 11rem;
    padding-bottom: 11rem;
  }
}

.hero__eyebrow {
  margin-bottom: 2.5rem;
}

.hero__title,
.hero__title-accent {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .hero__title,
  .hero__title-accent { font-size: 4.5rem; }
}

@media (min-width: 768px) {
  .hero__title,
  .hero__title-accent { font-size: 6rem; }
}

.hero__title {
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.hero__title-accent {
  color: hsl(var(--primary));
  margin-bottom: 3rem;
}

.hero__sub {
  font-size: 1rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  /* md:text-lg resets line-height to 1.75rem, overriding leading-relaxed */
  .hero__sub {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  margin-top: 6rem;
  padding-top: 2.5rem;
  border-top: 1px solid hsl(var(--border));
}

.stat__value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   What we do
   -------------------------------------------------------------------------- */
.what {
  background: hsl(var(--muted));
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .what {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.what__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .what__grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.what__statement {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.what__statement--accent {
  color: hsl(var(--primary));
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  /* md:text-4xl resets line-height to 2.5rem, overriding leading-tight */
  .what__statement {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.what__body {
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
  max-width: 24rem;
}

.cap-list {
  display: flex;
  flex-direction: column;
}

.cap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.cap:first-child {
  border-top: 0;
}

.cap__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cap__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.125rem;
}

.cap__desc {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.cap__arrow {
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cap:hover .cap__arrow {
  color: hsl(var(--primary));
  transform: translateX(0.125rem);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.services {
  background: hsl(var(--background));
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .services {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-head .eyebrow {
  margin-bottom: 1rem;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: hsl(var(--border));
}

@media (min-width: 768px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tile {
  background: hsl(var(--background));
  padding: 2rem;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tile:hover {
  background: hsl(var(--muted));
}

.tile .eyebrow {
  margin-bottom: 1rem;
}

.tile__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.tile__desc {
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta {
  background: hsl(var(--primary));
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .cta {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.cta__row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .cta__row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.cta__title {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 800;
  color: hsl(var(--primary-foreground));
}

@media (min-width: 768px) {
  /* md:text-5xl resets line-height to 1, overriding leading-tight */
  .cta__title {
    font-size: 3rem;
    line-height: 1;
  }
}

.cta__action {
  flex-shrink: 0;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  background: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-light:hover {
  background: hsl(var(--primary-foreground) / 0.9);
}

.btn-light .icon,
.btn-primary .icon {
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-light:hover .icon,
.btn-primary:hover .icon {
  transform: translateX(0.125rem);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
  background: hsl(var(--background));
  padding-top: 6rem;
  padding-bottom: 6rem;
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .contact {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.contact__eyebrow {
  margin-bottom: 1.5rem;
}

.contact__title {
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  /* md:text-4xl resets line-height to 2.5rem, overriding leading-tight */
  .contact__title {
    line-height: 2.5rem;
  }
}

.contact__sub {
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
  max-width: 28rem;
  margin-bottom: 4rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr 1.6fr;
    gap: 6rem;
  }
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail__icon {
  color: hsl(var(--primary));
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.detail .label {
  margin-bottom: 0.25rem;
}

.detail__value {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
}

a.detail__value {
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

a.detail__value:hover {
  color: hsl(var(--primary));
}

.detail__value--address {
  line-height: 1.625;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid hsl(var(--border));
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
  transition: border-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
}

.field textarea {
  resize: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form__error {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--destructive));
}

.btn-primary {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

.form__success {
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}

.form__success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.form__success-text {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.form__again {
  margin-top: 2rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.form__again:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--primary));
}

.site-footer__inner {
  padding-top: 2rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
  }
}

.site-footer__logo {
  flex-shrink: 0;
}

.site-footer__logo img {
  height: auto;
  max-height: 2rem;
  width: auto;
  object-fit: contain;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer__link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-footer__link:hover {
  color: hsl(var(--primary));
}

.site-footer__copy {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
