/* BestDesigns - Futuristic Design Agency Styles */

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

:root {
  --bg: #05060f;
  --bg-2: #0a0c1f;
  --panel: #0f1128;
  --panel-2: #161a3a;
  --border: rgba(120, 140, 255, 0.15);
  --text: #eef0ff;
  --muted: #8891b8;
  --accent: #00e0ff;
  --accent-2: #ff2bd6;
  --accent-3: #7cff6b;
  --grad: linear-gradient(135deg, #00e0ff 0%, #ff2bd6 50%, #7cff6b 100%);
  --grad-2: linear-gradient(135deg, #00e0ff, #ff2bd6);
  --shadow: 0 20px 60px rgba(0, 224, 255, 0.15);
  --radius: 18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(0, 224, 255, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(255, 43, 214, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(124, 255, 107, 0.06), transparent 70%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 140, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 140, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ============== NAVIGATION ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(5, 6, 15, 0.7);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad);
  position: relative;
  transform: rotate(45deg);
  box-shadow: 0 0 24px rgba(0, 224, 255, 0.5);
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--bg);
  border-radius: 6px;
}

.logo-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad);
  color: #000;
  box-shadow: 0 10px 30px rgba(0, 224, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 40px rgba(255, 43, 214, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--panel); border-color: var(--accent); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ============== HERO ============== */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.02);
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 12px var(--accent-3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 88px);
  margin-bottom: 28px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 560px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.stat .num {
  font-size: 36px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ============== 3D HERO VISUAL ============== */
.hero-visual {
  position: relative;
  height: 520px;
  perspective: 1200px;
}

.cube {
  position: absolute;
  top: 50%; left: 50%;
  width: 220px; height: 220px;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  animation: rotate3d 24s linear infinite;
}

.cube .face {
  position: absolute;
  width: 220px; height: 220px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 224, 255, 0.08), rgba(255, 43, 214, 0.08));
  backdrop-filter: blur(10px);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  background-clip: padding-box;
}
.cube .face span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cube .front { transform: translateZ(110px); }
.cube .back { transform: rotateY(180deg) translateZ(110px); }
.cube .right { transform: rotateY(90deg) translateZ(110px); }
.cube .left { transform: rotateY(-90deg) translateZ(110px); }
.cube .top { transform: rotateX(90deg) translateZ(110px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(110px); }

@keyframes rotate3d {
  from { transform: translate(-50%, -50%) rotateX(0) rotateY(0); }
  to { transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg); }
}

.float-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}
.fs-1 {
  width: 120px; height: 120px;
  top: 10%; right: 5%;
  background: radial-gradient(circle at 30% 30%, #00e0ff, #003a5f);
  box-shadow: 0 0 80px rgba(0, 224, 255, 0.6);
  animation: float 6s ease-in-out infinite;
}
.fs-2 {
  width: 80px; height: 80px;
  bottom: 15%; left: 5%;
  background: radial-gradient(circle at 30% 30%, #ff2bd6, #5f0045);
  box-shadow: 0 0 60px rgba(255, 43, 214, 0.6);
  animation: float 8s ease-in-out infinite reverse;
}
.fs-3 {
  width: 60px; height: 60px;
  top: 60%; right: 15%;
  background: radial-gradient(circle at 30% 30%, #7cff6b, #2f5f29);
  box-shadow: 0 0 50px rgba(124, 255, 107, 0.5);
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(10px); }
}

/* ============== SECTIONS ============== */
section { padding: 100px 0; position: relative; }

.section-head { text-align: center; margin-bottom: 70px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-size: clamp(34px, 4vw, 56px);
  margin-bottom: 16px;
}
.section-head h2 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

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

.service-card {
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border-radius: calc(var(--radius) - 1px);
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-6px); }
.service-card:hover::before { opacity: 0.5; }

.service-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 224, 255, 0.15), rgba(255, 43, 214, 0.15));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
}

.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p { color: var(--muted); font-size: 15px; }

/* ============== PROCESS ============== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
}
.process-num {
  font-size: 64px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.8;
}
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--muted); }

/* ============== CALC ============== */
.calc-wrap {
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.calc-wrap::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(0, 224, 255, 0.2), transparent);
  border-radius: 50%;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
}

.calc-field { display: flex; flex-direction: column; gap: 10px; }
.calc-field label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.calc-field select, .calc-field input {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.calc-field select:focus, .calc-field input:focus { border-color: var(--accent); }

.calc-result {
  margin-top: 36px;
  padding: 28px;
  background: var(--bg-2);
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
}
.calc-result .lbl { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.calc-result .price {
  font-size: 48px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============== ABOUT ============== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  position: relative;
  height: 480px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
}
.orb-1 {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 260px; height: 260px;
  background: radial-gradient(circle at 35% 35%, #ff2bd6, #00e0ff 60%, #05060f);
  box-shadow: 0 0 100px rgba(255, 43, 214, 0.5);
  animation: morph 8s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 50%; transform: translate(-50%, -50%) rotate(0); }
  50% { border-radius: 40% 60% 70% 30%; transform: translate(-50%, -50%) rotate(180deg); }
}

.ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--border);
  border-radius: 50%;
}
.ring-1 { width: 340px; height: 340px; border-top-color: var(--accent); animation: spin 10s linear infinite; }
.ring-2 { width: 420px; height: 420px; border-right-color: var(--accent-2); animation: spin 14s linear infinite reverse; }
@keyframes spin {
  from { transform: translate(-50%, -50%) rotate(0); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.about h2 { font-size: 44px; margin-bottom: 20px; }
.about p { color: var(--muted); margin-bottom: 16px; font-size: 16px; }

.about-list { list-style: none; margin-top: 24px; }
.about-list li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  color: var(--text);
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 18px;
  width: 18px; height: 2px;
  background: var(--grad);
}

/* ============== FAQ ============== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 17px;
}
.faq-q .icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  flex-shrink: 0;
  font-size: 18px;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); background: var(--grad); color: #000; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 28px;
  color: var(--muted);
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 28px 22px; }

/* ============== CONTACT ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info p { color: var(--muted); margin-bottom: 28px; }

.contact-card {
  padding: 24px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.contact-card .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.contact-card .value { font-size: 16px; font-weight: 500; }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.contact-form .calc-field { margin-bottom: 20px; }
.contact-form textarea {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  min-height: 120px;
  resize: vertical;
}

/* ============== FOOTER ============== */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  background: var(--bg-2);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--text); }
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-col p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--grad);
  color: #000;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: 0 10px 30px rgba(0, 224, 255, 0.4);
  z-index: 50;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }

/* ============== LEGAL PAGES ============== */
.legal {
  padding: 80px 0;
  max-width: 860px;
  margin: 0 auto;
}
.legal h1 { font-size: 48px; margin-bottom: 24px; }
.legal h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal h2 { font-size: 24px; margin: 40px 0 14px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; font-size: 15px; }
.legal ul { padding-left: 22px; margin-bottom: 16px; }
.legal .meta { color: var(--muted); font-size: 13px; margin-bottom: 40px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { height: 380px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: var(--bg-2);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s;
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .services-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stat .num { font-size: 28px; }
  section { padding: 70px 0; }
  .calc-wrap, .contact-form { padding: 28px; }
}
