/* ========================================
   D-Group — 2026
   Clean, textured, animated
   ======================================== */

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

:root {
  --bg: #0b0b0b;
  --bg-raised: #111;
  --bg-card: #141414;
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.5);
  --text: #e8e8e8;
  --text-dim: #888;
  --text-muted: #505050;
  --border: #1d1d1d;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* Noise texture — adds subtle film grain to the background */
.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.035;
  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.9' 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;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 6px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--gold) !important;
  color: #0b0b0b !important;
  font-weight: 600 !important;
  border-radius: 6px;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ========================================
   Hero
   ======================================== */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 60px;
}

.hero-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  max-width: 720px;
}

.hero-title .anim-line {
  display: block;
  overflow: hidden;
}

.accent {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gold);
  color: #0b0b0b;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: #333; }

/* Stats */
.hero-stats {
  display: flex;
  gap: 48px;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-stat-plus {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hero-stat-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========================================
   Sections shared
   ======================================== */
section {
  border-top: 1px solid var(--border);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

/* ========================================
   Services
   ======================================== */
.services {
  padding: 96px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.service-card {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
  cursor: pointer;
}

.service-card:hover {
  background: var(--bg-card);
}

.service-number {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-features {
  margin-bottom: 28px;
  flex: 1;
}

.service-features li {
  padding: 4px 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.service-features li::before {
  content: '—\00a0\00a0';
  color: var(--text-muted);
}

.service-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: auto;
}

.service-link .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.service-card:hover .service-link .arrow {
  transform: translateX(4px);
}

/* ========================================
   About
   ======================================== */
.about {
  padding: 96px 0;
}

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

.about-timeline {
  padding-left: 24px;
  border-left: 1px solid var(--border);
  margin-top: 8px;
}

.timeline-item {
  margin-bottom: 36px;
  position: relative;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28.5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
}

.timeline-item:first-child::before {
  border-color: var(--gold);
  background: var(--gold);
}

.timeline-date {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.timeline-content p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-logo-card {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.about-logo-card:hover .about-logo-img {
  transform: scale(1.04);
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg);
  transition: background 0.2s;
}

.value-item:hover { background: var(--bg-card); }

.value-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.value-item h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1px;
}

.value-item p {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ========================================
   Blog
   ======================================== */
.blog {
  padding: 96px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.blog-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px;
  background: var(--bg);
  transition: background 0.2s;
}

.blog-card:hover {
  background: var(--bg-card);
}

.blog-card-content h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.blog-card-content p {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.blog-card-arrow {
  font-size: 1.125rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.3s var(--ease);
}

.blog-card:hover .blog-card-arrow {
  color: var(--gold);
  transform: translate(2px, -2px);
}

/* ========================================
   CTA
   ======================================== */
.cta {
  padding: 96px 0;
}

.cta-inner {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.cta-desc {
  font-size: 0.9375rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.footer-brand-name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}

.footer-copy {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */

/* Fade up */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.anim-fade.is-visible {
  opacity: 1;
  transform: none;
}

/* Slide from left */
.anim-slide {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.anim-slide.is-visible {
  opacity: 1;
  transform: none;
}

/* Card rise */
.anim-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.anim-card.is-visible {
  opacity: 1;
  transform: none;
}

/* Scale in */
.anim-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.anim-scale.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero line-by-line reveal */
.anim-line {
  display: block;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s var(--ease);
}

.anim-line.is-visible {
  clip-path: inset(0 0% 0 0);
}

/* ========================================
   Responsive — Tablet
   ======================================== */
@media (max-width: 968px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-logo-card {
    max-width: 320px;
  }

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

  .hero-stats {
    gap: 40px;
  }

  /* Burger menu for tablets and below */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0b0b0b;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: 12px;
  }

  .nav-links a {
    display: block;
    font-size: 1rem;
    padding: 14px 0;
    color: var(--text);
  }

  .nav-cta {
    display: inline-flex;
    width: fit-content;
    padding: 10px 24px !important;
  }
}

/* ========================================
   Responsive — Mobile
   ======================================== */
@media (max-width: 640px) {
  .nav-container { height: 56px; }

  .hero {
    padding-top: 56px;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
  }

  .hero-container {
    padding: 48px 20px 40px;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-badge {
    margin-bottom: 28px;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 36px;
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 56px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-stat-number { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.625rem; }

  .services, .about, .blog, .cta {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .service-card {
    padding: 28px 20px;
  }

  .service-title { font-size: 1rem; }

  .about-grid { gap: 36px; }

  .about-logo-card {
    max-width: 100%;
    aspect-ratio: 4 / 3;
  }

  .about-timeline {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -24.5px;
  }

  .blog-card {
    padding: 20px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    padding: 14px 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 24px 0;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .footer-bottom {
    text-align: center;
    padding: 14px 0;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero-title { font-size: 1.625rem; }
  .container { padding: 0 16px; }
  .hero-container { padding: 40px 16px; }
  .service-card { padding: 24px 16px; }
}
