/* ============================================
   Qtes Soft — Global Styles
   Modern professional theme
   ============================================ */

:root {
  --color-primary: #0B1E3F;
  --color-primary-dark: #061226;
  --color-accent: #00B8A9;
  --color-accent-dark: #009E92;
  --color-text: #1A2238;
  --color-text-muted: #5A6478;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-border: #E4E8EF;
  --color-white: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(11, 30, 63, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 30, 63, 0.08);
  --shadow-lg: 0 16px 40px rgba(11, 30, 63, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --container: 1180px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --transition: 0.25s ease;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Allow long words/headings to break safely on tiny screens */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-dark);
}

ul {
  list-style: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--color-primary);
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

/* Footer logo sits on a dark background — give it a clean white panel */
.footer .brand-logo {
  height: 56px;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Legacy brand-mark — kept for backward compatibility, no longer used */
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.nav-cta {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background:
    radial-gradient(ellipse at top right, rgba(0, 184, 169, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(11, 30, 63, 0.06) 0%, transparent 50%),
    var(--color-bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 420px;
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  border: 1px solid var(--color-border);
}

.hero-card-1 {
  top: 0;
  left: 20%;
  width: 280px;
  transform: rotate(-3deg);
}

.hero-card-2 {
  top: 30%;
  right: 0;
  width: 260px;
  transform: rotate(4deg);
  z-index: 2;
}

.hero-card-3 {
  bottom: 0;
  left: 0;
  width: 260px;
  transform: rotate(-2deg);
}

.hero-card .badge {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

.hero-card h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.hero-card p {
  font-size: 0.85rem;
  margin: 0;
}

/* Page header (for non-home pages) */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
  background:
    radial-gradient(ellipse at center top, rgba(0, 184, 169, 0.10) 0%, transparent 60%),
    var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Cards / Grids */
.grid {
  display: grid;
  gap: 24px;
}

.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(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 184, 169, 0.15) 0%, rgba(11, 30, 63, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Product feature row (alternating) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 96px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-row .product-tag {
  display: inline-block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.feature-list {
  margin: 24px 0;
}

.feature-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  color: var(--color-text);
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-visual {
  background: linear-gradient(135deg, var(--color-primary) 0%, #122e57 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: white;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.feature-visual::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 184, 169, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.feature-visual-content {
  position: relative;
  z-index: 1;
}

.feature-visual h4 {
  color: white;
  margin-bottom: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 18px;
  backdrop-filter: blur(6px);
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Stats band */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

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

/* CTA */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, #142b56 60%, #0d3b6e 100%);
  color: white;
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 184, 169, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 32px;
}

/* Product logo (above heading in feature rows) */
.product-logo {
  height: 96px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.product-logo-sm {
  height: 56px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 12px;
}

/* Stretched logo — fills the card width while keeping aspect ratio */
.product-logo-stretch {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  display: block;
  margin: -8px 0 18px;
  border-radius: 10px;
}

/* Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-info-card h3 {
  color: white;
}

.contact-info-card p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
}

.contact-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 184, 169, 0.2);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  color: white;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-info-item p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-info-item a {
  color: rgba(255, 255, 255, 0.85);
}

.contact-info-item a:hover {
  color: var(--color-accent);
}

form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

form .field {
  margin-bottom: 18px;
}

form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

form input,
form textarea,
form select {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: all var(--transition);
  color: var(--color-text);
}

form input:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.15);
}

form textarea {
  resize: vertical;
  min-height: 140px;
}

/* About sections */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  text-align: left;
  padding: 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.value-card .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Footer */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--color-accent);
}

.footer .brand {
  color: white;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.95rem;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

/* Utility */
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }

/* Responsive */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .page-header { padding: 56px 0 44px; }
  .hero-grid,
  .split,
  .contact-grid,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 40px;
  }
  .hero-visual { height: 340px; }
  .hero-card-1, .hero-card-2, .hero-card-3 { width: 240px; }
  .grid-3, .grid-4, .values-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  form .form-row { grid-template-columns: 1fr; }

  .product-logo { height: 80px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    gap: 4px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0 0; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: clamp(1.75rem, 7vw, 2.2rem); }
  h2 { font-size: clamp(1.5rem, 5.5vw, 1.85rem); }
  h3 { font-size: 1.15rem; }
  .section { padding: 48px 0; }
  .hero { padding: 36px 0 48px; }
  .hero .lead { font-size: 1.05rem; }
  .page-header { padding: 40px 0 32px; }
  .page-header p { font-size: 1rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 40px; }

  .grid-2, .grid-3, .grid-4, .values-grid { grid-template-columns: 1fr; gap: 18px; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat-num { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  form .form-row { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  /* Hero card visuals smaller / lighter on phones */
  .hero-visual { height: 300px; }
  .hero-card { padding: 14px; }
  .hero-card-1 { width: 200px; left: 10%; }
  .hero-card-2 { width: 200px; right: 0; }
  .hero-card-3 { width: 200px; left: 0; }
  .hero-card h4 { font-size: 0.95rem; }
  .hero-card p { font-size: 0.78rem; }

  /* Cards a bit tighter */
  .card { padding: 24px; }

  /* Feature visual lighter padding */
  .feature-visual { padding: 28px 22px; min-height: 280px; }
  .metric-grid { gap: 14px; }
  .metric { padding: 14px; }
  .metric-value { font-size: 1.3rem; }

  /* CTA band scales down */
  .cta-band { padding: 56px 20px; }
  .cta-band h2 { font-size: 1.6rem; }
  .cta-band p { font-size: 1rem; }

  /* Product logos */
  .product-logo { height: 64px; margin-bottom: 16px; }
  .product-logo-sm { height: 48px; }

  /* Brand logo a touch smaller in nav */
  .brand-logo { height: 38px; }
  .footer .brand-logo { height: 46px; padding: 8px 12px; }

  /* Contact info card padding */
  .contact-info-card { padding: 28px; }

  /* Product overview card buttons stack full width */
  .card .btn { width: 100%; }
}

@media (max-width: 380px) {
  .stats-band { grid-template-columns: 1fr; }
  .hero-visual { height: 260px; }
  .hero-card-1, .hero-card-2, .hero-card-3 { width: 180px; }
}
