/* ==========================================================================
   KINIAK OU - Modern Headless POS Theme Stylesheet
   Designed with Kiniak.com design guidelines (Front CSS & Custom Enhancements)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --primary: #377dff;
  --primary-hover: #1e62e6;
  --primary-rgb: 55, 125, 255;
  --secondary: #77838f;
  --success: #00c9a7;
  --warning: #ffc107;
  --danger: #de4437;
  --navy: #132144;
  --navy-dark: #0b1329;
  --navy-light: #1e2d56;
  --dark: #1e2022;
  --light: #f7faff;
  --border-color: #e7eaf3;
  --text-muted: #677788;
  --text-dark: #1e2022;
  --card-shadow: 0 0.5rem 1.5rem rgba(140, 152, 164, 0.125);
  --card-shadow-hover: 0 1rem 2.5rem rgba(140, 152, 164, 0.2);
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-monospace: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   General & Reset
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-dark);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.display-3 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.display-4 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .display-3 { font-size: 2.25rem; }
  .display-4 { font-size: 2rem; }
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: #4a5568;
}

.lead {
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

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

/* --------------------------------------------------------------------------
   Container & Layout Utility
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1140px;
}

.container-fluid {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
  margin-right: auto;
  margin-left: auto;
}

.space-1 { padding-top: 2rem; padding-bottom: 2rem; }
.space-2 { padding-top: 4rem; padding-bottom: 4rem; }
.space-3 { padding-top: 6rem; padding-bottom: 6rem; }
.space-top-1 { padding-top: 2rem; }
.space-top-2 { padding-top: 4rem; }
.space-top-3 { padding-top: 6rem; }
.space-bottom-1 { padding-bottom: 2rem; }
.space-bottom-2 { padding-bottom: 4rem; }
.space-bottom-3 { padding-bottom: 6rem; }

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border-radius: 0.45rem;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-primary {
  color: #fff !important;
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 11px rgba(55, 125, 255, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(55, 125, 255, 0.45);
}

.btn-outline-primary {
  color: var(--primary);
  background-color: transparent;
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  color: #fff !important;
  background-color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  color: var(--navy) !important;
  background-color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.btn-soft-primary {
  color: var(--primary);
  background-color: rgba(55, 125, 255, 0.1);
  border-color: transparent;
}

.btn-soft-primary:hover {
  background-color: var(--primary);
  color: #ffffff !important;
}

.transition-3d-hover {
  transition: all 0.25s ease;
}

.transition-3d-hover:hover {
  transform: translateY(-3px);
}

.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-pill {
  padding-right: 0.75em;
  padding-left: 0.75em;
  border-radius: 10rem;
}

.badge-primary {
  color: #fff;
  background-color: var(--primary);
}

.badge-soft-primary {
  color: var(--primary);
  background-color: rgba(55, 125, 255, 0.12);
}

.badge-soft-success {
  color: var(--success);
  background-color: rgba(0, 201, 167, 0.12);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 1020;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 234, 243, 0.7);
  transition: all 0.3s ease;
}

.header-scrolled {
  box-shadow: 0 4px 20px rgba(19, 33, 68, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
}

.navbar-brand img {
  height: 38px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 0.35rem;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background-color: rgba(55, 125, 255, 0.06);
}

.navbar-toggler {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: 0.35rem;
  cursor: pointer;
  color: var(--navy);
  font-size: 1.2rem;
}

@media (max-width: 991px) {
  .navbar-toggler {
    display: block;
  }

  .navbar-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
  }

  .navbar-collapse.show {
    display: block;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 0.6rem 1rem;
  }

  .nav-btn-wrapper {
    margin-top: 1rem;
    width: 100%;
  }

  .nav-btn-wrapper .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Hero Section & Gradients
   -------------------------------------------------------------------------- */
.gradient-y-gray {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.gradient-y-navy {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: #ffffff;
}

.hero-content {
  padding: 4rem 0 3rem;
}

.hero-device-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.floating-badge {
  position: absolute;
  background: #ffffff;
  padding: 0.65rem 1.1rem;
  border-radius: 50rem;
  box-shadow: 0 10px 30px rgba(19, 33, 68, 0.15);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
  animation: floatUpDown 4s ease-in-out infinite alternate;
}

.floating-badge-1 {
  top: 15%;
  left: -20px;
}

.floating-badge-2 {
  bottom: 20%;
  right: -20px;
  animation-delay: 2s;
}

@keyframes floatUpDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   Cards, Features & Grid
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--card-shadow-hover);
}

.card-body {
  flex: 1 1 auto;
  padding: 2rem;
}

.feature-box {
  padding: 2rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  height: 100%;
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(55, 125, 255, 0.12);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.icon-circle.primary {
  background: rgba(55, 125, 255, 0.12);
  color: var(--primary);
}

.icon-circle.success {
  background: rgba(0, 201, 167, 0.12);
  color: var(--success);
}

.icon-circle.warning {
  background: rgba(255, 193, 7, 0.12);
  color: var(--warning);
}

.icon-circle.danger {
  background: rgba(222, 68, 55, 0.12);
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Step Dashed Process List
   -------------------------------------------------------------------------- */
.step {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.step-item {
  position: relative;
  padding-bottom: 2rem;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  left: 17px;
  width: 2px;
  height: calc(100% - 36px);
  border-left: 2px dashed #cbd5e1;
}

.step-content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--soft-primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  z-index: 2;
}

.step-content h3, .step-content h4 {
  margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   Code Example Box (IDE Style)
   -------------------------------------------------------------------------- */
.code-editor-box {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid #334155;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid #334155;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.code-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-tab-btn.active,
.code-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.code-body {
  padding: 1.5rem;
  font-family: var(--font-family-monospace);
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: auto;
}

.code-comment { color: #64748b; }
.code-keyword { color: #f43f5e; font-weight: 600; }
.code-string { color: #34d399; }
.code-function { color: #38bdf8; }
.code-var { color: #fbbf24; }

.code-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Stats & Circle Progress
   -------------------------------------------------------------------------- */
.stat-circle-card {
  text-align: center;
  padding: 2rem 1rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat-circle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Testimonial Box
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: #f8fafd;
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  border: 1px solid var(--border-color);
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Contact Form & Inputs
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.5;
  color: #1e293b;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(55, 125, 255, 0.2);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-dark);
  color: #ffffff;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.footer h5 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.footer-contact-item i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 3rem 0 2rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(19, 33, 68, 0.25);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
  animation: slideUp 0.4s ease-out forwards;
}

.cookie-banner.show {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Back to Top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(55, 125, 255, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Legal & Static Pages
   -------------------------------------------------------------------------- */
.legal-content {
  line-height: 1.8;
  color: #334155;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-sidebar {
  position: sticky;
  top: 90px;
  background: #f8fafd;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.legal-sidebar a {
  display: block;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-sidebar a:hover,
.legal-sidebar a.active {
  color: var(--primary);
  font-weight: 600;
}
