:root {
  --dark:        #003b49;
  --mid:         #1d4289;
  --yellow:      #ffc845;
  --yellow-dark: #e0b43e;
  --white:       #ffffff;
  --text-muted:  rgba(255,255,255,0.65);
  --glass-bg:    rgba(255,255,255,0.08);
  --glass-border:rgba(255,255,255,0.15);
  --radius:      14px;
  --shadow:      0 8px 32px rgba(0,0,0,0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(160deg, var(--dark) 0%, var(--mid) 100%);
  color: var(--white);
  min-height: 100vh;
}

a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- NAVBAR --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,59,73,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.logo:hover { text-decoration: none; opacity: 0.9; }
nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
nav a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: var(--white); text-decoration: none; }
.btn-nav {
  background: var(--yellow);
  color: var(--dark) !important;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--yellow-dark); text-decoration: none; }

/* --- HERO --- */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  flex-wrap: wrap;
}
.hero-inner { flex: 1; min-width: 280px; }
.badge {
  display: inline-block;
  background: rgba(255,200,69,0.15);
  border: 1px solid rgba(255,200,69,0.35);
  color: var(--yellow);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  font-weight: 800;
}
.accent { color: var(--yellow); }
.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--yellow);
  color: var(--dark);
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--yellow-dark); text-decoration: none; transform: translateY(-1px); }
.btn-secondary {
  background: var(--glass-bg);
  color: var(--white);
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--glass-border);
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); text-decoration: none; }

/* Hero visual */
.hero-visual { flex: 0 0 auto; }
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  min-width: 180px;
}
.card-icon { font-size: 2.5rem; }
.card-line { width: 2px; height: 20px; background: var(--glass-border); }
.card-app {
  background: rgba(255,200,69,0.12);
  border: 1px solid rgba(255,200,69,0.25);
  color: var(--yellow);
  padding: 0.4rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100%;
  text-align: center;
}

/* --- SECTIONS --- */
.section { padding: 5rem 1.5rem; }
.section-dark {
  background: rgba(0,0,0,0.2);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* Glass utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --- STEPS --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.step { padding: 1.8rem; }
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.step p { color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }

/* --- ENDPOINTS --- */
.endpoints { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.endpoint {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  flex-wrap: wrap;
}
.method {
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.endpoint code {
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  word-break: break-all;
  flex: 1;
}
.ep-desc { color: var(--text-muted); font-size: 0.85rem; flex-shrink: 0; }

/* Code block */
.code-block { padding: 1.5rem; margin-bottom: 1.5rem; overflow-x: auto; }
.code-header { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 0.8rem; }
.code-block pre { margin: 0; }
.code-block code {
  font-family: 'Fira Mono', 'Consolas', monospace;
  font-size: 0.82rem;
  color: var(--yellow);
  line-height: 1.7;
  white-space: pre;
}
.dev-contact { color: var(--text-muted); font-size: 0.95rem; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { overflow: hidden; }
.faq-item summary {
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--yellow); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.faq-item code {
  background: rgba(255,200,69,0.12);
  color: var(--yellow);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88rem;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 700px) {
  .hero { flex-direction: column; text-align: center; padding: 3rem 1rem; }
  .hero-sub { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  nav a:not(.btn-nav) { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
