/* =========================================================
   RASATA.LK — Coming Soon
   ========================================================= */

:root {
  --background: #050505;
  --background-secondary: #101010;
  --surface: #171717;
  --orange-primary: #ff6500;
  --orange-secondary: #ff8a00;
  --text-primary: #ffffff;
  --text-secondary: #b8b8b8;
  --border: rgba(255, 255, 255, 0.12);

  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-sinhala: 'Noto Sans Sinhala', 'Sora', sans-serif;

  --container: 1140px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--orange-secondary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, #1a0d02 0%, transparent 55%),
    linear-gradient(180deg, var(--background) 0%, var(--background-secondary) 55%, var(--background) 100%);
}

.bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.06;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 0%, transparent 75%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: pulse-glow 8s ease-in-out infinite;
}

.bg-glow--one {
  width: 720px;
  height: 720px;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 101, 0, 0.35) 0%, transparent 70%);
}

.bg-glow--two {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 138, 0, 0.18) 0%, transparent 70%);
  animation-delay: 2.5s;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  opacity: 0.35;
}

.bg-orb--a {
  width: 340px;
  height: 340px;
  top: 12%;
  left: 6%;
  filter: blur(1px);
  animation: float-orb 14s ease-in-out infinite;
}

.bg-orb--b {
  width: 220px;
  height: 220px;
  bottom: 14%;
  right: 8%;
  animation: float-orb 11s ease-in-out infinite reverse;
}

.bg-sweep {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 138, 0, 0.05), transparent);
  animation: sweep 12s linear infinite;
}

.particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  bottom: -10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--orange-secondary);
  opacity: 0;
  animation-name: rise;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  box-shadow: 0 0 6px 1px rgba(255, 138, 0, 0.6);
}

@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 0.75; }
  92%  { opacity: 0.35; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 20px)); opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.45; transform: scale(1) translateX(-50%); }
  50%      { opacity: 0.7; transform: scale(1.08) translateX(-50%); }
}

.bg-glow--two { animation-name: pulse-glow-b; }
@keyframes pulse-glow-b {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.1); }
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-26px) translateX(14px); }
}

@keyframes sweep {
  0%   { left: -40%; }
  100% { left: 140%; }
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */

main, header, footer { position: relative; z-index: 1; }

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  padding: 28px clamp(20px, 5vw, 56px) 0;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rasata-logo {
  height: 34px;
  width: auto;
  opacity: 0;
  animation: fade-down 0.9s var(--ease) 0.1s forwards;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
  opacity: 0;
  animation: fade-down 0.9s var(--ease) 0.25s forwards;
}

.powered-by:hover,
.powered-by:focus-visible {
  border-color: rgba(255, 138, 0, 0.5);
  background: rgba(255, 101, 0, 0.06);
  transform: translateY(-1px);
}

.powered-by__label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.ownit-logo { height: 16px; width: auto; }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px clamp(20px, 6vw, 56px) 80px;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: rise-in 0.9s var(--ease) forwards;
}

.reveal[data-reveal="1"] { animation-delay: 0.15s; }
.reveal[data-reveal="2"] { animation-delay: 0.55s; }
.reveal[data-reveal="3"] { animation-delay: 0.7s; }
.reveal[data-reveal="4"] { animation-delay: 0.85s; }
.reveal[data-reveal="5"] { animation-delay: 1.0s; }
.reveal[data-reveal="6"] { animation-delay: 1.15s; }
.reveal[data-reveal="7"] { animation-delay: 1.3s; }
.reveal[data-reveal="8"] { animation-delay: 1.45s; }

@keyframes rise-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo-wrap {
  position: relative;
  margin-bottom: 34px;
}

.hero-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, rgba(255, 101, 0, 0.28) 0%, transparent 65%);
  filter: blur(30px);
  z-index: -1;
  animation: pulse-glow 5s ease-in-out infinite;
}

.hero-logo {
  width: min(78vw, 420px);
  height: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-primary);
  box-shadow: 0 0 10px 2px rgba(255, 101, 0, 0.6);
  animation: dot-breathe 2.4s ease-in-out infinite;
}

@keyframes dot-breathe {
  0%, 100% { opacity: 0.5; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.15); }
}

.sinhala-line {
  font-family: var(--font-sinhala);
  font-weight: 400;
  font-size: clamp(20px, 3.4vw, 28px);
  color: var(--text-primary);
  margin: 0 0 22px;
}

.hero-copy {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
  margin: 0 0 34px;
  max-width: 520px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 0, 0.35);
  background: rgba(255, 101, 0, 0.08);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-secondary);
  margin-bottom: 30px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-secondary);
  box-shadow: 0 0 8px 2px rgba(255, 138, 0, 0.7);
  animation: dot-breathe 2.4s ease-in-out infinite;
}

.hero-url {
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0 0 6px;
}

.hero-stay {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  font-weight: 300;
  margin: 0 0 36px;
}

.hero-powered {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.7;
  margin: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
  opacity: 0;
  animation: fade-down 1s var(--ease) 1.8s forwards;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange-secondary);
  animation: scroll-bob 1.8s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* =========================================================
   HINT SECTION
   ========================================================= */

.hint {
  padding: 90px clamp(20px, 6vw, 56px);
  border-top: 1px solid var(--border);
}

.hint-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hint-heading {
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 600;
  margin: 0 0 16px;
}

.hint-copy {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  margin: 0 0 36px;
}

.hint-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.hint-labels li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hint-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange-primary);
}

/* =========================================================
   OWNIT SECTION
   ========================================================= */

.ownit-section {
  padding: 90px clamp(20px, 6vw, 56px);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255, 101, 0, 0.03));
}

.ownit-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ownit-eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-secondary);
  margin: 0 0 22px;
}

.ownit-section-logo {
  height: 32px;
  width: auto;
  margin-bottom: 22px;
}

.ownit-copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  margin: 0 0 28px;
}

.btn-ownit {
  display: inline-flex;
  align-items: center;
  padding: 13px 32px;
  border-radius: 999px;
  background: var(--orange-primary);
  color: #050505;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s ease;
}

.btn-ownit:hover,
.btn-ownit:focus-visible {
  background: var(--orange-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(255, 101, 0, 0.55);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 70px clamp(20px, 6vw, 56px) 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
  opacity: 0.92;
}

.footer-url {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin: 0 0 24px;
}

.footer-ownit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 26px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.footer-ownit:hover,
.footer-ownit:focus-visible {
  border-color: rgba(255, 138, 0, 0.5);
  color: var(--text-primary);
}

.footer-legal {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin: 0 0 6px;
}

.footer-copyright {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.5;
  margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
  .hero-copy { max-width: 460px; }
}

@media (max-width: 992px) {
  .bg-orb--a, .bg-orb--b { display: none; }
}

@media (max-width: 768px) {
  .site-header { padding-top: 22px; }
  .rasata-logo { height: 28px; }
  .powered-by__label { display: none; }
  .powered-by { padding: 8px 10px; }
  .hero { padding-top: 100px; }
  .hint, .ownit-section { padding-top: 70px; padding-bottom: 70px; }
}

@media (max-width: 576px) {
  .hero-logo { width: 82vw; }
  .lb { display: none; }
  .hint-labels { gap: 16px; font-size: 12px; }
  .site-footer { padding-top: 56px; }
}

/* =========================================================
   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;
  }

  .reveal { opacity: 1; transform: none; }
  .particles { display: none; }
}
