/* Designer-owned Korvo homepage styles (no shared app CSS) */

/* Universal box-sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reset browser defaults for standalone page */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background-color: #020617;
}

/* Neutralize Next.js/global styling within this page, but keep room for nuance */
.kp-root {
  color: #e5e7eb !important;
}

/* Override Next.js global text colors for all elements within .kp-root */
.kp-root p,
.kp-root h1,
.kp-root h2,
.kp-root h3,
.kp-root h4,
.kp-root h5,
.kp-root h6,
.kp-root span,
.kp-root div,
.kp-root a:not(.kp-nav-cta):not(.kp-btn),
.kp-root li,
.kp-root td,
.kp-root th {
  color: #e5e7eb !important;
}

/* Ensure headings are bright and visible */
.kp-root h1,
.kp-root h2,
.kp-root h3,
.kp-root h4,
.kp-root h5,
.kp-root h6 {
  color: #f9fafb !important;
}

/* Hide app chrome (TopBar + footer) so this behaves like a static standalone page when rendered in the app shell */
.korvo-topbar,
body > div.fixed.bottom-0.left-0.right-0.z-10 {
  display: none !important;
}

/* Remove layout padding added for topbar/footer on this page */
body > main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  min-height: auto !important;
  height: auto !important;
}

/* Ensure all wrapper divs are transparent and don't create extra space */
body > div,
#__next,
#__next > div {
  background: transparent !important;
  min-height: auto !important;
  height: auto !important;
}

/* Ensure no element creates a dark bar below content */
body > *:not(.kp-root) {
  background: transparent !important;
  min-height: auto !important;
  height: auto !important;
}

.kp-root {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 2.5rem 1.5rem 0;
  min-height: 100vh;
  color: #f9fafb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #020617 100%);
  overflow: hidden;
  box-sizing: border-box;
}

.kp-orbit {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% 0%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(129, 140, 248, 0.18), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.kp-header,
.kp-main,
.kp-footer {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
}

.kp-header {
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  color: #ffffff;
}

.kp-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.kp-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 0, #22c55e, #0f172a 65%);
  font-weight: 700;
  font-size: 0.9rem;
}

.kp-logo-title {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kp-logo-sub {
  font-size: 0.72rem;
  color: #ffffff;
}

.kp-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.82rem;
}

.kp-nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.25rem 0.1rem;
}

.kp-nav-link:hover {
  color: #e5e7eb;
}

.kp-nav-cta {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  text-decoration: none;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

.kp-nav-cta:hover {
  background: rgba(15, 23, 42, 1);
}

.kp-main {
  padding-inline: 1.5rem;
  margin-bottom: 2.75rem;
}

.kp-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.25rem;
  align-items: stretch;
}

.kp-hero-text {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.96);
  padding: 1.2rem 1.3rem 1.1rem;
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.kp-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.kp-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.kp-hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 3.4vw + 1rem, 2.9rem);
  line-height: 1.1;
  font-weight: 700;
  color: #f9fafb !important;
}

.kp-hero-title span {
  color: #4ade80;
}

.kp-hero-lead {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  max-width: 30rem;
  color: #f9fafb !important;
}

.kp-hero-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.kp-btn {
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 0.5rem 1.15rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.kp-btn-primary {
  background: #22c55e;
  color: #052e16;
  border-color: #22c55e;
  box-shadow: 0 18px 35px rgba(22, 163, 74, 0.55);
}

.kp-btn-primary:hover {
  background: #16a34a;
  border-color: #16a34a;
}

.kp-btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.6);
}

.kp-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.kp-hero-note {
  font-size: 0.75rem;
  color: #ffffff;
}

.kp-hero-panel {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.14), #020617 55%);
  padding: 1rem 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: #e5e7eb;
}

.kp-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.kp-pill,
.kp-pill-secondary {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.72rem;
}

.kp-pill {
  background: rgba(15, 23, 42, 0.95);
}

.kp-pill-secondary {
  background: rgba(15, 23, 42, 0.8);
  color: #9ca3af;
}

.kp-panel-body {
  margin-top: 0.3rem;
  padding: 0.6rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(30, 64, 175, 0.5);
  font-size: 0.78rem;
}

.kp-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.kp-pill-chip {
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.7rem;
}

.kp-pill-chip-green {
  background: rgba(22, 163, 74, 0.15);
  color: #bbf7d0;
}

.kp-pill-chip-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
}

.kp-pill-chip-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #e9d5ff;
}

.kp-panel-lines {
  border-radius: 0.6rem;
  border: 1px solid rgba(55, 65, 81, 0.8);
  padding: 0.55rem 0.6rem;
  background: rgba(15, 23, 42, 0.9);
}

.kp-line {
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.kp-line-strong {
  font-weight: 500;
  color: #e5e7eb;
}

.kp-line-fade {
  opacity: 0.7;
}

.kp-panel-footer {
  display: flex;
  gap: 0.9rem;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.kp-metric-label {
  color: #ffffff;
}

.kp-metric-value {
  font-weight: 500;
}

.kp-metric-emph {
  color: #4ade80;
}

.kp-section {
  margin-top: 2.4rem;
  color: #e5e7eb;
}

.kp-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f9fafb !important;
  margin-bottom: 0.8rem;
}

.kp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  font-size: 0.8rem;
}

.kp-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.98);
  padding: 0.9rem 1rem 0.95rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.9);
}

.kp-card-icon {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.kp-card-icon-green {
  color: #4ade80;
}

.kp-card-icon-blue {
  color: #60a5fa;
}

.kp-card-icon-purple {
  color: #c4b5fd;
}

.kp-card-title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #f9fafb !important;
}

.kp-card-text {
  margin: 0;
  font-size: 0.95rem;
  color: #d1d5db !important;
}

.kp-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: #e5e7eb;
}

.kp-footer a {
  color: inherit;
  text-decoration: none;
}

.kp-footer a:hover {
  text-decoration: underline;
}

/* Watermark for sample content */
.kp-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 9999;
  pointer-events: none;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  user-select: none;
}

@media (max-width: 900px) {
  .kp-hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .kp-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .kp-header,
  .kp-main,
  .kp-footer {
    padding-inline: 1.25rem;
  }
  .kp-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .kp-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}