/* =========================================
   FenastorvikFinance Design System
   Palette: #0B0F19 (bg), #d4af37 (surface),
            #0066ff (ink), #a0aab5 (accent),
            #eaeaea (secondary)
   Typography: Space Grotesk (Headings),
               IBM Plex Mono (Numbers)
   Layout: Geodesic Grid, Cut Lines, Diagonal Nodes
   ========================================= */

:root {
  --bg: #0B0F19;
  --surface: #d4af37;
  --ink: #0066ff;
  --accent: #a0aab5;
  --secondary: #eaeaea;
  --text: #eaeaea;
  --text-muted: #a0aab5;
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: var(--font-heading);
  --radius: 4px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --transition: 0.3s ease;
  --gap: 2rem;
  --container: 1200px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin-bottom: 1rem; color: var(--text-muted); }

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

a:hover {
  color: var(--surface);
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

/* =========================================
   Layout Components
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(160, 170, 181, 0.1);
  padding: 1rem 0;
  transition: box-shadow var(--transition);
}

.site-header.shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1.25rem;
}

.brand-logo svg {
  transition: transform var(--transition);
}

.brand-logo:hover svg {
  transform: rotate(45deg);
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--surface);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: var(--bg);
  padding: 2rem;
  flex-direction: column;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(160, 170, 181, 0.1);
}

.mobile-nav-link {
  color: var(--text);
  font-size: 1.25rem;
  text-align: center;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu.open { display: flex; }
  .menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

#scroll-progress {
  transition: width 0.1s linear;
}

/* =========================================
   Hero & Visuals
   ========================================= */

.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-svg {
  width: 100%;
  height: 100%;
}

.draw-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 3s linear infinite alternate;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition);
  min-height: 48px;
  text-align: center;
}

.btn-primary {
  background: var(--ink);
  color: var(--text);
  border: 1px solid var(--ink);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: transparent;
  color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background: var(--accent);
  color: var(--bg);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  min-height: 36px;
}

/* =========================================
   Stats & Sections
   ========================================= */

.stats-section {
  padding: 4rem 0;
  border-top: 1px solid rgba(160, 170, 181, 0.1);
  border-bottom: 1px solid rgba(160, 170, 181, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--surface);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.section-intro {
  max-width: 800px;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible, .fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Content Visuals: Threat Map
   ========================================= */

.threat-map {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(160, 170, 181, 0.05);
  border-radius: var(--radius);
}

.threat-strip {
  height: 24px;
  background: linear-gradient(90deg, var(--bg), var(--ink));
  border-radius: 2px;
  position: relative;
}

.threat-strip::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--surface);
}

/* =========================================
   Process & Features
   ========================================= */

.process-section, .features-section, .benefits-section {
  padding: 4rem 0;
}

.process-grid, .features-grid, .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.process-step, .feature-card, .benefit-card {
  background: rgba(160, 170, 181, 0.05);
  padding: 2rem;
  border: 1px solid rgba(160, 170, 181, 0.1);
  border-radius: var(--radius);
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}

.process-step:hover, .feature-card:hover, .benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--surface);
  margin-bottom: 1rem;
  display: block;
}

.feature-icon, .benefit-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}

/* =========================================
   Testimonials & FAQ
   ========================================= */

.testimonials-section {
  padding: 4rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: rgba(160, 170, 181, 0.05);
  padding: 2rem;
  border: 1px solid rgba(160, 170, 181, 0.1);
  border-radius: var(--radius);
}

.stars {
  color: var(--surface);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.initial {
  width: 40px;
  height: 40px;
  background: var(--ink);
  color: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testimonial-author small {
  color: var(--text-muted);
  display: block;
}

.faq-section {
  padding: 4rem 0;
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid rgba(160, 170, 181, 0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--surface);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 1.5rem;
}

/* =========================================
   Forms & Contact
   ========================================= */

.contact-section, .cta-banner {
  padding: 4rem 0;
}

.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field label {
  font-size: 0.9rem;
  color: var(--text);
}

.form-field input, .form-field textarea {
  background: rgba(160, 170, 181, 0.1);
  border: 1px solid var(--accent);
  padding: 0.8rem;
  color: var(--text);
  font-family: var(--font-body);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field-error {
  color: #ff4444;
  font-size: 0.8rem;
  min-height: 1.2em;
}

.cta-banner {
  background: var(--ink);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-banner h2 {
  color: var(--text);
}

.cta-banner p {
  color: var(--secondary);
  margin-bottom: 2rem;
}

.cta-banner .btn-primary {
  background: var(--surface);
  color: var(--bg);
  border-color: var(--surface);
}

.cta-banner .btn-primary:hover {
  background: transparent;
  color: var(--surface);
  box-shadow: 0 0 0 2px var(--surface);
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(160, 170, 181, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h3, .footer-col h4 {
  color: var(--surface);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--text-muted);
}

.footer-col p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* =========================================
   Cookie Banner
   ========================================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 15, 25, 0.98);
  border-top: 1px solid var(--ink);
  padding: 1rem 0;
  z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

/* =========================================
   Legal Pages
   ========================================= */

.legal-page {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumbs .separator {
  margin: 0 0.5rem;
}

.breadcrumbs .current {
  color: var(--surface);
}

.legal-intro {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(160, 170, 181, 0.1);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.legal-table th, .legal-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(160, 170, 181, 0.1);
}

.legal-table th {
  color: var(--surface);
  font-weight: 600;
}

/* =========================================
   Thank You
   ========================================= */

.thank-you-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.thank-you-card {
  max-width: 600px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.thank-you-card h1 {
  color: var(--surface);
  margin-bottom: 1.5rem;
}

.thank-you-card p {
  margin-bottom: 2rem;
}

/* =========================================
   Signature: Geo Marker
   ========================================= */

.geo-marker {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

.geo-marker svg {
  width: 100%;
  height: 100%;
}

.marker-line {
  stroke: var(--surface);
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawLine 2s linear infinite alternate;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.marker-dot {
  fill: var(--ink);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { r: 3; opacity: 1; }
  50% { r: 5; opacity: 0.7; }
}

/* =========================================
   Responsive Adjustments
   ========================================= */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .hero-section {
    min-height: auto;
    padding: 6rem 0 4rem;
  }
  
  .cta-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
  
  .geo-marker {
    bottom: 1rem;
    left: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.sf-inline-70e33dca86{position:fixed;top:0;left:0;width:0;height:3px;background:linear-gradient(90deg, #0066ff, #d4af37);z-index:2000}
.sf-inline-d07599b989{width: 90%}
.sf-inline-c311217ce1{width: 75%}
.sf-inline-86d5a62908{width: 60%}
.sf-inline-5ca9b93416{width: 85%}
.sf-inline-e17a83bd94{width: 45%}
.sf-inline-f10b5874db{width: 65%}
