/* Theme Name: OCEAN FAN
   Author: OCEAN FAN MARKETING S.L.
   Support: https://oceanfan-sl.com / info@oceanfan-sl.com
   Description: Coming-soon stub for IT marketing
*/

:root {
  --ink: #030912;
  --deep: #071525;
  --panel: #0d1c2e;
  --line: #1a3348;
  --azure: #3d9eff;
  --mint: #1ec8a5;
  --paper: #e6f1f8;
  --muted: #7f96a8;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--azure);
  text-decoration: none;
}

a:hover {
  color: #7cbcff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(61, 158, 255, 0.14), transparent 44%),
    linear-gradient(220deg, rgba(30, 200, 165, 0.12), transparent 52%);
}

.preloader__inner {
  position: relative;
  width: min(280px, 70vw);
  text-align: center;
}

.preloader__mark {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
}

.preloader__track {
  height: 2px;
  background: var(--line);
  overflow: hidden;
}

.preloader__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--azure), var(--mint));
  animation: load 1.15s ease forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 14% 18%, rgba(61, 158, 255, 0.1), transparent 44%),
    radial-gradient(ellipse at 86% 72%, rgba(30, 200, 165, 0.09), transparent 48%),
    linear-gradient(180deg, var(--ink), var(--deep));
}

.field::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 241, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 241, 248, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 76%);
}

.field__mesh {
  width: 100%;
  height: 100%;
  opacity: 0.95;
}

.field__lines {
  stroke-dasharray: 6 16;
  animation: drift 20s linear infinite;
}

.field__nodes circle {
  animation: pulse 3.4s ease-in-out infinite;
}

.field__nodes circle:nth-child(2) {
  animation-delay: 0.5s;
  fill: var(--mint);
}

.field__nodes circle:nth-child(3) {
  animation-delay: 1.1s;
}

.field__nodes circle:nth-child(4) {
  animation-delay: 1.7s;
  fill: var(--mint);
}

@keyframes drift {
  to {
    stroke-dashoffset: -240;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.top,
.stage,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 6vw 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.brand img {
  display: block;
}

.status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(30, 200, 165, 0.65);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 8px rgba(30, 200, 165, 0);
  }
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 6vw 6vh;
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--azure);
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 34rem;
}

.cta {
  align-self: flex-start;
  display: inline-flex;
  padding: 0.85rem 1.25rem;
  background: var(--azure);
  color: #031018;
  font-weight: 700;
  border-radius: 2px;
}

.cta:hover {
  color: #031018;
  background: #6bb4ff;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: space-between;
  align-items: end;
  padding: 0 6vw 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot__legal {
  margin: 0 0 0.25rem;
  color: var(--paper);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.foot p {
  margin: 0.15rem 0;
}

.foot__nav {
  display: flex;
  gap: 1.25rem;
}

.cookie {
  position: fixed;
  z-index: 30;
  right: 1.25rem;
  bottom: 1.25rem;
  width: min(24rem, calc(100vw - 2.5rem));
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 0.92rem;
}

.cookie p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.btn {
  border: 0;
  cursor: pointer;
  padding: 0.55rem 0.85rem;
  background: var(--azure);
  color: #031018;
  font-family: var(--font-body);
  font-weight: 700;
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}

.legal {
  max-width: 42rem;
  padding: 6vh 6vw 8vh;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--mint);
}

@media (max-width: 720px) {
  .top {
    padding-top: 1rem;
  }

  .status {
    font-size: 0.6rem;
  }

  .foot {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__bar,
  .field__lines,
  .field__nodes circle,
  .status__dot {
    animation: none;
  }

  .preloader__bar {
    width: 100%;
  }
}
