/* Kenmeet UI Home CSS integration */
:root {
  --azure: #3B82F6;
  --azure-dim: #2563EB;
  --cyan: #7DD3FC;
  --radius: 16px;
  --ff-display: 'Space Grotesk', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ff-mono: 'JetBrains Mono', monospace;
}

body.dark-theme, html[data-theme="dark"] {
  --bg-0: #0A1526;
  --bg-1: #0F2444;
  --bg-2: #132C52;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(148, 180, 255, 0.14);
  --text-0: #F3F7FF;
  --text-1: #B9C7E6;
  --text-2: #7C8CB0;
  --glow: rgba(59, 130, 246, 0.35);
}

body:not(.dark-theme), html[data-theme="light"] {
  --bg-0: #EEF4FF;
  --bg-1: #DCE9FF;
  --bg-2: #CFE0FF;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-strong: rgba(255, 255, 255, 0.85);
  --border: rgba(37, 99, 235, 0.14);
  --text-0: #0B1830;
  --text-1: #3B4B6B;
  --text-2: #647089;
  --glow: rgba(59, 130, 246, 0.18);
}

body {
  font-family: var(--ff-body);
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, var(--bg-0)) !important;
  color: var(--text-0) !important;
  overflow-x: hidden;
  transition: background .5s ease, color .4s ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .76;
  filter: saturate(1.3) brightness(1.05);
}

body:not(.dark-theme) .hero-bg video {
  opacity: .80;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 20%, var(--glow), transparent 60%),
              linear-gradient(180deg, transparent, var(--bg-0) 95%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  background: var(--surface);
}

.eyebrow .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(125, 211, 252, .6);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(125, 211, 252, 0);
  }
}

h1.tagline {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-0);
}

h1.tagline .grad {
  background: linear-gradient(100deg, var(--azure), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-1);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 36px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats .num {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-0);
}

.hero-stats .lbl {
  font-size: .8rem;
  color: var(--text-2);
}

/* meeting panel */
.meet-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(20px);
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(10, 20, 40, .5);
}

.meet-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.meet-tab {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  color: var(--text-1);
  transition: all .25s ease;
}

.meet-tab.active {
  background: linear-gradient(135deg, var(--azure), var(--azure-dim));
  color: #fff;
}

.meet-tab:not(.active):hover {
  background: var(--surface-strong);
}

.meet-body {
  min-height: 210px;
}

.pane {
  display: none;
}

.pane.active {
  display: block;
}

.video-card {
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 18px;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: .75;
}

.video-card .play {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: transform .25s ease;
  color: #fff;
}

.video-card:hover .play {
  transform: scale(1.1);
}

.video-card .demo-label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: .04em;
}

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

.code-input {
  flex: 1;
  font-family: var(--ff-mono);
  letter-spacing: .12em;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-0);
  color: var(--text-0);
  outline: none;
  transition: border-color .2s ease;
}

.code-input:focus {
  border-color: var(--azure);
}

.full-btn {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  font-size: .95rem;
  border-radius: 10px;
}

/* ---------- SECTION SHARED ---------- */
section {
  position: relative;
  padding: 130px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: var(--ff-mono);
  font-size: .78rem;
  color: var(--azure);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-0);
}

.section-desc {
  color: var(--text-1);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- FEATURE CAROUSEL ---------- */
.carousel-wrap {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 28px 4px;
  cursor: grab;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.dragging {
  cursor: grabbing;
}

.feat-card {
  scroll-snap-align: start;
  flex: 0 0 300px;
  min-height: 260px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  user-select: none;
}

.feat-card:hover {
  transform: translateY(-8px);
  border-color: var(--azure);
  box-shadow: 0 24px 44px -18px var(--glow);
}

.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: auto;
  background: linear-gradient(135deg, var(--azure), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

.feat-card h3 {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  margin: 20px 0 10px;
  font-weight: 600;
  color: var(--text-0);
}

.feat-card p {
  color: var(--text-1);
  font-size: .92rem;
  line-height: 1.55;
}

.carousel-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: -6px;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-0);
  transition: background .2s ease, transform .2s ease;
  cursor: pointer;
}

.nav-btn:hover {
  background: var(--surface-strong);
  transform: scale(1.05);
}

/* ---------- COPILOT ---------- */
.copilot-section {
  background: linear-gradient(145deg, var(--bg-1), var(--bg-2));
  border-radius: 32px;
  margin: 0;
  padding: 80px;
  overflow: hidden;
  position: relative;
}

.copilot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.copilot-video {
  aspect-ratio: 4/3;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--bg-0), var(--bg-1));
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.copilot-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
  position: absolute;
  inset: 0;
}

