/* ============================================================
   PurpleTec — B2B Cybersecurity & Hosting
   Color: Purple (#9B59B6) + Dark (#0A0A0F) + Glass effects
   ============================================================ */

:root {
  --purple: #9B59B6;
  --purple-light: #BB7ED4;
  --purple-dark: #7B3F96;
  --purple-glow: rgba(155, 89, 182, 0.3);
  --bg: #0A0A0F;
  --bg-alt: #0F0F18;
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.06);
  --text: #E8E8EC;
  --text-muted: #8888A0;
  --text-dim: #55556A;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAV ---- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

#nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: var(--transition);
}

.nav-logo:hover img { opacity: 1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--purple) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  border-radius: 8px;
  font-weight: 500 !important;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--purple-light) !important;
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 24px;
  font-weight: 300;
  transition: var(--transition);
}

.mobile-menu a:hover { color: var(--purple); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155, 89, 182, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(155, 89, 182, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(100, 60, 160, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 48px;
  font-weight: 300;
  line-height: 1.7;
}

/* ---- SPLIT CARDS (Hero) ---- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.split-card {
  position: relative;
  padding: 40px 28px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.split-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.08), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.split-card:hover::before { opacity: 1; }
.split-card:hover {
  border-color: rgba(155, 89, 182, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(155, 89, 182, 0.1);
}

.split-icon {
  color: var(--purple);
  margin-bottom: 16px;
}

.split-card h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.split-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.split-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 20px;
  color: var(--purple);
  transition: var(--transition);
}

.split-card:hover .split-arrow { transform: translateX(6px); }

/* ---- SECTIONS ---- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2).visible { transition-delay: 0.1s; }
.service-card:nth-child(3).visible { transition-delay: 0.2s; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-card:hover {
  border-color: rgba(155, 89, 182, 0.2);
  background: rgba(155, 89, 182, 0.04);
  transform: translateY(-2px);
}

.service-icon {
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- WHY GRID ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.why-item {
  opacity: 0;
  transform: translateY(20px);
}

.why-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-item:nth-child(2).visible { transition-delay: 0.1s; }
.why-item:nth-child(3).visible { transition-delay: 0.2s; }
.why-item:nth-child(4).visible { transition-delay: 0.3s; }

.why-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--purple);
  opacity: 0.4;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.why-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- CONTACT ---- */
.contact-box {
  max-width: 600px;
  padding: 40px;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(20px);
}

.contact-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238888A0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group textarea { resize: vertical; min-height: 100px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(155, 89, 182, 0.25);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 20px;
}

.form-success h3 {
  font-size: 20px;
  font-weight: 600;
}

.form-success p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- FOOTER ---- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-left p {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: var(--transition);
}

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

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  
  .hero-split {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .section { padding: 60px 0; }
  .contact-box { padding: 24px; }
}

@media (max-width: 480px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title { animation: fadeUp 0.8s ease-out; }
.hero-sub { animation: fadeUp 0.8s ease-out 0.15s both; }
.hero-split { animation: fadeUp 0.8s ease-out 0.3s both; }
