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

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

:root {
  --primary: #6610f2;
  --primary-light: #8540ff;
  --primary-dark: #4a00c8;
  --accent: #4cc9f0;
  --bg-dark: #0a0a1a;
  --bg-section: #f8f9fc;
  --text: #1a1a2e;
  --text-light: #6c757d;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #6610f2 0%, #4cc9f0 100%);
  --shadow: 0 10px 40px rgba(102, 16, 242, 0.15);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

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

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.nav-logo span {
  color: var(--accent);
}

.nav.scrolled .nav-logo {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav.scrolled .nav-links a {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.nav.scrolled .nav-toggle span {
  background: var(--text);
}

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(102, 16, 242, 0.3) 0%, transparent 60%), radial-gradient(ellipse at 70% 80%, rgba(76, 201, 240, 0.2) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-phone svg {
  width: 28px;
  height: 28px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(102, 16, 242, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 16, 242, 0.5);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* HERO VISUAL - Animated Network */
.hero-visual {
  position: relative;
  height: 420px;
}

.network-node {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 3;
}

.node-router {
  background: var(--gradient);
  box-shadow: 0 0 30px rgba(102, 16, 242, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.node-device {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.node-1 {
  top: 10%;
  left: 20%;
}

.node-2 {
  top: 8%;
  right: 20%;
}

.node-3 {
  top: 45%;
  left: 5%;
}

.node-4 {
  top: 45%;
  right: 5%;
}

.node-5 {
  bottom: 10%;
  left: 18%;
}

.node-6 {
  bottom: 8%;
  right: 18%;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(102, 16, 242, 0.4);
  animation: pulseRing 2s infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 0.5s;
  width: 120px;
  height: 120px;
}

.pulse-ring:nth-child(3) {
  animation-delay: 1s;
  width: 160px;
  height: 160px;
}

@keyframes pulseRing {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.5);
  }
}

.connection-line {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 2px;
  transform-origin: left center;
  z-index: 1;
}

.connection-line::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  animation: dataFlow 2s infinite linear;
}

@keyframes dataFlow {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

/* FEATURES */
.features {
  padding: 100px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(102, 16, 242, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* SERVICES */
.services {
  padding: 100px 0;
  background: var(--bg-section);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-header {
  padding: 50px 40px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.service-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(102, 16, 242, 0.4) 0%, transparent 60%);
}

.service-card-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  z-index: 2;
}

.service-card-header p {
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 2;
  margin-top: 8px;
}

.service-card-body {
  padding: 36px 40px;
}

.service-card-body ul {
  list-style: none;
  margin-bottom: 24px;
}

.service-card-body li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-light);
}

.service-card-body li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.service-card-body .btn {
  width: 100%;
  justify-content: center;
}

/* WIFI ANIMATION SECTION */
.wifi-section {
  padding: 100px 0;
  background: var(--bg-dark);
  color: var(--white);
  overflow: hidden;
}

.wifi-section .section-tag {
  background: rgba(76, 201, 240, 0.15);
  color: var(--accent);
}

.wifi-section .section-title {
  color: var(--white);
}

.wifi-section .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.house-diagram {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: 500px;
}

.house-svg {
  width: 100%;
  height: 100%;
}

.house-outline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 2;
}

.house-floor {
  fill: rgba(255, 255, 255, 0.03);
}

.house-wall {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
  fill: none;
}

.wifi-ap {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
}

.wifi-ap .wave {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: wifiWave 2s infinite;
}

.wifi-ap .wave:nth-child(1) {
  width: 70px;
  height: 70px;
  border-color: rgba(102, 16, 242, 0.5);
  animation-delay: 0s;
}

.wifi-ap .wave:nth-child(2) {
  width: 110px;
  height: 110px;
  border-color: rgba(102, 16, 242, 0.3);
  animation-delay: 0.4s;
}

.wifi-ap .wave:nth-child(3) {
  width: 150px;
  height: 150px;
  border-color: rgba(102, 16, 242, 0.15);
  animation-delay: 0.8s;
}

@keyframes wifiWave {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.device-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 10;
  animation: devicePulse 3s ease-in-out infinite;
}

@keyframes devicePulse {

  0%,
  100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.data-packet {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 15;
  opacity: 0;
}

/* STEPS */
.steps {
  padding: 100px 0;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.step-connector {
  position: absolute;
  top: 52px;
  right: -15px;
  width: 30px;
  height: 2px;
  background: var(--gradient);
}

.step-card:last-child .step-connector {
  display: none;
}

/* CONTACT */
.contact {
  padding: 100px 0;
  background: var(--bg-section);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
}

.contact-item h4 {
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-form h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-section);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

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

/* SUBPAGE HERO */
.subpage-hero {
  padding: 140px 0 80px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(102, 16, 242, 0.25) 0%, transparent 60%);
}

.subpage-hero .container {
  position: relative;
  z-index: 2;
}

.subpage-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.subpage-hero .subtitle {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 500;
}

/* ICON CARDS ROW */
.icon-cards {
  padding: 80px 0;
  background: var(--white);
}

.icon-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.icon-card {
  text-align: center;
}

.icon-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.icon-card h3 {
  font-weight: 700;
  margin-bottom: 8px;
}

.icon-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0 auto;
}

/* CONTENT SECTIONS */
.content-section {
  padding: 80px 0;
}

.content-section:nth-child(even) {
  background: var(--bg-section);
}

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

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse>* {
  direction: ltr;
}

.content-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.content-text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.content-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.content-visual img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* TARGET CARDS */
.target-section {
  padding: 80px 0;
  background: var(--bg-section);
}

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

.target-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.target-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.target-card .emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.target-card h3 {
  font-weight: 700;
  margin-bottom: 8px;
}

.target-card p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* PROCESS STEPS (horizontal) */
.process {
  padding: 80px 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: proc;
}

.process-step {
  position: relative;
  padding: 32px 20px;
  text-align: center;
}

.process-step::before {
  counter-increment: proc;
  content: counter(proc);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* FAQ */
.faq {
  padding: 80px 0;
  background: var(--bg-section);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* FOOTER */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 0;
  text-align: center;
}

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

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* RESPONSIVE */
@media (max-width: 968px) {

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .content-grid.reverse {
    direction: ltr;
  }

  .hero-content p {
    margin: 0 auto 32px;
  }

  .hero-visual {
    height: 320px;
    margin-top: 40px;
  }

  .hero-btns {
    justify-content: center;
  }

  .features-grid,
  .steps-grid,
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .icon-cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .step-connector {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 26, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
    color: var(--white) !important;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid,
  .steps-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 260px;
  }

  .house-diagram {
    height: 350px;
  }

  .service-card-header,
  .service-card-body {
    padding: 30px 24px;
  }

  .targets-grid {
    grid-template-columns: 1fr 1fr;
  }
}