html { scroll-behavior: smooth; }

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Offset for anchor links so they don't hide behind nav */
[id] { scroll-margin-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #080810;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Subtle gradient glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(123, 47, 190, 0.07) 0%, rgba(0, 180, 216, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

a { color: #9B6FD0; text-decoration: none; transition: color 0.2s; }
a:hover { color: #ffffff; }

/* Nav */
nav {
  width: 100%;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
}

nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

nav .nav-logo .logo-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(#080810, #080810) padding-box,
              linear-gradient(135deg, #7B2FBE, #00B4D8) border-box;
  flex-shrink: 0;
}

nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav .nav-links a {
  font-size: 0.85rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: #e0e0e0;
}

/* Page wrapper */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* O Logo (hero) */
.o-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(#080810, #080810) padding-box,
              linear-gradient(135deg, #7B2FBE, #00B4D8) border-box;
  margin: 0 auto 36px;
  position: relative;
}

.o-logo::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 190, 0.15), transparent 70%);
  z-index: -1;
}

.hero {
  padding: 80px 24px 60px;
  max-width: 640px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.1rem;
  color: #777;
  margin: 0;
  font-weight: 400;
}

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #7B2FBE, #00B4D8);
  border: none;
  margin: 0 auto;
  border-radius: 1px;
}

/* Page header (for inner pages) */
.page-header {
  padding: 60px 24px 40px;
  max-width: 640px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.page-header .subtitle {
  font-size: 1rem;
  color: #777;
  font-weight: 400;
}

/* Body text */
.body-text {
  padding: 56px 24px 48px;
  max-width: 560px;
  text-align: left;
}

.body-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #999;
  margin: 0 0 18px;
}

.body-text p:last-child {
  margin-bottom: 0;
}

/* Stats row */
.stats {
  padding: 20px 24px 56px;
  max-width: 640px;
  width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat { text-align: center; }

.stat .number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat .number span {
  background: linear-gradient(135deg, #9B6FD0, #00B4D8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat .label {
  font-size: 0.72rem;
  color: #555;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services grid */
.services {
  padding: 20px 24px 56px;
  max-width: 640px;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-item {
  display: block;
  padding: 28px 16px;
  border: 1px solid #161620;
  border-radius: 10px;
  text-align: center;
  transition: border-color 0.3s, transform 0.2s;
  background: rgba(255,255,255,0.01);
  text-decoration: none;
  cursor: pointer;
}

.service-item:hover {
  border-color: #7B2FBE;
  transform: translateY(-2px);
}

.service-item h3 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.5;
}

/* Services detail (for services page) */
.services-detail {
  padding: 20px 24px 56px;
  max-width: 640px;
  width: 100%;
  text-align: left;
}

.service-block {
  padding: 32px 28px;
  border: 1px solid #161620;
  border-radius: 12px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.01);
  transition: border-color 0.3s;
}

.service-block:hover { border-color: #2a2a3a; }

.service-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.service-block p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-block p:last-child { margin-bottom: 0; }

.service-block ul {
  list-style: none;
  padding: 0;
}

.service-block ul li {
  font-size: 0.85rem;
  color: #777;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.service-block ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #444;
}

/* Contact section */
.contact {
  padding: 56px 24px;
  max-width: 560px;
}

.contact h2 {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 12px;
}

.contact a {
  font-size: 0.95rem;
  color: #9B6FD0;
  border-bottom: 1px solid rgba(123, 47, 190, 0.25);
  padding-bottom: 2px;
}

.contact a:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.3);
}

/* Contact form */
.contact-form {
  padding: 20px 24px 56px;
  max-width: 520px;
  width: 100%;
  text-align: left;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: #0e0e18;
  border: 1px solid #1e1e2e;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #e0e0e0;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #7B2FBE;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  cursor: pointer;
}

.submit-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #7B2FBE, #00B4D8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.submit-btn:hover { opacity: 0.9; }

.form-success {
  padding: 20px;
  border: 1px solid #1a3a2a;
  border-radius: 8px;
  background: rgba(0, 180, 100, 0.05);
  color: #6fc;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

/* About content */
.about-content {
  padding: 20px 24px 56px;
  max-width: 560px;
  text-align: left;
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #999;
  margin: 0 0 20px;
}

.about-content p:last-child { margin-bottom: 0; }

.about-content strong { color: #ccc; font-weight: 600; }

/* CTA link */
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  padding: 12px 24px;
  border: 1px solid #2a2a3a;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #999;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}

.cta-link:hover {
  border-color: #7B2FBE;
  color: #e0e0e0;
}

/* Footer */
footer {
  padding: 80px 24px 36px;
  margin-top: auto;
  text-align: center;
}

footer p {
  font-size: 0.75rem;
  color: #2a2a2a;
}

/* Responsive */
@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  nav .nav-links { gap: 18px; }
  .hero { padding: 50px 20px 50px; }
  .hero h1 { font-size: 2rem; }
  .o-logo { width: 40px; height: 40px; }
  .page-header { padding: 40px 20px 30px; }
  .page-header h1 { font-size: 1.6rem; }
  .body-text { padding: 40px 20px 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact { padding: 40px 20px; }
  .contact-form { padding: 20px 20px 40px; }
  .about-content { padding: 20px 20px 40px; }
  .services-detail { padding: 20px 20px 40px; }
}
