/* Happy Technologies - Modern SaaS Killer Design */

:root {
  --color-primary: #242463;
  --color-secondary: #5CC3FB;
  --color-accent: #FF7564;
  --color-dark: #121232;
  --color-text: #1a1a1a;
  --color-text-light: #6b7280;
  --color-light: #f9fafb;
  --color-white: #ffffff;
  --gradient-1: linear-gradient(135deg, #242463 0%, #121232 100%);
  --gradient-2: linear-gradient(135deg, #5CC3FB 0%, #242463 100%);
  --gradient-3: linear-gradient(135deg, #FF7564 0%, #5CC3FB 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  overflow-x: hidden;
}

/* Header & Navigation - Glassmorphism */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-xl);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--color-dark);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.logo {
  height: 50px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-2);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover, nav a.active {
  color: var(--color-secondary);
}

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

.cta-button {
  background: var(--gradient-2);
  color: white !important;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

/* Hero Section - Massive Impact */
.hero {
  background: var(--gradient-1);
  color: white;
  padding: 10rem 3rem 8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(36, 36, 99, 0.7) 0%, rgba(38, 34, 97, 0.8) 100%);
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(92, 195, 251, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 117, 100, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #5CC3FB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.hero .tagline {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-accent);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
  font-size: 1.35rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  opacity: 0.95;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta .btn-primary {
  background: white;
  color: var(--color-primary);
  padding: 1.25rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
  display: inline-block;
}

.hero-cta .btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
  background: white;
  color: var(--color-primary);
}

.hero-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  padding: 1.25rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  color: white;
}

/* Product logo in hero with white circle background */
.hero .product-logo {
  height: 120px;
  width: 120px;
  object-fit: contain;
  padding: 20px;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-xl);
  margin: 0 auto 2rem;
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

/* Section Headers */
section h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

section .section-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

/* SaaS Killer Section */
.saas-killer {
  background: var(--gradient-1);
  color: white;
  text-align: center;
  padding: 6rem 3rem;
  position: relative;
  overflow: hidden;
}

.saas-killer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 117, 100, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.saas-killer h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.saas-killer p {
  font-size: 1.4rem;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 1.8;
}

/* Product Grid - Card Design */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.product-card {
  background: white;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(92, 195, 251, 0.2);
}

.product-card img {
  height: 100px;
  width: auto;
  margin-bottom: 2rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
  transform: scale(1.1);
}

.product-card h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
  font-weight: 700;
}

.product-card p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.product-card .price {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 2rem 0 1.5rem;
}

.product-link {
  display: inline-block;
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
}

.product-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: margin-left 0.3s ease;
}

.product-link:hover {
  color: var(--color-primary);
}

.product-link:hover::after {
  margin-left: 1rem;
}

/* Values Grid */
.values-section {
  background: var(--color-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.value-card {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.value-card .icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: var(--gradient-2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover .icon-wrapper {
  transform: rotate(10deg) scale(1.1);
}

.value-card svg {
  width: 50px;
  height: 50px;
  fill: white;
}

.value-card .lucide-icon {
  width: 50px;
  height: 50px;
  color: white;
  stroke-width: 2;
}

.value-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-dark);
  font-weight: 700;
}

.value-card p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Contact Form */
.contact-section {
  background: var(--color-light);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--color-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: white;
  box-shadow: 0 0 0 4px rgba(92, 195, 251, 0.1);
}

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

button[type="submit"] {
  background: var(--gradient-2);
  color: white;
  padding: 1.25rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl);
}

/* Stats Section */
.stats-section {
  background: white;
  padding: 5rem 3rem;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.stat-card {
  padding: 2rem;
}

.stat-card .stat-number {
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-size: 1.2rem;
  color: var(--color-text-light);
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(92, 195, 251, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-tagline {
  color: var(--color-accent);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-contact {
  margin-bottom: 0.75rem;
}

.footer-contact a,
.footer-contact p {
  color: var(--color-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  font-size: 1rem;
}

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

.footer-contact i {
  width: 18px;
  height: 18px;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  color: var(--color-accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
}

.footer-section ul li a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  section h2 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: var(--shadow-2xl);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  nav ul li a {
    display: block;
    padding: 1.25rem 0;
    font-size: 1.1rem;
  }

  .nav-menu .cta-button {
    margin-top: 2rem;
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
  }

  .hero {
    padding: 6rem 1.5rem 4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .tagline {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    padding: 1rem 2rem;
  }

  section h2 {
    font-size: 2.25rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
  }

  .container {
    padding: 4rem 1.5rem;
  }

  .products-grid,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stat-card .stat-number {
    font-size: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Use Case Cards (smaller, more compact) */
.use-case-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.use-case-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

.use-case-card i {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  display: block;
}

.use-case-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: white;
}

.use-case-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

/* Use Case Grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-light {
  background: var(--color-light);
}

.bg-white {
  background: white;
}
