/* ==========================================================================
   Aufa Media — Maintenance Page
   Design tokens
   ========================================================================== */

:root {
  /* Brand */
  --primary: #006BFF;
  --primary-light: #00A8FF;
  --primary-dark: #0047D4;
  --cyan: #00B8FF;

  /* Dark mode palette */
  --dark-bg: #020617;
  --dark-bg-secondary: #071126;
  --dark-card: rgba(11, 22, 45, 0.55);
  --dark-border: rgba(148, 178, 255, 0.14);
  --dark-text: #F5F8FF;
  --dark-text-secondary: #93A2C2;

  /* Light mode palette */
  --light-bg: #F7F9FC;
  --light-bg-secondary: #FFFFFF;
  --light-card: rgba(255, 255, 255, 0.72);
  --light-border: rgba(0, 71, 212, 0.12);
  --light-text: #0A1330;
  --light-text-secondary: #566083;

  /* Active theme (default = dark, swapped by [data-theme]) */
  --bg: var(--dark-bg);
  --bg-secondary: var(--dark-bg-secondary);
  --card: var(--dark-card);
  --border: var(--dark-border);
  --text: var(--dark-text);
  --text-secondary: var(--dark-text-secondary);
  --shadow-color: 3, 10, 30;

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 600ms;
}

[data-theme="light"] {
  --bg: var(--light-bg);
  --bg-secondary: var(--light-bg-secondary);
  --card: var(--light-card);
  --border: var(--light-border);
  --text: var(--light-text);
  --text-secondary: var(--light-text-secondary);
  --shadow-color: 20, 40, 90;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--t-slow) var(--ease), color var(--t-slow) var(--ease);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
}

::selection {
  background: var(--primary);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Background atmosphere
   ========================================================================== */

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

.atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 480px at 82% -10%, rgba(0, 168, 255, 0.28), transparent 60%),
    radial-gradient(600px 500px at -10% 110%, rgba(0, 107, 255, 0.22), transparent 60%);
  opacity: 1;
  transition: opacity var(--t-slow) var(--ease);
}

[data-theme="light"] .atmosphere::before {
  background:
    radial-gradient(680px 480px at 82% -10%, rgba(0, 168, 255, 0.14), transparent 60%),
    radial-gradient(600px 500px at -10% 110%, rgba(0, 107, 255, 0.10), transparent 60%);
}

.atmosphere__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(148, 178, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 30%, transparent 75%);
}

[data-theme="light"] .atmosphere__grid {
  background-image:
    linear-gradient(rgba(0, 71, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 71, 212, 0.05) 1px, transparent 1px);
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}

.atmosphere__orb--1 {
  width: 340px;
  height: 340px;
  top: 8%;
  right: 6%;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.55), transparent 70%);
}

.atmosphere__orb--2 {
  width: 260px;
  height: 260px;
  bottom: 4%;
  left: 4%;
  background: radial-gradient(circle, rgba(0, 71, 212, 0.5), transparent 70%);
  animation-delay: -6s;
}

[data-theme="light"] .atmosphere__orb {
  opacity: 0.35;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-16px, 22px); }
}

/* ==========================================================================
   Layout shell
   ========================================================================== */

.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container-narrow {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 10;
  padding-top: 1.5rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: flex;
  align-items: center;
}

.brand-mark img {
  height: 26px;
  width: auto;
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 107, 255, 0.18);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle i {
  font-size: 1.15rem;
  transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}

.theme-toggle .bi-sun-fill { display: none; }
[data-theme="light"] .theme-toggle .bi-moon-stars-fill { display: none; }
[data-theme="light"] .theme-toggle .bi-sun-fill { display: inline-block; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 3.5rem 0 3rem;
}

.hero__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  width: 140px;
  margin-bottom: 1.75rem;
}

.hero__brandname {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.hero__tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  box-shadow: 0 0 0 0 rgba(0, 168, 255, 0.6);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 168, 255, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(0, 168, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 168, 255, 0); }
}

.hero__headline {
  margin-top: 1.5rem;
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  max-width: 16ch;
}

.hero__headline .accent {
  background: linear-gradient(100deg, var(--primary-light), var(--cyan) 55%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subhead {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 42ch;
}

.hero__extra {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero__extra strong {
  color: var(--text);
  font-weight: 600;
}

/* ==========================================================================
   Status card
   ========================================================================== */

.status-card {
  margin-top: 2.75rem;
  width: 100%;
  max-width: 380px;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px -20px rgba(var(--shadow-color), 0.5);
  text-align: left;
}

.status-card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.status-card__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 168, 255, 0.5);
  animation: ring 2.2s ease-out infinite;
}

@keyframes ring {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

.status-card__title {
  font-weight: 700;
  font-size: 1.02rem;
}

.status-card__desc {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
  white-space: nowrap;
}

.btn-premium:hover {
  transform: translateY(-2px);
}

.btn-premium:active {
  transform: translateY(0);
}

.btn-premium--primary {
  background: linear-gradient(120deg, var(--primary-light), var(--primary) 65%, var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(0, 107, 255, 0.55);
}

.btn-premium--primary:hover {
  box-shadow: 0 18px 40px -12px rgba(0, 107, 255, 0.7);
}

.btn-premium--ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-premium--ghost:hover {
  border-color: rgba(0, 168, 255, 0.4);
}

/* ==========================================================================
   Contact section
   ========================================================================== */

.contact {
  position: relative;
  z-index: 1;
  padding: 2rem 0 3rem;
}

.contact-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -24px rgba(var(--shadow-color), 0.55);
  padding: 2.25rem 1.75rem;
  text-align: center;
}

.contact-card__title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
}

.contact-card__desc {
  margin-top: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.contact-card__actions {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: stretch;
}

.contact-card__actions .btn-premium {
  width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0 2.5rem;
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-footer__tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-top: 0.3rem;
}

.site-footer__legal {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.site-footer__note {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.75;
}

/* ==========================================================================
   Tablet / Desktop
   ========================================================================== */

@media (min-width: 768px) {
  .hero__logo { width: 170px; }

  .status-card { max-width: 460px; }

  .contact-card__actions {
    flex-direction: row;
    justify-content: center;
  }

  .contact-card__actions .btn-premium {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .hero { padding: 5rem 0 4rem; min-height: 84vh; }

  .hero__logo { width: 210px; }

  .hero__headline { max-width: 20ch; }

  .contact-card { padding: 3rem 3.5rem; }

  .atmosphere__orb--1 { width: 460px; height: 460px; }
  .atmosphere__orb--2 { width: 380px; height: 380px; }
}

@media (min-width: 1440px) {
  .hero__logo { width: 240px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
