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

:root {
  --white: #ffffff;
  --bg: #f4f8fc;
  --bg2: #e8f0f8;
  --text: #0d1f3c;
  --text2: #3d5a80;
  --text3: #7a98b8;
  --accent: #1a8fd1;
  --accent2: #29b6f6;
  --accent-dark: #0d5fa0;
  --accent-light: #e8f5fd;
  --navy: #0d2040;
  --navy2: #162d50;
  --border: #d0dff0;
  --border2: #b0c8e0;
  --card: #ffffff;
  --shadow: 0 1px 4px rgba(13, 32, 64, .08), 0 1px 2px rgba(13, 32, 64, .04);
  --shadow-md: 0 4px 20px rgba(13, 32, 64, .12);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.font-display {
  font-family: 'Rubik', sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 160px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}

.nav-links a:hover {
  background: var(--bg2);
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
}

.nav-cta:hover {
  background: var(--navy2);
  box-shadow: 0 4px 14px rgba(13, 32, 64, .25);
  color: #fff;
}

.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 4px;
}

.footer-links a {
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(41, 182, 246, .12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(41, 182, 246, .35);
  background: rgba(41, 182, 246, .07);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.hero h1 {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 22px;
  color: var(--navy);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #1a8fd1, #29b6f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text2);
  max-width: 500px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.7;
}

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

.btn-primary {
  background: var(--navy);
  color: #fff;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--navy2);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(13, 32, 64, .28);
  color: #fff;
}

.btn-ghost {
  border: 1.5px solid var(--border2);
  color: var(--navy);
  background: var(--white);
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.hero-meta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--text3);
  font-size: 13px;
  flex-wrap: wrap;
}

.hero-meta span::before {
  content: '✓ ';
  color: #22c55e;
  font-weight: 700;
}

.demo-section {
  padding: 40px 20px 80px;
  max-width: 860px;
  margin: 0 auto;
}

.demo-window {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(13, 32, 64, .12);
}

.demo-bar {
  background: var(--navy);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-dot-red {
  background: #ef4444;
}

.demo-dot-yellow {
  background: #f59e0b;
}

.demo-dot-green {
  background: #22c55e;
}

.demo-url {
  margin-left: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  font-family: monospace;
}

.demo-body {
  padding: 28px;
}

.demo-toolbar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 8px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.demo-tb-btn {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text2);
  font-size: 13px;
  font-family: serif;
  transition: background .12s;
}

.demo-tb-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.demo-tb-sep {
  width: 1px;
  background: var(--border);
  margin: 0 3px;
}

.demo-editor {
  min-height: 100px;
  padding: 12px;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.8;
}

.demo-editor h3 {
  color: var(--navy);
  font-family: 'Rubik', sans-serif;
  margin-bottom: 8px;
}

.features {
  padding: 90px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  color: var(--navy);
}

.section-sub {
  color: var(--text2);
  font-size: 16px;
  max-width: 460px;
  font-weight: 300;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: all .22s;
}

.feature-card:hover {
  border-color: rgba(41, 182, 246, .4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(13, 32, 64, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-card h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.feature-card p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
}

.integration {
  padding: 70px 0;
}

.code-block {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 26px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  margin-top: 28px;
  color: #fff;
}

.code-block .cm {
  color: #4a6fa5;
}

.code-block .ct {
  color: var(--accent2);
}

.code-block .cs {
  color: #90caf9;
}

.code-block .cv {
  color: #69f0ae;
}

.code-block .ck {
  color: #f48fb1;
}

.stats {
  padding: 70px 20px;
  background: var(--navy);
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-family: 'Rubik', sans-serif;
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #29b6f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: rgba(255, 255, 255, .4);
  font-size: 13px;
  margin-top: 4px;
}

.cta-section {
  padding: 110px 20px;
  text-align: center;
  background: var(--bg);
}

.cta-section h2 {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(28px, 4.5vw, 54px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 18px;
  color: var(--navy);
}

.cta-section p {
  color: var(--text2);
  font-size: 16px;
  margin-bottom: 36px;
  font-weight: 300;
}

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

.pricing-hero {
  text-align: center;
  padding: 70px 20px 50px;
}

.pricing-hero h1 {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 14px;
  color: var(--navy);
}

.pricing-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #1a8fd1, #29b6f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero p {
  color: var(--text2);
  font-size: 16px;
  font-weight: 300;
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
}

.billing-toggle span {
  font-size: 14px;
  color: var(--text3);
}

.billing-toggle .active-label {
  color: var(--navy);
  font-weight: 500;
}

.toggle-wrap {
  position: relative;
  width: 50px;
  height: 26px;
}

.toggle-wrap input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border2);
  border-radius: 99px;
  transition: .3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 4px;
  top: 4px;
  background: var(--white);
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

input:checked+.toggle-slider {
  background: var(--accent);
}

input:checked+.toggle-slider::before {
  transform: translateX(24px);
}

.save-badge {
  background: rgba(34, 197, 94, .12);
  color: #16a34a;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 5px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.plan {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px;
  transition: transform .22s, box-shadow .22s;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan.popular {
  border-color: rgba(41, 182, 246, .45);
  position: relative;
}

.plan.popular::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-name {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.plan-price {
  font-family: 'Rubik', sans-serif;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--navy);
  display: flex;
  align-items: center;
}

.plan-price-custom {
  font-family: 'Rubik', sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  padding-top: 8px;
  margin-bottom: 4px;
  color: var(--navy);
}

.plan-price span {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text3);
  letter-spacing: 0;
}

.plan-desc {
  color: var(--text2);
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  padding: 0;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 10px;
  font-weight: 300;
}

.plan-features li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-features li.no::before {
  content: '✕';
  color: #ef4444;
}

.plan-features li.no {
  color: var(--text3);
}

.plan-btn {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: all .2s;
  border: none;
  font-family: inherit;
}

.plan-btn-outline {
  background: transparent;
  border: 1.5px solid var(--border2);
  color: var(--navy);
}

.plan-btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.plan-btn-solid {
  background: var(--navy);
  color: #fff;
}

.plan-btn-solid:hover {
  background: var(--navy2);
  box-shadow: 0 6px 22px rgba(13, 32, 64, .28);
  color: #fff;
}

.faq {
  max-width: 660px;
  margin: 0 auto 90px;
  padding: 0 20px;
}

.faq-title {
  font-family: 'Rubik', sans-serif;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -1px;
  color: var(--navy);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-q {
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--navy);
}

.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--text3);
  flex-shrink: 0;
  transition: .2s;
}

