/* ============================================
   Dijihack — Bauhaus Design System
   Constructivist · Geometric · Modernist
   ============================================ */

:root {
  --bg: #F0F0F0;
  --fg: #121212;
  --red: #D02020;
  --blue: #1040C0;
  --yellow: #F0C020;
  --white: #FFFFFF;
  --muted: #E0E0E0;
  --muted-dark: #999;
  --font: 'Outfit', sans-serif;
  --shadow-sm: 3px 3px 0px 0px var(--fg);
  --shadow-md: 5px 5px 0px 0px var(--fg);
  --shadow-lg: 8px 8px 0px 0px var(--fg);
  --border: 2px solid var(--fg);
  --border-thick: 4px solid var(--fg);
  --max-w: 1280px;
  --transition: 200ms ease-out;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--fg);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.92;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.02em; }

p { color: var(--fg); margin-bottom: 1rem; font-weight: 500; }

/* --- Utility --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section {
  padding: 80px 0;
  border-bottom: var(--border-thick);
  position: relative;
  overflow: hidden;
}

.section-sm { padding: 48px 0; border-bottom: var(--border-thick); }
.text-center { text-align: center; }

.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-yellow { color: var(--yellow); }
.text-white { color: var(--white); }

.bg-red { background: var(--red); }
.bg-blue { background: var(--blue); }
.bg-yellow { background: var(--yellow); }
.bg-dark { background: var(--fg); }
.bg-white { background: var(--white); }

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--yellow);
  color: var(--fg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: var(--border);
  margin-bottom: 16px;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-header .badge { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Geometric Decorations --- */
.geo-circle {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-block;
}
.geo-square {
  width: 16px; height: 16px;
  display: inline-block;
}
.geo-triangle {
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid var(--yellow);
  display: inline-block;
}
.geo-diamond {
  width: 16px; height: 16px;
  transform: rotate(45deg);
  display: inline-block;
}

/* Section corner decorations */
.section-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  border: var(--border);
  position: relative;
}

.btn svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { color: inherit; }

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--fg);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: #b81b1b; color: var(--white); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: none; }

.btn-secondary {
  background: var(--white);
  color: var(--fg);
  border-color: var(--fg);
  box-shadow: var(--shadow-md);
}
.btn-secondary:hover { background: var(--muted); color: var(--fg); }
.btn-secondary:active { transform: translate(2px, 2px); box-shadow: none; }

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--fg);
  box-shadow: var(--shadow-md);
}
.btn-blue:hover { background: #0c35a0; color: var(--white); }
.btn-blue:active { transform: translate(2px, 2px); box-shadow: none; }

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--red);
  padding: 14px 0;
  box-shadow: none;
  font-weight: 700;
}
.btn-ghost:hover { color: var(--blue); }

.btn-lg { padding: 18px 36px; font-size: 0.95rem; }

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  background: var(--bg);
  border-bottom: var(--border-thick);
  transition: background var(--transition);
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 4px 0 0 rgba(0,0,0,0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--fg); }

.nav-logo-shapes {
  display: flex;
  align-items: center;
  gap: 3px;
}
.nav-logo-shapes .shape-circle {
  width: 14px; height: 14px; border-radius: 50%; background: var(--red);
}
.nav-logo-shapes .shape-square {
  width: 12px; height: 12px; background: var(--blue);
}
.nav-logo-shapes .shape-tri {
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 13px solid var(--yellow);
}

/* Legacy logo-icon support */
.logo-icon { display: none; }

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a .dropdown-arrow {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 2px;
  transition: transform var(--transition);
}
.nav-dropdown:hover > a .dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  min-width: 260px;
  z-index: 100;
}
.nav-dropdown-menu-inner {
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--red);
}

.nav-cta .btn { padding: 10px 22px; font-size: 0.78rem; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--fg);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  border-bottom: var(--border-thick);
  overflow: hidden;
  background: var(--bg);
}

.hero .container { position: relative; z-index: 2; width: 100%; }

.hero-content {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 0;
}

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

.hero h1 { margin-bottom: 24px; }
.hero h1 .text-accent { color: var(--red); }

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  color: var(--fg);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 40px;
  border-top: var(--border-thick);
}

.hero-stat { text-align: left; }
.hero-stat-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--fg);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-dark);
  margin-top: 6px;
}

/* Hero geometric composition */
.hero-geo {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  z-index: 1;
}

