/*
  Landspect landing page styles
  Inspired by the layout and aesthetic of the Air Maestro login page.
*/

:root {
  --bg-start: #0d2b67;
  --bg-end: #188bdc;
  --accent: #2bb673; /* green accent for civil theme */
  --text: #eaf2ff;
  --muted: #c8d3e6;
  --card-bg: rgba(9, 16, 40, 0.55);
  --card-border: rgba(255, 255, 255, 0.08);
  --shadow-1: 0 10px 30px rgba(4, 10, 40, 0.6);
  --shadow-2: 0 2px 8px rgba(8, 14, 40, 0.4) inset;
  --btn-bg: #2f333b;          /* dark grey base similar to Air Maestro */
  --btn-bg-hover: #3a3f49;    /* slightly lighter on hover */
  --btn-border: rgba(255,255,255,0.18);
  --link: #9bd1ff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; color: var(--text);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #07112b; overflow: hidden;
}

/* Background layers */
.background { position: fixed; inset: 0; overflow: hidden; }
.bg-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(1200px 1200px at 20% 90%, rgba(255,255,255,0.03), transparent 60%),
              linear-gradient(135deg, rgba(13,43,103,0.75), rgba(24,139,220,0.75));
}
.bg-photo { position: absolute; inset: 0; background: url('../assets/background.jpg') 68% 50% / cover no-repeat; filter: saturate(112%) contrast(106%) brightness(104%); }
.bg-clarity { position: absolute; inset: 0; background: url('../assets/background.jpg') 68% 50% / cover no-repeat; filter: url(#bg-sharpen) saturate(112%) contrast(110%); mix-blend-mode: luminosity; opacity: 0.5; pointer-events: none; }
.bg-highlight { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 76% 45%, rgba(255,255,255,0.14), rgba(255,255,255,0.06) 40%, transparent 70%),
    linear-gradient(90deg, transparent 0 55%, rgba(255,255,255,0.05) 100%);
  mix-blend-mode: screen;
}
.bg-vignette { position: absolute; inset: -10%; background: radial-gradient(60% 60% at 50% 50%, transparent 60%, rgba(0,0,0,0.42) 100%); mix-blend-mode: multiply; }

/* Cockpit dial motif */
.bg-ornament {
  position: absolute; inset: 0; opacity: 0.16; pointer-events: none;
  background:
    radial-gradient(closest-side, transparent 78%, rgba(255,255,255,0.05) 79% 81%, transparent 82%) 70% 45%/420px 420px no-repeat,
    radial-gradient(closest-side, transparent 78%, rgba(255,255,255,0.04) 79% 81%, transparent 82%) 15% 85%/520px 520px no-repeat;
  filter: blur(0.2px);
}

/* Airplane silhouette layer (kept for parity) */
.bg-airplane {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-color: #ffffff;
  -webkit-mask: url('../assets/airplane-silhouette.svg') no-repeat 50% 52% / 62% auto;
  mask: url('../assets/airplane-silhouette.svg') no-repeat 50% 52% / 62% auto;
  filter: drop-shadow(0 36px 64px rgba(0,0,0,0.38));
}

/* Layout */
.center { position: relative; height: 100dvh; display: grid; place-items: center; padding: 40px 16px; }
.card {
  width: min(560px, 92vw);
  padding: 36px 28px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(9, 16, 40, 0.58);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), inset 0 2px 8px rgba(8, 14, 40, 0.35);
  backdrop-filter: blur(10px) saturate(120%);
  text-align: center;
}

/* Logo container */
.brand-logo-svg { 
  width: auto; 
  max-width: none; 
  margin: 6px auto 14px; 
  padding: 0; 
  background: transparent;
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.brand-logo-svg svg { width: 100%; height: auto; display: block; }
.brand-logo-svg img { 
  height: 48px;              /* smaller logo */
  width: auto; 
  display: block; 
  transform: none; 
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.18));
}
.brand-title-text {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.5px;
  color: #ffffff;            /* bright white */
  text-shadow: 0 1px 2px rgba(0,0,0,0.28);
}
.brand-title-text .brand-suffix { color: #ffffff; }

@media (max-width: 420px) {
  .brand-logo-svg img { height: 42px; }
  .brand-title-text { font-size: 24px; }
}
.brand-logo { display: block; margin: 4px auto 10px; height: auto; }
.subtitle { margin: 8px 0 18px; color: var(--muted); letter-spacing: 0.2px; }

.actions { display: flex; gap: 12px; justify-content: center; align-items: center; margin-bottom: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 180px; padding: 10px 20px;
  border-radius: 10px; border: 1px solid var(--btn-border);
  text-decoration: none; color: #fff; font-weight: 700; letter-spacing: 0.2px;
  background: var(--btn-bg);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 120ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-1px); background: var(--btn-bg-hover); box-shadow: 0 8px 20px rgba(0,0,0,0.36); }

/* Both buttons are dark like Air Maestro */
.btn-primary { background: var(--btn-bg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-secondary { background: #262a31; border-color: rgba(255,255,255,0.14); }
.btn-secondary:hover { background: #303541; }

.version { margin: 14px 0 0; font-size: 0.95rem; color: var(--muted); }
.link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

.footer { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; color: rgba(235,240,255,0.85); font-size: 0.9rem; padding: 0 12px; }
.footer .link { color: #cfe6ff; }

/* Accessibility helpers */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; clip-path: inset(50%);
}

@media (min-width: 640px) {
  .actions { grid-template-columns: 1fr 1fr; }
}
