:root {
  --bg: #f7f6f4;
  --text: #111111;
  --muted: #666666;
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-light: #a78bfa;
  --amber: #d97706;
  --pink: #db2777;
  --blue: #2563eb;
  --gradient: linear-gradient(135deg, #7c3aed, #db2777);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.95), transparent 28%),
              radial-gradient(circle at 75% 55%, rgba(255, 255, 255, 0.55), transparent 22%),
              linear-gradient(to bottom, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  padding: 18px 24px 24px;
  display: flex;
  flex-direction: column;
}

.section-label {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 4.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #101010;
  margin: 0 0 clamp(16px, 3vw, 36px);
  line-height: 1.15;
}

/* -------- Topbar -------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(6px, 2vw, 18px);
  height: clamp(44px, 7vw, 70px);
  width: 100%;
  padding: 0 clamp(4px, 2vw, 24px);
  flex-wrap: nowrap;
  position: relative;
}

.topbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #a78bfa, #fbbf24, #f9a8d4, #a78bfa);
  background-size: 300% 100%;
  animation: borderGradient 5s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes borderGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
  color: #1a1a1a;
  user-select: none;
}

.brand-logo {
  width: clamp(22px, 4vw, 34px);
  height: clamp(22px, 4vw, 34px);
  object-fit: contain;
}

.brand-text {
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 24px);
}

.nav-tab {
  font-size: clamp(10px, 1.2vw, 15px);
  font-weight: 500;
  color: #444;
  text-decoration: none;
  padding: clamp(4px, 0.5vw, 8px) clamp(8px, 1vw, 16px);
  border-radius: 8px;
  transition: all 0.25s;
  white-space: nowrap;
}

.nav-tab:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--purple);
}

/* -------- Hero -------- */

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  text-align: center;
  padding: clamp(40px, 8vw, 100px) clamp(8px, 3vw, 12px) clamp(28px, 6vw, 60px);
  position: relative;
  overflow: hidden;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-side-gif {
  width: clamp(100px, 20vw, 300px);
  height: auto;
  flex-shrink: 0;
  opacity: 0.7;
  margin-right: clamp(-16px, -2vw, -8px);
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.headline-main {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(18px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.5vw, 18px);
  flex-wrap: nowrap;
  max-width: 100%;
}

.wave-container {
  display: flex;
  align-items: center;
  height: clamp(14px, 2.5vw, 18px);
  flex-shrink: 0;
}

.wave {
  width: clamp(16px, 5vw, 36px);
  height: clamp(10px, 2vw, 18px);
  display: block;
  flex-shrink: 0;
}

.headline-sub {
  font-weight: 300;
  font-size: clamp(14px, 3.5vw, 32px);
  color: #555;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
}

.responsive-headline {
  text-align: center;
  display: flex;
  justify-content: center;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.hero-tagline {
  font-size: clamp(15px, 2.2vw, 22px);
  color: #555;
  max-width: 620px;
  margin: 28px auto 0;
  line-height: 1.55;
  font-weight: 400;
}

.glow-word {
  font-weight: 600;
  animation: colorCycle 4s ease-in-out infinite;
}

@keyframes colorCycle {
  0%   { color: #7c3aed; }
  33%  { color: #d97706; }
  66%  { color: #db2777; }
  100% { color: #7c3aed; }
}

/* -------- Services -------- */

.services {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 6vw, 80px) clamp(12px, 3vw, 24px) clamp(32px, 6vw, 100px);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(10px, 2.5vw, 28px);
}

.service-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

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

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.ac-purple { background: var(--purple); }
.ac-amber { background: var(--amber); }
.ac-pink { background: var(--pink); }
.ac-blue { background: var(--blue); }

.service-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  margin: 0 0 10px;
  color: #101010;
}

.service-desc {
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* -------- Why Ionyiq -------- */

.why-section {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 5vw, 80px) clamp(12px, 3vw, 24px) clamp(28px, 6vw, 100px);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 2vw, 24px);
}

.why-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 18px;
  padding: clamp(20px, 2.5vw, 32px);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 22px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-left: 3px solid var(--card-color);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
  background: rgba(255, 255, 255, 0.92);
}

.why-icon-wrap {
  width: clamp(36px, 4.5vw, 52px);
  height: clamp(36px, 4.5vw, 52px);
  border-radius: 14px;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.3s;
}

.why-card:hover .why-icon-wrap {
  transform: scale(1.08);
  background: var(--card-color);
}

.why-icon {
  font-size: clamp(16px, 2vw, 24px);
  color: var(--card-color);
  line-height: 1;
  transition: color 0.3s;
}

.why-card:hover .why-icon {
  color: #fff;
}

.why-body {
  flex: 1;
  min-width: 0;
}

.why-name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 600;
  margin: 0 0 5px;
  color: #101010;
}

.why-desc {
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.55;
  color: #555;
  margin: 0;
}

/* -------- CTA Band -------- */

.cta-band {
  position: relative;
  z-index: 1;
  margin: clamp(8px, 3vw, 40px) 0 clamp(20px, 5vw, 60px);
  border-radius: 20px;
  background: var(--gradient);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 60px);
  text-align: center;
  width: 100%;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cta-text {
  font-size: clamp(14px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 600;
  color: var(--purple-dark);
  background: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* -------- Footer -------- */

.footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: clamp(16px, 2vw, 24px) clamp(12px, 3vw, 24px);
}

.footer-logo {
  width: clamp(18px, 1.5vw, 24px);
  height: clamp(18px, 1.5vw, 24px);
  object-fit: contain;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: clamp(11px, 1vw, 13px);
  color: #999;
}

.footer-motto {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  color: #888;
  letter-spacing: 0.02em;
}

.footer-crafted {
  font-size: clamp(10px, 0.9vw, 12px);
  color: #bbb;
}

/* -------- Responsive -------- */

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  html, body {
    overflow-x: hidden;
  }

  .page {
    padding: 12px 12px 16px;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    padding: 8px 0;
  }

  .nav-links {
    gap: 4px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-tagline {
    margin-top: 12px;
  }

  .cta-band {
    border-radius: 14px;
  }

  .services {
    padding: 20px 8px 28px;
  }

  .why-section {
    padding: 20px 8px 28px;
  }

  .section-title {
    margin-bottom: 20px;
  }
}

@media (max-width: 500px) {
  .page {
    padding: 8px 8px 12px;
  }

  .topbar {
    gap: 4px;
  }

  .brand-text {
    font-size: 12px;
  }

  .nav-tab {
    font-size: 10px;
    padding: 4px 6px;
  }

  .hero-row {
    gap: 16px;
  }

  .hero-side-gif {
    width: 100px;
  }

  .cta-button {
    padding: 12px 28px;
  }

  .service-card {
    padding: 16px 14px;
  }

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

  .why-card {
    padding: 12px;
    border-left-width: 3px;
    gap: 10px;
    border-radius: 14px;
  }

  .why-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .why-icon {
    font-size: 14px;
  }

  .why-name {
    font-size: 13px;
  }

  .why-desc {
    font-size: 11px;
  }
}

@media (max-width: 400px) {
  .headline-main {
    gap: 3px;
  }

  .wave {
    width: 14px;
    height: 8px;
  }

  .wave-container {
    height: 12px;
  }

  .hero-row {
    gap: 10px;
  }

  .hero-side-gif {
    width: 70px;
    margin-right: -8px;
  }

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

  .service-card {
    padding: 14px 12px;
  }

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

  .why-card {
    padding: 10px;
    gap: 6px;
  }

  .why-icon-wrap {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }

  .why-icon {
    font-size: 11px;
  }

  .cta-title {
    font-size: 22px;
  }
}
