/* KAI Website Design System (Derived from index1.html & Lead Magnet Squeeze Page) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --navy: #0A2F49;
  --navy-deep: #071f33;
  --blue: #0770A7;
  --mid: #1E87BB;
  --lightblue: #3D9FCC;
  --rose: #6E1338;
  --rose-deep: #4A0D26;
  --rose-accent: #C94770;
  --teal: #2F6F6B;
  --ink: #0A2F49;
  --muted: #5F6B76;
  --line: #E5E7EB;
  --blue-soft: #E6F1FB;
  --rose-soft: #FBEAF0;
  --brass: #C9A227;
  --brass-bright: #E0BC4A;
  
  --shadow-sm: 0 2px 10px rgba(10, 47, 73, 0.06);
  --shadow-md: 0 10px 32px rgba(10, 47, 73, 0.10);
  --shadow-lg: 0 24px 60px rgba(7, 31, 51, 0.28);
  
  --shimmer: linear-gradient(100deg, #EAE0C4 0%, #FFFCF3 22%, #EAE0C4 45%, #FFFCF3 68%, #EAE0C4 100%);
  --transition-fast: 0.18s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Sticky Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(10, 47, 73, 0.07);
  padding: 14px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.brand-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.brand-logo-bg {
  display: inline-block;
  width: 105px;
  height: 28px;
  background-image: url('../kai_logo_blue.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  text-decoration: none;
}

.footer .brand-logo img {
  height: 26px;
  filter: brightness(0) invert(1);
}

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

.nav-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--blue);
}

/* Buttons */
.btn-primary, .nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  background: var(--shimmer);
  background-size: 300% 100%;
  animation: shimmerSweep 3.2s linear infinite;
  color: var(--navy);
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 26px rgba(10, 47, 73, 0.18);
}

.btn-primary:hover, .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(7, 112, 167, 0.35);
}

.btn-secondary {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: linear-gradient(100deg, #FFFFFF 0%, #F1F5F9 25%, #FFFFFF 50%, #F1F5F9 75%, #FFFFFF 100%);
  background-size: 300% 100%;
  animation: shimmerSweep 3.6s linear infinite;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  transition: gap .18s ease;
}

.btn-ghost:hover {
  opacity: 0.9;
}

/* Hero Section */
.hero {
  position: relative;
  isolation: isolate;
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(620px 320px at 14% -6%, rgba(173, 20, 87, .28), transparent 60%),
    radial-gradient(680px 420px at 92% 12%, rgba(30, 135, 187, .30), transparent 62%),
    linear-gradient(165deg, var(--navy-deep), var(--navy) 55%, var(--blue) 130%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
}

/* Standout Eyebrows & Section Badges */
.eyebrow, .section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(7, 112, 167, 0.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(7, 112, 167, 0.08);
}

.hero .eyebrow {
  color: #FFFFFF;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  max-width: 750px;
  margin: 0 auto 20px;
}

.hero h1 .accent {
  color: var(--rose-accent);
  background: linear-gradient(100deg, #C94770, #E0A0B8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 17px;
  color: rgba(255, 255, 255, .78);
  max-width: 580px;
  margin: 0 auto 34px;
}

.hero .btn-secondary {
  background: linear-gradient(100deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.30) 25%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.30) 75%, rgba(255,255,255,0.14) 100%);
  background-size: 300% 100%;
  animation: shimmerSweep 3.6s linear infinite;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero .btn-secondary:hover {
  border-color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Curved Band Transition */
.band {
  position: relative;
  background: #F8FAFC;
  border-top: 0.5px solid #E5E7EB;
  border-bottom: 0.5px solid #E5E7EB;
  margin-top: -40px;
  border-radius: 32px 32px 0 0;
  z-index: 2;
}

/* Benefit List */
.benefit-list {
  list-style: none;
  margin-top: 24px;
}

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.benefit-icon {
  width: 28px;
  height: 28px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.benefit-list h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.benefit-list p {
  font-size: 13.5px;
  color: var(--muted);
}

/* Interactive AI Risk Analyzer */
.ai-analyzer {
  margin-top: 36px;
  padding: 24px;
  background: linear-gradient(160deg, #071f33, #0A2F49);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}

.ai-analyzer h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.ai-analyzer p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
}

.ai-analyzer textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  margin-bottom: 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.ai-analyzer textarea:focus {
  border-color: var(--teal);
}

.ai-analyzer button {
  background: var(--teal);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.ai-analyzer button:hover {
  background: #245A56;
}

.ai-analyzer button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ai-result {
  margin-top: 16px;
  font-size: 14px;
  color: var(--brass-bright);
  display: none;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: 6px;
}

/* Section Styling */
.section {
  padding: 64px 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  max-width: 600px;
  margin: 0 auto 12px;
  color: var(--navy);
}

.section .sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.chip, .acard, .glass-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  background: linear-gradient(160deg, #E3EFF8, #C9DEF0);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.chip:hover, .acard:hover, .glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d9e8f0;
}

/* Roadblock / Problem Cards */
.roadblock-card {
  border: 1px solid #E3A9BE;
  border-radius: 16px;
  padding: 26px 22px;
  background: linear-gradient(160deg, #FDF2F4, #FCE7EB);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.roadblock-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--rose);
}

.roadblock-card .cicon {
  background: #FFFFFF;
  color: var(--rose);
  border: 1px solid #E3A9BE;
  box-shadow: var(--shadow-sm);
}

.roadblock-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--navy);
}

.roadblock-card .roadblock-sub {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--rose);
}

.roadblock-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.chip.hot, .acard.moat {
  background: linear-gradient(165deg, var(--navy), var(--navy-deep));
  border-color: var(--navy);
  box-shadow: 0 14px 34px rgba(7, 31, 51, .3);
  color: #FFFFFF;
}

.chip.hot h3, .chip.hot p, .acard.moat h3, .acard.moat p {
  color: #FFFFFF;
}

.chip.hot p, .acard.moat p {
  color: rgba(255, 255, 255, .75);
}

.cicon, .aicon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--rose);
  font-size: 22px;
  font-weight: 700;
}

.chip.hot .cicon, .acard.moat .aicon {
  background: rgba(255, 255, 255, .12);
  color: #e0a0b8;
}

.chip h3, .acard h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--navy);
}

.chip p, .acard p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 112, 167, 0.15);
}

/* Footer */
.footer {
  background: var(--navy);
  padding: 32px 24px;
  margin-top: auto;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), var(--rose)) 1;
  border-image-slice: 1;
  color: #FFFFFF;
}

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

.footer-text {
  color: #C9D6E0;
  font-size: 12px;
}

/* Keyframes */
@keyframes shimmerSweep {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* Media Queries */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}
