/* === NO FACE NO CASE — Main Stylesheet === */
/* Scandinavian Privacy Tech — Matt svart, Naturvitt, Stålgrått, Amber */

:root {
  --black: #0d0d0d;
  --off-black: #1a1a1a;
  --dark-gray: #2a2a2a;
  --mid-gray: #555;
  --light-gray: #999;
  --off-white: #f5f4f1;
  --white: #ffffff;
  --amber: #d4940c;
  --amber-light: #f0b832;
  --steel: #b0b5b9;
  --steel-dark: #6b7280;
  --accent: #d4940c;
  --radius: 8px;
  --radius-lg: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

a { color: var(--amber); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--amber-light); }

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

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

/* === HEADER === */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}
.logo span { color: var(--amber); }

.main-nav { display: flex; gap: 1.6rem; align-items: center; }
.main-nav a { color: var(--steel); font-size: 0.9rem; font-weight: 500; }
.main-nav a:hover { color: var(--white); }

.nav-cta {
  background: var(--amber);
  color: var(--black) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--amber-light) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* === HERO === */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(212,148,12,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 { margin-bottom: 1rem; }
.hero .hero-tagline { font-size: 1.2rem; color: var(--steel); max-width: 600px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}
.btn-primary { background: var(--amber); color: var(--black); }
.btn-primary:hover { background: var(--amber-light); color: var(--black); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--steel-dark); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-sm { padding: 0.5rem 1.3rem; font-size: 0.85rem; }

/* === SECTIONS === */
.section { padding: 5rem 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-gray { background: #eae8e5; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.5rem; }
.section-header p { color: var(--mid-gray); max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: var(--steel); }

/* === VALUE CARDS === */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

.value-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.value-card h3 { margin-bottom: 0.6rem; }
.value-card p { color: var(--mid-gray); font-size: 0.95rem; }

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.product-card-img {
  height: 220px;
  background: linear-gradient(135deg, var(--dark-gray) 0%, var(--off-black) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.product-card-body { padding: 1.5rem; }
.product-card-body h3 { margin-bottom: 0.3rem; }
.product-card-body .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 0.5rem;
}
.product-card-body p { color: var(--mid-gray); font-size: 0.9rem; margin-bottom: 1rem; }

/* === STATS BAR === */
.stats-bar {
  background: var(--off-black);
  color: var(--white);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber);
  display: block;
}
.stat-label { color: var(--steel); font-size: 0.9rem; margin-top: 0.3rem; }

/* === HOW IT WORKS === */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.how-step {
  text-align: center;
  padding: 2rem;
}
.how-step .step-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
}

/* === NEWSLETTER === */
.newsletter {
  background: var(--amber);
  color: var(--black);
  padding: 4rem 0;
  text-align: center;
}
.newsletter h2 { margin-bottom: 0.5rem; }
.newsletter p { margin-bottom: 1.5rem; opacity: 0.8; }
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
}
.newsletter-form .btn { background: var(--black); color: var(--amber); }
.newsletter-form .btn:hover { background: var(--off-black); }

/* === FOOTER === */
.site-footer {
  background: var(--black);
  color: var(--steel);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a {
  display: block;
  color: var(--steel);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.footer-col a:hover { color: var(--white); }
.footer-brand p { margin: 1rem 0; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.social-links { display: flex; gap: 1rem; font-size: 1.2rem; }

/* === PAGE HEADER (subpages) === */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--steel); max-width: 600px; margin: 0 auto; }

/* === FEATURE SECTION === */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3rem 0;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse .feature-text { direction: ltr; }
.feature-text h3 { margin-bottom: 1rem; }
.feature-text p { color: var(--mid-gray); margin-bottom: 1rem; }
.feature-visual {
  background: var(--dark-gray);
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--steel-dark);
}
.section-dark .feature-visual { background: #222; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: 1.2rem 0;
}
.faq-question {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--amber); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--mid-gray);
  font-size: 0.95rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding-top: 0.8rem; }

/* === CONTACT FORM === */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  transition: border var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* === BLOG CARDS === */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.blog-card-img {
  height: 180px;
  background: var(--dark-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-body .date { font-size: 0.8rem; color: var(--light-gray); margin-bottom: 0.4rem; }
.blog-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.blog-card-body p { color: var(--mid-gray); font-size: 0.9rem; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--black);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 200;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .btn-sm { white-space: nowrap; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-toggle { display: block; }
  .value-grid, .product-grid, .how-grid, .blog-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse { direction: ltr; }
  .feature-visual { height: 220px; }
  .cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3rem 0; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
