/* ============================================================
   DYMA — styles.css
   ============================================================ */

:root {
  --bg:            #0a0a0a;
  --bg-card:       #0f0f0f;
  --bg-elevated:   #141414;
  --text-primary:  #f0f0f0;
  --text-secondary:#888888;
  --accent:        #00ff88;
  --border:        #1a1a1a;
  --border-strong: #242424;
  --font-body:     'Inter', sans-serif;
  --font-display:  'Playfair Display', serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-style: italic;
}

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

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.divider {
  height: 1px;
  background: var(--border);
}

.divider-accent {
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border-strong);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-style: italic;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.75rem;
  align-items: center;
}

.nav-link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--accent);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--accent);
}

/* ============================================================
   HERO — Homepage
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 9rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(0, 255, 136, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(0, 255, 136, 0.025) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 950px;
}

.hero-headline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(3.2rem, 7.5vw, 7.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.hero-body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.85;
  margin-bottom: 3rem;
}

.accent-line {
  width: 56px;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   PAGE HERO — Inner pages
   ============================================================ */

.page-hero {
  padding: 11rem 0 5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero .page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 750px;
  margin-bottom: 1.5rem;
}

.page-hero p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  max-width: 620px;
  line-height: 1.85;
}

/* ============================================================
   PILLAR CARDS — Homepage
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.pillar-card {
  background: var(--bg);
  padding: 2.75rem 2.5rem 2.5rem;
  border-top: 2px solid var(--accent);
  transition: background 0.3s ease;
}

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

.pillar-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  margin-top: 0.5rem;
}

.pillar-card p {
  font-size: 0.88rem;
  line-height: 1.75;
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  background: var(--bg-card);
  user-select: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: mq-scroll 45s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.mq-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 0 2rem;
}

.mq-platform {
  color: var(--accent);
}

.mq-sep {
  color: #2d2d2d;
  font-size: 0.6rem;
  line-height: 1;
  flex-shrink: 0;
}

@keyframes mq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   STAT ROW — 6 equal columns
   ============================================================ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat-item {
  background: var(--bg);
  padding: 2.5rem 1.5rem;
}

.stat-item h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-item p {
  font-size: 0.7rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* ============================================================
   PULL QUOTE
   ============================================================ */

.pull-quote {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  line-height: 1.45;
  color: var(--text-primary);
  max-width: 880px;
  position: relative;
  padding-left: 2.5rem;
}

.pull-quote blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 3rem;
}

.portfolio-card {
  background: var(--bg);
  padding: 2.5rem;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

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

.portfolio-card:hover::after {
  transform: scaleX(1);
}

.card-image-placeholder {
  width: 100%;
  height: 150px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  margin-bottom: 1.75rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 0.22rem 0.65rem;
  margin-bottom: 0.75rem;
}

.card-platform {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.85rem;
}

.portfolio-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.portfolio-card p {
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ============================================================
   VALUES
   ============================================================ */

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3.5rem;
  margin-top: 3rem;
}

.value-item {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}

.value-number {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.85rem;
}

.value-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-item p {
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ============================================================
   TEAM
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0 0 1.75rem;
  transition: border-color 0.3s ease;
  overflow: hidden;
}

.team-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
}

.team-avatar {
  width: 100%;
  height: 210px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-strong);
}

.team-info {
  padding: 1.5rem 1.75rem 0;
}

.team-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.team-card:hover h4 {
  color: var(--accent);
}

.team-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ============================================================
   ACQUISITION CRITERIA
   ============================================================ */

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 3rem;
}

.criteria-item {
  background: var(--bg);
  padding: 2.25rem 2.5rem;
  transition: background 0.3s ease;
}

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

.criteria-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}

.criteria-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.criteria-item p {
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ============================================================
   ACQUISITION STEPS
   ============================================================ */

.steps-list {
  margin-top: 3rem;
}

.step-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step-item:first-child {
  border-top: 1px solid var(--border);
}

.step-number {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  opacity: 0.5;
}

.step-content h3 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 600px;
}

/* ============================================================
   OPERATIONS
   ============================================================ */

.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3.5rem;
  margin-top: 4rem;
}

.ops-item {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.ops-icon-wrap {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 255, 136, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.ops-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.ops-item p {
  font-size: 0.875rem;
  line-height: 1.8;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-container {
  max-width: 640px;
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.55rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  line-height: 1.5;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.3);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #3a3a3a;
}

.btn-submit {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.95rem 2.75rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  border-radius: 0;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--accent);
  color: #0a0a0a;
}

.form-success {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  background: rgba(0, 255, 136, 0.04);
}

.form-success.visible {
  display: block;
}

/* ============================================================
   INTRO TEXT
   ============================================================ */

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  margin-bottom: 4rem;
}

.section-intro p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 3rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-style: italic;
  font-family: var(--font-display);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.25rem;
  align-items: flex-start;
  padding-top: 0.3rem;
}

.footer-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 2rem 2rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.72rem;
  color: #444;
  line-height: 1.5;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.animate {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.35s; }
.animate-delay-4 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 0 2rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    list-style: none;
  }

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

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

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    padding: 1.1rem 0;
    font-size: 0.85rem;
  }

  .nav-toggle {
    display: flex;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col,
  .section-intro {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .page-hero {
    padding: 9rem 0 4rem;
  }

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

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

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

  .ops-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .step-item {
    grid-template-columns: 68px 1fr;
    gap: 1.5rem;
  }

  .step-number {
    font-size: 3rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pull-quote blockquote {
    padding-left: 1.5rem;
  }
}

@media (max-width: 420px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
