/* Cubikey-inspired theme — modern agency aesthetic */
:root {
  --bg-dark: #0A0A0A;
  --bg-light: #FFFFFF;
  --bg-soft: #F5F5F2;
  --text-primary: #0A0A0A;
  --text-muted: #525252;
  --text-invert: #FAFAFA;
  --accent: #C4F542;
  --accent-hover: #B8E83A;
  --border: #E5E5E5;
  --border-dark: #1F1F1F;
  --max-width: 1200px;
  --radius: 6px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: inherit;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

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

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
}

.logo span { color: var(--accent); }

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  max-width: 180px;
  object-fit: contain;
}

.site-footer .logo-img {
  height: 40px;
  max-width: 200px;
  filter: brightness(0) invert(1);
}

@media (max-width: 480px) {
  .logo-img { height: 30px; }
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links > li { position: relative; }

.nav-links a,
.nav-links .dropdown-toggle {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .dropdown-toggle:hover { color: var(--text-muted); }

.dropdown-toggle::after {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 2px;
  transition: transform var(--transition);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 0;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  z-index: 200;
  list-style: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown:hover .dropdown-toggle::after,
.has-dropdown.open .dropdown-toggle::after { transform: rotate(180deg); }

.dropdown li { margin: 0; }

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.dropdown a:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
}

.dropdown a small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  margin-top: 2px;
}

.dropdown-wide { min-width: 300px; }

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-primary);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-invert);
}
.btn-dark:hover { background: #1F1F1F; }

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

/* Hero */
.hero {
  background: var(--bg-dark);
  color: var(--text-invert);
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border-dark);
}

.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--accent); }
.hero .lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: #A3A3A3;
  max-width: 680px;
  margin-bottom: 2rem;
}

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

/* Sections */
section { padding: 80px 0; }

.section-header { max-width: 760px; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; }

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Cards */
.card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover { border-color: var(--text-primary); transform: translateY(-2px); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

/* Alt section */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-invert);
}
.section-dark p { color: #A3A3A3; }
.section-dark .card {
  background: #141414;
  border-color: var(--border-dark);
  color: var(--text-invert);
}
.section-dark .card:hover { border-color: var(--accent); }
.section-dark .card p { color: #A3A3A3; }

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

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: #A3A3A3; font-size: 0.95rem; }

/* Lists */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text-muted);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

/* CTA band */
.cta-band {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { max-width: 720px; margin: 0 auto 1rem; }
.cta-band p { color: var(--text-primary); font-size: 1.1rem; max-width: 580px; margin: 0 auto 2rem; }

/* Forms */
.form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.form-grid .full { grid-column: 1 / -1; }

label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--text-primary);
}
textarea { min-height: 140px; resize: vertical; }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-invert);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { color: #A3A3A3; max-width: 300px; margin-top: 12px; }
.site-footer h4 { color: var(--text-invert); margin-bottom: 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #A3A3A3; font-size: 0.95rem; }
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #737373;
  font-size: 0.875rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb span { margin: 0 8px; color: #A3A3A3; }

/* Page header (non-home) */
.page-header {
  padding: 96px 0 64px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 1rem; }
.page-header p { font-size: 1.15rem; max-width: 680px; }

/* Two-column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Accordion (FAQ) */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-item h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

/* Utility */
.text-center { text-align: center; }
.mb-lg { margin-bottom: 3rem; }

/* Clients logo grid, strict 4 columns with mobile fallback */
.client-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
@media (max-width: 900px) {
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
}
.client-card {
  background: #141414;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  aspect-ratio: 16 / 7;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  transition: border-color var(--transition);
  overflow: hidden;
}
.client-card:hover { border-color: var(--accent); }
.client-card img {
  max-height: 70%;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity var(--transition);
}
.client-card:hover img { opacity: 1; }

/* Section header variant, centered */
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Business impact cards, strict 4 columns with mobile fallback */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
@media (max-width: 900px) {
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}
.impact-card {
  background: #141414;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.impact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.impact-card .impact-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 14px;
}
.impact-card h3 {
  color: var(--text-invert);
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.impact-card p {
  color: #A3A3A3;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* Testimonials */
.testimonial {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
}
.testimonial:hover { border-color: var(--text-primary); transform: translateY(-2px); }

.testimonial-stars {
  color: #FFB400;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin: 0;
  font-style: normal;
  border: none;
  padding: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.testimonial-meta strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}
.testimonial-meta span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.testimonial-metric {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Awards cards */
.award-card {
  background: #141414;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  color: var(--text-invert);
}
.award-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.award-card .award-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(196, 245, 66, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 700;
}
.award-card h3 {
  color: var(--text-invert);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.award-card p {
  color: #A3A3A3;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    gap: 4px;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links a, .nav-links .dropdown-toggle { padding: 10px 0; width: 100%; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent);
    border-radius: 0;
    padding: 4px 0 4px 16px;
    margin-bottom: 8px;
    display: none;
  }
  .has-dropdown.open .dropdown { display: block; }
  section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
