/* ================================================================
   Monolith ApS – Design system  (dark theme, lime-green accent)
   ================================================================ */

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

/* -----------------------------------------------------------
   DESIGN TOKENS
   ----------------------------------------------------------- */
:root {
  --bg:             hsl(220, 20%, 6%);
  --surface-1:      hsl(220, 18%, 8%);
  --card:           hsl(220, 18%, 10%);
  --border:         hsl(220, 14%, 18%);
  --fg:             hsl(210, 40%, 96%);
  --fg-muted:       hsl(215, 20%, 65%);

  --primary:        hsl(82, 85%, 50%);
  --primary-dark:   hsl(82, 85%, 40%);
  --secondary:      hsl(186, 100%, 42%);
  --accent:         hsl(28, 100%, 55%);
  --highlight:      hsl(270, 70%, 60%);

  --grad-primary:   linear-gradient(135deg, hsl(82,85%,50%), hsl(186,100%,42%));
  --grad-accent:    linear-gradient(135deg, hsl(28,100%,55%), hsl(348,90%,60%));
  --glow-primary:   0 0 20px hsla(82,85%,50%,.25), 0 0 40px hsla(82,85%,50%,.1);
  --shadow-card:    0 4px 24px hsla(220,20%,3%,.4);

  --font-heading:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;

  --radius-sm:      .375rem;
  --radius-md:      .75rem;
  --radius-lg:      1rem;

  --header-h:       4rem;
  --max-w:          1200px;
}

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

html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
p     { margin-bottom: 0.75em; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.15; }

/* -----------------------------------------------------------
   LAYOUT HELPERS
   ----------------------------------------------------------- */
.container        { width: 90%; max-width: var(--max-w); margin-inline: auto; }
.section          { padding-block: 5rem; }
.section-dark     { background: var(--surface-1); }
.section-heading  { text-align: center; margin-bottom: 3.5rem; }
.section-heading h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: .75rem; }
.section-heading p  { color: var(--fg-muted); max-width: 42rem; margin-inline: auto; }

