/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #09090b;
  --bg-elevated: #18181b;
  --bg-card: #1c1c21;
  --border: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  max-width: 100%;
  display: block;
}

/* ===== Layout ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #06b6d4 40%, #a78bfa 70%, #6366f1 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-links .btn {
  color: white;
  background: var(--accent);
}

.nav-links .btn:hover {
  background: var(--accent-hover);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 200px 0 140px;
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -5%;
  background: rgba(99, 102, 241, 0.15);
  animation: orb-float-1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: -10%;
  background: rgba(6, 182, 212, 0.12);
  animation: orb-float-2 15s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  bottom: 5%;
  left: 30%;
  background: rgba(139, 92, 246, 0.1);
  animation: orb-float-3 10s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 30px) scale(1.05); }
  66% { transform: translate(40px, -40px) scale(0.9); }
}

@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -50px) scale(1.15); }
}

/* Glow effects */
.hero-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}

.hero-glow-2 {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out 3s infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateX(-50%) scale(1.08); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--text-muted);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  background: rgba(99, 102, 241, 0.06);
  backdrop-filter: blur(8px);
  animation: hero-fade-in 0.8s ease both;
}

.hero-badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  display: flex;
  flex-direction: column;
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line:nth-child(1) {
  animation: hero-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-line:nth-child(2) {
  animation: hero-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

@keyframes hero-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 36px auto 0;
  animation: hero-fade-in 0.8s ease 0.5s both;
}

.hero-quote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  border-left: 2px solid rgba(99, 102, 241, 0.4);
  padding-left: 20px;
  line-height: 1.6;
  text-align: left;
}

.hero-quote span {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 8px;
}

.hero-sub {
  max-width: 660px;
  margin: 20px auto 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  animation: hero-fade-in 0.8s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 44px;
  animation: hero-fade-in 0.8s ease 0.8s both;
}

.btn-glow {
  position: relative;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 60px rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 80px rgba(99, 102, 241, 0.2);
}

/* Bottom fade */
.hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ===== Products ===== */
.products {
  padding: 100px 0;
}

.products h2 {
  margin-bottom: 56px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .product-tag {
  margin-top: auto;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  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;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-icon {
  margin-bottom: 24px;
}

.product-card h3 {
  margin-bottom: 16px;
}

.product-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-card:nth-child(2) .feature-list li::before {
  background: var(--cyan);
}

.product-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
}

.product-card:nth-child(2) .product-tag {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
}

.product-card:nth-child(3) .feature-list li::before {
  background: var(--amber);
}

.product-card:nth-child(3) .product-tag {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
}

.commerce-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.pipeline-step {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 4px;
  letter-spacing: 0.01em;
  line-height: 1;
}

.pipeline-step::after {
  content: ' →';
  opacity: 0.4;
}

.pipeline-step:last-child::after {
  content: '';
}

.product-quote {
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--cyan);
  padding-left: 16px;
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.product-quote span {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.85rem;
  opacity: 0.7;
}

.product-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 16px;
  transition: color 0.2s;
}

.product-link:hover {
  color: #22d3ee;
}

/* ===== About ===== */
.about {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

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

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content strong {
  color: var(--text);
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.founder-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.founder-name {
  font-weight: 700;
  font-size: 1rem;
}

.founder-title {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.contact-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-inner h2 {
  margin-bottom: 20px;
}

.contact-inner p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ===== Animations ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }

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

  .mobile-toggle {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
    margin-bottom: 24px;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-top: 16px;
    line-height: 1.6;
  }

  .hero-quotes {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .hero-quote {
    font-size: 0.9rem;
    padding-left: 14px;
  }

  .hero-orb-1 { width: 200px; height: 200px; }
  .hero-orb-2 { width: 160px; height: 160px; }
  .hero-orb-3 { width: 120px; height: 120px; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-fade-bottom {
    height: 80px;
  }

  /* Products mobile */
  .products {
    padding: 60px 0;
  }

  .products h2 {
    margin-bottom: 36px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    padding: 24px;
  }

  .product-card h3 {
    font-size: 1.25rem;
  }

  .product-card p {
    font-size: 0.9rem;
  }

  .commerce-pipeline {
    gap: 5px;
  }

  .pipeline-step {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .feature-list li {
    font-size: 0.85rem;
  }

  /* About mobile */
  .about {
    padding: 60px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-content p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .founder-card {
    margin-top: 24px;
    padding: 16px;
  }

  /* Contact mobile */
  .contact {
    padding: 60px 0;
  }

  .contact-inner p {
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  /* Footer mobile */
  .footer {
    padding: 36px 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Small phones */
@media (max-width: 380px) {
  h1 {
    font-size: 1.55rem;
  }

  .hero {
    padding: 110px 0 50px;
  }

  .product-card {
    padding: 20px;
  }

  .pipeline-step {
    font-size: 0.6rem;
    padding: 3px 6px;
  }
}
