/*
Theme Name: ERMinds Child
Theme URI: https://erminds.com/
Description: ERMinds one-page website child theme.
Author: ERMinds
Template: twentytwentyfour
Version: 1.0.0
Text Domain: erminds-child
*/

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

    :root {
      --bg: #050816;
      --bg-light: #0c1025;
      --card: rgba(255,255,255,0.04);
      --border: rgba(255,255,255,0.08);
      --text: #ffffff;
      --muted: #9ca3af;
      --blue: #2563ff;
      --purple: #8b5cf6;
      --gradient: linear-gradient(135deg,#2563ff,#9333ea);
    }

    html {
      scroll-behavior: smooth;
    }

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

    body.offer-popup-open {
      overflow: hidden;
    }

    body:not(.light-theme) h1,
    body:not(.light-theme) h2,
    body:not(.light-theme) h3,
    body:not(.light-theme) h4,
    body:not(.light-theme) h5,
    body:not(.light-theme) h6,
    body:not(.light-theme) .wp-block-heading {
      color: #ffffff !important;
    }

    body.light-theme h1,
    body.light-theme h2,
    body.light-theme h3,
    body.light-theme h4,
    body.light-theme h5,
    body.light-theme h6,
    body.light-theme .wp-block-heading {
      color: var(--text);
    }
    body:not(.light-theme) a.emaillink{
      color: var(--muted);
    }
    body::before {
      content: '';
      position: fixed;
      width: 700px;
      height: 700px;
      background: radial-gradient(circle, rgba(37,99,255,0.18), transparent 70%);
      top: -200px;
      right: -200px;
      z-index: -1;
      animation: ambientFloat 16s ease-in-out infinite alternate;
    }

    body::after {
      content: '';
      position: fixed;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(147,51,234,0.12), transparent 70%);
      bottom: -200px;
      left: -200px;
      z-index: -1;
      animation: ambientFloat 18s ease-in-out infinite alternate-reverse;
    }

    @keyframes ambientFloat {
      from {
        transform: translate3d(0, 0, 0) scale(1);
      }

      to {
        transform: translate3d(34px, 26px, 0) scale(1.08);
      }
    }

    .container {
      width: min(1200px, 92%);
      margin: auto;
    }

    .announcement {
      background: linear-gradient(135deg,#2563ff,#9333ea);
      padding: 12px;
      text-align: center;
      font-size: 14px;
      font-weight: 600;
      color: #ffffff;
      background-size: 180% 180%;
      animation: gradientShift 8s ease infinite;
    }

    @keyframes gradientShift {
      0%, 100% {
        background-position: 0% 50%;
      }

      50% {
        background-position: 100% 50%;
      }
    }

    nav {
      position: sticky;
      top: 0;
      z-index: 1000;
      backdrop-filter: blur(18px);
      background: rgba(5,8,22,0.75);
      border-bottom: 1px solid rgba(255,255,255,0.05);
      transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 0;
    }

    .logo {
      width: 154px;
      height: auto;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      flex: 0 0 154px;
    }

    .logo img {
      width: 80%;
      height: auto;
      display: block;
      object-fit: contain;
      object-position: left center;
      filter: drop-shadow(0 12px 24px rgba(0,0,0,0.22));
    }

    .theme-toggle {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      cursor: pointer;
      transition: 0.3s ease;
      font-size: 18px;
    }

    .menu-toggle {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.04);
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      transition: 0.3s ease;
    }

    .menu-toggle span {
      width: 20px;
      height: 2px;
      border-radius: 999px;
      background: currentColor;
      color: var(--text);
      display: block;
    }

    .theme-toggle:hover {
      transform: translateY(-2px);
      border-color: rgba(124,156,255,0.3);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .light-theme {
      --bg: #f5f7ff;
      --bg-light: #eef2ff;
      --card: rgba(255,255,255,0.8);
      --border: rgba(15,23,42,0.08);
      --text: #0f172a;
      --muted: #475569;
    }

    .light-theme nav {
      background: rgba(255,255,255,0.94);
      border-bottom: 1px solid rgba(15,23,42,0.1);
      box-shadow: 0 16px 40px rgba(15,23,42,0.08);
    }

    .light-theme .announcement {
      background: linear-gradient(135deg,#2563ff,#9333ea);
      color: #ffffff;
    }

    .light-theme .logo img {
      filter: drop-shadow(0 10px 24px rgba(15,23,42,0.08));
    }

    .light-theme .nav-links a,
    .light-theme .theme-toggle,
    .light-theme input,
    .light-theme textarea,
    .light-theme .hero-tag,
    .light-theme .country,
    .light-theme .feature-item {
      color: #0f172a;
    }

    .light-theme .theme-toggle,
    .light-theme .menu-toggle,
    .light-theme .btn-secondary {
      background: rgba(15,23,42,0.04);
      border-color: rgba(15,23,42,0.12);
    }

    .light-theme input,
    .light-theme textarea {
      background: rgba(255,255,255,0.95);
    }

    .light-theme .btn-secondary {
      color: #0f172a;
    }

    .light-theme .footer-links a,
    .light-theme .copyright {
      color: #475569;
    }

    .offer-popup {
      position: fixed;
      inset: 0;
      z-index: 3000;
      display: grid;
      place-items: center;
      padding: 24px;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .offer-popup.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .offer-popup__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(3,7,18,0.72);
      backdrop-filter: blur(14px);
    }

    .offer-popup__dialog {
      position: relative;
      width: min(560px, 100%);
      padding: 42px;
      border-radius: 30px;
      background:
        radial-gradient(circle at top right, rgba(37,99,255,0.20), transparent 42%),
        linear-gradient(180deg, rgba(18,24,46,0.98), rgba(8,12,28,0.98));
      border: 1px solid rgba(255,255,255,0.12);
      box-shadow: 0 34px 100px rgba(0,0,0,0.42);
      transform: translateY(22px) scale(0.96);
      transition: transform 0.34s ease;
      overflow: hidden;
    }

    .offer-popup.is-open .offer-popup__dialog {
      transform: translateY(0) scale(1);
    }

    .offer-popup__dialog::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(120deg, transparent, rgba(255,255,255,0.08), transparent);
      transform: translateX(-120%);
      animation: modalShine 5.5s ease-in-out infinite;
      pointer-events: none;
    }

    @keyframes modalShine {
      0%, 45% {
        transform: translateX(-120%);
      }

      75%, 100% {
        transform: translateX(120%);
      }
    }

    .offer-popup__close {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 40px;
      height: 40px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 14px;
      background: rgba(255,255,255,0.06);
      color: #ffffff;
      font-size: 26px;
      line-height: 1;
      cursor: pointer;
      transition: transform 0.25s ease, background 0.25s ease;
    }

    .offer-popup__close:hover {
      transform: rotate(90deg);
      background: rgba(255,255,255,0.12);
    }

    .offer-popup__eyebrow {
      display: inline-flex;
      margin-bottom: 16px;
      padding: 8px 14px;
      border-radius: 999px;
      color: #dbe4ff;
      background: rgba(37,99,255,0.14);
      border: 1px solid rgba(124,156,255,0.28);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .offer-popup__dialog h2 {
      max-width: 440px;
      font-size: 38px;
      line-height: 1.08;
      margin-bottom: 16px;
    }

    .offer-popup__dialog p {
      color: var(--muted);
      font-size: 17px;
      max-width: 460px;
      margin-bottom: 28px;
    }

    .offer-popup__actions {
      display: flex;
      gap: 14px;
      flex-wrap: wrap;
    }

    .light-theme .offer-popup__backdrop {
      background: rgba(15,23,42,0.44);
    }

    .light-theme .offer-popup__dialog {
      background:
        radial-gradient(circle at top right, rgba(37,99,255,0.14), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,242,255,0.98));
      border-color: rgba(37,99,255,0.13);
      box-shadow: 0 34px 100px rgba(37,99,255,0.18), 0 18px 42px rgba(15,23,42,0.12);
    }

    .light-theme .offer-popup__close {
      color: #0f172a;
      background: rgba(15,23,42,0.05);
      border-color: rgba(15,23,42,0.10);
    }

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

    .nav-links ul,
    .nav-links li,
    .footer-grid ul,
    .footer-grid li {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-links li {
      display: inline-flex;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      font-size: 14px;
      font-weight: 600;
      opacity: 0.85;
      transition: 0.3s;
      white-space: nowrap;
    }

    .nav-links a:hover {
      opacity: 1;
      color: #7c9cff;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 24px;
      border-radius: 14px;
      text-decoration: none;
      font-weight: 600;
      transition: 0.3s ease;
      border: none;
      cursor: pointer;
    }

    .btn-primary {
      background: var(--gradient);
      color: white;
      box-shadow: 0 10px 30px rgba(37,99,255,0.3);
      background-size: 160% 160%;
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      background-position: 100% 50%;
      box-shadow: 0 16px 42px rgba(37,99,255,0.38);
    }

    .btn-secondary {
      border: 1px solid var(--border);
      color: white;
      background: rgba(255,255,255,0.03);
    }

    .hero {
      padding: 50px 0 50px;
      position: relative;
    }

    .hero .hero-tag,
    .hero h1,
    .hero p,
    .hero-buttons,
    .hero-stats {
      animation: heroRise 0.8s ease both;
    }

    .hero h1 {
      animation-delay: 0.08s;
    }

    .hero p {
      animation-delay: 0.16s;
    }

    .hero-buttons {
      animation-delay: 0.24s;
    }

    .hero-stats {
      animation-delay: 0.32s;
    }

    .hero-card {
      animation: heroCardFloat 6s ease-in-out infinite;
    }

    @keyframes heroRise {
      from {
        opacity: 0;
        transform: translateY(26px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes heroCardFloat {
      0%, 100% {
        transform: translateY(0);
      }

      50% {
        transform: translateY(-10px);
      }
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 60px;
      align-items: center;
    }

    .hero-tag {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background: rgba(255,255,255,0.05);
      border: 1px solid var(--border);
      padding: 10px 18px;
      border-radius: 100px;
      margin-bottom: 28px;
      color: #cbd5e1;
      font-size: 14px;
    }

    .hero h1 {
      font-size: 76px;
      line-height: 1;
      margin-bottom: 28px;
      letter-spacing: -3px;
    }

    .gradient-text {
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero p {
      color: var(--muted);
      font-size: 18px;
      max-width: 700px;
      margin-bottom: 36px;
    }

    .hero-buttons {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      margin-bottom: 40px;
    }

    .hero-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
      margin-top: 40px;
    }

    .stat-box {
      background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
      border: 1px solid var(--border);
      padding: 24px 22px;
      border-radius: 22px;
      backdrop-filter: blur(12px);
      min-height: 134px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
      position: relative;
      overflow: hidden;
    }

    .stat-box::before {
      content: '';
      position: absolute;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      background: rgba(124,156,255,0.14);
      top: -28px;
      right: -24px;
    }

    .stat-box h3 {
      font-size: 34px;
      line-height: 1;
      margin-bottom: 8px;
    }

    .stat-box p {
      color: var(--muted);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.35;
      text-transform: uppercase;
      letter-spacing: 0.7px;
      margin-bottom: 0;
    }

    .hero-card {
      background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
      border: 1px solid var(--border);
      padding: 34px;
      border-radius: 30px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 28px 70px rgba(0,0,0,0.24);
    }

    .hero-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at top right, rgba(37,99,255,0.15), transparent 50%);
    }

    .hero-card * {
      position: relative;
      z-index: 2;
    }

    .hero-card h3 {
      font-size: 32px;
      margin-bottom: 24px;
    }

    .feature-item {
      padding: 18px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.04);
      border-radius: 18px;
      margin-bottom: 14px;
      color: #dbe4ff;
    }

    .light-theme .hero-card {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(238,242,255,0.76)),
        radial-gradient(circle at top right, rgba(37,99,255,0.14), transparent 48%);
      border-color: rgba(37,99,255,0.14);
      box-shadow: 0 30px 80px rgba(37,99,255,0.14), 0 12px 34px rgba(15,23,42,0.08);
    }

    .light-theme .hero-card::before {
      background: radial-gradient(circle at top right, rgba(37,99,255,0.18), transparent 55%);
    }

    .light-theme .feature-item {
      background: rgba(255,255,255,0.78);
      border-color: rgba(37,99,255,0.11);
      box-shadow: 0 12px 26px rgba(15,23,42,0.06);
    }

    section {
      padding: 60px 0;
    }

    .section-reveal {
      opacity: 0;
      transform: translateY(34px);
      transition: opacity 0.7s ease, transform 0.7s ease;
      will-change: opacity, transform;
    }

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

    .section-reveal .section-header,
    .section-reveal .card,
    .section-reveal .stack-group,
    .section-reveal .contact-box,
    .section-reveal .country,
    .section-reveal .scratch-step {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.58s ease, transform 0.58s ease;
    }

    .section-reveal.is-visible .section-header,
    .section-reveal.is-visible .card,
    .section-reveal.is-visible .stack-group,
    .section-reveal.is-visible .contact-box,
    .section-reveal.is-visible .country,
    .section-reveal.is-visible .scratch-step {
      opacity: 1;
      transform: translateY(0);
    }

    .section-reveal.is-visible .card:nth-child(2),
    .section-reveal.is-visible .stack-group:nth-child(2),
    .section-reveal.is-visible .country:nth-child(2),
    .section-reveal.is-visible .scratch-step:nth-child(2) {
      transition-delay: 0.06s;
    }

    .section-reveal.is-visible .card:nth-child(3),
    .section-reveal.is-visible .stack-group:nth-child(3),
    .section-reveal.is-visible .country:nth-child(3),
    .section-reveal.is-visible .scratch-step:nth-child(3) {
      transition-delay: 0.12s;
    }

    .section-reveal.is-visible .card:nth-child(n+4),
    .section-reveal.is-visible .stack-group:nth-child(n+4),
    .section-reveal.is-visible .country:nth-child(n+4) {
      transition-delay: 0.18s;
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
      }

      .section-reveal {
        opacity: 1;
        transform: none;
        transition: none;
      }

      .section-reveal .section-header,
      .section-reveal .card,
      .section-reveal .stack-group,
      .section-reveal .contact-box,
      .section-reveal .country,
      .section-reveal .scratch-step {
        opacity: 1;
        transform: none;
        transition: none;
      }
    }

    .section-header {
      text-align: center;
      margin-bottom: 70px;
    }

    .section-header > span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #dbe4ff;
      background: rgba(37,99,255,0.12);
      border: 1px solid rgba(124,156,255,0.24);
      border-radius: 999px;
      padding: 9px 16px;
      text-transform: uppercase;
      letter-spacing: 1.3px;
      font-size: 14px;
      font-weight: 700;
    }

    .light-theme .section-header > span {
      color: #1d4ed8;
      background: rgba(37,99,255,0.08);
      border-color: rgba(37,99,255,0.18);
    }

    .section-header h2 {
      font-size: 54px;
      margin: 14px 0;
      line-height: 1.1;
    }

    .section-header p {
      color: var(--muted);
      max-width: 760px;
      margin: auto;
      font-size: 17px;
    }

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

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      padding: 34px;
      border-radius: 28px;
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
      backdrop-filter: blur(10px);
    }

    .card:hover {
      transform: translateY(-6px);
      border-color: rgba(124,156,255,0.3);
      box-shadow: 0 20px 48px rgba(37,99,255,0.12);
    }

    .section-reveal.is-visible .card:hover {
      transform: translateY(-6px);
    }

    .card h3 {
      font-size: 26px;
      margin-bottom: 16px;
    }

    .card p {
      color: var(--muted);
    }

    .scratch-panel {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--border);
      border-radius: 34px;
      padding: 58px;
      background:
        linear-gradient(135deg, rgba(37,99,255,0.14), rgba(147,51,234,0.08) 45%, rgba(255,255,255,0.025)),
        var(--card);
    }

    .scratch-panel::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(circle at 12% 10%, rgba(124,156,255,0.18), transparent 36%);
      pointer-events: none;
    }

    .scratch-panel > * {
      position: relative;
      z-index: 1;
    }

    .scratch-layout {
      display: grid;
      grid-template-columns: 0.9fr 1.1fr;
      gap: 42px;
      align-items: start;
    }

    .scratch-copy .section-header {
      text-align: left;
      margin-bottom: 30px;
    }

    .scratch-copy .section-header p {
      margin: 0;
    }

    .scratch-steps {
      display: grid;
      gap: 16px;
    }

    .scratch-step {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 18px;
      padding: 22px;
      border-radius: 22px;
      background: rgba(255,255,255,0.045);
      border: 1px solid rgba(255,255,255,0.07);
    }

    .scratch-step strong {
      display: block;
      font-size: 20px;
      margin-bottom: 6px;
    }

    .scratch-step p {
      color: var(--muted);
    }

    .step-icon {
      width: 48px;
      height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 16px;
      background: var(--gradient);
      color: white;
      font-weight: 800;
      box-shadow: 0 14px 30px rgba(37,99,255,0.28);
    }

    .launch-offer {
      margin-top: 28px;
      padding: 26px;
      border-radius: 24px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.09);
    }

    .launch-offer h3 {
      font-size: 26px;
      margin-bottom: 10px;
    }

    .launch-offer p {
      color: var(--muted);
    }

    .launch-offer strong {
      color: var(--text);
    }

    .systems-slider {
      margin: 0 -10px;
      position: relative;
    }

    .systems-slider .slick-list {
      padding: 4px 0 26px;
      overflow: hidden;
    }

    .systems-slider .slick-track {
      display: flex;
      gap:20px;
    }

    .systems-slider .slick-slide {
      height: auto;
      padding: 0 10px;
    }

    .systems-slider .slick-slide > div {
      height: 100%;
    }

    .systems-slider .card {
      min-height: 260px;
      height: 100%;
      display: flex !important;
      flex-direction: column;
      justify-content: flex-start;
      border-radius: 22px;
      padding: 28px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
        var(--card);
      box-shadow: 0 16px 42px rgba(0,0,0,0.14);
    }

    .systems-slider .slick-dots {
      bottom: -8px;
    }

    .systems-slider .slick-dots li button::before {
      color: #7c9cff;
      font-size: 10px;
      opacity: 0.45;
    }

    .systems-slider .slick-dots li.slick-active button::before {
      opacity: 1;
      color: #2563ff;
    }

    .slider-arrow {
      position: absolute;
      top: -64px;
      z-index: 2;
      width: 42px;
      height: 42px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
      color: var(--text);
      cursor: pointer;
      font-size: 24px;
      line-height: 1;
      backdrop-filter: blur(14px);
      transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    }

    .slider-arrow:hover {
      transform: translateY(-2px);
      border-color: rgba(124,156,255,0.38);
      background: rgba(37,99,255,0.22);
    }

    .slider-arrow.prev {
      right: 58px;
      left: auto;
    }

    .slider-arrow.next {
      right: 10px;
    }

    .slider-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg,#2563ff,#9333ea);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 16px;
      color: #ffffff;
      flex: 0 0 auto;
    }

    .testimonial-head {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }

    .testimonial-head h4 {
      margin-bottom: 4px;
    }

    .testimonial-head p {
      color: var(--muted);
      font-size: 14px;
    }

    .light-theme .stat-box,
    .light-theme .scratch-step,
    .light-theme .launch-offer,
    .light-theme .slider-arrow {
      background: rgba(255,255,255,0.82);
      border-color: rgba(15,23,42,0.09);
    }

    .light-theme .systems-slider .card {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,242,255,0.78)),
        var(--card);
      border-color: rgba(37,99,255,0.12);
      box-shadow: 0 18px 48px rgba(37,99,255,0.1), 0 8px 22px rgba(15,23,42,0.07);
    }

    .countries {
      background: var(--bg-light);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .country-grid {
      display: grid;
      grid-template-columns: repeat(6,1fr);
      gap: 16px;
      margin-top: 40px;
    }

    .country {
      padding: 18px;
      text-align: center;
      border-radius: 18px;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
      color: #dbe4ff;
    }

    .contact-box {
      background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
      border: 1px solid var(--border);
      border-radius: 32px;
      padding: 50px;
      max-width: 850px;
      margin: auto;
      box-shadow: 0 28px 70px rgba(0,0,0,0.18);
    }

    .light-theme .contact-box {
      background: rgba(255,255,255,0.88);
      border-color: rgba(37,99,255,0.11);
      box-shadow: 0 30px 80px rgba(37,99,255,0.12), 0 12px 34px rgba(15,23,42,0.08);
    }

    .contact-info-grid {
      margin-top: 40px;
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
      gap: 20px;
    }

    .contact-info-card {
      padding: 22px;
      border-radius: 22px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.06);
      box-shadow: 0 18px 42px rgba(0,0,0,0.12);
    }

    .contact-info-card h4 {
      margin-bottom: 10px;
    }

    .contact-info-card p {
      color: var(--muted);
    }

    .light-theme .contact-info-card {
      background: rgba(255,255,255,0.94);
      border-color: rgba(37,99,255,0.11);
      box-shadow: 0 20px 54px rgba(37,99,255,0.12), 0 8px 24px rgba(15,23,42,0.08);
    }

    .tech-stack {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 14% 16%, rgba(37,99,255,0.14), transparent 34%),
        radial-gradient(circle at 86% 78%, rgba(147,51,234,0.12), transparent 32%);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .stack-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 18px;
    }

    .stack-group {
      min-height: 192px;
      padding: 24px;
      border-radius: 24px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
        var(--card);
      border: 1px solid var(--border);
      box-shadow: 0 18px 44px rgba(0,0,0,0.14);
      backdrop-filter: blur(12px);
      transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    }

    .stack-group:hover,
    .section-reveal.is-visible .stack-group:hover {
      transform: translateY(-5px);
      border-color: rgba(124,156,255,0.3);
      box-shadow: 0 22px 52px rgba(37,99,255,0.13);
    }

    .stack-group h3 {
      font-size: 21px;
      margin-bottom: 16px;
    }

    .stack-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .stack-tags span {
      display: inline-flex;
      align-items: center;
      min-height: 36px;
      padding: 8px 12px;
      border-radius: 999px;
      color: #dbe4ff;
      background: rgba(255,255,255,0.055);
      border: 1px solid rgba(255,255,255,0.08);
      font-size: 14px;
      font-weight: 700;
      line-height: 1.25;
    }

    .stack-note {
      max-width: 780px;
      margin: 44px auto 0;
      padding: 24px 28px;
      border-radius: 24px;
      color: var(--text);
      text-align: center;
      font-size: 18px;
      font-weight: 700;
      background: linear-gradient(135deg, rgba(37,99,255,0.14), rgba(147,51,234,0.10));
      border: 1px solid rgba(124,156,255,0.22);
    }

    .light-theme .tech-stack {
      background:
        radial-gradient(circle at 14% 16%, rgba(37,99,255,0.10), transparent 34%),
        radial-gradient(circle at 86% 78%, rgba(147,51,234,0.08), transparent 32%),
        #f8faff;
    }

    .light-theme .stack-group {
      background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,242,255,0.76)),
        var(--card);
      border-color: rgba(37,99,255,0.12);
      box-shadow: 0 18px 48px rgba(37,99,255,0.1), 0 8px 22px rgba(15,23,42,0.07);
    }

    .light-theme .stack-tags span {
      color: #1e293b;
      background: rgba(37,99,255,0.07);
      border-color: rgba(37,99,255,0.12);
    }

    .light-theme .stack-note {
      border-color: rgba(37,99,255,0.16);
      background: linear-gradient(135deg, rgba(37,99,255,0.10), rgba(147,51,234,0.07));
    }

    .form-intro {
      margin-bottom: 28px;
      text-align: center;
    }

    .form-intro span {
      display: inline-flex;
      margin-bottom: 12px;
      color: #dbe4ff;
      background: rgba(37,99,255,0.12);
      border: 1px solid rgba(124,156,255,0.24);
      border-radius: 999px;
      padding: 8px 14px;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-size: 12px;
      font-weight: 800;
    }

    .form-intro h3 {
      font-size: 30px;
      line-height: 1.2;
      margin-bottom: 10px;
    }

    .form-intro p,
    .form-response-note {
      color: var(--muted);
      max-width: 620px;
      margin: auto;
    }

    .form-response-note {
      text-align: center;
      font-size: 14px;
      font-weight: 700;
    }

    .light-theme .form-intro span {
      color: #1d4ed8;
      background: rgba(37,99,255,0.08);
      border-color: rgba(37,99,255,0.18);
    }

    .contact-form-wrapper {
      display: grid;
      gap: 20px;
      margin-top: 30px;
    }

    input,
    textarea {
      width: 100%;
      padding: 18px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.03);
      color: white;
      font-family: inherit;
      font-size: 15px;
      outline: none;
    }

    textarea {
      min-height: 180px;
      resize: vertical;
    }

    input::placeholder,
    textarea::placeholder {
      color: #7c8598;
    }

    footer {
      padding: 70px 0 40px;
      border-top: 1px solid var(--border);
    }

    .footer-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 30px;
      margin-bottom: 40px;
    }

    .footer-top img {
      width: 170px;
    }

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

    .footer-links a {
      text-decoration: none;
      color: #cbd5e1;
    }

    .copyright {
      color: #7c8598;
      text-align: center;
      font-size: 14px;
      border-top: 1px solid rgba(255,255,255,0.05);
      padding-top: 24px;
    }

    @media(max-width: 992px) {
      .hero-grid,
      .grid-3,
      .hero-stats,
      .scratch-layout,
      .country-grid {
        grid-template-columns: 1fr;
      }

      .stack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
      }

      .hero h1 {
        font-size: 52px;
      }

      .section-header h2 {
        font-size: 38px;
      }

      .nav-links {
        position: absolute;
        top: 100%;
        left: 4%;
        right: 4%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(5,8,22,0.96);
        box-shadow: 0 24px 60px rgba(0,0,0,0.24);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
      }

      .light-theme .nav-links {
        background: rgba(255,255,255,0.98);
        box-shadow: 0 24px 60px rgba(15,23,42,0.14);
      }

      .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
      }

      .nav-links a {
        padding: 13px 14px;
        border-radius: 12px;
      }

      .nav-links a:hover {
        background: rgba(124,156,255,0.1);
      }

      .menu-toggle {
        display: flex;
      }

      .hero {
        padding-top: 80px;
      }

      .scratch-panel {
        padding: 34px 22px;
      }

      .scratch-copy .section-header {
        text-align: center;
      }

      .scratch-copy .section-header p {
        margin: auto;
      }

      .slider-arrow {
        top: auto;
        bottom: -8px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
      }

      .slider-arrow.prev {
        left: calc(50% - 54px);
        right: auto;
      }

      .slider-arrow.next {
        right: calc(50% - 54px);
      }

      .systems-slider .slick-list {
        padding-bottom: 60px;
      }
    }

    @media(max-width: 640px) {
      .announcement {
        font-size: 12px;
        line-height: 1.45;
        padding: 10px 14px;
      }

      .navbar {
        padding: 14px 0;
      }

      .logo img,
      .footer-logo {
        width: 142px;
      }

      .offer-popup {
        padding: 16px;
      }

      .offer-popup__dialog {
        padding: 34px 22px 24px;
        border-radius: 24px;
      }

      .offer-popup__dialog h2 {
        font-size: 30px;
        padding-right: 28px;
      }

      .offer-popup__dialog p {
        font-size: 15px;
      }

      .offer-popup__actions {
        display: grid;
      }

      .logo {
        width: 142px;
        height: auto;
        flex-basis: 142px;
      }

      .logo img {
        height: auto;
      }

      .hero h1 {
        font-size: 42px;
        letter-spacing: -1.5px;
      }

      .hero {
        padding: 62px 0 72px;
      }

      section {
        padding: 72px 0;
      }

      .section-header > span {
        font-size: 12px;
        letter-spacing: 0.8px;
        padding: 8px 12px;
      }

      .section-header h2 {
        font-size: 32px;
      }

      .scratch-step {
        grid-template-columns: 1fr;
      }

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

      .contact-box {
        padding: 28px 20px;
      }

      .stack-group {
        min-height: auto;
        padding: 22px;
      }

      .stack-tags span {
        font-size: 13px;
      }

      .stack-note {
        font-size: 16px;
        padding: 22px 18px;
      }

      .form-intro h3 {
        font-size: 25px;
      }
    }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-logo {
  width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.footer-grid h3 {
  font-size: 18px;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 14px;
  transition: 0.3s ease;
}

.footer-grid a:hover {
  color: white;
  transform: translateX(3px);
}

.light-theme .footer-grid a:hover {
  color: #2563ff;
}

@media(max-width: 992px) {

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}
