:root {
  --bg: #050811;
  --card: rgba(255,255,255,0.05);
  --text: #e5e7eb;
  --accent: #7c5cff;
  --muted: #9ca3af;
  --font: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  overflow-x: hidden;
  background: var(--bg);
  scroll-behavior: smooth;
}

/* Canvas Background Grid */
#gridCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: drop-shadow(0 0 12px rgba(124, 92, 255, 0.25));
  background: radial-gradient(circle at center, rgba(124,92,255,0.1), transparent 60%), #050811;
}



/* Navbar */
.navbar {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  background: rgba(10,15,30,0.8);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, #5b6bff, #9b5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  color: var(--muted);
  margin-left: 1rem;
  text-decoration: none;
  transition: 0.3s;
}
nav a:hover { color: var(--accent); }

/* Buttons */
.btn {
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  color: var(--accent);
  transition: 0.3s;
  text-decoration: none;
  font-weight: 500;
}
.btn.primary {
  background: var(--accent);
  color: white;
  border: none;
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(124,92,255,0.3);
}
.btn.ghost:hover { background: rgba(255,255,255,0.1); }

/* Hero */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-content { max-width: 700px; padding: 2rem; }
.hero h1 { font-size: 3rem; line-height: 1.2; }
.gradient {
  background: linear-gradient(90deg, #5b6bff, #9b5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--muted);
  margin-top: 2rem;
  font-size: 1.1rem;
}
.actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections */
.about, .features, .contact {
  padding: 4rem 0;
  text-align: center;
}
.about p { max-width: 650px; margin: 1rem auto; color: var(--muted); }

.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 12px;
  transition: 0.3s;
}
.card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
}
.card h3 { color: var(--accent); margin-bottom: 0.5rem; }

/* Contact */
.contact form {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
input[type="email"] {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: white;
  width: 250px;
}
input::placeholder { color: var(--muted); }
.thanks-message {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
}

/* Footer */
footer {
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
}

/* === Hero Boot-Up Animation === */
.hero-content {
  opacity: 0;
  transform: translateY(40px);
  animation: heroFadeUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-content h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s ease-out forwards;
  animation-delay: 0.6s;
}

.hero-content p {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 1s ease-out forwards;
  animation-delay: 1s;
}

.hero-content .actions {
  opacity: 0;
  transform: translateY(10px);
  animation: heroFadeUp 1s ease-out forwards;
  animation-delay: 1.4s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Optional: add soft glow when text appears */
.hero h1 span.gradient {
  animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { text-shadow: 0 0 5px rgba(124,92,255,0.4); }
  to { text-shadow: 0 0 20px rgba(124,92,255,0.7); }
}

.logo {
  opacity: 0;
  animation: fadeLogo 1s ease-out forwards;
  animation-delay: 0.2s;
}

@keyframes fadeLogo {
  to {
    opacity: 1;
  }
}

/* === Ocliq Tagline Typing Section === */
/* === Ocliq Hero Tagline (Final Version) === */
.typewriter-container {
  text-align: center;
  margin-top: -10rem; /* pulls up the tagline */
  position: relative;
}

@media (max-width: 768px) {
  .typewriter-container {
    margin-top: -4rem; /* mobile-safe adjustment */
  }
}



.fixed-line {
  font-size: 2.6rem;
  font-weight: 600;
  color: #ffffff;          /* pure white text */
  margin-bottom: 0.3rem;
}

.changing-line {
  font-size: 3.4rem;       /* bigger focus text */
  font-weight: 700;
  background: linear-gradient(90deg, #5b6bff, #9b5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
  line-height: 1.2;
  min-height: 3.8rem;
  letter-spacing: 0.5px;
}

.cursor {
  display: inline-block;
  width: 10px;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  color: #9b5cff;          /* glowing violet cursor */
  font-weight: 400;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* optional glowing pulse for gradient text */
.changing-line {
  animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { text-shadow: 0 0 10px rgba(124,92,255,0.4); }
  to   { text-shadow: 0 0 25px rgba(124,92,255,0.8); }
}
