@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,800;1,900&display=swap');

:root {
  --ac: #0ea5e9;
  --ac-dark: #0284c7;
  --ac-lite: #e0f5ff;
  --ac-soft: rgba(14,165,233,0.08);
  --tx: #0c1a2e;
  --tx2: #4d6d8a;
  --tx3: #9bbcd4;
  --ln: #d4eaf7;
  --ln2: #e8f4fc;
  --bg: #f0f8ff;
  --bg2: #ffffff;
  --bg3: #e6f4fd;
  --success: #16a34a;
  --success-lite: #edfcf2;
  --warning: #d97706;
  --warning-lite: #fef9ee;
  --danger: #dc2626;
  --danger-lite: #fef2f2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(14,165,233,0.08);
  --shadow-md: 0 4px 16px rgba(14,165,233,0.12);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ln);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 32px;
}

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--tx);
  letter-spacing: -0.3px;
}

.logo-text em {
  color: var(--ac);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--tx2);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ac); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--ac);
  color: #fff;
}
.btn-primary:hover { background: var(--ac-dark); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--tx2);
  border: 1.5px solid var(--ln);
}
.btn-ghost:hover { background: var(--bg); color: var(--tx); border-color: var(--ac); }

.btn-outline {
  background: transparent;
  color: var(--ac);
  border: 1.5px solid var(--ac);
}
.btn-outline:hover { background: var(--ac-lite); }

.btn-sm {
  font-size: 12px;
  padding: 7px 16px;
}

.btn-lg {
  font-size: 15px;
  padding: 13px 28px;
}

.btn-square {
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 9px;
  border-radius: var(--radius-md);
}

/* ── Cards ── */
.card {
  background: var(--bg2);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.card-sm { border-radius: var(--radius-md); padding: 14px; }
.card-lg { border-radius: var(--radius-xl); padding: 28px; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.badge-blue { background: var(--ac-lite); color: var(--ac-dark); }
.badge-green { background: var(--success-lite); color: var(--success); }
.badge-amber { background: var(--warning-lite); color: var(--warning); }
.badge-red { background: var(--danger-lite); color: var(--danger); }

/* ── Form elements ── */
.input {
  width: 100%;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--tx);
  background: var(--bg2);
  border: 1.5px solid var(--ln);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.18s;
}

.input:focus { border-color: var(--ac); }
.input::placeholder { color: var(--tx3); }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--tx3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.input-row {
  display: flex;
  gap: 8px;
}

.input-row .input { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-row .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* ── Section layout ── */
.section {
  padding: 72px 32px;
}

.section-sm { padding: 40px 32px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--ac);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: var(--tx);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

h1 { font-size: clamp(36px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

h1 em, h2 em { color: var(--ac); font-style: italic; }

p { color: var(--tx2); font-weight: 400; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Tabs ── */
.tabs-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--ln);
  background: transparent;
  color: var(--tx3);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.tab-btn:hover { border-color: var(--ac); color: var(--ac); }
.tab-btn.active { background: var(--ac); color: #fff; border-color: var(--ac); }
.tab-btn.ai { color: var(--ac); border-color: rgba(14,165,233,0.3); background: var(--ac-lite); }
.tab-btn.ai.active { background: var(--ac); color: #fff; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--tx);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  z-index: 9999;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ── Footer ── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--ln);
  padding: 40px 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--tx3);
  margin-top: 10px;
  line-height: 1.7;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--tx);
  margin-bottom: 14px;
  letter-spacing: -0.2px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col ul a {
  font-size: 13px;
  color: var(--tx3);
  font-weight: 500;
  transition: color 0.18s;
}

.footer-col ul a:hover { color: var(--ac); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid var(--ln);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--tx3);
}

/* ── Utility ── */
.text-ac { color: var(--ac); }
.text-muted { color: var(--tx2); }
.text-hint { color: var(--tx3); }
.text-center { text-align: center; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── Spinner ── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cursor blink ── */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--ac);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-links { display: none; }
  .section { padding: 48px 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
