/* SmallSolution v5.0 - Premium Minimalist (Merlin/Mantine Inspired) */

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

:root {
  /* Colors */
  --bg-color: #f7f7f7;
  --bg-card: #ffffff;
  --text-main: #000000;
  --text-muted: #595959; /* WCAG AAA compliant 7:1 contrast ratio */
  --border-color: #ebebeb;
  --border-dark: #cccccc;
  --accent: #000000;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --radius-card: 8px;
  --radius-pill: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);
}

/* Accessibility & Keyboard Navigation */
:focus-visible {
  outline: 2px solid var(--text-main);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text-main);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  z-index: 9999;
  border-radius: var(--radius-card);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background-color: #000; color: #fff; }

html { font-size: 16px; }
/* Lenis smooth scrolling requires html and body to have height: auto */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea { font-family: inherit; }

/* Utilities */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.section-padding { padding-block: 8rem; }
.section-padding-lg { padding-block: 14rem 8rem; }
.text-center { text-align: center; }

/* Typography */
.display-title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -3px;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.body-large {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.text-accent {
  color: var(--text-main);
  border-bottom: 2px solid #111111;
  padding-bottom: 2px;
}

.section-kicker, .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.badge-dot { display: none; }

/* Typography reveals immediately - no artificial AI blur delays */

/* Cards */
.clean-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 3rem;
  border: 1px solid var(--border-color);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.clean-card-interactive:hover {
  border-color: var(--border-dark);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
}

.icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2rem;
  color: var(--text-main);
}
.icon-box svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.5rem 0; z-index: 100;
  background: transparent;
  transition: all var(--transition);
}
.nav.scrolled { 
  background: rgba(247, 247, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0; 
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; color: var(--text-main); letter-spacing: -1px; }
.nav-logo img { width: 28px; height: 28px; object-fit: contain; }

.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); transition: color var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text-main); }

.nav-toggle { 
  display: flex; flex-direction: column; gap: 5px; background: transparent; 
  border: none; cursor: pointer; z-index: 101; 
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text-main); transition: var(--transition); }
.nav-menu-mobile {
  position: fixed; inset: 0; background: var(--bg-color);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
  opacity: 0; pointer-events: none; transition: opacity var(--transition); z-index: 99;
}
.nav-menu-mobile.open { opacity: 1; pointer-events: auto; }
@media(min-width: 768px) { .nav-links { display: flex; } .nav-toggle { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: var(--radius-pill); font-weight: 500; font-size: 1rem;
  cursor: pointer; transition: all var(--transition); text-decoration: none; border: none;
}
.btn-primary {
  background: var(--text-main);
  color: #ffffff;
}
.btn-primary:hover {
  background: #333333;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-dark);
}
.btn-secondary:hover {
  background: var(--border-color);
}

/* Forms */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.5rem; }
.form-input {
  width: 100%; padding: 1rem 1.25rem; background: var(--bg-color);
  border: 1px solid var(--border-color); border-radius: 12px;
  font-size: 1rem; color: var(--text-main); outline: none; transition: all var(--transition);
}
.form-input:focus { border-color: var(--text-main); background: #ffffff; }
textarea.form-input { resize: vertical; min-height: 120px; }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--border-color); }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
  width: 100%; text-align: left; padding: 2rem 0; background: transparent;
  border: none; font-size: 1.25rem; font-weight: 500; color: var(--text-main); letter-spacing: -0.5px;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-icon { 
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: transform var(--transition); 
}
.faq-icon svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--text-main); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease);
}
.faq-answer-inner { padding: 0 0 2rem; color: var(--text-muted); font-size: 1.1rem; }

/* Image Wrappers */
.img-wrapper {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}
.img-wrapper img {
  width: 100%; height: auto; display: block;
}

/* Form Results */
.form-result { display: none; padding: 1rem; border-radius: 12px; margin-top: 1.5rem; font-size: 0.9rem; font-weight: 500; text-align: center; }
.form-result.visible { display: block; }
.form-result.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-result.error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* Footer */
.footer { margin-top: 8rem; padding-bottom: 4rem; border-top: 1px solid var(--border-color); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; margin-bottom: 4rem; }
@media(min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--text-main); }
.footer p, .footer a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { transition: color var(--transition); }
.footer-links a:hover { color: var(--text-main); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 2rem; }

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 420px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 1.5rem;
  z-index: 10000;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  background: var(--text-main);
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: opacity var(--transition);
}
.cookie-btn-accept:hover {
  opacity: 0.85;
}
.cookie-btn-decline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-dark);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.cookie-btn-decline:hover {
  background: rgba(0,0,0,0.05);
}

/* Form Consent Checkbox */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: #000000;
  cursor: pointer;
}


