/* ============================================
   DragoWeb — Terminal meets Teenage Engineering
   Premium minimalism, generous whitespace,
   monospace identity
   ============================================ */

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

:root {
  --bg: #f5f5f5;
  --bg-surface: #ebebeb;
  --bg-card: #ffffff;
  --text: #111111;
  --text-dim: #555555;
  --text-muted: #999999;
  --accent: #888888;
  --border: #d5d5d5;
  --border-dim: #e5e5e5;
  --mono: 'SF Mono', 'Menlo', 'Monaco', 'Cascadia Code', 'Courier New', monospace;
  --sans: -apple-system, 'Helvetica Neue', 'Arial', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.3s;
}
a:hover {
  opacity: 0.5;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(190, 190, 190, 0.92), rgba(245, 245, 245, 0.0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5vw;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
}

.logo-o {
  height: 1.3em;
  width: 1.3em;
  object-fit: contain;
  border-radius: 50%;
  vertical-align: -0.3em;
}

.logo-text {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav a {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav a:hover {
  color: var(--text);
  opacity: 1;
}

/* --- Header right (nav + lang) --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* --- Language selector --- */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 5px;
  transition: color 0.2s;
}
.lang-btn:hover {
  color: var(--text);
}
.lang-btn.active {
  color: var(--text);
  font-weight: 600;
}

.lang-toggle {
  background: none;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.2s;
}
.lang-toggle:hover {
  color: var(--text);
  border-color: var(--text);
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 0;
  z-index: 200;
  min-width: 48px;
}
.lang-dropdown.open {
  display: flex;
  flex-direction: column;
}
.lang-dropdown .lang-btn {
  padding: 6px 12px;
  text-align: left;
}
.lang-dropdown .lang-btn:hover {
  background: var(--border-dim);
}

/* --- Hamburger (mobil) --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 5vw 120px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-logo {
  text-align: center;
  margin-bottom: 56px;
}

.hero-logo-icon {
  width: clamp(56px, 8vw, 88px);
  height: clamp(56px, 8vw, 88px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.hero-logo-o {
  height: 0.94em;
  width: 0.94em;
  object-fit: contain;
  border-radius: 50%;
  vertical-align: -0.13em;
}

.hero-logo-text {
  font-family: var(--sans);
  font-size: clamp(61px, 8.28vw, 105px);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--text);
}

.hero-tagline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 2;
  max-width: 460px;
  margin: 0 auto 56px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: #d5d5d5;
  color: #111111;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  text-decoration: none;
}
.hero-cta:hover {
  opacity: 0.7;
  color: #111111;
}

/* Terminal cursor blink */
.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #0a0a0a;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Sections --- */
.section {
  padding: 80px 5vw;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 40px;
}

.section-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text);
}

.section-divider {
  width: 32px;
  height: 1.5px;
  background: var(--text);
  margin-top: 20px;
}

/* --- Om oss --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text p {
  margin-bottom: 24px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 2;
}

.about-info {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  padding: 40px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 12px;
}
.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
}

.info-value {
  color: var(--text);
  text-align: right;
}

/* --- Projekt / Produkter --- */
.projects-section {
  background: var(--bg-surface);
  padding: 80px 5vw;
  position: relative;
}

/* Mjuka toningar mellan sektioner */
.projects-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--bg), var(--bg-surface));
  pointer-events: none;
}
.projects-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg), var(--bg-surface));
  pointer-events: none;
}

.projects-inner {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.project-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 90%;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  padding: 36px;
  transition: border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card .project-urls {
  margin-top: auto;
}
.project-card:hover {
  border-color: var(--text);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}

.project-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 4px;
}

.project-subtitle {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.project-tag {
  display: inline-block;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 3px 10px;
  margin-bottom: 24px;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-url-action {
  text-decoration: underline;
  cursor: pointer;
}
.project-url-action:hover {
  color: var(--text);
}

.project-urls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.project-url {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.project-urls .project-url {
  margin-top: 0;
}

.project-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 32px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-badge {
  font-size: 9px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 4px 10px;
  letter-spacing: 1px;
}

/* --- Kontakt --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 2;
  margin-bottom: 24px;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  display: flex;
  gap: 20px;
}

.contact-details .label {
  color: var(--text-muted);
  min-width: 80px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* --- Terminal prompt decoration --- */
.terminal-prompt {
  color: var(--text-muted);
  font-size: 12px;
}
.terminal-prompt .path {
  color: var(--text-dim);
}
.terminal-prompt .symbol {
  color: var(--text);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-dim);
  padding: 48px 5vw;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-links a {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Product page --- */
.product-hero {
  padding: 100px 5vw 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-hero-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.product-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: contain;
}

.product-hero-title {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  letter-spacing: 4px;
}

.product-hero-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 3px;
  margin-top: 4px;
}

.product-hero-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 2;
  max-width: 540px;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 90%;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  padding: 36px;
}

.download-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.download-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 24px;
}

.download-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-decoration: none;
  transition: opacity 0.3s;
}
.download-btn:hover {
  opacity: 0.7;
  color: var(--bg);
}

.download-meta {
  margin-top: 16px;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* --- Manual / Instruktionsbok --- */
.manual {
  max-width: 700px;
}

.manual-chapter {
  margin-bottom: 40px;
}

.manual-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dim);
}

.manual p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 8px;
}

.manual-list {
  list-style: none;
  margin-bottom: 12px;
}

.manual-list li {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 2;
  padding-left: 16px;
  position: relative;
}

.manual-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* --- Feature grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 90%;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  padding: 36px;
  transition: border-color 0.3s;
}
.feature-card:hover {
  border-color: var(--text);
}

.feature-number {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 2;
}

/* --- Screenshot grid --- */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 90%;
  margin: 0 auto;
}

.screenshot-card {
  text-align: center;
}

.screenshot-placeholder {
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.screenshot-img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border-dim);
  margin-bottom: 12px;
}

.screenshot-caption {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* --- Tech overview --- */
.tech-overview {
  max-width: 600px;
}

.tech-overview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.tech-overview-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 32px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-logo-icon {
    width: clamp(48px, 12vw, 64px);
    height: clamp(48px, 12vw, 64px);
  }
  .hero-logo {
    gap: 12px;
  }
  .about-grid,
  .project-cards,
  .contact-grid,
  .download-grid,
  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  .project-cards,
  .download-grid,
  .feature-grid,
  .screenshot-grid {
    max-width: 100%;
  }
  .about-grid,
  .contact-grid {
    gap: 32px;
  }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(245, 245, 245, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px 5vw;
    gap: 24px;
    border-bottom: 1px solid var(--border-dim);
  }
  .nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .header-right {
    gap: 16px;
  }
  .lang-selector {
    position: static;
  }
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
  .section {
    padding: 60px 5vw;
  }
  .projects-section {
    padding: 60px 5vw;
  }
  .section-header {
    margin-bottom: 32px;
  }
  .project-card {
    padding: 28px;
  }
  .product-hero {
    padding: 90px 5vw 32px;
  }
  .product-hero-icon {
    width: 56px;
    height: 56px;
  }
  .contact-details li {
    border-bottom-color: var(--border);
  }
}

@media (max-width: 480px) {
  .hero-logo-icon {
    width: 44px;
    height: 44px;
  }
  .hero {
    padding: 110px 5vw 60px;
  }
  .hero-logo {
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-description {
    margin-bottom: 32px;
  }
  .section {
    padding: 48px 5vw;
  }
  .projects-section {
    padding: 48px 5vw;
  }
}
