/* ==========================================================
   3DG Software – Stylesheet
   Palette: dark bg (#0d0d0d / #161616), red accent (#e00), warm grays
   Font: Inter (modern successor to Droid Sans, same feel)
   ========================================================== */

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

:root {
  --bg-primary:   #0d0d0d;
  --bg-card:      #1a1a1a;
  --bg-card-hover:#222;
  --text-primary: #e8e0d8;
  --text-secondary:#9a8e82;
  --text-muted:   #665e56;
  --accent:       #e00;
  --accent-hover: #ff2222;
  --accent-soft:  rgba(238,0,0,.12);
  --radius:       12px;
  --radius-sm:    8px;
  --transition:   .25s ease;
  --max-width:    1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Droid Sans', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* --- Layout --- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Header / Navbar --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(200,200,200,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #000;
}

.nav-brand .logo {
  height: 44px;
  width: auto;
}

.nav-brand .brand-text {
  color: var(--accent);
  font-weight: 400;
}

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

.nav-links a {
  font-size: .9rem;
  color: #111;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #000;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher a {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}

.lang-switcher a.lang-active {
  background: #111;
  color: #fff !important;
}

.lang-switcher a:not(.lang-active):hover {
  background: rgba(0,0,0,.1);
}

.lang-sep {
  color: #999;
  font-size: .75rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #333;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero --- */
.hero {
  text-align: center;
  padding: 80px 0 60px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Product Grid --- */
.products-section {
  padding: 40px 0 80px;
}

.products-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* --- Product Card --- */
.product-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238,0,0,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.product-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: linear-gradient(135deg, #1e1e1e 0%, #141414 100%);
  padding: 24px;
}

.product-card .card-icon img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

/* Placeholder icon when no image */
.product-card .card-icon .icon-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--accent);
}

.product-card .card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.product-card h3 em {
  font-style: normal;
  color: var(--accent);
}

.product-card .card-desc {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.product-card .card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.06);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tag--accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.product-card .card-footer {
  padding: 0 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-price {
  font-size: 1.1rem;
  font-weight: 700;
}

.card-price .currency {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.04);
}

.btn-sm {
  padding: 7px 16px;
  font-size: .82rem;
}

/* --- Product Detail Page --- */
.product-hero {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: start;
}

.product-hero .product-visual {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-hero .product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-icon-box {
  width: 350px;
  height: 350px;
  border-radius: 24px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.product-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-icon-box::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 50px rgba(0,0,0,.35), inset 0 0 20px rgba(0,0,0,.15);
  pointer-events: none;
}

.product-info h1,
.product-info .product-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 0;
  color: #fff;
}

.product-info .product-title em {
  font-style: normal;
  color: var(--accent);
}

.product-info .product-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.product-info .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-info .price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.price-block .price {
  font-size: 2.6rem;
  font-weight: 800;
}

.price-block .price-note {
  font-size: 1rem;
  color: var(--text-muted);
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

/* Feature list */
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--text-secondary);
}

.features-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--accent-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ee0000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Screenshots / Gallery */
.screenshots-section {
  padding: 60px 0;
}

.screenshots-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.screenshots-grid img {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.06);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--transition);
}

.screenshots-grid img:hover {
  transform: scale(1.02);
}

/* System Requirements */
.requirements-section {
  padding: 40px 0 80px;
}

.requirements-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.requirements-table {
  width: 100%;
  border-collapse: collapse;
}

.requirements-table th,
.requirements-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .9rem;
}

.requirements-table th {
  color: var(--text-muted);
  font-weight: 600;
  width: 180px;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .04em;
}

.requirements-table td {
  color: var(--text-secondary);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .85rem;
}

.site-footer a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  list-style: none;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
}

/* --- Versions Grid --- */
.versions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.version-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.version-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.version-card .version-desc {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.version-card--pro {
  border-color: rgba(238,0,0,.3);
  background: linear-gradient(135deg, rgba(238,0,0,.06) 0%, var(--bg-card) 60%);
}

.version-card--pro h3 {
  color: var(--accent);
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .comparison-table thead { display: none; }

  .comparison-table tbody tr {
    display: block;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .comparison-table tbody td {
    display: block;
    text-align: left;
    padding: 6px 0;
  }

  .comparison-table tbody td.comp-label {
    font-size: .9rem;
    margin-bottom: 8px;
    color: var(--text-primary);
  }

  .comparison-table tbody td:nth-child(2)::before {
    content: 'Match Photo: ';
    font-weight: 600;
    color: var(--text-muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
  }

  .comparison-table tbody td:nth-child(3)::before {
    content: '3DG PhotoMatch: ';
    font-weight: 600;
    color: var(--accent);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
  }
}

.comparison-table thead th {
  text-align: center;
  padding: 14px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid rgba(255,255,255,.08);
}

.comparison-table thead th:first-child {
  width: 200px;
}

.comparison-table thead th .comp-sub {
  display: block;
  font-weight: 400;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.comparison-table thead th.comp-highlight {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.comparison-table tbody td {
  padding: 14px 16px;
  font-size: .88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-align: center;
  vertical-align: top;
  line-height: 1.5;
}

.comparison-table tbody td.comp-label {
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* --- Coming Soon / Notify Form --- */
.coming-soon-block {
  margin-bottom: 8px;
}

.notify-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  max-width: 400px;
}

.notify-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text-primary);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.notify-form input[type="email"]:focus {
  border-color: var(--accent);
}

.notify-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

/* --- Back link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 24px 0 0;
  font-size: .9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.back-link:hover { color: var(--text-primary); }

.back-link svg {
  width: 16px;
  height: 16px;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner p {
  flex: 1;
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  min-width: 280px;
}

.cookie-banner p a {
  color: var(--text-primary);
  text-decoration: underline;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(200,200,200,.98);
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding: 16px 5%;
    gap: 16px;
  }
  .nav-toggle { display: block; }

  .hero { padding: 50px 0 40px; }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-actions {
    flex-direction: column;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .product-info h1 { font-size: 1.6rem; }
}