.faq-item.open .faq-q::after {
  content: '−';
  color: var(--accent);
}

.faq-a {
  font-size: 14px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s, padding .3s;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-top: 11px;
}

.demo-page-wrap {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 20px;
}

.info-box {
  background: var(--accent-light);
  border: 1px solid rgba(41, 182, 246, .3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--accent-dark);
}

.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.auth-card h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.5px;
  color: var(--navy);
}

.auth-subtitle {
  color: var(--text3);
  font-size: 14px;
  margin-bottom: 26px;
  font-weight: 300;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--navy);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}

.field input:focus {
  border-color: var(--accent);
  background: var(--white);
}

.field input::placeholder {
  color: var(--text3);
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.field-row label {
  margin-bottom: 0;
}

.field-row a {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.field-row a:hover {
  text-decoration: underline;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  margin-top: 8px;
}

.auth-btn:hover {
  background: var(--navy2);
  box-shadow: 0 6px 18px rgba(13, 32, 64, .25);
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text3);
}

.auth-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.error-box {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: #dc2626;
  font-size: 13px;
}

.plan-note {
  background: rgba(41, 182, 246, .06);
  border: 1px solid rgba(41, 182, 246, .25);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 300;
}

.dash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 58px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.dash-nav-logo {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: #fff;
}

.dash-nav-logo span {
  color: var(--accent2);
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-nav-user {
  font-size: 14px;
  color: rgba(255, 255, 255, .45);
}

.sign-out-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .6);
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}

.sign-out-btn:hover {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  background: rgba(255, 255, 255, .06);
}

.dash-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 58px);
}

.dash-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 20px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  font-family: inherit;
  border-left: 2px solid transparent;
}

.sidebar-item:hover {
  background: var(--bg2);
  color: var(--navy);
}

.sidebar-item.active {
  background: var(--accent-light);
  color: var(--accent);
  border-left-color: var(--accent);
  font-weight: 500;
}

.sidebar-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.dash-main {
  padding: 36px;
  overflow-y: auto;
  background: var(--bg);
}

.page-title {
  font-family: 'Rubik', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 4px;
  color: var(--navy);
}

.page-sub {
  color: var(--text3);
  font-size: 14px;
  margin-bottom: 28px;
  font-weight: 300;
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .25);
  color: #15803d;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.key-reveal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  margin: 10px 0;
}

