/* Fenix Technologies — one-page site theme aligned with brand logo */

:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #1a202c;
  --color-text-muted: #4a5568;
  --color-dark: #1a202c;
  --color-dark-elevated: #263238;
  --color-accent: #e65100;
  --color-accent-deep: #bf360c;
  --color-accent-warm: #ff9800;
  --gradient-cta: linear-gradient(
    135deg,
    #ff9800 0%,
    #f4511e 45%,
    #d84315 100%
  );
  --gradient-hero: radial-gradient(
      ellipse 80% 60% at 70% -20%,
      rgba(255, 152, 0, 0.22),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 10% 30%,
      rgba(216, 67, 21, 0.12),
      transparent 50%
    );
  --shadow-sm: 0 1px 2px rgba(26, 32, 44, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 32, 44, 0.08);
  --radius: 12px;
  --radius-pill: 999px;
  --font: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max-width: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fenix-anim {
    animation: none !important;
  }

  .ill-packet-wrap:not(.ill-packet-alt):not(.ill-packet-square) {
    transform: translate(140px, 50px);
  }

  .ill-packet-wrap.ill-packet-alt {
    transform: translate(420px, 50px);
  }

  .ill-packet-wrap.ill-packet-square {
    transform: translate(720px, 50px);
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--color-dark);
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 32, 44, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--color-text);
}

.nav a:focus-visible {
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 2px;
  border-radius: 4px;
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  filter: brightness(1.05);
  color: #fff !important;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-dark);
  margin-inline: auto;
}

.mobile-nav {
  border-bottom: 1px solid rgba(26, 32, 44, 0.08);
  background: var(--color-surface);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0 1rem;
  gap: 0.25rem;
}

.mobile-nav-inner a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(26, 32, 44, 0.06);
}

.mobile-nav-inner a:last-child {
  border-bottom: none;
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
  .brand-logo {
    height: 56px;
  }
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(
    circle,
    rgba(26, 32, 44, 0.08) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black 30%, transparent);
}

.hero-layout {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  max-width: 44rem;
}

.hero-illustration {
  position: relative;
  max-width: min(420px, 100%);
  margin-inline: auto;
  justify-self: center;
}

.hero-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 32px rgba(26, 32, 44, 0.09));
}

@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.95fr);
    gap: 2rem 3rem;
  }

  .hero-illustration {
    max-width: 440px;
    justify-self: end;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.875rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

.hero-sub {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 38rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-warm);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-dark);
  border-color: rgba(26, 32, 44, 0.15);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-accent-warm);
  color: var(--color-accent-deep);
}

/* Sections */

.section {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.about-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 300px);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
  }
}

.about-copy {
  min-width: 0;
}

.about-section .about-text {
  margin: 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (min-width: 900px) {
  .about-section .about-text {
    max-width: none;
  }
}

.about-logo-panel {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo-frame {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(
    155deg,
    #ffffff 0%,
    var(--color-surface) 48%,
    rgba(255, 243, 224, 0.65) 100%
  );
  box-shadow:
    0 1px 2px rgba(26, 32, 44, 0.05),
    0 12px 32px rgba(26, 32, 44, 0.09),
    0 0 0 1px rgba(255, 152, 0, 0.14);
  isolation: isolate;
  overflow: hidden;
}

.about-logo-frame::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(
    ellipse 70% 60% at 28% 22%,
    rgba(255, 152, 0, 0.22),
    transparent 58%
  );
  z-index: 0;
  pointer-events: none;
}

.about-logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  pointer-events: none;
  z-index: 1;
}

.about-logo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.section-alt {
  background: var(--color-surface);
}

.section-dark {
  background: linear-gradient(
    165deg,
    var(--color-dark) 0%,
    var(--color-dark-elevated) 100%
  );
  color: #e2e8f0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-dark);
}

.section-title-on-dark {
  color: #fff;
}

