/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  /* Colors - Orange/Amber theme matching Pockito app icon */
  --primary-50: #FFF7ED;
  --primary-100: #FFEDD5;
  --primary-200: #FED7AA;
  --primary-300: #FDBA74;
  --primary-400: #FB923C;
  --primary-500: #F97316;
  --primary-600: #EA580C;
  --primary-700: #C2410C;

  --accent-amber: #F59E0B;
  --accent-orange: #FB923C;
  --accent-brown: #B45309;
  --accent-gold: #FBBF24;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #0a0c10;

  /* Gradients */
  --gradient-primary: linear-gradient(
    135deg,
    #F97316 0%,
    #FB923C 50%,
    #FBBF24 100%
  );
  --gradient-dark: linear-gradient(180deg, #0a0c10 0%, #1f2937 100%);
  --gradient-glow: radial-gradient(
    ellipse at 50% 0%,
    rgba(249, 115, 22, 0.15) 0%,
    transparent 70%
  );

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 120px;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 60px rgba(249, 115, 22, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--gray-950);
  color: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===========================
   Utilities
   =========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-200);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-white {
  background: white;
  color: var(--gray-900);
}

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

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-icon {
  font-size: 18px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

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

.logo-text {
  font-size: 22px;
  font-weight: 700;
}

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

.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: white;
}

.nav-links .btn {
  margin-left: 8px;
  color: white;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 0.8;
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-400);
  margin-bottom: 24px;
}

.badge-icon {
  font-size: 16px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  z-index: 1;
}

.phone-frame {
  width: 300px;
  height: 620px;
  background: linear-gradient(180deg, #1a1d24 0%, #13151a 100%);
  border-radius: 50px;
  padding: 8px;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.phone-notch {
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  margin: 8px auto 16px;
}

.phone-screen {
  background: #0d0f12;
  border-radius: 40px;
  padding: 20px;
  height: calc(100% - 52px);
  overflow: hidden;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.app-title {
  font-size: 26px;
  font-weight: 700;
}

.app-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 12px;
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.link-card:nth-child(2) {
  animation-delay: 0.1s;
}
.link-card:nth-child(3) {
  animation-delay: 0.2s;
}
.link-card:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.link-favicon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.link-content {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.link-url {
  font-size: 12px;
  color: var(--gray-500);
}

.link-tag {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
  top: 100px;
  right: -40px;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 120px;
  left: -40px;
  animation-delay: 2s;
}

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

/* ===========================
   Section Styles
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-400);
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   Features Section
   =========================== */
.features {
  padding: var(--section-padding) 0;
  position: relative;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature-large {
  grid-column: span 2;
  grid-row: span 2;
  padding: 48px;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-icon-large {
  font-size: 48px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-large h3 {
  font-size: 28px;
}

.feature-card p {
  color: var(--gray-400);
  font-size: 15px;
  line-height: 1.6;
}

.feature-large p {
  font-size: 17px;
  max-width: 400px;
}

.feature-visual {
  flex: 1;
  display: flex;
  align-items: flex-end;
  margin-top: 32px;
}

/* Share Sheet Demo */
.share-sheet-demo {
  width: 100%;
  max-width: 320px;
  background: #1a1d24;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
}

.share-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.share-preview {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.share-thumb {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: 12px;
  flex-shrink: 0;
}

.share-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.share-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.share-domain {
  font-size: 13px;
  color: var(--gray-500);
}

.share-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.share-tag {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.share-tag.active {
  background: rgba(249, 115, 22, 0.2);
  border-color: var(--primary-500);
  color: var(--primary-400);
}

.share-button {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}

/* ===========================
   How It Works Section
   =========================== */
.how-it-works {
  padding: var(--section-padding) 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(249, 115, 22, 0.03) 50%,
    transparent 100%
  );
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  width: 280px;
  transition: var(--transition);
}

.step:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-content p {
  color: var(--gray-400);
  font-size: 15px;
}

.step-icon {
  font-size: 36px;
  margin-top: 24px;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(249, 115, 22, 0.5),
    rgba(251, 191, 36, 0.5)
  );
}

/* ===========================
   Tech Stack Section
   =========================== */
.tech-stack {
  padding: var(--section-padding) 0;
}

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

.tech-card {
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: var(--transition);
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-4px);
}

.tech-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.tech-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tech-card p {
  color: var(--gray-400);
  font-size: 14px;
}

/* ===========================
   CTA Section
   =========================== */
.cta {
  padding: var(--section-padding) 0;
}

.cta-card {
  position: relative;
  padding: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.signup-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.email-input {
  flex: 1;
  min-width: 250px;
  padding: 16px 24px;
  font-size: 16px;
  font-family: var(--font-family);
  border: none;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
  outline: none;
  transition: var(--transition);
}

.email-input::placeholder {
  color: var(--gray-500);
}

.email-input:focus {
  background: white;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.signup-success {
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 16px;
}

.signup-error {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: #EF4444;
  color: white;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* ===========================
   Footer
   =========================== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 12px;
}

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

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--gray-500);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

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

  .feature-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-connector {
    width: 2px;
    height: 40px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .phone-frame {
    width: 260px;
    height: 540px;
  }

  .floating-card-1,
  .floating-card-2 {
    display: none;
  }

  .step {
    width: 100%;
    max-width: 320px;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 24px;
  }

  .share-sheet-demo {
    padding: 16px;
  }
}