.key-reveal code {
  font-family: monospace;
  font-size: 13px;
  color: #15803d;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  background: rgba(41, 182, 246, .08);
  border: 1px solid rgba(41, 182, 246, .25);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}

.copy-btn:hover {
  background: rgba(41, 182, 246, .15);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.stat-val {
  font-family: 'Rubik', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
}

.stat-lbl {
  color: var(--text3);
  font-size: 12px;
  margin-top: 4px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-head h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.btn-sm {
  padding: 7px 16px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all .15s;
  display: inline-block;
}

.btn-sm:hover {
  background: var(--navy2);
  color: #fff;
}

.license-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 14px;
}

.license-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.license-header-date {
  font-size: 12px;
  color: var(--text3);
}

.license-name {
  font-family: 'Rubik', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
}

.badge-green {
  background: rgba(34, 197, 94, .1);
  color: #15803d;
}

.badge-red {
  background: rgba(239, 68, 68, .1);
  color: #dc2626;
}

.badge-gray {
  background: var(--bg2);
  color: var(--text3);
}

.license-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.license-meta span strong {
  color: var(--text2);
}

.license-domains {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.domain-tag {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text2);
  font-family: monospace;
}

.progress-wrap {
  background: var(--bg2);
  border-radius: 99px;
  height: 4px;
  margin-bottom: 14px;
}

.progress-bar {
  background: var(--accent);
  border-radius: 99px;
  height: 4px;
  transition: width .3s;
}

.license-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all .15s;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-danger {
  background: rgba(239, 68, 68, .07);
  border: 1px solid rgba(239, 68, 68, .2);
  color: #dc2626;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, .14);
}

.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--text3);
}

.empty h4 {
  font-family: 'Rubik', sans-serif;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text2);
}

.empty p {
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 18px;
}

.create-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 24px;
  display: none;
}

.create-form.open {
  display: block;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  color: var(--navy);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: var(--white);
}

.hint {
  font-size: 12px;
  color: var(--text3);
  margin-top: 5px;
  font-weight: 300;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-create {
  padding: 10px 22px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}

.btn-create:hover {
  background: var(--navy2);
}

.btn-cancel {
  padding: 10px 22px;
  background: var(--bg2);
  color: var(--text2);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}

.btn-cancel:hover {
  background: var(--border2);
}

.integration-hint {
  margin-top: 28px;
  background: rgba(41, 182, 246, .05);
  border: 1px solid rgba(41, 182, 246, .18);
  border-radius: 12px;
  padding: 20px;
}

.integration-hint-title {
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.integration-hint-sub {
  font-size: 13px;
  color: var(--text2);
  font-weight: 300;
  margin-bottom: 10px;
}

.integration-hint-code {
  background: var(--navy);
  border-radius: 8px;
  padding: 14px;
  font-family: monospace;
  font-size: 12px;
  color: #69f0ae;
  line-height: 1.8;
}

.key-highlight {
  color: #69f0ae;
}

.register-page {
  background: #0a1628;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Poppins', sans-serif;
  color: #fafafa;
}

.register-wrap {
  width: 100%;
  max-width: 440px;
}

.register-logo {
  text-align: center;
  margin-bottom: 36px;
}

.register-logo a {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  color: #fafafa;
}

.register-logo a span {
  color: #29b6f6;
}

.register-logo p {
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
  margin-top: 6px;
  font-weight: 300;
}

.register-card {
  background: #0d1f3c;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 36px;
}

.register-card h2 {
  font-family: 'Rubik', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.5px;
}

.register-subtitle {
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
  margin-bottom: 28px;
  font-weight: 300;
}

.register-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 7px;
}

.register-input {
  width: 100%;
  padding: 11px 14px;
  background: #0a1628;
  border: 1.5px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  color: #fafafa;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.register-input:focus {
  border-color: #29b6f6;
}

.register-input::placeholder {
  color: rgba(255, 255, 255, .2);
}

.register-btn {
  width: 100%;
  padding: 13px;
  background: #1a8fd1;
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  margin-top: 8px;
}

.register-btn:hover {
  background: #29b6f6;
  box-shadow: 0 6px 20px rgba(41, 182, 246, .3);
}

.register-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255, 255, 255, .4);
}

.register-footer a {
  color: #29b6f6;
  text-decoration: none;
  font-weight: 500;
}

.register-footer a:hover {
  text-decoration: underline;
}

.register-error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  color: #fca5a5;
  font-size: 13px;
}