.hero-geo .geo-big-circle {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--blue);
  top: 40px; right: 40px;
}
.hero-geo .geo-big-square {
  position: absolute;
  width: 180px; height: 180px;
  background: var(--red);
  border: var(--border-thick);
  bottom: 60px; right: 160px;
  transform: rotate(15deg);
}
.hero-geo .geo-big-triangle {
  position: absolute;
  width: 0; height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid var(--yellow);
  top: 20px; right: 200px;
}
.hero-geo .geo-outline-circle {
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  border: var(--border-thick);
  bottom: 20px; right: 60px;
}

.grid-bg { display: none; }

/* --- Trust Bar --- */
.trust-bar {
  padding: 32px 0;
  border-bottom: var(--border-thick);
  background: var(--white);
}

.trust-bar p {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--muted-dark);
  margin-bottom: 20px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-logos .platform-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.trust-logos .platform-logo svg {
  width: 24px;
  height: 24px;
}

.trust-logos span {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
  opacity: 0.5;
}

/* --- Problem Section --- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.problem-content h2 { margin-bottom: 20px; }
.problem-content p { font-size: 1.05rem; margin-bottom: 20px; }

.problem-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.problem-stat-card {
  background: var(--white);
  border: var(--border);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
  position: relative;
}

.problem-stat-card:hover { transform: translateY(-2px); }

.problem-stat-card::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: var(--yellow);
}

.problem-stat-card:nth-child(2)::after { background: var(--red); border-radius: 50%; }
.problem-stat-card:nth-child(3)::after { background: var(--blue); }
.problem-stat-card:nth-child(4)::after { background: var(--red); border-radius: 50%; width: 10px; height: 10px; }

.problem-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 900;
  display: block;
  margin-bottom: 6px;
  line-height: 1;
}

.problem-stat-card .stat-value.negative { color: var(--red); }
.problem-stat-card .stat-value.positive { color: var(--blue); }
.problem-stat-card .stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-dark);
}

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

.service-card {
  background: var(--white);
  border: var(--border-thick);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
  position: relative;
}

.service-card:hover { transform: translateY(-4px); }

/* Corner decoration */
.service-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: var(--red);
}
.service-card:nth-child(2)::after { background: var(--blue); border-radius: 50%; }
.service-card:nth-child(3)::after { background: var(--yellow); transform: rotate(45deg); }
.service-card:nth-child(4)::after { background: var(--yellow); }
.service-card:nth-child(5)::after { background: var(--red); border-radius: 50%; }
.service-card:nth-child(6)::after { background: var(--blue); transform: rotate(45deg); }

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}

.service-icon svg { width: 26px; height: 26px; }
.service-icon .icon-emoji { font-size: 1.4rem; }

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.service-card p {
  font-size: 0.92rem;
  margin-bottom: 20px;
  text-transform: none;
  font-weight: 500;
  line-height: 1.6;
}

.service-card .btn-ghost { font-size: 0.82rem; text-transform: uppercase; }

/* --- Platform Cards --- */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.platform-card {
  background: var(--white);
  border: var(--border-thick);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
  position: relative;
}

.platform-card:hover { transform: translateY(-3px); }

.platform-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: var(--border);
  background: var(--bg);
}

.platform-icon svg { width: 30px; height: 30px; }

.platform-card:nth-child(1) .platform-icon { border-radius: 50%; }
.platform-card:nth-child(3) .platform-icon { border-radius: 50%; }

.platform-card h4 {
  margin-bottom: 8px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.platform-card p {
  font-size: 0.85rem;
  text-transform: none;
  font-weight: 500;
  line-height: 1.5;
}

/* --- Process --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 4px;
  background: var(--fg);
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-number {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 auto 20px;
  background: var(--white);
  border: var(--border-thick);
  color: var(--fg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.process-step:nth-child(1) .process-number { border-radius: 50%; }
.process-step:nth-child(3) .process-number { border-radius: 50%; }
.process-step:nth-child(2) .process-number { transform: rotate(45deg); }
.process-step:nth-child(2) .process-number span { transform: rotate(-45deg); display: block; }
.process-step:nth-child(4) .process-number { transform: rotate(45deg); }
.process-step:nth-child(4) .process-number span { transform: rotate(-45deg); display: block; }

.process-step:hover .process-number {
  background: var(--red);
  color: var(--white);
  border-color: var(--fg);
}

.process-step h4 { margin-bottom: 8px; font-size: 0.95rem; }
.process-step p { font-size: 0.88rem; text-transform: none; font-weight: 500; }

/* --- Stats Bar --- */
.stats-section {
  background: var(--yellow);
  border-bottom: var(--border-thick);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
  border-right: var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-item h3 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--fg);
}

