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

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #1a1a1a;
}

/* ========================
   NAVBAR
======================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  border-bottom: 1px solid #f0f0f0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-box {
  background: linear-gradient(135deg, #e87722, #f5a623);
  color: white;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: #e87722; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* SEARCH */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: #aaa;
  pointer-events: none;
}

.search-bar {
  padding: 0.45rem 0.9rem 0.45rem 2.2rem;
  border: 1.5px solid #e8e8e8;
  border-radius: 20px;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  width: 155px;
  background: #fafafa;
  color: #333;
  transition: all 0.25s;
}

.search-bar:focus {
  border-color: #e87722;
  width: 195px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,119,34,0.12);
}

#error-msg {
  display: none;
  position: absolute;
  top: 115%;
  right: 0;
  background: #fff8f8;
  color: #c0392b;
  border: 1px solid #fdd;
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-demo {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(46,204,113,0.3);
}

.btn-demo:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-login {
  background: #1a1a1a;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-login:hover { opacity: 0.85; transform: translateY(-1px); }

/* ========================
   HERO
======================== */
.hero {
  text-align: center;
  padding: 5.5rem 2rem 4rem;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.hero-badge {
  display: inline-block;
  background: #fff7ee;
  color: #e87722;
  border: 1px solid #fddcb5;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  color: #111;
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.hero h1 span { color: #e87722; }

.hero p {
  color: #666;
  font-size: 1.1rem;
  margin: 1.4rem auto 0;
  max-width: 520px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.2rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  padding: 0.85rem 2.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(46,204,113,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,204,113,0.4);
}

.btn-hero-secondary {
  background: transparent;
  color: #333;
  padding: 0.85rem 2.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid #ddd;
  transition: border-color 0.2s, background 0.2s;
}

.btn-hero-secondary:hover {
  border-color: #e87722;
  color: #e87722;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 3.5rem;
  padding: 1.5rem 3rem;
  background: white;
  border: 1px solid #eee;
  border-radius: 16px;
  display: inline-flex;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2.5rem;
}

.stat strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
}

.stat span {
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.2rem;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #eee;
}

/* ========================
   FEATURES
======================== */
.features {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 3rem 4rem;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  flex-wrap: wrap;
  gap: 0;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  padding: 1.5rem 2.5rem;
}

.feature-divider {
  width: 1px;
  background: #f0f0f0;
  align-self: stretch;
  min-height: 80px;
}

.feature-icon {
  font-size: 1.5rem;
  padding: 0.8rem;
  border-radius: 12px;
  flex-shrink: 0;
}

.feature-icon.green  { background: #e8f8f0; }
.feature-icon.orange { background: #fef3e7; }
.feature-icon.pink   { background: #fce8f3; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.7;
}

h3.green  { color: #1a9e56; }
h3.orange { color: #e87722; }
h3.pink   { color: #c0397a; }

/* ========================
   CHEATSHEET — GLASSMORPHISM
======================== */
.hidden { display: none; }

.cs-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  background-attachment: fixed;
}

.cs-header {
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.cs-header-inner {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 1.5rem 3rem;
}

.cs-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.cs-header p {
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
  font-size: 0.95rem;
  font-weight: 400;
}

/* TABS */
.cs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0 2rem 1.5rem;
  justify-content: center;
}

.tab-btn {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  transition: all 0.25s;
}

.tab-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

/* MAIN */
.cs-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: -0.3px;
}

/* GLASS CARDS */
.glass-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.4rem 1.8rem;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.glass-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.11);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.glass-card h3 {
  color: #a78bfa;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.glass-card p {
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  font-size: 0.925rem;
  font-weight: 400;
}

.glass-card code {
  background: rgba(255,255,255,0.1);
  color: #fbbf24;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2.2rem; letter-spacing: -1px; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 60px; height: 1px; }
  .features { flex-direction: column; align-items: center; }
  .feature-divider { display: none; }
  .cs-header-inner { padding: 1.2rem 1.5rem; }
}