/* -----------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ----------------------------------------------------------- */
.text-gradient        { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.text-gradient-accent { background: var(--grad-accent);  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.text-primary   { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent    { color: var(--accent); }
.text-highlight { color: var(--highlight); }

.badge { display: inline-block; padding: .25rem .75rem; background: hsla(82,85%,50%,.12); border: 1px solid hsla(82,85%,50%,.3); border-radius: 999px; color: var(--primary); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* -----------------------------------------------------------
   BUTTONS
   ----------------------------------------------------------- */
.btn         { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1.5rem; border-radius: var(--radius-sm); font-family: var(--font-body); font-weight: 600; font-size: .875rem; cursor: pointer; transition: all .2s; border: 1.5px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--primary); color: hsl(220,20%,5%); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline  { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { border-color: var(--fg-muted); }
.btn-lg       { padding: 1rem 2.5rem; font-size: 1rem; }

/* -----------------------------------------------------------
   HEADER
   ----------------------------------------------------------- */
.site-header  { position: fixed; inset: 0 0 auto 0; z-index: 100; background: hsla(220, 20%, 6%, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 1.5rem; }

.logo-link    { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; margin-right: auto; }
.logo-link img { height: 2rem; width: 2rem; object-fit: contain; }
.logo-name    { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: var(--fg); }
.logo-dot     { color: var(--primary); }

.menu-check   { display: none; }
.menu-btn     { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 2rem; height: 2rem; cursor: pointer; flex-shrink: 0; }
.menu-btn span { display: block; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-check:checked ~ .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-check:checked ~ .menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-check:checked ~ .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav   { display: flex; align-items: center; gap: 2rem; }
.nav-list   { display: flex; align-items: center; gap: 1.75rem; }
.nav-link   { font-size: .875rem; font-weight: 500; color: var(--fg-muted); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--fg); }
.nav-link.active { color: var(--primary); }

@media (max-width: 767px) {
  .menu-btn { display: flex; }
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: hsla(220, 20%, 5%, .98); border-bottom: 1px solid var(--border); padding: 1.5rem; flex-direction: column; align-items: stretch; gap: 0; }
  .menu-check:checked ~ .site-nav { display: flex; }
  .nav-list  { flex-direction: column; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-link  { display: block; padding: .875rem 0; font-size: 1rem; color: var(--fg); }
  .nav-cta   { margin-top: 1.25rem; text-align: center; }
}

/* -----------------------------------------------------------
   HERO
   ----------------------------------------------------------- */
.hero         { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero-bg      { position: absolute; inset: 0; background: url('../assets/hero-bg.jpg') center/cover no-repeat; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, hsla(220,20%,6%,.65) 0%, hsla(220,20%,6%,.85) 60%, var(--bg) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding-block: 5rem; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 1.5rem; }
.hero p  { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--fg-muted); max-width: 36rem; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* -----------------------------------------------------------
   ICON HELPER
   ----------------------------------------------------------- */
.icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* -----------------------------------------------------------
   CAPABILITY CARDS
   ----------------------------------------------------------- */
.cap-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px)  { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cap-grid { grid-template-columns: repeat(3, 1fr); } }

.cap-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-card); transition: transform .3s, box-shadow .3s; }
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--glow-primary); }
.cap-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem; color: var(--primary); }
.cap-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.cap-card p  { font-size: .875rem; color: var(--fg-muted); }

/* -----------------------------------------------------------
   PRODUCT PREVIEW GRID (index)
   ----------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .3s, box-shadow .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--glow-primary); }
.product-card-img { aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--card); padding: 2rem; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-body { padding: 1.5rem; }
.product-card-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.product-card-body p  { font-size: .875rem; color: var(--fg-muted); margin-bottom: 1rem; }
.product-card-meta  { font-size: .75rem; color: var(--fg-muted); margin-bottom: .75rem; }
.product-card-meta a { color: var(--primary); text-decoration: none; }
.product-card-meta a:hover { text-decoration: underline; }
.product-card-link { font-size: .875rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .25rem; }

/* -----------------------------------------------------------
   CTA SECTION
   ----------------------------------------------------------- */
.cta-section { text-align: center; max-width: 42rem; margin-inline: auto; }
.cta-section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.cta-section p  { color: var(--fg-muted); margin-bottom: 2rem; }

/* -----------------------------------------------------------
   PAGE HERO (inner pages)
   ----------------------------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + 3rem); }

/* -----------------------------------------------------------
   PRODUCT ROWS (produkter page)
   ----------------------------------------------------------- */
.product-rows { display: flex; flex-direction: column; gap: 5rem; }
.product-row  { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) {
  .product-row                     { grid-template-columns: 1fr 1fr; }
  .product-row.reverse .product-row-img  { order: 2; }
  .product-row.reverse .product-row-text { order: 1; }
}
.product-row-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.product-row-img img { width: 100%; height: auto; display: block; }
.product-row-text h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
.product-row-text p  { color: var(--fg-muted); margin-bottom: 1.5rem; line-height: 1.7; }
.product-live-link { font-size: .875rem; color: var(--fg-muted); margin-top: -.75rem; margin-bottom: 1.25rem; }
.product-live-link a { color: var(--primary); text-decoration: none; font-weight: 500; }
.product-live-link a:hover { text-decoration: underline; }

.feature-list  { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem .75rem; margin-bottom: 1.5rem; }
.feature-list li { font-size: .875rem; color: var(--fg-muted); padding-left: 1rem; position: relative; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.feature-list.accent    li::before { background: var(--accent); }
.feature-list.secondary li::before { background: var(--secondary); }
.feature-list.highlight li::before { background: var(--highlight); }

/* -----------------------------------------------------------
   SERVICE CARDS (services page)
   ----------------------------------------------------------- */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px)  { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); transition: transform .3s, box-shadow .3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--glow-primary); }
.service-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem; color: var(--primary); }
.info-icon    { width: 2rem;   height: 2rem;   margin-bottom: .75rem;  color: var(--primary); }
.service-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.service-card p  { font-size: .875rem; color: var(--fg-muted); }

.tech-badges { display: flex; flex-wrap: wrap; gap: .625rem; }
.tech-badge  { display: inline-block; padding: .375rem .875rem; background: var(--card); border: 1px solid var(--border); border-radius: 999px; font-size: .8125rem; font-weight: 500; color: var(--fg-muted); transition: border-color .2s, color .2s; }
.tech-badge:hover { border-color: var(--primary); color: var(--primary); }

