:root {
  /* brand */
  --color-brand: #186CF6;
  --color-brand-dark: #0052cc;
  --color-brand-700: #1557c7;

  /* neutrals */
  --color-text-900: rgba(0, 0, 0, 0.90);
  --color-text-600: rgba(0, 0, 0, 0.60);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-surface: #ffffff;

  /* radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px; /* ~ rounded-xl */
  --radius-2xl: 16px;
  --radius-3xl: 24px;

  /* shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 10px rgba(24, 108, 246, 0.15);
  --shadow-lg: 0 10px 24px rgba(24, 108, 246, 0.30);

  /* spacing */
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* typography */
  --fs-56: 56px;
  --fs-40: 40px;
  --fs-36: 36px;
  --fs-20: 20px;
  --fs-18: 18px;
  --fs-16: 16px;
  --fs-14: 14px;

  /* container widths */
  --container-7xl: 80rem; /* 1280px */
  --container-5xl: 64rem; /* 1024px */

  /* transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-150: 0.15s;
  --dur-300: 0.30s;

  /* blur */
  --blur-sm: 8px;
  --blur-xl: 24px;
  --blur-2xl: 40px;
  --blur-3xl: 64px;

  /* breakpoints */
  --bp-md: 768px;
  --bp-lg: 1024px;

  /* layout offsets */
  --header-offset: 80px; /* header height + safe space */
}

@layer reset, base, components, utilities;

/* RESET */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    color: var(--color-text-900);
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
  }
  img { max-width: 100%; display: block; }
}

