/* ── BucketDrive Landing — Design System ── */

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

:root {
  --navy: #0c1222;
  --navy-light: #131b2e;
  --navy-lighter: #1a2438;
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --indigo: #6366f1;
  --background: #fafbfd;
  --foreground: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --border: #e2e8f0;
  --card: #ffffff;
  --destructive: #ef4444;
  --green: #22c55e;
  --radius: 0.625rem;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  letter-spacing: -0.035em;
  font-weight: 700;
  line-height: 1.15;
}

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

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

/* ── Scrollbar ── */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ── Layout ── */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Animations ── */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shapeFloat1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(12px, -18px) rotate(1.5deg); }
  50% { transform: translate(-6px, -28px) rotate(-1deg); }
  75% { transform: translate(16px, -12px) rotate(0.5deg); }
}

@keyframes shapeFloat2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-14px, -20px) rotate(-2deg); }
  66% { transform: translate(10px, -14px) rotate(1deg); }
}

@keyframes shapeFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -22px); }
}

.animate-up {
  animation: fadeSlideUp 0.6s ease-out both;
}

.animate-up-delay-1 { animation-delay: 0.1s; }
.animate-up-delay-2 { animation-delay: 0.2s; }
.animate-up-delay-3 { animation-delay: 0.3s; }
.animate-up-delay-4 { animation-delay: 0.4s; }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.btn-outline {
  background: white;
  color: var(--foreground);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ── Navbar ── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.875rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(12, 18, 34, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.navbar-logo svg {
  width: 20px;
  height: 20px;
  color: white;
}

.navbar-brand span {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.03em;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

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

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-cta .btn {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ── Hero Section ── */

.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Ambient glow */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

/* Dot grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(99, 102, 241, 0.02));
}

.hero-shapes .shape-1 {
  width: 260px;
  height: 180px;
  top: 12%;
  left: 5%;
  animation: shapeFloat1 22s ease-in-out infinite;
}

.hero-shapes .shape-2 {
  width: 200px;
  height: 150px;
  top: 25%;
  right: 8%;
  border-radius: 18px;
  animation: shapeFloat2 26s ease-in-out infinite;
}

.hero-shapes .shape-3 {
  width: 140px;
  height: 120px;
  bottom: 20%;
  left: 15%;
  animation: shapeFloat3 19s ease-in-out infinite;
}

.hero-shapes .shape-4 {
  width: 180px;
  height: 130px;
  bottom: 30%;
  right: 20%;
  border-radius: 22px;
  animation: shapeFloat1 24s ease-in-out infinite reverse;
}

.hero-shapes .shape-5 {
  width: 100px;
  height: 100px;
  top: 55%;
  left: 40%;
  border-radius: 50%;
  animation: shapeFloat2 17s ease-in-out infinite;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.25rem;
  line-height: 1.08;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8125rem;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-proof-item svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  opacity: 0.7;
}

/* ── Hero Screenshot ── */

.hero-screenshot {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 4rem auto 0;
}

.hero-screenshot-inner {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: var(--navy-light);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.screenshot-placeholder {
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, var(--navy-light), var(--navy-lighter));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  flex-direction: column;
  gap: 0.75rem;
}

.screenshot-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Section Styles ── */

.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}

.section-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
}

.section-dark > * {
  position: relative;
  z-index: 1;
}

.section-alt {
  background: white;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.section-dark .section-label {
  color: var(--primary-light);
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-dark .section-header h2 {
  color: white;
}

.section-header p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.45);
}

/* ── Features Grid ── */

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border-color: rgba(37, 99, 235, 0.2);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ── How It Works ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.section-dark .step-number {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--primary-light);
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.section-dark .step h3 {
  color: white;
}

.step p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
}

.section-dark .step p {
  color: rgba(255, 255, 255, 0.4);
}

/* ── Architecture Diagram ── */

.architecture {
  margin-top: 3rem;
}

.architecture-placeholder {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--navy-light);
  aspect-ratio: 2.2/1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.875rem;
  flex-direction: column;
  gap: 0.75rem;
}

.architecture-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.architecture-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

/* ── Comparison Table ── */

.comparison-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.comparison-table thead th:first-child {
  color: var(--foreground);
}

.comparison-table .highlight-col {
  background: rgba(37, 99, 235, 0.04);
}

.comparison-table thead .highlight-col {
  color: var(--primary);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody td {
  color: var(--muted);
}

.comparison-table tbody td:first-child {
  color: var(--foreground);
  font-weight: 500;
}

.check {
  color: var(--green);
  font-weight: 600;
}

.cross {
  color: var(--muted-light);
}

/* ── Pricing ── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
}

.pricing-popular {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.pricing-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-period {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 1.75rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.375rem 0;
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pricing-card .btn {
  width: 100%;
}

/* ── CTA Section ── */

.cta-section {
  padding: 6rem 0;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ── Footer ── */

.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 2rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo svg {
  width: 15px;
  height: 15px;
  color: white;
}

.footer-brand span {
  font-size: 0.9375rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.75rem;
  }

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

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

  .pricing-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-proof {
    flex-direction: column;
    gap: 0.75rem;
  }

  .navbar-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card:last-child {
    max-width: none;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .cta-content h2 {
    font-size: 1.875rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

  .container {
    padding: 0 1rem;
  }

  .comparison-table {
    font-size: 0.8125rem;
  }
}