/* -----------------------------------------------------------
   ABOUT (om-os page)
   ----------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: repeat(2, 1fr); } }
.product-logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem; padding: 1rem 0; }
.product-logo-strip img { width: 250px; height: 250px; object-fit: cover; opacity: .85; transition: opacity .2s; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); border-radius: 8px; }
.product-logo-strip img:hover { opacity: 1; }

.about-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.about-card h3 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--primary); }
.about-card p  { color: var(--fg-muted); line-height: 1.7; }
.about-card ul { color: var(--fg-muted); padding-left: 1.25rem; line-height: 2; }

.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

.related-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; transition: transform .3s, box-shadow .3s; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--glow-primary); }
.related-card h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.related-card p  { font-size: .875rem; color: var(--fg-muted); margin-bottom: 1rem; }
.related-card span { font-size: .875rem; font-weight: 600; color: var(--primary); }

/* -----------------------------------------------------------
   CONTACT (kontakt page)
   ----------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 3fr 2fr; } }

.contact-form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-card); }

.contact-form,
.form-grid       { display: flex; flex-direction: column; gap: 1.25rem; }
.form-grid-2     { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (max-width: 599px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-group   { display: flex; flex-direction: column; gap: .4rem; }
.form-group label,
.form-label   { font-size: .875rem; font-weight: 600; color: var(--fg); }

.form-input,
.form-select,
.form-textarea,
.form-group input,
.form-group select,
.form-group textarea { padding: .75rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--fg); font: inherit; font-size: .9375rem; transition: border-color .2s; resize: vertical; width: 100%; box-sizing: border-box; }
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-textarea { min-height: 8rem; }
.form-group select option,
.form-select option { background: var(--card); }

.form-hint   { font-size: .8125rem; color: var(--fg-muted); }

.form-success-msg { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; background: hsl(90, 50%, 8%); border: 1px solid hsl(90, 50%, 20%); border-radius: var(--radius-sm); color: #c8f050; font-size: .9375rem; font-weight: 500; }
.form-error-msg   { padding: .75rem 1.25rem; background: hsl(0, 50%, 10%); border: 1px solid hsl(0, 50%, 25%); border-radius: var(--radius-sm); color: #f87171; font-size: .875rem; }

.contact-info,
.contact-info-stack { display: flex; flex-direction: column; gap: 1rem; }
.info-card    { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.info-card h4, .info-card h3 { font-size: .875rem; font-weight: 600; color: var(--fg-muted); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.info-card p, .info-card a { font-size: .9375rem; color: var(--fg); }
.info-card a:hover { color: var(--primary); }

/* -----------------------------------------------------------
   FOOTER
   ----------------------------------------------------------- */
.site-footer  { background: var(--surface-1); border-top: 1px solid var(--border); padding-top: 4rem; }
.footer-grid  { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p { font-size: .875rem; color: var(--fg-muted); margin-top: 1rem; line-height: 1.7; max-width: 20rem; }
.footer-col h4  { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 1rem; }
.footer-col ul  { display: flex; flex-direction: column; gap: .125rem; }
.footer-col a   { font-size: .875rem; color: var(--fg-muted); transition: color .2s; }
.footer-col a:hover { color: var(--fg); }

.footer-bottom   { border-top: 1px solid var(--border); padding-block: 1.25rem; }
.footer-bottom p { font-size: .8125rem; color: var(--fg-muted); text-align: center; }
.footer-bottom a { color: var(--fg-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* -----------------------------------------------------------
   ANIMATIONS
   ----------------------------------------------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .6s ease both; }
.delay-1    { animation-delay: .1s; }
.delay-2    { animation-delay: .2s; }
.delay-3    { animation-delay: .3s; }
.delay-4    { animation-delay: .4s; }

/* -----------------------------------------------------------
   OTP MODAL
   ----------------------------------------------------------- */
.otp-modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.otp-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  width: 100%; max-width: 460px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  animation: slideUp .25s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.otp-modal h3  { font-size: 1.25rem; font-weight: 700; color: var(--fg); margin-bottom: .5rem; }
.otp-modal p   { font-size: .9375rem; color: var(--fg-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.otp-modal p strong { color: var(--fg); }

.otp-input-row { display: flex; gap: .75rem; align-items: center; }
.otp-code-input { letter-spacing: .5rem; font-size: 1.5rem; text-align: center; max-width: 200px; font-variant-numeric: tabular-nums; }

.otp-modal-actions { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: .4rem .875rem; font-size: .8125rem; }

.contact-info,
.contact-info-stack { display: flex; flex-direction: column; gap: 1rem; }
.info-card    { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; }
.info-card h4, .info-card h3 { font-size: .875rem; font-weight: 600; color: var(--fg-muted); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .05em; }
.info-card p, .info-card a { font-size: .9375rem; color: var(--fg); }
.info-card a:hover { color: var(--primary); }
