/* ========================================
   KipIntel — Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* === Variables === */
:root {
  --bg:            #111111;
  --surface:       #181818;
  --surface-raised:#1e1e1e;
  --border:        rgba(255, 255, 255, 0.10);
  --border-hover:  rgba(255, 255, 255, 0.20);
  --text:          #f0f0f0;
  --text-muted:    #9a9a9a;
  --text-subtle:   #606060;
  --green:         #f97316;
  --green-dim:     rgba(249, 115, 22, 0.12);
  --radius:        12px;
  --radius-sm:     8px;
  --header-h:      80px;
  --transition:    0.2s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* === Container === */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.header.scrolled { background: rgba(17, 17, 17, 0.97); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header__logo-img {
  height: 48px;
  width: auto;
  max-width: 200px;
  border-radius: 0;
  object-fit: contain;
}

/* === Nav === */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link.active { color: var(--text); background: var(--surface-raised); }

/* === Header Actions === */
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition);
}
.lang-toggle:hover { color: var(--text); border-color: var(--border-hover); }
.lang-toggle__flag { display: block; width: 20px; height: 12px; border-radius: 1px; flex-shrink: 0; }

/* === Hamburger === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.35;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.3) 0%,
    rgba(10,10,10,0.7) 60%,
    rgba(10,10,10,1) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 120px;
  max-width: 720px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 40px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: #ffffff;
}
.btn--primary:hover { background: #ea580c; }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn--outline:hover { background: var(--surface-raised); border-color: var(--text-subtle); }

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.section--alt { background: var(--surface); }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ========================================
   PRODUCTS OVERVIEW
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.section--alt .product-card { background: var(--surface-raised); }
.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.product-card--soon { cursor: default; }
.product-card--soon:hover { transform: none; border-color: var(--border); }

.product-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.product-card__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--green);
}
.section--alt .product-card__icon { background: var(--bg); }
.product-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}
.product-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.product-card__badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}
.product-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.product-card:hover .product-card__link { gap: 8px; }

/* ========================================
   PRODUCT SHOWCASE
   ======================================== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
}
.showcase + .showcase {
  border-top: 1px solid var(--border);
  padding-top: 80px;
}
.showcase--reverse { direction: rtl; }
.showcase--reverse > * { direction: ltr; }

.showcase__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  aspect-ratio: 16/10;
}
.showcase__img-placeholder {
  border-radius: var(--radius);
  border: 1px dashed var(--border-hover);
  background: var(--surface-raised);
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-subtle);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.showcase__img-placeholder svg { opacity: 0.25; }
.showcase__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.showcase__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.showcase__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.showcase__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.showcase__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.showcase__feature::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 9px;
  flex-shrink: 0;
}

/* ========================================
   HOW IT WORKS
   ======================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: var(--border);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.step__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================================
   TEAM
   ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
  gap: 24px;
  justify-content: center;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.team-card__photo {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--surface-raised);
  display: block;
}
.team-card__photo-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card__photo-placeholder svg { opacity: 0.2; }
.team-card__body { padding: 20px; }
.team-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.team-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-subtle);
  transition: color var(--transition);
}
.team-card__linkedin:hover { color: var(--text-muted); }

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.contact-info__desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.contact-info__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  transition: border-color var(--transition), color var(--transition);
}
.contact-info__email:hover { border-color: var(--border-hover); color: var(--text); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus,
.form-textarea:focus { border-color: var(--border-hover); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-subtle); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit {
  margin-top: 4px;
  align-self: flex-start;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo {
  display: flex;
  align-items: center;
}
.footer__logo-img {
  height: 54px;
  width: auto;
  max-width: 220px;
  border-radius: 0;
  object-fit: contain;
}
.footer__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.footer__link {
  font-size: 1rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--text); }
.footer__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__copy {
  font-size: 0.875rem;
  color: var(--text-subtle);
}
.footer__social {
  display: flex;
  align-items: center;
  color: var(--text-subtle);
  transition: color var(--transition);
}
.footer__social:hover { color: var(--text); }

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10,10,10,0.97);
  padding: calc(var(--header-h) + 32px) 24px 32px;
  flex-direction: column;
  gap: 8px;
}
.nav-overlay.open { display: flex; }
.nav-overlay__link {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-overlay__link:hover { color: var(--text); }
.nav-overlay__lang {
  margin-top: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .showcase--reverse { direction: ltr; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .nav { display: none; }
  .hamburger { display: flex; }

  .hero__content { padding-top: 48px; padding-bottom: 80px; }

  .products-grid { grid-template-columns: 1fr 1fr; }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps::before { display: none; }

  .team-grid { grid-template-columns: 1fr 1fr; }

  .section { padding: 64px 0; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
}
