/* DigiGroup — Single Page Static Site */

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

:root {
  --bg: #050505;
  --surface: #0A0A0A;
  --text-primary: #FFFFFF;
  --text-secondary: #888888;
  --border: #222222;
  --border-hover: #444444;
  --glow: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Noise texture overlay ── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Animations ── */

@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .hero__logo {
    animation: fadeInUp 0.8s ease-out both;
  }

  .hero__tagline {
    animation: fadeInUp 0.8s ease-out 0.3s both;
  }

  /* Scroll reveal — elements start hidden, JS adds .is-visible */
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion: no animations, everything visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Page container ── */

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  flex: 1;
}

/* ── Gradient divider ── */

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  border: none;
  margin: 0;
}

/* ── Hero — full width, breaks out of .page container ── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Dot grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Cursor glow */
.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero__glow-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: auto;
  opacity: 0.03;
  pointer-events: none;
  filter: blur(2px);
}

.hero:hover .hero__glow {
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__logo {
  margin-bottom: 40px;
}

.hero__logo img {
  width: 340px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.08));
}

@media (max-width: 600px) {
  .hero__logo img {
    width: 260px;
  }
}

.hero__tagline {
  font-size: 28px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.45;
  font-weight: 400;
}

/* ── Products ── */

.products {
  padding: 80px 0;
}

.products__heading {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #666666;
  margin-bottom: 32px;
}

.product-card {
  background: var(--surface);
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 36px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px var(--glow);
  transform: translateY(-2px);
}

.product-card__name {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card__desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.product-card__link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-bottom: 2px;
}

.product-card__link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

.product-card__link:hover::before {
  width: 100%;
}

.product-card__link::after {
  content: '\2192';
  font-size: 18px;
  transition: transform 0.2s ease;
}

.product-card__link:hover::after {
  transform: translateX(3px);
}

/* Focus states */
.product-card__link:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Our Work ── */

.work {
  padding: 80px 0;
}

.work__heading {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #666666;
  margin-bottom: 32px;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.work-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px var(--glow);
  transform: translateY(-2px);
}

.work-card:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
  border-radius: 10px;
}

.work-card__name {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.work-card__desc {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Company Info ── */

.company {
  padding: 80px 0;
}

.company__name {
  font-family: 'Gadugi', 'Segoe UI', 'Inter', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.company__details {
  display: flex;
  gap: 32px;
  color: var(--text-secondary);
  font-size: 15px;
}

.company__acn {
  font-family: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.company__location {
  letter-spacing: 0.02em;
}

/* ── Footer ── */

.footer {
  padding: 48px 24px;
  text-align: center;
  color: #666666;
  font-size: 14px;
}

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

.footer a {
  color: #666666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--text-primary);
}

.footer a:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .hero {
    min-height: 85vh;
  }

  .hero__tagline {
    font-size: 22px;
  }

  .products,
  .work,
  .company {
    padding: 56px 0;
  }

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

  .product-card {
    padding: 28px;
  }

  .company__details {
    flex-direction: column;
    gap: 8px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 8px;
  }

  /* Disable cursor glow on mobile */
  .hero__glow {
    display: none;
  }
}
