@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap";

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

@keyframes shake {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-8px); }
  30%      { transform: translateX(7px); }
  45%      { transform: translateX(-6px); }
  60%      { transform: translateX(5px); }
  75%      { transform: translateX(-3px); }
  90%      { transform: translateX(2px); }
}
.input-shake {
  animation: shake 0.45s ease;
  border-color: #e85050 !important;
  box-shadow: 0 0 0 3px rgba(232,80,80,.25) !important;
}

:root {
  --bg: #07070f;
  --bg2: #0e0e1a;
  --bg3: #13131f;
  --border: rgba(255,255,255,.08);
  --accent: #e8a020;
  --accent2: #f0c040;
  --red: #e63946;
  --text: #f0f0f5;
  --muted: #8888a0;
  --radius: 14px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body { font-family: Inter, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all .2s ease; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #000; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,160,32,.35); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-full { width: 100%; }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(7,7,15,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 40px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.logo-icon { font-size: 22px; }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; flex: 1; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; font-size: 14px; padding: 10px 20px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; margin-left: auto; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* Hero */
.hero { min-height: 100vh; padding: 140px 24px 80px; max-width: 1200px; width: 100%; margin: 0 auto; display: flex; align-items: center; gap: 60px; position: relative; }
.hero-glow { position: absolute; top: 20%; left: 50%; transform: translate(-50%); width: min(600px, 100vw); height: 600px; background: radial-gradient(circle, rgba(232,160,32,.12) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.hero-content { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(232,160,32,.12); border: 1px solid rgba(232,160,32,.25); color: var(--accent); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 100px; margin-bottom: 28px; }
.hero-title { font-size: clamp(42px, 5vw, 72px); font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, var(--accent), var(--accent2), #ff8c42); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 40px; line-height: 1.7; }
.hero-stats { display: flex; align-items: center; gap: 28px; margin-bottom: 40px; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-code-preview { flex: 0 0 420px; max-width: 100%; position: relative; z-index: 1; }

/* Code window */
.code-window { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.code-header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--bg2); border-bottom: 1px solid var(--border); }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.code-title { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.code-body { font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7; color: #c9d1d9; padding: 20px 22px; overflow-x: auto; }

/* Sections */
.section { padding: 100px 24px; width: 100%; }
.section-inner { max-width: 1200px; width: 100%; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge { display: inline-flex; align-items: center; background: rgba(232,160,32,.1); border: 1px solid rgba(232,160,32,.2); color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.section-title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--muted); max-width: 520px; margin: 0 auto; }

/* Features */
.features { background: var(--bg2); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: all .25s ease; }
.feature-card:hover { border-color: rgba(232,160,32,.3); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.3px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* API Key bar */
.apikey-bar { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 20px; flex-wrap: wrap; }
.apikey-label { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; flex-shrink: 0; }
.apikey-input { flex: 1; min-width: 200px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 9px 14px; outline: none; transition: border-color .15s; }
.apikey-input:focus { border-color: var(--accent); }
.apikey-input::placeholder { color: var(--muted); opacity: .6; font-size: 12px; }

/* Try it panel */
.tryit-panel { margin-top: 20px; border: 1px solid rgba(232,160,32,.25); border-radius: var(--radius-sm); overflow: hidden; background: rgba(232,160,32,.03); }
.tryit-header { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(232,160,32,.07); border-bottom: 1px solid rgba(232,160,32,.15); flex-wrap: wrap; }
.tryit-label { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .4px; }
.tryit-hint { font-size: 11px; color: var(--muted); }
.tryit-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px 0; flex-wrap: wrap; }
.tryit-field-label { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; min-width: 80px; }
.tryit-input { flex: 1; min-width: 0; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 7px 12px; outline: none; transition: border-color .15s; }
.tryit-input:focus { border-color: var(--accent); }
.tryit-input::placeholder { color: var(--muted); opacity: .5; }
.tryit-url-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
.tryit-url { flex: 1; min-width: 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); word-break: break-all; }
.tryit-send { background: var(--accent); color: #000; border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; padding: 8px 20px; cursor: pointer; transition: opacity .15s; white-space: nowrap; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tryit-send:disabled { opacity: .5; cursor: not-allowed; }
.tryit-send:hover:not(:disabled) { opacity: .85; }
.tryit-spinner { width: 14px; height: 14px; border: 2px solid rgba(0,0,0,.3); border-top-color: #000; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.tryit-result { border-top: 1px solid var(--border); padding: 12px 16px; }
.tryit-ok { border-top-color: rgba(39,201,63,.3); }
.tryit-err { border-top-color: rgba(255,95,87,.3); }
.tryit-status { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tryit-badge { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.badge-ok { background: rgba(39,201,63,.15); color: #27c93f; }
.badge-err { background: rgba(255,95,87,.15); color: #ff5f57; }
.tryit-status-text { font-size: 12px; color: var(--muted); }
.tryit-body { font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.6; color: #c9d1d9; overflow-x: auto; white-space: pre; max-height: 320px; overflow-y: auto; max-width: 100%; }
.tryit-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.tryit-note-icon { flex-shrink: 0; }

/* Endpoint items */
.endpoint-item { border-bottom: 1px solid var(--border); min-width: 0; overflow: hidden; }
.endpoint-item:last-child { border-bottom: none; }
.endpoint-item .endpoint-row { cursor: pointer; border-bottom: none; transition: background .15s; user-select: none; min-width: 0; }
.endpoint-item .endpoint-row:hover { background: rgba(255,255,255,.04); }
.endpoint-open > .endpoint-row { background: rgba(232,160,32,.05); }
.endpoint-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.copy-btn { background: rgba(255,255,255,.07); border: 1px solid var(--border); color: var(--muted); border-radius: 6px; width: 28px; height: 28px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; }
.copy-btn:hover { background: rgba(232,160,32,.15); color: var(--accent); border-color: var(--accent); }
.chevron { font-size: 10px; color: var(--muted); transition: transform .2s; min-width: 12px; text-align: center; }
.endpoint-open .chevron { transform: rotate(180deg); }
.endpoint-detail { padding: 20px 20px 24px; background: rgba(0,0,0,.25); border-top: 1px solid var(--border); animation: slideDown .2s ease; min-width: 0; max-width: 100%; overflow: hidden; }
@keyframes slideDown { 0% { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.detail-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); white-space: nowrap; margin-bottom: 8px; }
.detail-value { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; margin-bottom: 18px; }
.detail-grid > div { min-width: 0; overflow: hidden; }
.detail-code { font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.65; color: #c9d1d9; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; white-space: pre; max-width: 100%; display: block; box-sizing: border-box; }

/* Endpoints list */
.endpoints-list { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; width: 100%; }
.endpoint-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background .15s; }
.endpoint-row:last-child { border-bottom: none; }
.endpoint-row:hover { background: rgba(255,255,255,.03); }
.method { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 5px; min-width: 50px; text-align: center; flex-shrink: 0; }
.method.get { background: rgba(39,201,63,.15); color: #27c93f; }
.endpoint-path { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); word-break: break-all; flex: 1; min-width: 0; }
.endpoint-desc { font-size: 13px; color: var(--muted); width: 100%; padding-left: 66px; }

/* Pricing */
.pricing { background: var(--bg2); }
.email-row { display: flex; justify-content: center; margin-bottom: 24px; }
.email-row .input { width: 100%; max-width: 460px; }
.input { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--text); font-size: 15px; font-family: Inter, sans-serif; width: 100%; transition: border-color .2s; }
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); }
.alert { text-align: center; padding: 14px 20px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; max-width: 500px; margin: 0 auto 32px; }
.alert-success { background: rgba(39,201,63,.1); border: 1px solid rgba(39,201,63,.25); color: #27c93f; }
.alert-error { background: rgba(230,57,70,.1); border: 1px solid rgba(230,57,70,.25); color: var(--red); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.plan-card { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 36px 30px; position: relative; transition: all .25s ease; }
.plan-card:hover { transform: translateY(-4px); }
.plan-highlight { border-color: var(--accent); background: linear-gradient(160deg, rgba(232,160,32,.06), var(--bg3)); box-shadow: 0 0 0 1px rgba(232,160,32,.2), 0 24px 64px rgba(0,0,0,.3); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translate(-50%); background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #000; font-size: 12px; font-weight: 800; padding: 5px 16px; border-radius: 100px; white-space: nowrap; }
.plan-name { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; }
.price-num { font-size: 52px; font-weight: 900; letter-spacing: -3px; color: var(--text); }
.price-period { font-size: 16px; color: var(--muted); }
.plan-desc { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }
.plan-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.check { color: var(--accent); font-weight: 700; font-size: 16px; }

/* Resend */
.resend { padding: 80px 24px; }
.resend-card { max-width: 540px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 56px 48px; text-align: center; }
.resend-icon { font-size: 48px; margin-bottom: 20px; }
.resend-card h2 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.resend-card p { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.resend-form { display: flex; flex-direction: column; gap: 14px; }

/* Footer */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 60px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer .logo { justify-content: center; margin-bottom: 16px; }
.footer-desc { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.footer-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 28px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--muted); font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 110px; padding-bottom: 60px; gap: 40px; }
  .hero-code-preview { flex: unset; width: 100%; max-width: 100%; }
  .hero-stats { justify-content: flex-start; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 24px; gap: 20px; z-index: 99; }
  .section { padding: 72px 20px; }
  .resend-card { padding: 36px 24px; }
  .endpoint-desc { padding-left: 0; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 16px 48px; }
  .section { padding: 60px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .hero-title { letter-spacing: -1px; }
  .section-title { letter-spacing: -.5px; }
  .nav-inner { padding: 0 16px; }
  .plan-card { padding: 28px 20px; }
  .resend-card { padding: 32px 16px; }
  .code-body { font-size: 12px; padding: 16px; }
  .plans-grid { max-width: 100%; }
  .price-num { font-size: 42px; }
  .features-grid { gap: 14px; }
  .feature-card { padding: 24px 20px; }
  .detail-grid { grid-template-columns: 1fr; }
}