.stat-item p {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

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

.testimonial-card {
  background: var(--white);
  border: var(--border-thick);
  padding: 32px 24px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
  position: relative;
}

.testimonial-card:hover { transform: translateY(-2px); }

/* Quote decoration */
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--red);
  opacity: 0.3;
}

.testimonial-card:nth-child(2)::before { color: var(--blue); }
.testimonial-card:nth-child(3)::before { color: var(--yellow); }

.testimonial-stars {
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
  color: var(--yellow);
}

.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.82rem;
  border: var(--border);
  background: var(--bg);
}

.testimonial-card:nth-child(1) .testimonial-avatar { border-radius: 50%; background: var(--red); color: var(--white); border-color: var(--fg); }
.testimonial-card:nth-child(2) .testimonial-avatar { background: var(--blue); color: var(--white); }
.testimonial-card:nth-child(3) .testimonial-avatar { border-radius: 50%; background: var(--yellow); color: var(--fg); }

.testimonial-name {
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--muted-dark);
  font-weight: 500;
}

/* --- CTA Section --- */
.cta-section { border-bottom: var(--border-thick); }

.cta-box {
  background: var(--yellow);
  border: var(--border-thick);
  padding: 72px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative shapes */
.cta-box::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.2;
}

.cta-box::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: var(--blue);
  transform: rotate(45deg);
  opacity: 0.2;
}

.cta-box h2 { margin-bottom: 16px; position: relative; z-index: 2; }
.cta-box p {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 2;
}
.cta-box .btn { position: relative; z-index: 2; }

/* --- Tool Iframe --- */
.tool-iframe-wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
}
.tool-iframe-wrap iframe {
  width: 100%;
  min-height: 80vh;
  border: var(--border);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

/* --- Footer --- */
.footer {
  background: var(--fg);
  color: var(--white);
  border-top: var(--border-thick);
  padding: 56px 0 24px;
}

.footer p, .footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--yellow); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; }
.footer-brand .nav-logo:hover { color: var(--white); }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }

.footer-heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yellow);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.88rem; font-weight: 500; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { font-size: 0.82rem; margin: 0; }

.footer-social { display: none; gap: 12px; }
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--fg);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 140px 0 64px;
  text-align: center;
  border-bottom: var(--border-thick);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.page-header .badge { margin-bottom: 16px; }
.page-header h1 { margin-bottom: 16px; position: relative; }
.page-header p { font-size: 1.1rem; max-width: 560px; margin: 0 auto; position: relative; }

/* Decorative geo for page header */
.page-header::before {
  content: '';
  position: absolute;
  top: 80px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: var(--border-thick);
  opacity: 0.1;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: var(--yellow);
  transform: rotate(45deg);
  opacity: 0.08;
}

