/* Nektonix — deep ocean technical brand */

:root {
  --ink: #061525;
  --navy: #0a2238;
  --depth: #0d3548;
  --teal: #146878;
  --cyan: #3ecfcf;
  --cyan-soft: #7ee8e0;
  --mist: #c5d9e4;
  --foam: #eef6f8;
  --muted: rgba(197, 217, 228, 0.72);
  --line: rgba(62, 207, 207, 0.22);
  --surface: rgba(13, 53, 72, 0.55);
  --radius: 4px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --max: 1100px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--mist);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

/* Atmosphere */
.bg-depth {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 70% -10%, rgba(26, 138, 154, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 40%, rgba(20, 104, 120, 0.2), transparent 50%),
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(6, 40, 60, 0.9), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--navy) 45%, #041018 100%);
}

.bg-depth::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath fill='none' stroke='%233ecfcf' stroke-opacity='0.06' d='M0 60c30-20 60-20 90 0S180 80 210 60'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(6, 21, 37, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--foam);
}

.brand img {
  height: 2.35rem;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--cyan-soft);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding-left: 0.85rem;
  border-left: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a[aria-current="page"] {
  color: var(--cyan-soft);
}

.lang-switch a:hover {
  color: var(--foam);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--foam);
  border-radius: var(--radius);
  padding: 0.4rem 0.65rem;
  font-family: var(--font-body);
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% -20% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at center, rgba(62, 207, 207, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 40rem;
}

.hero-brand {
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-brand img {
  height: clamp(3.25rem, 7vw, 4.5rem);
  width: auto;
}

.hero-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  letter-spacing: 0.03em;
  color: var(--foam);
  line-height: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foam);
}

.hero-lead {
  margin: 0 0 2rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1a8a9a, var(--cyan));
  color: var(--ink);
}

.btn-primary:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--foam);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--foam);
}

.section-intro {
  margin: 0 0 2.5rem;
  max-width: 38rem;
  color: var(--muted);
}

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

@media (min-width: 760px) {
  .service-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.service-item {
  padding: 0;
  border-top: 2px solid var(--cyan);
  padding-top: 1.25rem;
}

.service-item h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--foam);
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.consulting-panel {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0 0;
}

@media (min-width: 800px) {
  .consulting-panel {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    gap: 3rem;
  }
}

.consulting-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.consulting-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--mist);
}

.consulting-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.contact-note {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foam);
}

.form input,
.form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 21, 37, 0.65);
  color: var(--foam);
  font-family: var(--font-body);
  /* 16px+ avoids iOS zoom-on-focus */
  font-size: max(1rem, 16px);
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(197, 217, 228, 0.4);
}

.form input:focus,
.form textarea:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(62, 207, 207, 0.15);
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.noscript-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}

/* Inner pages */
.page-hero {
  padding: 3rem 0 1.5rem;
  border-top: none;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--foam);
}

.page-hero .section-label {
  margin-bottom: 0.75rem;
}

.page-content {
  padding: 1.5rem 0 4.5rem;
}

.page-content h2 {
  margin: 2.5rem 0 1.15rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--foam);
}

.page-content h2:first-child {
  margin-top: 0;
}

.info-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--line);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}

.info-table th,
.info-table td {
  padding: 0.85rem 1rem 0.85rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(62, 207, 207, 0.14);
}

.info-table th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  width: 42%;
}

.info-table thead th {
  padding-top: 0.35rem;
  padding-bottom: 0.95rem;
}

.info-table tbody th {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mist);
}

.info-table td {
  color: var(--foam);
  font-size: 1rem;
}

.info-table .placeholder {
  color: var(--muted);
  font-style: italic;
}

.info-table button[data-email-trigger],
.info-table button[data-phone-trigger] {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  color: var(--cyan-soft);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.info-table button[data-email-trigger]:hover,
.info-table button[data-phone-trigger]:hover {
  color: var(--foam);
}

.info-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--foam);
  letter-spacing: 0.04em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-meta a {
  color: var(--cyan-soft);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--foam);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-meta button {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  color: var(--cyan-soft);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-meta button:hover {
  color: var(--foam);
}

/* Motion */
.hero-brand,
.hero h1,
.hero-lead,
.hero-actions {
  animation: rise 0.9s ease both;
}

.hero h1 {
  animation-delay: 0.12s;
}

.hero-lead {
  animation-delay: 0.22s;
}

.hero-actions {
  animation-delay: 0.32s;
}

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

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

  .hero-brand,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}

/* Mobile / small tablets */
@media (max-width: 720px) {
  :root {
    --header-h: 3.75rem;
  }

  body {
    font-size: 1rem;
  }

  .wrap,
  .site-header .wrap {
    width: min(100% - 1.5rem, var(--max));
  }

  .brand {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand img {
    height: 2rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    right: auto;
    width: 100vw;
    margin-left: -50vw;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 1.25rem 1.1rem;
    background: rgba(6, 21, 37, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.95rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(62, 207, 207, 0.1);
  }

  .lang-switch {
    margin: 0.35rem 0 0;
    padding: 0.85rem 0 0.25rem;
    border-left: none;
    border-top: 1px solid var(--line);
    gap: 0.65rem;
  }

  .lang-switch a {
    padding: 0.35rem 0.15rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
  }

  .hero {
    min-height: auto;
    padding: 2.25rem 0 3rem;
    align-items: start;
  }

  .hero-brand {
    margin-bottom: 1.35rem;
    gap: 0.65rem;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .hero-brand img {
    height: 2.75rem;
  }

  .hero-brand-name {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 1.02rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 3rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section h2 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }

  .section-intro {
    margin-bottom: 1.75rem;
  }

  .service-list {
    gap: 1.5rem;
  }

  .consulting-panel {
    gap: 1.25rem;
    padding-top: 0.5rem;
  }

  .contact-grid {
    gap: 1.75rem;
  }

  .form .btn {
    width: 100%;
    min-height: 3rem;
  }

  .site-footer {
    padding: 2rem 0 calc(2.25rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .footer-meta button {
    min-height: 2.5rem;
  }

  .page-hero {
    padding: 2.25rem 0 1rem;
  }

  .page-content {
    padding-bottom: 3.25rem;
  }

  .info-table thead {
    display: none;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .info-table tr {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(62, 207, 207, 0.14);
  }

  .info-table th,
  .info-table td {
    padding: 0;
    border-bottom: none;
  }

  .info-table tbody th {
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
    color: var(--cyan-soft);
  }

  .info-table td {
    font-size: 1.02rem;
  }
}

/* Narrow phones */
@media (max-width: 380px) {
  .wrap,
  .site-header .wrap {
    width: min(100% - 1.15rem, var(--max));
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .hero-brand img {
    height: 2.4rem;
  }
}
