/* ==========================================================================
   Edvance Software Solutions — Coming Soon
   ========================================================================== */

:root {
  --brand-900: #0b2545;
  --brand-700: #123a6b;
  --brand-600: #1d4ed8;
  --brand-500: #2563eb;
  --brand-400: #3b82f6;
  --accent-400: #06b6d4;

  --ink: #0f172a;
  --ink-soft: #52627a;

  --surface: #ffffff;
  --ring: rgba(37, 99, 235, 0.10);

  --shadow-soft: 0 24px 60px -28px rgba(15, 42, 89, 0.28);

  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--surface);
  background-image:
    radial-gradient(1100px 620px at 50% -12%, rgba(59, 130, 246, 0.13), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 52%, #eef5ff 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Ambient backdrop
   -------------------------------------------------------------------------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.orb--one {
  top: -14vmin;
  left: -10vmin;
  width: 46vmin;
  height: 46vmin;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.55), rgba(59, 130, 246, 0) 70%);
  animation: drift-a 18s var(--ease-out) infinite alternate;
}

.orb--two {
  top: -6vmin;
  right: -12vmin;
  width: 40vmin;
  height: 40vmin;
  background: radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.45), rgba(6, 182, 212, 0) 70%);
  animation: drift-b 22s var(--ease-out) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vmin, 3vmin, 0) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-5vmin, 4vmin, 0) scale(1); }
}

/* Waves ------------------------------------------------------------------- */

.waves {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(140px, 26vh, 280px);
}

.waves__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.wave path {
  will-change: transform;
}

.wave--back {
  opacity: 0.16;
  animation: roll 18s linear infinite;
}

.wave--front {
  opacity: 0.22;
  animation: roll 12s linear infinite reverse;
}

@keyframes roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}

/* --------------------------------------------------------------------------
   Stage + content
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 6vw, 64px);
}

.card {
  width: min(680px, 100%);
  text-align: center;
}

.logo {
  width: 250px;
  height: auto;
  max-width: 80vw;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-soft);
  outline: 1px solid var(--ring);
  outline-offset: 0;
}

.title {
  margin: clamp(24px, 4vw, 36px) 0 0;
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  background: linear-gradient(120deg, var(--brand-900) 0%, var(--brand-600) 55%, var(--accent-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: clamp(14px, 2.4vw, 20px) auto 0;
  max-width: 34ch;
  font-size: clamp(1rem, 2.3vw, 1.175rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
  justify-content: center;
  margin: clamp(30px, 5vw, 44px) 0 0;
  padding: 0.7em 1.35em;
  border: 1px solid var(--ring);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px -20px rgba(15, 42, 89, 0.45);
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand-700);
}

.contact__icon {
  font-size: 1.05em;
  line-height: 1;
}

.contact__sep {
  color: rgba(18, 58, 107, 0.32);
}

.contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--brand-500);
}

.contact a:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Reveal animation (JS adds .is-visible; see script.js)
   -------------------------------------------------------------------------- */

/* Hidden only when JS is present to animate it back in (see the head script). */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   Responsive tuning
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .logo {
    width: 100%;
    border-radius: 16px;
  }

  .contact {
    padding: 0.65em 1.1em;
    gap: 0.45em;
  }

  .waves {
    height: clamp(110px, 20vh, 180px);
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .stage {
    padding-block: 32px;
  }

  .logo {
    width: 108px;
  }

  .waves {
    height: 110px;
  }
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .orb,
  .wave--back,
  .wave--front {
    animation: none !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
