@font-face {
  font-family: 'Bogart';
  src: url('fonts/Bogart-Bold.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: #FCF8F3;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 8rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.logo-icon {
  height: 60px;
  width: 60px;
  border-radius: 8px;
}

.nav-button {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border: 1.5px solid rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  transition: background-color 0.2s, color 0.2s;
}

.nav-button:hover {
  background-color: #000000;
  color: #F8F8F8;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  margin-top: -5vh;
  position: relative;
}

/* Icon Row */
.hero-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
}

.icon-wrapper {
  background-color: #4672f6;
  padding: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-camera {
  background-color: #F67B55;
  position: relative;
  overflow: hidden;
}

.icon-camera::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4),
              0 8px 20px 8px rgba(100, 160, 255, 0.35);
  animation: camera-scan 2.5s ease-in-out infinite;
}

@keyframes camera-scan {
  0%   { top: 10%; }
  50%  { top: 90%; }
  100% { top: 10%; }
}

.icon-chart {
  background-color: #8FD4A0;
}

.icon-sign {
  background-color: #E6BE3A;
}

/* Signature drawing animation — loops every 4s (2.35s draw + 1.65s hold) */
.sign-x {
  transform-origin: 3.5px 10.5px;
  animation: sign-pop-in 4s ease-out infinite;
}

.sign-line-left {
  animation: sign-reveal-ltr-left 4s ease-out infinite;
}

.sign-curve {
  animation: sign-reveal-curve 4s ease-in-out infinite;
}

.sign-line-right {
  animation: sign-reveal-ltr-right 4s ease-out infinite;
}

/* X mark: pop in at 0%–8.75%, hold, fade out at 90%–95% */
@keyframes sign-pop-in {
  0%        { opacity: 0; transform: scale(0); }
  6%        { opacity: 1; transform: scale(1.15); }
  8.75%     { opacity: 1; transform: scale(1); }
  90%       { opacity: 1; transform: scale(1); }
  95%       { opacity: 0; transform: scale(0); }
  100%      { opacity: 0; transform: scale(0); }
}

/* Left baseline: reveal at 7.5%–17.5%, hold, fade out at 90%–95% */
@keyframes sign-reveal-ltr-left {
  0%        { opacity: 0; clip-path: inset(0 100% 0 0); }
  7.5%      { opacity: 1; clip-path: inset(0 100% 0 0); }
  17.5%     { opacity: 1; clip-path: inset(0 0% 0 0); }
  90%       { opacity: 1; clip-path: inset(0 0% 0 0); }
  95%       { opacity: 0; clip-path: inset(0 0% 0 0); }
  100%      { opacity: 0; clip-path: inset(0 100% 0 0); }
}

/* Signature curve: reveal at 15%–50%, hold, fade out at 90%–95% */
@keyframes sign-reveal-curve {
  0%        { opacity: 0; clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
  15%       { opacity: 1; clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
  25%       { clip-path: polygon(0 0, 50% 0, 40% 60%, 0 50%); }
  38%       { clip-path: polygon(0 0, 80% 0, 70% 80%, 0 100%); }
  50%       { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  90%       { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  95%       { opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100%      { opacity: 0; clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
}

/* Right baseline: reveal at 50%–58.75%, hold, fade out at 90%–95% */
@keyframes sign-reveal-ltr-right {
  0%        { opacity: 0; clip-path: inset(0 100% 0 0); }
  50%       { opacity: 1; clip-path: inset(0 100% 0 0); }
  58.75%    { opacity: 1; clip-path: inset(0 0% 0 0); }
  90%       { opacity: 1; clip-path: inset(0 0% 0 0); }
  95%       { opacity: 0; clip-path: inset(0 0% 0 0); }
  100%      { opacity: 0; clip-path: inset(0 100% 0 0); }
}

.icon-web {
  background-color: #339BFF;
}

.icon-web .hero-icon {
  animation: web-glow 2s ease-in-out infinite;
}

@keyframes web-glow {
  0%   { filter: brightness(0) invert(1); }
  50%  { filter: brightness(0) invert(1) drop-shadow(0 0 4px #4ADE80) drop-shadow(0 0 8px rgba(74, 222, 128, 0.5)); }
  100% { filter: brightness(0) invert(1); }
}

.icon-scissor {
  background-color: #DEB881;
}

.icon-compress {
  background-color: #FF7878;
}

/* Compress squeeze & expand animation */
.icon-compress .hero-icon {
  animation: compress-squeeze 2s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes compress-squeeze {
  0%   { transform: scaleX(1); }
  50%  { transform: scaleX(0.7); }
  100% { transform: scaleX(1); }
}

.hero-icon {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

/* Headline */
.hero-headline {
  font-family: 'Bogart', sans-serif;
  font-weight: 900;
  font-size: clamp(4.0rem, 9vw, 7rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-align: justify;
  text-align-last: center;
  max-width: 900px;
}

/* Subtitle */
.hero-subtitle {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  line-height: 1.6;
  max-width: 960px;
  margin-bottom: 2.5rem;
  color: #666666;
  text-align: center;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #ffffff;
  background-color: #4672f6;
  border: 1.5px solid rgba(0, 0, 0, 0.3);
  border-radius: 50px;
  padding: 1.25rem 3.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-arrow {
  width: 18px;
  height: 18px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #666666;
  text-decoration: none;
}

.footer-links a:hover {
  color: #000000;
}

.footer-dot {
  color: #CCCCCC;
}

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #999999;
}

/* Responsive */
@media (max-width: 640px) {
  .navbar {
    padding: 1rem 1.25rem;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-icons {
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
  }

  .icon-wrapper {
    padding: 8px;
  }

  .hero-icon {
    width: 24px;
    height: 24px;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 9vw, 4rem);
  }

  .hero-subtitle {
    max-width: 90%;
  }
}
