@import "./design-system.css";
@import "./foundations.css";

:root {
  --btn-radius: var(--radius-card);
  --content-max: 400px;
}

html {
  height: auto;
  overflow: auto;
}

html, body {
  min-height: 100%;
  height: auto;
  overflow: auto;
  /* Stop iOS rubber-band from exposing page edges past the fixed video backdrop. */
  overscroll-behavior-y: none;
  font-family: var(--font-body);
  background: #08080a;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

.video-bg {
position: fixed;
inset: 0;
z-index: 0;
background: radial-gradient(ellipse at 50% 30%, #12183a 0%, #06060d 55%, #020204 100%);
}
.video-bg video {
width: 100%; height: 100%;
object-fit: cover;
opacity: 0.55;
}
.video-bg::after {
content: '';
position: absolute;
inset: 0;
background:
  linear-gradient(to bottom, rgba(8, 8, 12, 0.55) 0%, rgba(8, 8, 12, 0.2) 45%, rgba(8, 8, 12, 0.82) 100%),
  radial-gradient(ellipse at 50% 20%, rgba(26, 53, 240, 0.12) 0%, transparent 55%);
}

.skip-link {
position: absolute; left: -9999px; top: auto;
width: 1px; height: 1px; overflow: hidden; z-index: 9999;
background: var(--color-brand); color: #fff;
padding: 8px 16px; font-size: 14px; text-decoration: none; border-radius: 4px;
}
.skip-link:focus {
left: 8px; top: 8px; width: auto; height: auto; overflow: visible;
}

.page {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
min-height: 100vh;
min-height: 100dvh;
padding: 24px 20px max(20px, env(safe-area-inset-bottom));
}

nav { flex-shrink: 0; margin-bottom: 8px; }
.logo img {
height: 42px;
width: auto;
display: block;
opacity: 0.95;
}

.hero {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
width: 100%;
max-width: var(--content-max);
margin: 0 auto;
padding: clamp(24px, 6vh, 48px) 0;
}

.hero-title {
font-family: 'Manrope', 'Manrope Fallback', sans-serif;
font-size: clamp(34px, 8.5vw, 48px);
font-weight: 800;
line-height: 1.08;
letter-spacing: -0.035em;
margin-bottom: 16px;
color: #fff;
}
.hero-title .dim {
color: rgba(255, 255, 255, 0.42);
}

.hero-lead-wedge {
margin-top: -6px;
font-size: 14px;
opacity: 0.72;
max-width: 400px;
}
.hero-lead {
font-size: clamp(15px, 3.8vw, 17px);
font-weight: 400;
line-height: 1.5;
color: rgba(255, 255, 255, 0.72);
margin-bottom: 28px;
letter-spacing: -0.01em;
}

.url-pill {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
max-width: 100%;
padding: 4px 0;
margin-bottom: 22px;
font-size: 15px;
line-height: 1.2;
overflow: hidden;
}
.url-pill-icon {
flex-shrink: 0;
color: rgba(255, 255, 255, 0.45);
}
.url-pill-text {
min-width: 0;
text-align: left;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.url-pill-host {
color: rgba(255, 255, 255, 0.42);
font-weight: 500;
}
.url-pill-slug {
color: #fff;
font-weight: 700;
letter-spacing: -0.02em;
}
.url-pill-slug.typing::after {
content: '|';
color: var(--color-brand-light);
animation: blink 0.7s step-end infinite;
font-weight: 400;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50%       { opacity: 0; }
}

.cta-stack {
display: flex;
flex-direction: column;
gap: 12px;
width: 100%;
}

.btn-primary,
.btn-ghost {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 16px 24px;
border-radius: var(--btn-radius);
font-family: 'Inter', sans-serif;
font-size: 15px;
font-weight: 600;
text-decoration: none;
letter-spacing: -0.01em;
-webkit-tap-highlight-color: transparent;
transition: transform 0.22s var(--spring), box-shadow 0.22s var(--spring), background 0.22s var(--spring);
}

.btn-primary {
background: var(--color-brand);
color: #fff;
border: 1px solid transparent;
box-shadow: 0 10px 32px rgba(26, 53, 240, 0.38);
}
.btn-primary:hover {
transform: translateY(-1px);
box-shadow: 0 14px 40px rgba(26, 53, 240, 0.48);
}
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
color: rgba(255, 255, 255, 0.78);
border: 1px solid rgba(255, 255, 255, 0.14);
background: rgba(255, 255, 255, 0.05);
font-weight: 500;
}
.btn-ghost:hover {
color: #fff;
border-color: rgba(255, 255, 255, 0.22);
background: rgba(255, 255, 255, 0.08);
}
.btn-ghost:active { transform: scale(0.98); }

a:focus-visible {
outline: 2px solid var(--color-brand-light);
outline-offset: 3px;
}

.footer-strip {
flex-shrink: 0;
margin-top: auto;
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
padding-top: 24px;
}
.footer-dot {
width: 3px; height: 3px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.14);
}
.footer-item {
font-size: 11px;
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.38);
}
.footer-item.hl { color: rgba(255, 255, 255, 0.5); }
.footer-item--link {
color: inherit;
text-decoration: none;
opacity: 0.55;
transition: opacity 0.15s ease;
}
.footer-item--link:hover { opacity: 0.9; }

@keyframes fadeUp {
from { opacity: 0; transform: translateY(16px); }
to   { opacity: 1; transform: translateY(0); }
}
/* LCP = .hero-title — paint at opacity 1 from frame 0 (no fadeUp / fill-mode both). */
nav           { animation: fadeUp 0.6s var(--ease-out-expo) 0.05s both; }
.hero-lead    { animation: fadeUp 0.7s var(--ease-out-expo) 0.22s both; }
.url-pill     { animation: fadeUp 0.7s var(--ease-out-expo) 0.28s both; }
.cta-stack    { animation: fadeUp 0.7s var(--ease-out-expo) 0.34s both; }
.footer-strip { animation: fadeUp 0.6s var(--ease-out-expo) 0.4s both; }

@media (prefers-reduced-motion: reduce) {
nav, .hero-lead, .url-pill, .cta-stack, .footer-strip {
  animation: none !important;
}
}

@media (max-width: 768px) {
.video-bg video { display: none; }
.video-bg {
  background-image: url('https://sellingdubai.com/.netlify/images?url=https%3A%2F%2Fpjyorgedaxevxophpfib.supabase.co%2Fstorage%2Fv1%2Fobject%2Fpublic%2Fagent-images%2Fdubai-skyline.jpg&w=828&fm=webp&q=80'), radial-gradient(ellipse at 50% 30%, #12183a 0%, #06060d 55%, #020204 100%);
  background-size: cover, cover;
  background-position: center, center;
}
.footer-meta,
.footer-strip .footer-dot { display: none; }
}

@media (min-width: 769px) {
.page { padding-left: 32px; padding-right: 32px; }
.logo img { height: 48px; }
}

.page-exit { animation: pageExit var(--duration-medium) var(--ease-out-expo) forwards; }
@keyframes pageExit { to { opacity: 0; transform: translateY(-10px); } }
