/* ============================================================
   objstore.io — Main stylesheet
   ============================================================ */

:root {
  --bg:           #060810;
  --bg-surface:   #0c0f1a;
  --bg-card:      #0f1320;
  --bg-card-alt:  #111827;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(99,179,237,0.3);

  --cyan:         #22d3ee;
  --cyan-dim:     rgba(34,211,238,0.15);
  --cyan-glow:    rgba(34,211,238,0.08);
  --blue:         #60a5fa;
  --purple:       #a78bfa;

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;
  --text-code:     #7dd3fc;

  --radius:     12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { color: var(--text-secondary); }

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #060810;
  font-weight: 600;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34,211,238,0.25); }
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm  { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p  { max-width: 520px; margin: 0 auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(6,8,16,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}
.logo {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo-mark  { color: var(--cyan); }
.logo-store { color: var(--text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.nav-links a:not(.btn):hover { color: var(--text-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(34,211,238,0.07) 0%, rgba(96,165,250,0.04) 40%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

.hero-headline { max-width: 800px; }

.hero-sub {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Code block */
.hero-code {
  width: 100%;
  max-width: 560px;
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.code-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.code-dot.red    { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green  { background: #22c55e; }
.code-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 4px;
}
.code-block {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  padding: 20px 24px;
  color: var(--text-secondary);
  overflow-x: auto;
}
.code-block .c  { color: #c084fc; }  /* keyword */
.code-block .s  { color: #86efac; }  /* string */
.code-block .comment { color: var(--text-muted); font-style: italic; }

/* ============================================================
   TRUSTED BY
   ============================================================ */
.trusted {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trusted-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.trusted-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 20px;
}
.trusted-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.trusted-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trusted-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 120px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.feature-card--large:first-child { grid-column: 1 / 3; }
.feature-card--large:last-child  { grid-column: 2 / 4; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 32px rgba(34,211,238,0.05);
}
.feature-icon {
  width: 40px; height: 40px;
  color: var(--cyan);
  margin-bottom: 20px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 { margin-bottom: 10px; color: var(--text-primary); }
.feature-card p  { font-size: 0.9rem; line-height: 1.65; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.hiw {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 50%, var(--bg) 100%);
}
.hiw-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.hiw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px;
}
.hiw-step:first-child { padding-left: 0; }
.hiw-step:last-child  { padding-right: 0; }
.hiw-connector {
  flex-shrink: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  margin-top: 24px;
  opacity: 0.4;
}
.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.05em;
}
.step-content h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step-content p  { font-size: 0.88rem; line-height: 1.65; }
.step-content code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--text-code);
  background: rgba(125,211,252,0.08);
  border: 1px solid rgba(125,211,252,0.15);
  border-radius: 4px;
  padding: 1px 6px;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 120px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.pricing-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}
.pricing-card--featured {
  border-color: rgba(34,211,238,0.35);
  background: linear-gradient(160deg, rgba(34,211,238,0.06) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 40px rgba(34,211,238,0.08);
}
.pricing-card--enterprise {
  border-style: dashed;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #060810;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.pricing-storage {
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 500;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
}
.pricing-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist {
  padding: 80px 0 120px;
}
.waitlist-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  overflow: hidden;
}
.waitlist-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(34,211,238,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.waitlist-content {
  position: relative;
}
.waitlist-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.waitlist-content > p {
  max-width: 480px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}
.waitlist-input {
  flex: 1;
  padding: 13px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s;
}
.waitlist-input::placeholder { color: var(--text-muted); }
.waitlist-input:focus { border-color: rgba(34,211,238,0.4); }
.waitlist-sub {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  gap: 80px;
  padding: 60px 24px 48px;
}
.footer-brand {
  flex: 1;
}
.footer-brand .logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 3s infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card--large:first-child { grid-column: 1 / 3; }
  .feature-card--large:last-child  { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--large:first-child,
  .feature-card--large:last-child {
    grid-column: 1;
  }

  .hiw-steps {
    flex-direction: column;
    gap: 32px;
  }
  .hiw-step { padding: 0; }
  .hiw-connector {
    width: 2px;
    height: 40px;
    margin: 0 0 0 16px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
  }

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

  .waitlist-form {
    flex-direction: column;
  }
  .waitlist-card {
    padding: 48px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }
  .footer-bottom .container {
    flex-direction: column;
    gap: 8px;
  }

  .trusted-divider { display: none; }
  .trusted-logos { gap: 8px; }

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

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
