/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-2: #111118;
  --surface: #16161f;
  --surface-2: #1e1e2a;
  --border: rgba(255,255,255,0.08);
  --text: #e8e8f0;
  --text-muted: #7a7a99;
  --accent: #7c6ef5;
  --accent-2: #e05aff;
  --accent-3: #00d4ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --nav-h: 68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ── Utility ──────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 100px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; border: none;
  transition: all 0.2s ease; white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,110,245,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,110,245,0.5); }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(124,110,245,0.06); }

.btn-full { width: 100%; justify-content: center; }

/* ── Nav ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(10,10,15,0.95); }

.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h); display: flex; align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-icon { font-size: 1.4rem; }
.logo-text { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.logo-img { width: 28px; height: 28px; object-fit: contain; display: none; }
.logo-img.loaded { display: block; }
.logo-icon-fallback { font-size: 1.4rem; }
.logo-icon-fallback.hidden { display: none; }

.brand-mark-img { width: 110px; height: 110px; object-fit: contain; display: none; border-radius: 0; }
.brand-mark-img.loaded { display: block; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 8px 14px; border-radius: 8px; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.btn-nav {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important; padding: 8px 20px; border-radius: 100px;
  font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 2px 12px rgba(124,110,245,0.3);
}
.btn-nav:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

.mobile-menu { display: none; flex-direction: column; border-top: 1px solid var(--border); padding: 12px 24px 20px; gap: 4px; }
.mobile-menu a { display: block; padding: 10px 0; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border: none; }

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

/* ── Hero ─────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(124,110,245,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(224,90,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(0,212,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 2; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; width: 100%;
}

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: rgba(124,110,245,0.15); border: 1px solid rgba(124,110,245,0.3);
  color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px;
}

.hero-content > div:first-child { grid-column: 1; }

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted); font-weight: 400; margin-bottom: 20px;
}

.hero-sub {
  font-size: 1rem; color: var(--text-muted); max-width: 440px;
  line-height: 1.7; margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual {
  position: relative; height: 400px; display: flex; align-items: center; justify-content: center;
}

.orb {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}
.orb-1 { width: 300px; height: 300px; background: rgba(124,110,245,0.25); top: 10%; left: 10%; animation-delay: 0s; }
.orb-2 { width: 200px; height: 200px; background: rgba(224,90,255,0.2); bottom: 10%; right: 10%; animation-delay: 2s; }
.orb-3 { width: 150px; height: 150px; background: rgba(0,212,255,0.15); top: 50%; left: 50%; transform: translate(-50%,-50%); animation-delay: 4s; }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.floating-cards { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 16px; }

.card-float {
  padding: 14px 22px; border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  font-weight: 600; font-size: 1rem;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.card-float-1 { animation-delay: 0s; }
.card-float-2 { animation-delay: 1.3s; margin-left: 32px; }
.card-float-3 { animation-delay: 2.6s; margin-left: 16px; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ── Sections ─────────────────────────────────────── */
.section { padding: 100px 0; }
.section--dark { background: var(--bg-2); }

.section-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }

.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }

/* ── Services ─────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}

.service-card {
  padding: 32px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(124,110,245,0.3); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

.service-card--accent {
  background: linear-gradient(135deg, rgba(124,110,245,0.12), rgba(224,90,255,0.08));
  border-color: rgba(124,110,245,0.2);
}

.service-icon { font-size: 2.2rem; margin-bottom: 18px; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

/* ── About ────────────────────────────────────────── */
.about-layout {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 80px;
}

.about-text .section-label { text-align: left; display: block; }
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }

.about-stats { display: flex; gap: 40px; margin-top: 36px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.25rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-top: 2px; }

.brand-mark {
  width: 220px; height: 220px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,110,245,0.15), rgba(224,90,255,0.1));
  border: 1px solid rgba(124,110,245,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  box-shadow: 0 0 80px rgba(124,110,245,0.15), inset 0 0 40px rgba(124,110,245,0.05);
  animation: float 5s ease-in-out infinite;
}

/* ── Contact ──────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 48px;
}

.contact-card {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: rgba(124,110,245,0.3); transform: translateY(-3px); }

.contact-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.contact-card h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 8px; }
.contact-card a, .contact-card p { font-size: 0.95rem; color: var(--text); font-weight: 500; }
.contact-card a:hover { color: var(--accent); }

.contact-form {
  max-width: 640px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
}

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

.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }

.form-group input,
.form-group textarea {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,110,245,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-note { text-align: center; font-size: 0.875rem; color: var(--text-muted); margin-top: 12px; min-height: 20px; }
.form-note.success { color: #4caf50; }

/* ── Footer ───────────────────────────────────────── */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 36px 0;
}

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

.footer-copy, .footer-motto { font-size: 0.85rem; color: var(--text-muted); }
.footer-motto { font-style: italic; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-visual { display: none; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .section { padding: 70px 0; }
}