.section-intro {
  margin: 0 0 2.5rem;
  max-width: 40rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.section-intro-on-dark {
  color: rgba(226, 232, 240, 0.88);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cards */

.card {
  background: var(--color-bg);
  border: 1px solid rgba(26, 32, 44, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.section-alt .card {
  background: var(--color-bg);
}

.card-on-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  box-shadow: none;
}

.card-on-dark p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.88);
  font-weight: 400;
}

.card:not(.card-on-dark) p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.card-compact {
  padding: 1.35rem 1.5rem;
}

.card-visual {
  margin: -0.2rem 0 0.65rem;
  max-width: 132px;
}

.card-visual-dark {
  max-width: 128px;
  opacity: 0.98;
}

.card-svg {
  width: 100%;
  height: auto;
  display: block;
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-dark);
}

.card-on-dark .card-title {
  color: #fff;
}

/* Process illustration */

.process-illustration {
  margin: 0 0 2rem;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(255, 152, 0, 0.07),
    rgba(248, 249, 250, 0) 72%
  );
  padding: 0.35rem 0 0.15rem;
  overflow: hidden;
}

.process-svg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 4.5rem;
}

/* Process */

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) and (max-width: 1149px) {
  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (min-width: 1150px) {
  .process-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}

.process-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid rgba(26, 32, 44, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 900px) {
  .process-step {
    flex-direction: column;
    padding: 1.35rem 1rem;
    min-height: 100%;
  }
}

.process-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gradient-cta);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
}

.process-title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.process-step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* Projects showcase (logos + copy) */

.projects-showcase {
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .projects-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-spotlight {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-spotlight-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.97);
  border-radius: calc(var(--radius) - 2px);
}

