/* ============================================================
   Safecore — official website
   Design tokens replicated from info.safecore.qubikdigital.com
   ============================================================ */

:root {
  --background: #fcfcfc;
  --foreground: #12171a;
  --card: #ffffff;
  --card-foreground: #12171a;
  --primary: #00579a;
  --primary-foreground: #fcfcfc;
  --secondary: #d9e7f1;
  --secondary-foreground: #12171a;
  --accent: #00838a;
  --accent-foreground: #fcfcfc;
  --muted: #e9f0f5;
  --muted-foreground: #5e6468;
  --border: #d2d8dd;
  --input: #d2d8dd;
  --ring: #00579a;
  --destructive: #e40014;

  --nav-bg: #0a0f1e;
  --radius: 0.5rem;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { position: relative; }

.section-head {
  max-width: 48rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-head.tight { margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.section-head p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.eyebrow .dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--primary:hover { background: #004a84; }
.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn--outline:hover { background: var(--muted); }
.btn--ghost { background: transparent; color: #d1d5dc; }
.btn--ghost:hover { color: #fff; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn--lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.nav__inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}
.nav__logo img { height: 1.9rem; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #d1d5dc;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: #fff; }
.nav__right { display: flex; align-items: center; gap: 0.75rem; }

/* ---------- language switcher ---------- */
.lang { position: relative; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e5e7eb;
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lang__btn:hover { background: rgba(255, 255, 255, 0.12); }
.lang__flag { font-size: 1rem; line-height: 1; }
.lang__chev { width: 0.9rem; height: 0.9rem; transition: transform 0.15s ease; }
.lang__chev.open { transform: rotate(180deg); }
.lang__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 10rem;
  background: #0e1420;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 0.35rem;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.5);
  z-index: 60;
}
.lang__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: none;
  border: 0;
  color: #d1d5dc;
  font-size: 0.85rem;
  font-family: inherit;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
}
.lang__item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lang__item.active { color: #fff; background: rgba(0, 87, 154, 0.35); }

.nav__toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 0.25rem; }
.nav__toggle svg { width: 1.5rem; height: 1.5rem; }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1rem;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav__mobile a {
  color: #d1d5dc;
  font-size: 0.95rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__mobile-langs { display: flex; gap: 0.5rem; padding: 0.75rem 0 0.25rem; }
.nav__mobile-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d1d5dc;
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}
.nav__mobile-lang.active { color: #fff; background: rgba(0, 87, 154, 0.35); border-color: rgba(0, 87, 154, 0.5); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 6rem;
  background: linear-gradient(to bottom, rgba(217, 231, 241, 0.4), var(--background));
}
.hero__inner { max-width: 64rem; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  max-width: 46rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem; }

.hero__blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}
.hero__blob--1 {
  left: 50%; top: 0;
  transform: translate(-50%, -50%);
  height: 600px; width: 600px;
  background: rgba(0, 87, 154, 0.12);
}
.hero__blob--2 {
  right: 0; top: 50%;
  transform: translate(50%, -50%);
  height: 400px; width: 400px;
  background: rgba(0, 131, 138, 0.1);
}

/* ---------- device mockups ---------- */
.mockups {
  padding: 5rem 0;
  background: rgba(233, 240, 245, 0.4);
}
.mockups__stage {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding-left: 3rem;
}
.browser {
  position: relative;
  z-index: 10;
  border-radius: 0.75rem;
  background: linear-gradient(to bottom, #1f2937, #111827);
  padding: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #111827;
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  margin: -0.75rem -0.75rem 0;
}
.browser__dot { height: 0.75rem; width: 0.75rem; border-radius: 999px; }
.browser__dot.r { background: #ef4444; }
.browser__dot.y { background: #eab308; }
.browser__dot.g { background: #22c55e; }
.browser__screen { overflow: hidden; border-radius: 0 0 0.5rem 0.5rem; background: #fff; margin-top: 0.75rem; }
.browser__screen img { width: 100%; }

.phone {
  position: absolute;
  bottom: -2.5rem;
  left: 0;
  z-index: 20;
  width: 11rem;
}
.phone__body {
  border-radius: 2.5rem;
  background: #111827;
  padding: 0.6rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}
.phone__screen {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: #fff;
}
.phone__notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  height: 1rem; width: 6rem;
  background: #111827;
  border-radius: 0 0 1rem 1rem;
  z-index: 10;
}

/* ---------- generic section spacing ---------- */
.pad { padding: 4rem 0; }
.pad-lg { padding: 5.5rem 0; }
.bg-muted { background: rgba(233, 240, 245, 0.5); }
.bg-secondary { background: rgba(217, 231, 241, 0.35); }
.bg-white { background: var(--background); }

.intro { max-width: 48rem; margin: 0 auto; text-align: center; }
.intro h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.intro p { font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; margin: 0 0 1rem; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid rgba(210, 216, 221, 0.6);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: 0 10px 30px -10px rgba(0, 87, 154, 0.15);
  border-color: rgba(0, 87, 154, 0.3);
}
.card h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }
.card p { font-size: 0.9rem; color: var(--muted-foreground); line-height: 1.6; margin: 0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 0.6rem;
  margin-bottom: 1rem;
}
.icon-badge svg { width: 1.5rem; height: 1.5rem; stroke-width: 2; }
.icon-badge--primary { background: rgba(0, 87, 154, 0.1); color: var(--primary); }
.icon-badge--accent { background: rgba(0, 131, 138, 0.1); color: var(--accent); }
.icon-badge--lg { height: 3.5rem; width: 3.5rem; border-radius: 0.85rem; }

/* ---------- two apps ---------- */
.apps-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); max-width: 64rem; margin: 0 auto; }
.app-card {
  background: var(--card);
  border: 2px solid rgba(0, 87, 154, 0.2);
  border-radius: 0.75rem;
  padding: 2rem;
}
.app-card .icon-badge { height: 3.5rem; width: 3.5rem; border-radius: 0.85rem; }
.app-card h3 { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.75rem; }
.app-card > p { color: var(--muted-foreground); line-height: 1.6; margin: 0 0 1.25rem; }
.app-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.app-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.95rem; color: var(--foreground); }
.app-list li svg { width: 1.1rem; height: 1.1rem; color: var(--accent); flex-shrink: 0; margin-top: 0.15rem; }

/* ---------- ecosystem ---------- */
.eco-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
.eco-card {
  background: var(--card);
  border: 1px solid rgba(210, 216, 221, 0.6);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.eco-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px -12px rgba(0, 131, 138, 0.2); }
.eco-card .icon-badge { margin: 0 auto 0.75rem; }
.eco-card h3 { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.35rem; }
.eco-card p { font-size: 0.78rem; color: var(--muted-foreground); margin: 0; line-height: 1.5; }

/* ---------- security (centered cards) ---------- */
.sec-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); max-width: 72rem; margin: 0 auto; }
.sec-card { text-align: center; }
.sec-card .icon-badge { margin: 0 auto 1rem; }
.sec-card h3 { font-size: 1rem; }

/* ---------- experience (Learisk) ---------- */
.experience { max-width: 52rem; margin: 0 auto; text-align: center; }
.experience .icon-badge { height: 4rem; width: 4rem; border-radius: 999px; margin: 0 auto 1.5rem; }
.experience .icon-badge svg { width: 2rem; height: 2rem; }
.experience h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.experience p { font-size: 1.125rem; color: var(--muted-foreground); line-height: 1.7; margin: 0 0 1rem; }

/* ---------- contact ---------- */
.contact-wrap { max-width: 36rem; margin: 0 auto; }
.contact-form {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field label .req { color: var(--destructive); margin-left: 0.15rem; }
.field input,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(0, 87, 154, 0.15);
}
.field textarea { resize: vertical; min-height: 6rem; }
.form-note { font-size: 0.8rem; color: var(--muted-foreground); text-align: center; margin: 0; }
.form-sent {
  background: rgba(0, 131, 138, 0.1);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.form-sent a { color: var(--primary); font-weight: 600; }
.form-error {
  background: rgba(228, 0, 20, 0.08);
  color: var(--destructive);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  text-align: center;
}
.form-error a { color: var(--destructive); font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: var(--nav-bg); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__inner { padding: 3rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__brand { max-width: 20rem; }
.footer__brand img { height: 1.9rem; width: auto; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.875rem; color: #9ca3af; line-height: 1.6; margin: 0; }
.footer__cols { display: flex; gap: 4rem; }
.footer__cols h4 { font-size: 0.875rem; font-weight: 600; color: #fff; margin: 0 0 1rem; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer__cols a { font-size: 0.875rem; color: #9ca3af; transition: color 0.15s ease; }
.footer__cols a:hover { color: #fff; }
.footer__qbk { display: flex; align-items: flex-start; }
.footer__qbk img { height: 1.6rem; width: auto; opacity: 0.9; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .eco-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__demo-desktop { display: none; }
  .nav__toggle { display: block; }
  .nav__mobile.open { display: flex; }
  .footer__inner { flex-direction: column; }
  .footer__cols { gap: 2.5rem; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .eco-grid, .sec-grid, .grid-2 { grid-template-columns: 1fr; }
  .mockups__stage { padding-left: 0; }
  .phone { position: relative; bottom: auto; margin: 1.5rem auto 0; width: 9rem; }
}
