/* ===========================
   ROHAN NETWORKS — LANDING CSS
   Deep space / neon purple brand
   =========================== */

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

:root {
  --bg-deep: #0d0515;
  --bg-mid: #130a1e;
  --purple-dark: #1a0a2e;
  --purple: #6b21a8;
  --purple-glow: #9333ea;
  --pink: #ec4899;
  --pink-hot: #f472b6;
  --white: #f0e8ff;
  --muted: #a78bca;
  --border: rgba(147, 51, 234, 0.25);
  --card-bg: rgba(20, 8, 38, 0.85);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Syne', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --- STARFIELD CANVAS --- */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- GRID OVERLAY --- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(147, 51, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 51, 234, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- PAGE WRAPPER --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================
   NAVBAR
   ======================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-glow), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.nav-tagline {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========================
   HERO
   ======================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 64px;
}

.hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  background: var(--purple-dark);
}

.hero-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(236, 72, 153, 0.12), transparent 70%);
  pointer-events: none;
}

.pre-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--pink);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--pink-hot) 0%, var(--purple-glow) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-desc strong {
  color: var(--white);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.pill {
  background: rgba(147, 51, 234, 0.15);
  border: 1px solid rgba(147, 51, 234, 0.4);
  color: var(--pink-hot);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple-glow) 100%);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 32px rgba(236, 72, 153, 0.3);
}

.cta-btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* ========================
   FORM SECTION
   ======================== */
.form-section {
  padding: 32px 0 80px;
  display: flex;
  justify-content: center;
}

.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 620px;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 60px rgba(147, 51, 234, 0.12), 0 0 120px rgba(236, 72, 153, 0.06);
}

.form-header-block {
  text-align: center;
  margin-bottom: 32px;
}

.dl-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--pink), var(--purple-glow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 24px rgba(236, 72, 153, 0.35);
}

.form-header-block h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--white), var(--pink-hot));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-header-block p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ALERT */
.form-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.form-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.hidden {
  display: none !important;
}

/* FORM GRID */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group.full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.req {
  color: var(--pink);
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input::placeholder {
  color: rgba(167, 139, 202, 0.45);
}

input:focus {
  border-color: var(--purple-glow);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

/* SUBMIT BUTTON */
#submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple-glow) 100%);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 32px rgba(236, 72, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

#submit-btn:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
}

#submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* SPINNER */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.privacy-note {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(167, 139, 202, 0.6);
}

/* ========================
   FOOTER
   ======================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-glow), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a,
.footer-links span {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--pink-hot);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(167, 139, 202, 0.45);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0 40px;
  }

  .hero-image-wrap {
    order: -1;
    aspect-ratio: 16/7;
  }

  .form-card {
    padding: 32px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-group.full {
    grid-column: auto;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}