.copilot-video .play {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  color: #fff;
}

.copilot-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.copilot-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-1);
  font-size: .95rem;
  list-style: none;
}

.copilot-list li::before {
  content: '';
  min-width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  margin-top: 7px;
  transform: rotate(45deg);
}

/* ---------- PLANS ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.plan-card {
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--azure);
}

.plan-card.featured {
  background: linear-gradient(160deg, var(--azure-dim), var(--bg-1));
  border-color: var(--azure);
}

.plan-tag {
  font-family: var(--ff-mono);
  font-size: .72rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}

.plan-card.featured .plan-tag {
  color: var(--cyan);
}

.plan-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-0);
}

.plan-card.featured .plan-title {
  color: #fff;
}

.plan-use {
  color: var(--text-1);
  font-size: .88rem;
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}

.plan-card.featured .plan-use {
  color: #DCE9FF;
}

/* ---------- CTA ---------- */
.cta-section {
  text-align: center;
  padding: 160px 0;
}

.cta-section h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  max-width: 760px;
  margin: 0 auto 18px;
}

.cta-section p {
  color: var(--text-1);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta-actions .btn {
  padding: 16px 34px;
  font-size: 1rem;
}

/* Custom UI adjustments for Laravel */
.application-header {
  border-bottom: 1px solid var(--border) !important;
}

body.dark-theme .application-header {
  background: rgba(10, 21, 38, 0.75) !important;
}

body:not(.dark-theme) .application-header {
  background: rgba(238, 244, 255, 0.75) !important;
}

@media(max-width:960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .copilot-grid {
    grid-template-columns: 1fr;
  }
  .copilot-section {
    padding: 50px 28px;
  }
  .container {
    padding: 0 22px;
  }
}

@media(max-width:576px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- TRUST ---------- */
.trust-marquee{display:flex;flex-direction:column;gap:18px;overflow:hidden;}
.trust-row{
  display:flex;gap:16px;width:max-content;
  animation:trust-scroll 32s linear infinite;
}
.trust-row.reverse{animation-direction:reverse;}
.trust-tag{
  font-family:var(--ff-mono);font-size:.92rem;color:var(--text-1);
  border:1px solid var(--border);padding:12px 22px;border-radius:100px;background:var(--surface);
  white-space:nowrap;flex:0 0 auto;
}
@keyframes trust-scroll{
  0%{transform:translateX(0);}
  100%{transform:translateX(-50%);}
}
.trust-marquee:hover .trust-row{animation-play-state:paused;}
@media(prefers-reduced-motion:reduce){
  .trust-row{animation:none;}
}

/* ---------- SECURITY ---------- */
.security-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;}
.security-list{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.security-list li{display:flex;gap:12px;align-items:flex-start;color:var(--text-1);font-size:.95rem;list-style:none;}
.security-list li::before{content:'';min-width:8px;height:8px;border-radius:2px;background:var(--azure);margin-top:7px;transform:rotate(45deg);}
.security-note{color:var(--text-1);font-size:1rem;line-height:1.6;margin-top:28px;}

/* ---------- USE CASES ---------- */
.usecase-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.usecase-card{
  border-radius:20px;background:var(--surface);border:1px solid var(--border);padding:30px 26px;
  transition:transform .3s ease,border-color .3s ease;
}
.usecase-card:hover{transform:translateY(-6px);border-color:var(--azure);}
.usecase-card h3{font-family:var(--ff-display);font-size:1.1rem;font-weight:600;margin-bottom:10px;}
.usecase-card p{color:var(--text-1);font-size:.92rem;line-height:1.55;}

/* ---------- FAQ ---------- */
.faq-list{display:flex;flex-direction:column;gap:14px;max-width:800px;margin: 0 auto;}
.faq-item{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:22px 26px;margin-bottom:12px;}
.faq-item summary{cursor:pointer;font-family:var(--ff-display);font-weight:600;font-size:1rem;list-style:none;display:flex;justify-content:space-between;align-items:center;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:'+';font-size:1.3rem;color:var(--azure);transition:transform .25s ease;}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item p{color:var(--text-1);font-size:.92rem;line-height:1.6;margin-top:14px;}

@media(max-width:960px){
  .security-grid{grid-template-columns:1fr;}
  .security-list{grid-template-columns:1fr;}
  .usecase-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:640px){
  .usecase-grid{grid-template-columns:1fr;}
}
