/* =========================================================
   KNTech - main stylesheet
   Edit the color variables below to change the whole theme.
   ========================================================= */
:root {
  --primary: #3b82c4;        /* soft blue - buttons, links */
  --primary-dark: #2d6aa3;
  --accent: #5fb3a9;         /* soft teal */
  --bg: #ffffff;
  --bg-alt: #f3f7fb;         /* light section background */
  --bg-hero: linear-gradient(135deg, #eef5fc 0%, #e8f5f2 100%);
  --text: #1f2d3d;
  --text-muted: #5b6b7c;
  --border: #dfe7ef;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 45, 61, 0.07);
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: 1.35rem; color: var(--text); }
.logo-mark { background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 8px; }
.logo-text { color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--primary); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-hero); padding: 96px 0 88px; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 18px; letter-spacing: -0.02em; }
.lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 30px; max-width: 580px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; display: grid; gap: 18px;
}
.stat { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat strong { font-size: 1.6rem; color: var(--primary); min-width: 100px; }
.stat span { color: var(--text-muted); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 600; color: var(--accent); margin-bottom: 10px;
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2, .split-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; letter-spacing: -0.01em; }
.section-head p:not(.eyebrow) { color: var(--text-muted); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: #e8f1fa; font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card > p { color: var(--text-muted); margin-bottom: 16px; }

.checklist { list-style: none; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 0.95rem; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}

/* ---------- Split layout (Smart Glass / About) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text p:not(.eyebrow) { color: var(--text-muted); margin-bottom: 16px; }
.split-text .checklist { margin: 20px 0 28px; }

.glass-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: 300px; }
.glass-pane {
  border-radius: var(--radius); border: 6px solid #cfdbe6;
  background: linear-gradient(160deg, #f4f7fa, #dde6ee);
  display: flex; align-items: flex-end; justify-content: center; padding: 16px;
  box-shadow: var(--shadow);
}
.glass-pane.clear {
  background: linear-gradient(160deg, rgba(186, 222, 245, .35), rgba(214, 240, 233, .35)),
              repeating-linear-gradient(45deg, #fff 0 14px, #f3f8fc 14px 28px);
}
.glass-pane span { background: #fff; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); }
.feature h4 { color: var(--primary); margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-hero); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 28px; text-align: center;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; color: var(--text);
}
a.contact-card:hover { transform: translateY(-3px); color: var(--text); transition: transform .2s; }
.contact-icon { font-size: 1.8rem; color: var(--primary); }
.contact-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.contact-value { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: #1f2d3d; color: #c5d1dd; padding: 32px 0; font-size: 0.9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #c5d1dd; }
.site-footer a:hover { color: #fff; }
.logo-footer .logo-text { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .hero-inner, .split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 20px 20px;
    border-bottom: 1px solid var(--border); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 14px; }
  .cards-3, .contact-grid, .features { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .section { padding: 64px 0; }
  .glass-demo { height: 220px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