.product-spotlight-logo {
  max-height: 3.25rem;
  max-width: 11rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-spotlight-name {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}

.product-spotlight-desc {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.6;
}

.product-spotlight-meta {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  color: rgba(226, 232, 240, 0.62);
  line-height: 1.5;
}

/* CTA block */

.cta-section {
  background: var(--color-surface);
  border-top: 1px solid rgba(26, 32, 44, 0.06);
}

.cta-inner {
  text-align: center;
  max-width: 40rem;
}

.cta-illustration {
  max-width: min(300px, 100%);
  margin: 0 auto 1.15rem;
}

.cta-svg {
  width: 100%;
  height: auto;
  display: block;
}

.cta-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-sub {
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.cta-contact {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  font-size: 1rem;
}

.cta-contact-item {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  justify-content: center;
  align-items: baseline;
}

.cta-contact-label {
  font-weight: 600;
  color: var(--color-dark);
}

.cta-contact-text {
  color: var(--color-text-muted);
}

.cta-contact-link {
  color: var(--color-accent-deep);
  text-decoration: none;
  font-weight: 500;
}

.cta-contact-link:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.cta-inner .hero-cta {
  justify-content: center;
}

.btn-secondary-on-cta {
  background: transparent;
}

/* Footer */

.site-footer {
  background: var(--color-dark);
  color: rgba(226, 232, 240, 0.85);
  padding: 2rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-tagline {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
}

.footer-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(226, 232, 240, 0.55);
}

/* SVG illustration motion (brand-aligned; disabled via prefers-reduced-motion above) */

.fenix-anim {
  --ill-delay: 0s;
}

.ill-pulse-bg {
  animation: ill-pulse-bg 5.5s ease-in-out infinite;
}

.ill-swoosh {
  transform-origin: 50% 58%;
  animation: ill-swoosh-drift 8s ease-in-out infinite;
}

.ill-node {
  transform-origin: center;
  transform-box: fill-box;
  animation: ill-node-breathe 3.2s ease-in-out infinite;
  animation-delay: var(--ill-delay, 0s);
}

.ill-trace {
  stroke-dasharray: 6 10;
  animation: ill-dash-marquee 2.6s linear infinite;
}

.ill-pixels {
  animation: ill-pixels-fade 2.6s ease-in-out infinite;
}

.ill-orbit {
  transform-origin: 220px 200px;
  animation: ill-orbit-wobble 11s ease-in-out infinite;
}

.ill-card-dash {
  stroke-dasharray: 5 8;
  animation: ill-dash-marquee 2.4s linear infinite;
}

.ill-card-node {
  transform-origin: center;
  transform-box: fill-box;
  animation: ill-node-breathe 2.9s ease-in-out infinite;
  animation-delay: var(--ill-delay, 0s);
}

.ill-card-float {
  transform-origin: center;
  transform-box: fill-box;
  animation: ill-float-y 3.1s ease-in-out infinite;
}

.ill-bar {
  transform-origin: left center;
  transform-box: fill-box;
  animation: ill-bar-pulse 2.5s ease-in-out infinite;
  animation-delay: calc(var(--ill-i, 0) * 0.18s);
}

.ill-stack {
  transform-origin: 70px 62px;
  animation: ill-float-y 3.6s ease-in-out infinite;
}

.ill-card-scan {
  animation: ill-scan-line 2.9s ease-in-out infinite;
}

.ill-packet-wrap {
  animation: ill-packet-slide 3.9s linear infinite;
  animation-delay: var(--ill-t, 0s);
}

.ill-mile {
  transform-origin: center;
  transform-box: fill-box;
  animation: ill-mile-pop 2.8s ease-in-out infinite;
}

.process-svg g .ill-mile:nth-child(1) {
  animation-delay: 0s;
}
.process-svg g .ill-mile:nth-child(2) {
  animation-delay: 0.18s;
}
.process-svg g .ill-mile:nth-child(3) {
  animation-delay: 0.36s;
}
.process-svg g .ill-mile:nth-child(4) {
  animation-delay: 0.54s;
}
.process-svg g .ill-mile:nth-child(5) {
  animation-delay: 0.72s;
}

.ill-device-pulse {
  animation: ill-device-pulse 2.6s ease-in-out infinite;
}

.ill-led {
  animation: ill-led-blink 2.1s ease-in-out infinite;
}

.ill-gear {
  transform-origin: 52px 48px;
  animation: ill-gear-spin 5.8s linear infinite;
}

.ill-gear-rev {
  transform-origin: 96px 58px;
  animation: ill-gear-spin-rev 7.2s linear infinite;
}

.ill-blueprint {
  stroke-dasharray: 6 6;
  animation: ill-dash-marquee 3.2s linear infinite;
}

.ill-cta-glow {
  animation: ill-cta-glow 4.2s ease-in-out infinite;
}

.ill-cta-shimmer {
  transform-origin: 50% 50%;
  animation: ill-cta-shimmer 3.8s ease-in-out infinite;
}

@keyframes ill-pulse-bg {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.38;
  }
}

@keyframes ill-swoosh-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(5px, -5px) rotate(-0.9deg);
  }
}

@keyframes ill-node-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes ill-dash-marquee {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -40;
  }
}

@keyframes ill-pixels-fade {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 0.32;
  }
}

@keyframes ill-orbit-wobble {
  0%,
  100% {
    transform: rotate(-2deg);
    opacity: 0.32;
  }
  50% {
    transform: rotate(2.5deg);
    opacity: 0.48;
  }
}

@keyframes ill-float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes ill-bar-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes ill-scan-line {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(12px);
    opacity: 1;
  }
}

@keyframes ill-packet-slide {
  0% {
    transform: translate(48px, 50px);
  }
  100% {
    transform: translate(852px, 50px);
  }
}

@keyframes ill-mile-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.09);
  }
}

@keyframes ill-device-pulse {
  0%,
  100% {
    stroke-opacity: 1;
    opacity: 1;
  }
  50% {
    stroke-opacity: 0.45;
    opacity: 0.72;
  }
}

@keyframes ill-led-blink {
  0%,
  35%,
  100% {
    opacity: 1;
  }
  50%,
  80% {
    opacity: 0.2;
  }
}

@keyframes ill-gear-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ill-gear-spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes ill-cta-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.03);
  }
}

@keyframes ill-cta-shimmer {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-6px);
  }
  50% {
    opacity: 0.95;
    transform: translateX(6px);
  }
}
