/* ====== SMARTOFFICE-AI LANDING PAGE V3.5 (Global Elite Edition) ====== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@700;800&family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --primary-color: #020617;
  --secondary-color: #0f172a;
  --accent-color: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  --text-dark: #f1f5f9;
  --text-light: #94a3b8;
  --white: #ffffff;
  --cyan-bright: #00FFD1;
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
}

/* === Noise & Grid Texture (From V2) === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}

.blob {
  position: fixed;
  width: 600px;
  height: 600px;
  background: var(--accent-color);
  filter: blur(180px);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

.blob-1 { top: -150px; right: -150px; }
.blob-2 { bottom: -150px; left: -150px; background: #818cf8; }

section, footer { position: relative; z-index: auto; }

/* === Navbar === */
.top-nav {
  padding: 24px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;
  pointer-events: all;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.top-nav.scrolled {
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: var(--glass-blur);
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-small {
  background: linear-gradient(135deg, var(--accent-color), var(--cyan-bright));
  color: var(--primary-color);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.logo-small::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(45deg);
  animation: logo-shine 3s infinite;
}

@keyframes logo-shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo {
  height: 100px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* === Hamburger Menu === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-link:hover {
  color: var(--accent-color);
}

/* === Buttons === */
.btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--primary-color);
  box-shadow: 0 4px 20px var(--accent-glow);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--cyan-bright);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  color: var(--white);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

/* === Hero Section === */
.hero {
  padding: 192px 48px 128px;
  text-align: left;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan-bright);
}

h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -2px;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 48px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* === Stats === */
.hero-stats {
  display: flex;
  gap: 60px;
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--glass-border);
}

.stat-item .stat-val {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  font-family: 'DM Mono', monospace;
  display: block;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === Services Section === */
.services {
  padding: 128px 48px;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 96px;
}

.section-tag {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent-color);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: block;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
}

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

.service-card {
  background: var(--glass-bg);
  padding: 48px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 32px 24px;
  }
}

.service-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.04);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-card:hover::after { opacity: 1; }

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 32px;
  display: block;
  color: var(--accent-color);
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--white);
}

.card-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-transform: uppercase;
}

.service-card p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
}

.service-features li {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li::before {
  content: '→';
  color: var(--accent-color);
  font-weight: 700;
}

/* === Process Section === */
.process {
  padding: 128px 48px;
  background: rgba(15, 23, 42, 0.4);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 96px;
}

.process-step {
  position: relative;
}

.step-number {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: var(--accent-color);
  margin-bottom: 24px;
  display: block;
  padding: 8px 16px;
  border: 1px solid var(--glass-border);
  width: fit-content;
  border-radius: 4px;
}

.process-step h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.process-step p {
  color: var(--text-light);
}

/* === Why Us Section === */
.why-us {
  padding: 128px 48px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.why-feature-item {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.8rem;
  color: var(--accent-color);
  background: rgba(56, 189, 248, 0.1);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.why-feature-item h4 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}

.why-feature-item p {
  color: var(--text-light);
  font-size: 1rem;
}

/* === Final CTA Section === */
.cta-final {
  padding: 192px 48px;
  text-align: center;
}

.cta-final h2 {
  margin-bottom: 32px;
}

.cta-final p {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 64px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === Footer === */
footer {
  padding: 96px 48px 48px;
  background: var(--primary-color);
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 64px;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.copyright {
  text-align: center;
  padding-top: 48px;
  color: #475569;
  font-size: 0.85rem;
  font-family: 'DM Mono', monospace;
}

/* === Animations === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* === Utility === */
.hidden { display: none !important; }

@media (min-width: 769px) {
  .md\:hidden { display: none !important; }
}

/* === Mobile Menu Styling === */
#menu-btn {
  position: relative;
  z-index: 9999;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  pointer-events: all;
}

#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--primary-color);
  z-index: 1001 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  padding: 0 48px;
}

.mobile-nav-link {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-nav-link:hover {
  color: var(--accent-color);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-stats { gap: 40px; }
  .why-grid { gap: 40px; }
}

@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  .hero { padding: 192px 24px 96px; }
  .hero-actions { flex-direction: column; }
  
  .menu-toggle { display: flex; }

  .nav-actions {
    display: none !important;
  }

  .nav-logo {
    height: 48px;
  }

  .nav-link { font-size: 1.2rem; }

  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-container { flex-direction: column; gap: 40px; }
  .footer-links { flex-direction: column; gap: 20px; text-align: center; }
  .hero-stats { flex-direction: column; gap: 30px; }
}

/* ---------- Pricing Signals Section ---------- */

.pricing-signals {
  padding: 96px 24px;
  text-align: center;
}

.pricing-signals__header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pricing-signals__header p {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.pricing-signals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px;
}

@media (max-width: 768px) {
  .pricing-signals__grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  transition: border-color 0.3s ease;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pricing-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pricing-signals__cta {
  margin-top: 48px;
}

/* ---------- Service card social proof ---------- */

.service-proof {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #4f8ef7;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---------- Featured Service Cards ---------- */

.service-card--featured {
  grid-column: span 1;
  border-color: rgba(79, 142, 247, 0.3);
  background: rgba(79, 142, 247, 0.05);
  position: relative;
  overflow: visible; /* required so the "Most Popular" badge is not clipped */
}

.service-card--featured::after {
  border-radius: inherit; /* keep hover glow clipped to rounded corners with overflow visible */
}

.service-card--featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 24px;
  background: #4f8ef7;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

@media (min-width: 769px) {
  .service-card--featured {
    padding: 48px 32px;
  }
}

.service-card--featured:nth-of-type(2)::before {
  content: "Customer Favorite";
}

.service-card--featured:nth-of-type(3)::before {
  content: "Trusted in Production";
}

.pricing-signals__tagline {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 24px;
  opacity: 0.7;
}
