@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
@import url("https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap");

:root {
  --color-primary: #00c2b2;
  --color-primary-dark: #00a89a;
  --color-primary-light: #33cfbf;
  --color-secondary: #0d0d0d;
  --color-accent: #7b61ff;
  --color-bg: #ffffff;
  --color-surface: #f7f9fa;
  --color-surface-elevated: #ffffff;
  --color-text: #0d0d0d;
  --color-text-muted: #5a6472;
  --color-border: #e5eaf0;
  --color-success: #12b76a;
  --color-warning: #f79009;
  --color-error: #f04438;
  --color-cta: #00c2b2;
  --shadow-sm:
    0 1px 3px rgba(13, 13, 13, 0.04), 0 1px 2px rgba(13, 13, 13, 0.06);
  --shadow-md:
    0 4px 6px -1px rgba(13, 13, 13, 0.06), 0 2px 4px -1px rgba(13, 13, 13, 0.04);
  --shadow-lg:
    0 10px 15px -3px rgba(13, 13, 13, 0.08),
    0 4px 6px -2px rgba(13, 13, 13, 0.04);
  --shadow-xl:
    0 20px 25px -5px rgba(13, 13, 13, 0.1),
    0 10px 10px -5px rgba(13, 13, 13, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(0, 194, 178, 0.08);
}

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

html {
  scroll-behavior: initial;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glass);
}

.glass-dark {
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.reveal-line {
  opacity: 0;
  transform: translateY(30px);
}

.card-hover {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* terminal */
.terminal {
  position: absolute;
  right: 4rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 440px;
  overflow: hidden;
  z-index: 2;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 201, 167, 0.1);
}
.terminal-bar {
  background: var(--surface2);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.r {
  background: #ff5f57;
}
.dot.y {
  background: #febc2e;
}
.dot.g {
  background: #28c840;
}
.terminal-title {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
}
.terminal-body {
  padding: 1.2rem;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.8;
}
.terminal-line {
  display: block;
  margin-bottom: 0.2rem;
}
.t-prompt {
  color: var(--color-primary-light);
}
.t-cmd {
  color: var(--white);
}
.t-comment {
  color: var(--muted);
}
.t-string {
  color: #ff9d77;
}
.t-key {
  color: #82b4ff;
}
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--color-primary-light);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .terminal {
    width: 380px;
    right: 2rem;
  }
}
@media (max-width: 768px) {
  .terminal {
    position: relative;
    top: auto;
    right: auto;
    transform: none;

    width: 100%;
    max-width: 500px;
    margin: 2rem auto 0;
  }
}

/* TECH TICKER */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem 0;
}
.ticker {
  display: flex;
  gap: 4rem;
  animation: ticker 20s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ticker-item::before {
  content: "◆";
  color: var(--color-primary-light);
  font-size: 0.5rem;
}
@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.section-fade {
  opacity: 0;
  transform: translateY(40px);
}

.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sticky-cta.show {
  transform: scale(1);
}

.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  transform: scale(0);
}

.whatsapp-float.show {
  transform: scale(1);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.process-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    transparent,
    var(--color-primary),
    transparent
  );
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.accordion-content.open {
  max-height: 500px;
}

@media (max-width: 768px) {
  .process-line {
    left: 20px;
  }

  .sticky-cta {
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-float {
    bottom: 88px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
}

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

.float-animation {
  animation: float 6s ease-in-out infinite;
}

.gradient-border {
  position: relative;
  background: var(--color-surface);
  border-radius: 16px;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}
