/* Rain.xe App - Obsidian Rain Design System (V4) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
  --bg-main: #0a0a0b;
  --bg-card: rgba(255, 255, 255, 0.03);
  --accent-1: #10b981; /* Emerald */
  --accent-2: #0ea5e9; /* Sky Blue */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;
  --radius-xl: 32px;
  --radius-lg: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-primary);
  background: var(--bg-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Dynamic Background --- */
#rainCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

.aurora-blur {
  position: fixed;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

/* --- Navigation --- */
.navbar {
  background: rgba(10, 10, 11, 0.8) !important;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(10, 10, 11, 0.95) !important;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-glyph {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 8px;
  transform: rotate(45deg);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 1rem;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary) !important;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
}

.gradient-text {
  background: linear-gradient(to right, #ffffff, var(--text-secondary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3.5rem;
}

/* --- Premium Buttons --- */
.btn-premium {
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-gradient {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #000;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.btn-primary-gradient:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

/* --- Service Cards --- */
.section-head {
  margin-bottom: 5rem;
}

.tagline {
  color: var(--accent-1);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--accent-1), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-1);
  margin-bottom: 2.5rem;
}

.service-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* --- Numbers Section --- */
.numbers-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 6rem;
  text-align: center;
}

.huge-number {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.footer {
  padding: 100px 0 50px;
  border-top: 1px solid var(--border-light);
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* --- Reveal Utility --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animation keyframes --- */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .numbers-box { padding: 3rem 1.5rem; }
  .service-grid { grid-template-columns: 1fr; }
}