
/* =========================================
   TENAXIOS — Modern Technology Company
   ========================================= */

:root {
  --bg: #080d19;
  --bg-soft: #0d1525;
  --card: #111d30;
  --text: #f4f7fb;
  --muted: #a8b4c8;
  --accent: #67e8c5;
  --border: rgba(255, 255, 255, 0.10);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 78px;
  padding: 18px max(6%, calc((100% - var(--max-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(8, 13, 25, 0.90);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.logo {
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: 2.5px;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  padding: 120px max(6%, calc((100% - var(--max-width)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 80% 35%,
      rgba(56, 189, 164, 0.15),
      transparent 40%
    ),
    radial-gradient(
      ellipse at 10% 90%,
      rgba(51, 91, 170, 0.13),
      transparent 40%
    ),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 400px;
  height: 400px;
  top: 80px;
  right: -150px;
  border: 1px solid rgba(103, 232, 197, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(103, 232, 197, 0.025),
    0 0 0 110px rgba(103, 232, 197, 0.02);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 3px;
  text-transform: uppercase;
}

h1 {
  max-width: 950px;
  margin: 0 0 26px;
  font-size: clamp(3rem, 6.6vw, 5.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -3px;
}

.hero h1 span {
  color: var(--accent);
}

.intro {
  max-width: 680px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.9;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #07130f;
  font-weight: 750;
  box-shadow: 0 8px 30px rgba(103, 232, 197, 0.10);
}

.cta:hover {
  background: #91f5dc;
  border-color: #91f5dc;
  transform: translateY(-2px);
}

/* Shared section styling */

.section {
  padding: 100px max(6%, calc((100% - var(--max-width)) / 2));
}

.section h2 {
  max-width: 820px;
  margin: 0 0 24px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.2;
  letter-spacing: -1.5px;
}

.section > p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* About */

#about {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Services */

.services {
  background: var(--bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.service-grid article {
  position: relative;
  padding: 32px 28px;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(
    145deg,
    rgba(20, 35, 55, 0.96),
    rgba(12, 21, 36, 0.96)
  );
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.service-grid article::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 26px;
  border-radius: 5px;
  background: var(--accent);
}

.service-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 232, 197, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20);
}

.service-grid h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Contact */

.contact {
  text-align: center;
  background:
    radial-gradient(
      ellipse at center,
      rgba(40, 120, 110, 0.13),
      transparent 60%
    ),
    var(--bg-soft);
  border-top: 1px solid var(--border);
}

.contact .eyebrow {
  margin-bottom: 20px;
}

.contact h2 {
  margin-left: auto;
  margin-right: auto;
}

.contact > p:not(.eyebrow) {
  margin: 0 auto 26px;
  color: var(--muted);
}

.contact .cta {
  margin-top: 8px;
}

/* Footer */

footer {
  min-height: 100px;
  padding: 28px max(6%, calc((100% - var(--max-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Mobile and tablet */

@media (max-width: 850px) {
  .hero {
    min-height: 590px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: auto;
  }

  .section {
    padding-top: 75px;
    padding-bottom: 75px;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 16px 5%;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 25px;
  }

  .hero {
    min-height: 540px;
    padding: 85px 6%;
  }

  h1 {
    font-size: clamp(2.55rem, 11vw, 3.7rem);
    letter-spacing: -1.8px;
  }

  .intro {
    font-size: 1rem;
  }

  .section {
    padding: 70px 6%;
  }

  .section h2 {
    font-size: 2.2rem;
    letter-spacing: -0.8px;
  }

  .service-grid {
    gap: 16px;
  }

  .service-grid article {
    padding: 25px;
  }

  footer {
    padding: 26px 6%;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
