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

:root {
  --background: 220 20% 4%;
  --foreground: 200 20% 92%;
  --card: 220 18% 8%;
  --border: 220 15% 16%;
  --primary: 180 90% 50%;
  --primary-foreground: 220 20% 4%;
  --muted: 220 15% 12%;
  --muted-foreground: 215 15% 55%;
  --accent: 180 70% 40%;
  --destructive: 0 84% 60%;
  --radius: 0.75rem;
  --glow-primary: 0 0 40px hsl(180 90% 50% / 0.15);
  --glow-strong: 0 0 60px hsl(180 90% 50% / 0.25);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', system-ui, sans-serif; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.text-gradient {
  background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.glass {
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--border) / 0.5);
}
.glow-box { box-shadow: var(--glow-primary); }
.glow-box-strong { box-shadow: var(--glow-strong); }

.grid-bg {
  background-image:
    linear-gradient(hsl(220 15% 16% / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, hsl(220 15% 16% / 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* Nav – Bootstrap navbar + theme */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
}
.navbar.nav-wrap .container { max-width: 1400px; }
.navbar-logo {
  height: 2.25rem;
  width: auto;
  max-height: 44px;
  object-fit: contain;
  display: block;
}
.navbar.nav-wrap .navbar-nav .nav-link {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  transition: color 0.2s;
}
.navbar.nav-wrap .navbar-nav .nav-link:hover { color: hsl(var(--primary)); }
.navbar.nav-wrap .navbar-toggler {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}
.navbar.nav-wrap .navbar-toggler:focus { box-shadow: 0 0 0 2px hsl(var(--primary) / 0.5); }
.navbar.nav-wrap .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar.nav-wrap .navbar-collapse { margin-top: 0.5rem; }
@media (min-width: 992px) {
  .navbar.nav-wrap .navbar-collapse { margin-top: 0; }
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground)) !important;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; color: hsl(var(--primary-foreground)) !important; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 { top: 25%; left: 25%; width: 24rem; height: 24rem; background: hsl(var(--primary) / 0.1); }
.hero-glow-2 { bottom: 25%; right: 25%; width: 18rem; height: 18rem; background: hsl(var(--accent) / 0.1); }
.hero-content { position: relative; z-index: 10; padding-top: 6rem; padding-bottom: 4rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1.5fr; gap: 4rem; } }
.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}
.hero-desc {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 0 2rem;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-btns a {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s, border-color 0.2s;
}
.hero-btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.hero-btn-primary:hover { opacity: 0.9; }
.hero-btn-secondary {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}
.hero-btn-secondary:hover { border-color: hsl(var(--primary) / 0.5); }
.hero-grid .hero-img-wrap {
  width: 100%;
  max-width: 100%;
}
.hero-img-wrap {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: 0 0 60px hsl(180 90% 50% / 0.25), 0 0 100px hsl(180 90% 50% / 0.12);
}
@media (min-width: 1024px) {
  .hero-img-wrap { border-radius: 1.5rem; box-shadow: 0 0 80px hsl(180 90% 50% / 0.3), 0 0 140px hsl(180 90% 50% / 0.15); }
}
.hero-img-wrap img { width: 100%; height: auto; display: block; }

/* Hero carousel – photos fit inside frame */
.hero-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 800 / 500;
  min-height: 340px;
  background: hsl(var(--card) / 0.5);
}
@media (min-width: 768px) { .hero-carousel { min-height: 480px; } }
@media (min-width: 1024px) { .hero-carousel { min-height: 580px; aspect-ratio: 16/10; } }
.hero-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}
.hero-carousel-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-carousel-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero-carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1rem 1.25rem;
  background: linear-gradient(to bottom, hsl(var(--background) / 0.85), hsl(var(--background) / 0.4));
  backdrop-filter: blur(8px);
  color: hsl(var(--foreground));
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}
.hero-carousel-slide.active .hero-carousel-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Carousel dots – photo site controls */
.hero-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
}
.hero-carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--muted-foreground) / 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.2s;
}
.hero-carousel-dot:hover {
  background: hsl(var(--muted-foreground) / 0.8);
  transform: scale(1.2);
}
.hero-carousel-dot.active {
  background: hsl(var(--primary));
  box-shadow: 0 0 10px hsl(var(--primary) / 0.6);
}

/* Sections */
.section { padding: 6rem 0; position: relative; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
}
.section-head p {
  color: hsl(var(--muted-foreground));
  max-width: 36rem;
  margin: 0 auto;
}

/* Fréttir – news bullets per product */
.frettir-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .frettir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .frettir-grid { grid-template-columns: repeat(4, 1fr); } }
.frettir-card {
  padding: 1.5rem;
  border-radius: 1rem;
  transition: box-shadow 0.2s;
}
.frettir-card:hover { box-shadow: var(--glow-primary); }
.frettir-product {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  padding-bottom: 0.5rem;
}
.frettir-list {
  margin: 0;
  padding-left: 1.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.6;
}
.frettir-list li { margin-bottom: 0.35rem; }

/* QuickTable Features – key features list */
.qt-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .qt-features-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .qt-features-list { grid-template-columns: repeat(3, 1fr); } }
.qt-feature {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.qt-feature:hover { box-shadow: var(--glow-primary); }
.qt-feature-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}
.qt-feature-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

/* Cards */
.card-grid-2 { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid-2 { grid-template-columns: repeat(4, 1fr); } }
.card {
  padding: 1.5rem;
  border-radius: 1rem;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--glow-primary); }
.card-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--primary)); }
.card-title-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.card h3 { font-size: 1.125rem; font-weight: 600; margin: 0; }
/* Product cards (Lausnir & vörur) – white text */
.card-grid-2 .card .card-product-name.text-white,
.card-grid-2 .card h3 { color: #fff !important; }
.card-grid-2 .card p { color: #fff !important; }
.card-demo-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.card-demo-btn:hover { opacity: 0.9; color: hsl(var(--primary-foreground)); }
.card-badge {
  font-size: 10px;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-badge-live { background: hsl(var(--primary) / 0.2); color: hsl(var(--primary)); }
.card-badge-wip { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.5; margin: 0; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
}
.stat-value { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .stat-value { font-size: 3rem; } }
.stat-label { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }

/* Contact */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info h2 { margin: 0 0 1rem; }
.contact-info > p { color: hsl(var(--muted-foreground)); margin: 0 0 2rem; max-width: 28rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-item-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary)); }
.contact-item-label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: 0.05em; }
.contact-item-value { color: hsl(var(--foreground)); }

.form-card { padding: 2rem; border-radius: 1rem; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-group label {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font: inherit;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: hsl(var(--muted-foreground)); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.5);
}
.form-group textarea { resize: none; min-height: 5rem; }
.btn-submit {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-submit:hover { opacity: 0.9; }
.form-status { font-size: 0.875rem; margin-bottom: 0.75rem; }

/* Footer */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.site-footer a { text-decoration: none; }
.footer-logo img {
  height: 1.75rem;
  width: auto;
  max-height: 36px;
  object-fit: contain;
  display: block;
}
.site-footer .copy { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.site-footer .email { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.site-footer .email:hover { color: hsl(var(--primary)); }

/* Mobile menu */