/* --- Service Detail (services page) --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: var(--border);
}

.service-detail:last-child { border-bottom: none; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }

.service-detail-content h3 { font-size: 1.5rem; margin-bottom: 16px; line-height: 1.1; }
.service-detail-content p { font-size: 1rem; margin-bottom: 16px; text-transform: none; font-weight: 500; }

.service-detail-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
}

.feature-item .check {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
  border: var(--border);
  background: var(--yellow);
  color: var(--fg);
}

.service-detail-visual {
  background: var(--white);
  border: var(--border-thick);
  box-shadow: var(--shadow-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.service-detail:nth-child(1) .service-detail-visual { background: var(--blue); }
.service-detail:nth-child(2) .service-detail-visual { background: var(--red); }
.service-detail:nth-child(3) .service-detail-visual { background: var(--yellow); }
.service-detail:nth-child(4) .service-detail-visual { background: var(--blue); }
.service-detail:nth-child(5) .service-detail-visual { background: var(--red); }

.service-visual-icon {
  font-size: 4.5rem;
}

.service-detail:nth-child(1) .service-visual-icon,
.service-detail:nth-child(2) .service-visual-icon,
.service-detail:nth-child(4) .service-visual-icon,
.service-detail:nth-child(5) .service-visual-icon { filter: grayscale(1) brightness(10); }

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-content h2 { margin-bottom: 20px; }
.about-content p { font-size: 1rem; margin-bottom: 14px; text-transform: none; font-weight: 500; }

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

.value-card {
  background: var(--white);
  border: var(--border-thick);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
  position: relative;
}

.value-card:hover { transform: translateY(-3px); }
.value-card::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  background: var(--red);
}
.value-card:nth-child(2)::after { background: var(--blue); border-radius: 50%; }
.value-card:nth-child(3)::after { background: var(--yellow); transform: rotate(45deg); }
.value-card:nth-child(4)::after { background: var(--blue); }
.value-card:nth-child(5)::after { background: var(--yellow); border-radius: 50%; }
.value-card:nth-child(6)::after { background: var(--red); transform: rotate(45deg); }

.value-icon { font-size: 1.8rem; margin-bottom: 12px; }
.value-card h4 { margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; text-transform: none; font-weight: 500; }

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

.team-card {
  background: var(--white);
  border: var(--border-thick);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}
.team-card:hover { transform: translateY(-2px); }

.team-avatar {
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  font-weight: 900;
  border: var(--border-thick);
}

.team-card:nth-child(1) .team-avatar { border-radius: 50%; background: var(--red); color: var(--white); }
.team-card:nth-child(2) .team-avatar { background: var(--blue); color: var(--white); }
.team-card:nth-child(3) .team-avatar { border-radius: 50%; background: var(--yellow); color: var(--fg); }

.team-card h4 { margin-bottom: 4px; font-size: 1rem; }
.team-card .team-role { font-size: 0.82rem; color: var(--red); margin-bottom: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.team-card p { font-size: 0.88rem; text-transform: none; font-weight: 500; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form {
  background: var(--white);
  border: var(--border-thick);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: var(--border);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 3px 3px 0px 0px var(--red);
}

.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23121212' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.contact-info { display: flex; flex-direction: column; gap: 16px; }

.contact-info-card {
  background: var(--white);
  border: var(--border);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.contact-info-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: var(--border);
  background: var(--bg);
}

.contact-info-card h4 { margin-bottom: 2px; font-size: 0.88rem; }
.contact-info-card p { font-size: 0.88rem; margin: 0; text-transform: none; font-weight: 500; }

/* --- FAQ --- */
.faq-section { margin-top: 24px; }
.faq-section h3 { font-size: 1.1rem; }

.faq-item {
  border: var(--border);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: var(--white);
  border: none;
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.faq-question:hover { background: var(--bg); }

.faq-item.active .faq-question {
  background: var(--red);
  color: var(--white);
}

.faq-question .faq-toggle {
  font-size: 1.2rem;
  font-weight: 900;
  transition: transform var(--transition);
}
.faq-item.active .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
  padding: 16px 20px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.6;
  background: #FFF9C4;
  border-top: var(--border-thick);
  text-transform: none;
}

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

.blog-card {
  background: var(--white);
  border: var(--border-thick);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}
.blog-card:hover { transform: translateY(-4px); }

.blog-card-image {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-bottom: var(--border-thick);
}

.blog-card:nth-child(3n+1) .blog-card-image { background: var(--blue); }
.blog-card:nth-child(3n+2) .blog-card-image { background: var(--red); }
.blog-card:nth-child(3n+3) .blog-card-image { background: var(--yellow); }

.blog-card-content { padding: 20px; }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.blog-tag {
  padding: 3px 10px;
  background: var(--fg);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-date {
  font-size: 0.75rem;
  color: var(--muted-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: -0.01em;
}
.blog-card h3 a { color: var(--fg); }
.blog-card h3 a:hover { color: var(--red); }

.blog-card p { font-size: 0.88rem; margin-bottom: 12px; text-transform: none; font-weight: 500; }

/* --- 404 Specifics --- */
.hero .text-gradient,
.text-gradient {
  color: var(--red);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

/* --- Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mobile-menu .btn { margin-top: 12px; }
.mobile-menu-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted-dark);
  margin-top: 12px;
  margin-bottom: -8px;
}
.mobile-menu .mobile-tool-link {
  font-size: 0.95rem;
  font-weight: 700;
}
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--fg);
  font-weight: 900;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid, .testimonials-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .process-grid::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: var(--border); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid, .about-grid, .service-detail, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-detail:nth-child(even) { direction: ltr; }
  .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-geo { display: none; }
  .hero-content { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .hero { min-height: auto; padding-top: 72px; }
  .hero-content { padding: 40px 0; }
  .hero h1 { font-size: 2.4rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .services-grid, .testimonials-grid, .blog-grid, .values-grid, .team-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 48px 0; }
  .cta-box { padding: 40px 20px; }
  .page-header { padding: 110px 0 48px; }
  .contact-form { padding: 24px; }
}

@media (max-width: 480px) {
  .problem-stats { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr; }
}
