/* ============================================
   ALL IN ONE SOLUTIONS
   Aesthetic: refined technical / developer-product
   ============================================ */

:root {
  --bg: #0a0a0b;
  --bg-elev: #131316;
  --bg-card: #16161a;
  --border: #26262c;
  --border-strong: #3a3a44;
  --text: #f5f5f7;
  --text-dim: #9a9aa3;
  --text-faint: #5a5a64;
  --accent: #00ff9c;
  --accent-dim: #00cc7d;
  --accent-soft: rgba(0, 255, 156, 0.08);
  --danger: #ff5577;
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -20px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0, 255, 156, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 100, 255, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

/* ============ NAV ============ */
.nav {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.6);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
}
.logo-mark { color: var(--accent); font-weight: 700; }
.nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============ HERO ============ */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 32px 60px;
  text-align: center;
}
.hero .kicker { justify-content: center; }
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.1s ease forwards;
}
.kicker-line {
  width: 32px; height: 1px; background: var(--accent);
}
.kicker-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

h1 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease forwards;
}
h1 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s ease forwards;
}

/* ============ PRODUCTS ============ */
.products {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
  opacity: 0;
  animation: fadeUp 0.8s 0.45s ease forwards;
}
.product:nth-child(2) { animation-delay: 0.55s; }
.product:nth-child(3) { animation-delay: 0.65s; }

.product:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.product-featured {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(0, 255, 156, 0.04), transparent 50%),
    var(--bg-card);
  box-shadow: var(--shadow), 0 0 0 1px var(--accent);
}
.product-featured:hover {
  border-color: var(--accent);
}
.featured-ribbon {
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--accent);
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 4px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.product-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  padding: 4px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
}
.product-price {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1;
}
.price-currency {
  font-size: 16px;
  color: var(--text-dim);
  margin-right: 2px;
  vertical-align: top;
  position: relative;
  top: 7px;
  letter-spacing: -0.02em;
}
.price-amount { font-size: 42px; }
.price-cents {
  font-size: 18px;
  color: var(--text-dim);
  vertical-align: top;
  position: relative;
  top: 6px;
}

.product-title {
  font-family: 'Geist', sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.product-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 22px;
}
.product-list {
  list-style: none;
  margin-bottom: 22px;
  flex-grow: 1;
}
.product-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px dashed var(--border);
}
.product-list li:last-child { border-bottom: none; }
.check {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  margin-top: 2px;
}
.product-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 14px 18px;
  font-family: 'Geist', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: -0.005em;
  width: 100%;
}
.buy-btn:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.buy-btn:active { transform: translateY(1px); }
.buy-btn:disabled { opacity: 0.6; cursor: wait; }
.btn-arrow { transition: transform 0.2s ease; }
.buy-btn:hover .btn-arrow { transform: translateX(3px); }

.product-featured .buy-btn {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}
.product-featured .buy-btn:hover {
  background: #1aff9f;
  border-color: #1aff9f;
  box-shadow: 0 8px 24px -8px rgba(0, 255, 156, 0.6);
}

.buy-error {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px 30px;
}
.buy-error::before {
  content: attr(data-msg);
  display: block;
  padding: 12px 16px;
  background: rgba(255, 85, 119, 0.1);
  border: 1px solid rgba(255, 85, 119, 0.3);
  border-radius: 6px;
  color: var(--danger);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

/* ============ DIVIDER ============ */
.divider {
  max-width: 1240px;
  margin: 60px auto 0;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}

/* ============ FAQ ============ */
.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.faq details p a { color: var(--accent); text-decoration: none; }
.faq details p a:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }
.dot { color: var(--text-faint); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .products { grid-template-columns: 1fr; max-width: 540px; gap: 20px; }
  .featured-ribbon { right: 20px; }
}
@media (max-width: 600px) {
  .hero { padding: 60px 24px 40px; }
  .products { padding: 30px 20px 40px; }
  .product { padding: 28px 24px; }
  .nav-inner { padding: 16px 24px; }
  .nav-meta { display: none; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
}

/* ============ STATUS PAGES ============ */
.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.status-box {
  max-width: 540px;
  width: 100%;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 40px;
  box-shadow: var(--shadow);
}
.status-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}
.status-icon.failed { color: var(--danger); }
.status-box h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
  animation: none;
  opacity: 1;
}
.status-box p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.55;
}
.status-box .home-link {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  padding: 12px 20px;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.status-box .home-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.status-box .cta-link {
  display: inline-block;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}
.status-box .cta-link:hover {
  background: #1aff9f;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(0, 255, 156, 0.5);
}