.register-plan-note {
  background: rgba(41, 182, 246, .08);
  border: 1px solid rgba(41, 182, 246, .2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  color: #90caf9;
  font-size: 13px;
  font-weight: 300;
}

@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    display: none;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-main {
    padding: 22px 18px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 13px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .plans {
    padding: 0 12px;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

  .nav-logo-img {
    width: 120px;
  }
}

/* ============================================================
   RESPONSIVE ADDITIONS — append to app.css
   ============================================================ */

/* ── Hamburger button ─────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background .15s;
  z-index: 200;
}

.nav-hamburger:hover {
  background: rgba(13, 32, 64, .06);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav overlay ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    flex-direction: column;
    gap: 4px;
    z-index: 150;
    box-shadow: 0 8px 24px rgba(13, 32, 64, .1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 15px;
    padding: 10px 14px;
    border-radius: 9px;
    color: var(--navy);
  }

  .nav-links .nav-cta {
    margin-top: 6px;
    text-align: center;
    background: var(--navy);
    color: #fff;
  }

  .nav-links .nav-cta:hover {
    background: var(--navy2);
    color: #fff;
  }
}

/* ── Hero ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    padding: 64px 20px 52px;
  }

  .hero h1 {
    letter-spacing: -1px;
    font-size: clamp(30px, 9vw, 52px);
  }

  .hero p {
    font-size: 15px;
  }

  .hero-meta {
    gap: 14px;
    font-size: 12px;
  }

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

  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* ── Demo window ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .demo-section {
    padding: 20px 16px 52px;
  }

  .demo-body {
    padding: 16px;
  }

  .demo-toolbar {
    gap: 3px;
  }

  .demo-tb-btn {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
}

/* ── Features grid ────────────────────────────────────────── */
@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features {
    padding: 60px 0;
  }
}

/* ── Stats bar ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stat-num {
    font-size: 32px;
  }
}

@media (max-width: 380px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
}

/* ── Pricing plans ────────────────────────────────────────── */
@media (max-width: 640px) {
  .plans {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .pricing-hero {
    padding: 50px 16px 36px;
  }

  .pricing-hero h1 {
    font-size: clamp(28px, 8vw, 44px);
    letter-spacing: -1px;
  }
}

/* ── CTA section ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .cta-section {
    padding: 72px 20px;
  }

  .cta-section h2 {
    letter-spacing: -1px;
  }

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

  .cta-btns .btn-primary,
  .cta-btns .btn-ghost {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}

/* ── Dashboard nav ────────────────────────────────────────── */
@media (max-width: 640px) {
  .dash-nav {
    padding: 0 16px;
  }

  .dash-nav-user {
    display: none;
  }
}

/* ── Dashboard layout ─────────────────────────────────────── */
@media (max-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-main {
    padding: 22px 18px;
  }
}

/* ── Mobile sidebar drawer (opt-in, no JS needed) ─────────── */
@media (max-width: 900px) {
  .dash-sidebar.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 58px 0 0 0;
    z-index: 300;
    background: var(--white);
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    box-shadow: 0 8px 24px rgba(13, 32, 64, .12);
    overflow-y: auto;
  }
}

/* ── Stats row (dashboard) ────────────────────────────────── */
@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

/* ── License cards ────────────────────────────────────────── */
@media (max-width: 540px) {
  .license-header {
    flex-direction: column;
    gap: 6px;
  }

  .license-header-date {
    align-self: flex-start;
  }

  .license-actions {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    text-align: center;
  }

  .dash-main {
    padding: 18px 14px;
  }
}

/* ── Create form ──────────────────────────────────────────── */
@media (max-width: 540px) {
  .form-actions {
    flex-direction: column;
  }

  .btn-create,
  .btn-cancel {
    width: 100%;
    text-align: center;
  }
}

/* ── Auth / Register cards ────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .register-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .register-wrap {
    padding: 0 4px;
  }
}

/* ── Footer ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* ── Integration hint ─────────────────────────────────────── */
@media (max-width: 540px) {
  .integration-hint-code {
    font-size: 11px;
    word-break: break-all;
  }
}

/* ── Code block (home page) ───────────────────────────────── */
@media (max-width: 640px) {
  .code-block {
    font-size: 11.5px;
    padding: 18px 14px;
  }
}

/* ── Section head (dashboard) ─────────────────────────────── */
@media (max-width: 480px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ── Key reveal ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .key-reveal code {
    font-size: 11px;
  }
}

/* ── FAQ ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .faq {
    padding: 0 14px;
  }

  .faq-title {
    font-size: 24px;
  }
}