/**
 * Olonex — Digital Maritime Ecosystem
 * Stylesheet (Vanilla CSS3)
 */

/* ==========================================================================
   CSS Custom Properties / Brand Tokens
   ========================================================================== */
:root {
  /* Brand Palette */
  --color-ocean: #0B1D3A;
  --color-deep-sea: #122F5A;
  --color-sea-blue: #1E88E5;
  --color-aqua: #00B2B4;
  --color-light-aqua: #7EE7D6;
  --color-cloud: #F4F7FA;
  --color-cloud-muted: rgba(244, 247, 250, 0.65);
  --color-cloud-subtle: rgba(244, 247, 250, 0.35);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--color-sea-blue) 0%, var(--color-aqua) 55%, var(--color-light-aqua) 100%);

  /* Default glow coordinates */
  --glow-x: 50%;
  --glow-y: 45%;

  /* Typography */
  --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Transitions & Animation Easing */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-entrance: 900ms var(--ease-smooth);
}

/* ==========================================================================
   Base Reset & Normalization
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--color-ocean);
  color: var(--color-cloud);
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  height: 100%;
  overflow: hidden;
}

body {
  background-color: var(--color-ocean);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   Background Layers (Glow & Subtle Maritime Contours)
   ========================================================================== */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    750px circle at var(--glow-x, 50%) var(--glow-y, 45%),
    rgba(0, 178, 180, 0.28) 0%,
    rgba(30, 136, 229, 0.20) 30%,
    rgba(18, 47, 90, 0.12) 60%,
    transparent 80%
  );
  will-change: background;
}

.background-waves {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.28;
}

.background-waves svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 1200px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.brand-composition {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Logo container */
.logo-container {
  width: 100%;
  max-width: 460px;
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInDown var(--transition-entrance) 150ms forwards;
}

.olonex-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2172 / 724;
  object-fit: contain;
  filter: drop-shadow(0 12px 36px rgba(0, 0, 0, 0.35));
}

/* Tagline */
.tagline {
  font-family: var(--font-primary);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  color: var(--color-cloud);
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeInUp var(--transition-entrance) 350ms forwards;
}

/* Subtle separator accent */
.accent-line {
  width: 32px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin-top: 1.5rem;
  opacity: 0;
  transform: scaleX(0.7);
  animation: fadeInScale var(--transition-entrance) 500ms forwards;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.page-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInSimple var(--transition-entrance) 700ms forwards;
}

.footer-text {
  font-family: var(--font-secondary);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-cloud-subtle);
  transition: color 0.3s ease;
}

.footer-text:hover {
  color: var(--color-cloud-muted);
}

/* ==========================================================================
   Entrance Keyframe Animations
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scaleX(0.7);
  }
  to {
    opacity: 0.85;
    transform: scaleX(1);
  }
}

@keyframes fadeInSimple {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .logo-container {
    max-width: 82vw;
    margin-bottom: 1.75rem;
  }

  .tagline {
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    padding: 0 0.5rem;
  }

  .accent-line {
    width: 28px;
    margin-top: 1.25rem;
  }

  .page-footer {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .logo-container {
    max-width: 88vw;
    margin-bottom: 1.5rem;
  }

  .footer-text {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }
}

/* Large screens enhancement */
@media (min-width: 1440px) {
  .logo-container {
    max-width: 520px;
    margin-bottom: 2.75rem;
  }

  .tagline {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   Accessibility & Reduced Motion Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .logo-container,
  .tagline,
  .accent-line,
  .page-footer {
    opacity: 1 !important;
    transform: none !important;
  }

  .ambient-glow {
    background: radial-gradient(circle 800px at 50% 45%, rgba(0, 178, 180, 0.1) 0%, rgba(30, 136, 229, 0.06) 40%, transparent 80%) !important;
  }
}