/* BASE */
@layer base {
  .u-container {
    max-width: var(--container-7xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
  }

  .k-section {
    position: relative;
    padding: var(--sp-24) var(--sp-6);
  }

  .k-main { padding-top: var(--header-offset); }
  /* ensure content above background layers */
  .k-section > .u-container { position: relative; z-index: 1; }
}

/* UTILITIES (minimal) */
@layer utilities {
  .u-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .u-text-center { text-align: center; }
  .u-mx-auto { margin-left: auto; margin-right: auto; }
  .u-shadow-lg { box-shadow: var(--shadow-lg); }
  .k-icon { width: 20px; height: 20px; vertical-align: middle; }
  .k-icon--lg { width: 28px; height: 28px; }
  .k-icon--white { color: #ffffff; }
  .k-icon--trailing { margin-left: 8px; }
  /* unified background layer helper */
  .k-bg-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
}

/* COMPONENTS */
@layer components {
  /* Shared logo size */
  .k-logo { height: 48px; width: auto; display: block; }
  /* Header */
  .k-header {
    position: fixed; inset-inline: 0; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.90);
    -webkit-backdrop-filter: blur(var(--blur-xl));
    backdrop-filter: blur(var(--blur-xl));
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  }
  .k-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: var(--sp-4); padding-bottom: var(--sp-4); }

  .k-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--color-text-900); font-weight: 600; font-size: 18px; }
  .k-brand__logo {
    width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur-300) var(--ease), box-shadow var(--dur-300) var(--ease);
  }
  .k-brand:hover .k-brand__logo { transform: scale(1.05); box-shadow: var(--shadow-md); }

  /* Nav */
  .k-nav { display: flex; align-items: center; gap: 32px; }
  .k-nav__link { position: relative; color: var(--color-text-600); text-decoration: none; transition: color var(--dur-150) var(--ease); }
  .k-nav__link--active { color: var(--color-text-900); }
  .k-nav__link::after {
    content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--color-brand);
    transition: width var(--dur-300) var(--ease);
  }
  .k-nav__link:hover { color: var(--color-brand); }
  .k-nav__link:hover::after { width: 100%; }

  /* Button */
  .k-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap;
    padding: 12px 24px;
    text-decoration: none;
    transition: transform var(--dur-150) var(--ease), box-shadow var(--dur-150) var(--ease), background var(--dur-150) var(--ease);
  }
  .k-btn--primary { color: #ffffff; background: linear-gradient(90deg, var(--color-brand), var(--color-brand-dark)); box-shadow: var(--shadow-md); }
  .k-btn--primary:hover { background: linear-gradient(90deg, var(--color-brand-700), #003d99); box-shadow: var(--shadow-lg); transform: translateY(-1px); }

  /* Hero */
  .k-hero { padding-top: 0; padding-bottom: var(--sp-20); min-height: 700px; overflow: hidden; }
  .k-hero__content { position: relative; z-index: 10; max-width: 42rem; }
  .k-hero__content > * + * { margin-top: 32px; }
  .k-hero__image { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); height: 54%; pointer-events: none; z-index: 0; }
  .k-hero__title { color: var(--color-text-900); font-size: var(--fs-56); font-weight: 700; line-height: 1.2; }
  .k-hero__subtitle { color: var(--color-text-600); font-size: var(--fs-20); line-height: 1.6; }
  .k-gradient-text { background: linear-gradient(90deg, var(--color-brand), var(--color-brand-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .k-hero__features { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 24px; }
  .k-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: rgba(255,255,255,0.80); -webkit-backdrop-filter: blur(var(--blur-sm)); backdrop-filter: blur(var(--blur-sm));
    color: var(--color-text-900); border: 1px solid var(--color-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-300) var(--ease), transform var(--dur-300) var(--ease);
  }
  .k-chip:hover { box-shadow: var(--shadow-md); }
  .k-chip svg { width: 16px; height: 16px; color: var(--color-brand); }

  /* Hero 3D image component */
  hero-3d-image { display: block; }
  hero-3d-image > img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-2xl);
    box-shadow: 0 35px 70px rgba(24,108,246,0.30);
    filter: drop-shadow(0 25px 50px rgba(24,108,246,0.30));
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }

  /* Section common */
  .k-section--muted { background: linear-gradient(to bottom, #ffffff, #fafafa, #ffffff); overflow: hidden; }
  .k-section__heading { text-align: center; margin-bottom: var(--sp-16); }
  .k-section__title { color: var(--color-text-900); font-size: var(--fs-40); font-weight: 700; margin: 0 0 var(--sp-3) 0; }
  .k-gradient-line { width: 80px; height: 4px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--color-brand), transparent); border-radius: 2px; }

  /* Solutions */
  .k-solutions__heading { text-align: center; margin-bottom: var(--sp-20); }
  .k-solutions__desc { color: var(--color-text-600); font-size: var(--fs-18); }
  .k-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-16); align-items: center; }
  @media (min-width: 1024px) { .k-row { grid-template-columns: repeat(2, 1fr); } }

  .k-badge { display: inline-block; padding: 8px 16px; border-radius: 999px; background: linear-gradient(90deg, rgba(24,108,246,0.10), rgba(24,108,246,0.05)); color: var(--color-brand); font-size: var(--fs-14); font-weight: 600; }

  .k-info { display: flex; gap: 16px; padding: 16px; background: #ffffff; border-radius: var(--radius-lg); border: 1px solid var(--color-border); transition: box-shadow var(--dur-300) var(--ease), border-color var(--dur-300) var(--ease); }
  .k-info:hover { border-color: color-mix(in oklab, var(--color-brand) 30%, var(--color-border)); box-shadow: 0 12px 30px rgba(24,108,246,0.12); }
  .k-info__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark)); }
  .k-info__text { color: var(--color-text-600); font-size: var(--fs-16); line-height: 1.6; margin: 0; }

  .k-image-frame-wrapper { position: relative; }
  .k-image-glow { position: absolute; inset: -16px; background: radial-gradient(closest-side, rgba(24,108,246,0.20), transparent 70%); border-radius: 24px; filter: blur(40px); opacity: 0.8; }
  .k-image-glow { pointer-events: none; z-index: 0; }
  .k-image-frame { position: relative; background: linear-gradient(135deg, rgba(24,108,246,0.10), rgba(24,108,246,0.05)); border-radius: 20px; padding: 1px; box-shadow: 0 30px 80px rgba(24,108,246,0.20); }
  .k-image-frame > .k-image-inner { background: linear-gradient(135deg, rgba(24,108,246,0.10), rgba(255,255,255,1), rgba(24,108,246,0.05)); border-radius: 18px; padding: 1px; }
  .k-image-frame img { display: block; width: 100%; height: auto; border-radius: 16px; }

  /* Solutions-specific image tweaks */
  .k-solutions__content .k-image-frame { width: 80%; margin-left: auto; margin-right: auto; background: transparent; box-shadow: none; }
  .k-solutions__content .k-image-inner { background: transparent; }
  .k-solutions__content .k-image-glow { display: none; }

  /* AICommunity */
  .k-aic__heading { text-align: center; margin-bottom: var(--sp-20); }
  .k-aic__desc { color: var(--color-text-600); font-size: var(--fs-18); }
  .k-aic__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-16); align-items: center; }
  @media (min-width: 1024px) { .k-aic__grid { grid-template-columns: repeat(2, 1fr); } }
  .k-mini-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .k-mini-card { position: relative; padding: 24px; background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); text-align: center; overflow: hidden; transition: box-shadow var(--dur-300) var(--ease), border-color var(--dur-300) var(--ease); }
  .k-mini-card:hover { border-color: color-mix(in oklab, var(--color-brand) 30%, var(--color-border)); box-shadow: 0 16px 40px rgba(24,108,246,0.10); }
  .k-mini-card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin: 0 auto 12px auto; box-shadow: 0 6px 12px rgba(0,0,0,0.10); }
  .k-mini-card__title { color: var(--color-text-900); font-size: var(--fs-16); font-weight: 600; margin: 8px 0; }
  .k-mini-card__text { color: var(--color-text-600); font-size: var(--fs-14); line-height: 1.5; margin: 0; }

  /* AICommunity media cards (image top, text bottom) */
  .k-media-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
  @media (min-width: 1024px) { .k-media-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
  .k-media-card { background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--dur-300) var(--ease), border-color var(--dur-300) var(--ease); }
  .k-media-card:hover { border-color: color-mix(in oklab, var(--color-brand) 30%, var(--color-border)); box-shadow: 0 16px 40px rgba(24,108,246,0.10); }
  .k-media-card__img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
  .k-media-card__body { padding: 12px; padding-top: 8px;text-align: center; }
  .k-media-card__title { color: var(--color-text-900); font-size: var(--fs-18); font-weight: 600; margin: 8px 0; }
  .k-media-card__text { color: var(--color-text-600); font-size: var(--fs-14); line-height: 1.5; margin: 0; }

  /* CTA */
  .k-cta { position: relative; overflow: hidden; }
  .k-cta__card { position: relative; border-radius: 24px; padding: 48px; box-shadow: 0 40px 120px rgba(24,108,246,0.30); background: linear-gradient(135deg, var(--color-brand), var(--color-brand-700), var(--color-brand-dark)); }
  @media (min-width: 768px) { .k-cta__card { padding: 64px; } }
  .k-cta__heading { text-align: center; }
  .k-cta__title { color: #ffffff; font-size: var(--fs-40); font-weight: 700; margin: 0; }
  .k-cta__desc { color: rgba(255,255,255,0.90); font-size: var(--fs-18); line-height: 1.6; max-width: 42rem; margin: 0 auto; }
  .k-cta__stats { display: grid; grid-template-columns: 1fr; gap: 32px; padding-top: 48px; border-top: 1px solid rgba(255,255,255,0.20); }
  @media (min-width: 768px) { .k-cta__stats { grid-template-columns: repeat(3, 1fr); } }
  .k-cta__num { color: #ffffff; font-weight: 700; font-size: 32px; }
  .k-cta__label { color: rgba(255,255,255,0.80); }
  .k-cta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding-top: 16px; }
  .k-cta__btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: 2px solid rgba(255,255,255,0.80); color: #ffffff; background: transparent; border-radius: 8px; transition: background var(--dur-150) var(--ease), color var(--dur-150) var(--ease), border-color var(--dur-150) var(--ease); text-decoration: none; }
  .k-cta__btn-secondary:hover { background: #ffffff; color: var(--color-brand); border-color: #ffffff; }

  .k-cta__decor { position: absolute; border-radius: 999px; filter: blur(var(--blur-3xl)); background: rgba(255,255,255,0.10); }
  .k-cta__grid-decor { position: absolute; inset: 0; opacity: 0.03; background-image: linear-gradient(to right, #ffffff 1px, transparent 1px), linear-gradient(to bottom, #ffffff 1px, transparent 1px); background-size: 60px 60px; }
  .k-cta__decor, .k-cta__grid-decor { pointer-events: none; z-index: 0; }

  /* Footer */
  .k-footer { position: relative; overflow: hidden; background: linear-gradient(to bottom, #ffffff, #fafafa); border-top: 1px solid var(--color-border); padding: 64px 24px; }
  .k-footer__bubbles { position: absolute; inset: 0; z-index: -1; }
  .k-footer__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
  @media (min-width: 768px) { .k-footer__grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1024px) { .k-footer__grid { grid-template-columns: repeat(4, 1fr); } }
  .k-footer__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
  .k-footer__logo { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark)); box-shadow: var(--shadow-sm); }
  .k-footer__title { color: var(--color-text-900); font-size: 16px; font-weight: 600; margin: 0; }
  .k-footer__text { color: var(--color-text-600); line-height: 1.6; }
  .k-footer__links a { color: var(--color-text-600); text-decoration: none; transition: color var(--dur-150) var(--ease); }
  .k-footer__links a:hover { color: var(--color-brand); }
  .k-footer__qrcode { background: #ffffff; padding: 12px; border-radius: 12px; border: 1px solid var(--color-border); transition: box-shadow var(--dur-300) var(--ease), border-color var(--dur-300) var(--ease); }
  .k-footer__qrcode:hover { border-color: color-mix(in oklab, var(--color-brand) 30%, var(--color-border)); box-shadow: var(--shadow-md); }
  .k-footer__legal { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--color-border); text-align: center; color: var(--color-text-600); }

  /* Footer contact small icon badge */
  .k-footer__contact-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--color-brand);
    line-height: 0; /* avoid baseline offset */
    border: 0;
    padding: 0;
  }
  .k-footer__contact-icon .k-icon { width: 16px; height: 16px; color: #ffffff; }

  /* Decorative bubbles */
  .k-bubble { position: absolute; border-radius: 9999px; filter: blur(var(--blur-3xl)); background: rgba(24,108,246,0.05); pointer-events: none; z-index: 0; }

  /* Grid and cards for WhyChooseUs */
  .k-grid-why { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
  @media (min-width: 768px) { .k-grid-why { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1024px) { .k-grid-why { grid-template-columns: repeat(3, 1fr); } }

  .k-card { position: relative; padding: var(--sp-8); background: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); transition: box-shadow var(--dur-300) var(--ease), border-color var(--dur-300) var(--ease), transform var(--dur-300) var(--ease); overflow: hidden; height: 100%; }
  .k-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(24,108,246,0.06), transparent); opacity: 0; transition: opacity var(--dur-300) var(--ease); }
  .k-card:hover { border-color: color-mix(in oklab, var(--color-brand) 30%, var(--color-border)); box-shadow: 0 16px 40px rgba(24,108,246,0.10); }
  .k-card:hover::before { opacity: 1; }
  .k-card__icon { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark)); box-shadow: 0 10px 20px rgba(24,108,246,0.20); margin-bottom: 12px; transition: transform var(--dur-300) var(--ease); }
  .k-card:hover .k-card__icon { transform: scale(1.10); }
  .k-card__title { color: var(--color-text-900); font-size: var(--fs-20); font-weight: 600; margin: 0 0 8px 0; }
  .k-card__text { color: var(--color-text-600); line-height: 1.6; margin: 0; }
}

@media (min-width: 768px) {
  .k-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
}


