:root {
  --black: #0b0b10;
  --panel: rgba(255,255,255,0.03);
  --panel-strong: rgba(255,255,255,0.05);
  --purple: #7c3aed;
  --teal: #14b8a6;
  --text: #d7d7e2;
  --muted: #9aa0aa;
  --border: rgba(124, 58, 237, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: radial-gradient(circle at top, #1a1033, var(--black) 65%);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Visual Integration */
  overflow-x: hidden;
  position: relative;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  background: rgba(17, 17, 26, 0.75);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.18);
  z-index: 100;
}

.brand {
  position: absolute;
  left: 40px;
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

nav .links {
  display: flex;
  gap: 26px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: 0.25s;
}

nav a:hover, nav a.active {
  color: var(--teal);
}

main {
  flex: 1;
  /* Visual Integration */
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  padding: 110px 20px 70px;
}

header h1 {
  font-size: 40px;
  font-weight: 700;
  max-width: 900px;
  margin: auto;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  margin-top: 26px;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  margin: 6px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s;
}

.btn-primary {
  background: transparent;
  color: var(--purple);
  border: 1px solid white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px 5px purple, 0 0 40px purple;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  border-color: #a855f7;
  box-shadow:
    0 0 12px rgba(168, 85, 247, 0.6),
    0 0 24px rgba(168, 85, 247, 0.35),
    0 0 40px rgba(168, 85, 247, 0.15);
  transform: translateY(-2px);
}

/* Integrated Hero Visual */
.hero-visual {
  position: absolute;
  top: 15%;
  right: -5%;
  width: 65%;
  max-width: 900px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
}

section {
  max-width: 1050px;
  margin: 70px auto;
  padding: 0 20px;
}

h2 {
  font-size: 24px;
  margin-bottom: 18px;
  color: rgb(14,164,172);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  /* Visual Integration - Glassmorphism */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-top: 60px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  max-width: 800px;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel-strong);
  border: 1px solid rgba(124, 58, 237, 0.15);
  padding: 20px;
  border-radius: 14px;
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.08);
}

.card h3 {
  margin-bottom: 10px;
  color: #f3f3f8;
  font-size: 16px;
}

.contact {
  text-align: center;
  padding: 45px 20px;
  background: linear-gradient(135deg, rgba(124,58,237,0.14), rgba(20,184,166,0.10));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.contact a {
  color: rgb(14,164,172);
  text-decoration: none;
  font-weight: 500;
}

footer {
  text-align: center;
  padding: 30px;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  margin-top: auto;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .brand {
    position: static;
    left: auto;
  }

  nav .links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  
  /* Integrated addition */
  .hero-visual {
    width: 90%;
    right: 5%;
    top: 40%;
    opacity: 0.5;
  }
}
