/*
Theme Name: One Touch Solution
Theme URI: https://onetouchsolution.local/
Author: One Touch Solution
Description: A modern one-page IT company theme for website, Android app, and custom software services.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: one-touch-solution
*/

:root {
  --ink: #10131a;
  --muted: #627286;
  --paper: #f5f9ff;
  --white: #ffffff;
  --line: rgba(16, 19, 26, 0.1);
  --blue: #1584ff;
  --cyan: #13d8f0;
  --green: #20b26b;
  --gold: #ffb13b;
  --coral: #ff5f7e;
  --purple: #8057ff;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.74);
  --shadow: 0 24px 70px rgba(31, 64, 122, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(19, 216, 240, 0.28), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 95, 126, 0.18), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 42%, #edf7ff 100%),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 34px rgba(31, 64, 122, 0.14);
}

.brand img {
  width: auto;
  height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(16, 19, 26, 0.72);
  font-size: 14px;
  font-weight: 700;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(16, 19, 26, 0.14);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 26%, rgba(19, 216, 240, 0.28), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #edf7ff 56%, #e8fbff 100%);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: 0;
  overflow: hidden;
  background: #f5f9ff;
}

.hero-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  border: 0;
  pointer-events: none;
  filter: saturate(1.35) brightness(1.12) contrast(1.08);
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.14);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.42) 44%, rgba(255, 255, 255, 0.06) 100%),
    linear-gradient(180deg, rgba(19, 216, 240, 0.04), rgba(255, 255, 255, 0.26));
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(21, 132, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 132, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 62px;
  width: min(1160px, calc(100% - 40px));
  min-height: 644px;
  margin-inline: auto;
  padding: 72px 0 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #087da0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 38px;
  height: 2px;
  content: "";
  background: var(--cyan);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 > span {
  display: block;
}

.text-rotator {
  position: relative;
  display: grid;
  min-height: 1.08em;
  color: var(--blue);
}

.text-rotator span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.35em);
  animation: rotateWords 9s infinite;
}

.text-rotator span:nth-child(2) {
  animation-delay: 3s;
}

.text-rotator span:nth-child(3) {
  animation-delay: 6s;
}

.hero-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-ticker span {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(21, 132, 255, 0.16);
  border-radius: 999px;
  color: rgba(16, 19, 26, 0.78);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 36px;
  color: rgba(16, 19, 26, 0.72);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(20, 100, 255, 0.32);
}

.button.secondary {
  color: var(--ink);
  border-color: rgba(21, 132, 255, 0.22);
  background: rgba(255, 255, 255, 0.74);
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.screen-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(21, 132, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 26px 80px rgba(31, 64, 122, 0.18);
  backdrop-filter: blur(12px);
}

.screen-card.main {
  animation: floatPanel 7s ease-in-out infinite;
}

.screen-card.mobile {
  animation: floatPanel 6s ease-in-out 700ms infinite;
}

.screen-card.stats {
  animation: floatPanel 5.6s ease-in-out 300ms infinite;
}

.screen-card.main {
  inset: 24px 0 auto 28px;
  min-height: 310px;
  padding: 22px;
}

.screen-card.mobile {
  right: 26px;
  bottom: 0;
  width: 160px;
  min-height: 284px;
  padding: 18px 14px;
}

.screen-card.stats {
  left: 0;
  bottom: 34px;
  width: 240px;
  padding: 18px;
}

.window-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.window-dots span:nth-child(2) {
  background: var(--green);
}

.window-dots span:nth-child(3) {
  background: var(--cyan);
}

.code-line {
  height: 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(21, 132, 255, 0.18);
  transform-origin: left;
  animation: codePulse 2.6s ease-in-out infinite;
}

.code-line.short {
  width: 58%;
}

.code-line.mid {
  width: 76%;
  background: rgba(11, 187, 214, 0.52);
}

.code-line.long {
  width: 92%;
}

.metric {
  display: grid;
  gap: 4px;
  color: rgba(16, 19, 26, 0.7);
  font-size: 13px;
}

.metric strong {
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.phone-pill {
  width: 48px;
  height: 6px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: rgba(21, 132, 255, 0.26);
}

.app-tile {
  height: 54px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(32, 178, 107, 0.9), rgba(11, 187, 214, 0.72));
}

.section {
  padding: 96px 0;
}

.page-content {
  color: var(--ink);
  font-size: 18px;
}

.page-content > *:last-child {
  margin-bottom: 0;
}

.ots-elementor-main {
  min-height: 48vh;
}

.ots-elementor-main .elementor-section-wrap,
.ots-elementor-main .elementor {
  width: 100%;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 118px 0 96px;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 18%, rgba(19, 216, 240, 0.28), transparent 32%),
    radial-gradient(circle at 18% 22%, rgba(255, 95, 126, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #edf7ff 58%, #e8fbff 100%);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(21, 132, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 132, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-hero .section-inner {
  position: relative;
  animation: heroEnter 760ms ease both;
}

.page-hero h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(16, 19, 26, 0.72);
  font-size: 19px;
}

.section.dark {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 20%, rgba(19, 216, 240, 0.2), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 95, 126, 0.14), transparent 28%),
    linear-gradient(135deg, #ffffff, #edf7ff);
}

.section-title {
  max-width: 730px;
  margin-bottom: 44px;
}

.section-title h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-title p {
  color: var(--muted);
  font-size: 18px;
}

.dark .section-title p {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.about-panel {
  padding: 34px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--blue), var(--cyan) 56%, var(--green)),
    var(--panel);
  box-shadow: var(--shadow);
}

.panel-image,
.contact-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 26px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(31, 64, 122, 0.18);
}

.about-panel strong {
  display: block;
  margin-bottom: 10px;
  font-size: 44px;
  line-height: 1;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
}

.feature-icon,
.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
}

.feature-icon svg,
.service-icon svg {
  width: 26px;
  height: 26px;
}

.feature-row h3,
.service-card h3,
.work-card h3,
.testimonial h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.feature-row p,
.service-card p,
.work-card p,
.testimonial p,
.footer p {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.visual-section {
  overflow: hidden;
}

.split-visual {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: center;
}

.split-visual h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
}

.split-visual p {
  color: var(--muted);
  font-size: 18px;
}

.feature-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.seo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.seo-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(21, 132, 255, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(31, 64, 122, 0.08);
}

.service-detail-stack {
  display: grid;
  gap: 22px;
}

.service-detail {
  display: grid;
  grid-template-columns: 240px 74px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 247, 255, 0.86)),
    var(--panel);
  box-shadow: var(--shadow);
}

.service-detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
}

.service-detail h2,
.contact-card h2,
.cta-split h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.service-detail p,
.contact-card p,
.cta-split p {
  color: var(--muted);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #edf7ff;
  font-size: 14px;
  font-weight: 800;
}

.service-card,
.work-card,
.testimonial,
.contact-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.92)),
    var(--panel);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 354px;
  padding: 30px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-image {
  width: calc(100% + 60px);
  max-width: none;
  height: 190px;
  margin: -30px -30px 26px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 420ms ease, filter 420ms ease;
}

.service-card:hover {
  border-color: rgba(21, 132, 255, 0.32);
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow);
}

.service-card:hover .service-image {
  filter: saturate(1.16) contrast(1.08);
  transform: scale(1.05);
}

.service-card:nth-child(2) .service-icon {
  background: var(--green);
}

.service-card:nth-child(3) .service-icon {
  background: var(--gold);
}

.service-card .service-icon {
  margin-bottom: 28px;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 22px 0 0;
  list-style: none;
  color: var(--ink);
  font-weight: 700;
}

.service-card li::before {
  margin-right: 9px;
  color: var(--blue);
  content: "/";
}

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

.work-card {
  padding: 26px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.work-visual {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(21, 132, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 20%, rgba(19, 216, 240, 0.18), transparent 40%),
    linear-gradient(135deg, #ffffff, #edf7ff);
  box-shadow: 0 16px 36px rgba(31, 64, 122, 0.12);
}

.work-visual svg {
  width: 62px;
  height: 62px;
  transition: transform 220ms ease;
}

.work-card:hover .work-visual svg {
  transform: translateY(-3px) scale(1.04);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(21, 132, 255, 0.12);
}

.proof-item {
  min-height: 176px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 255, 0.9)),
    var(--white);
  transition: background 220ms ease, transform 220ms ease;
}

.proof-item:hover {
  background:
    linear-gradient(135deg, rgba(19, 216, 240, 0.16), rgba(255, 95, 126, 0.08)),
    var(--white);
  transform: translateY(-4px);
}

.proof-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 36px;
  line-height: 1;
}

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

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.benefit-grid,
.faq-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.benefit-card,
.faq-item,
.case-card {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.92)),
    var(--panel);
  box-shadow: 0 16px 42px rgba(31, 64, 122, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.client-logo {
  width: 100%;
  height: 82px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid rgba(21, 132, 255, 0.12);
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(31, 64, 122, 0.08);
  transition: transform 220ms ease;
}

.benefit-card:hover,
.faq-item:hover,
.case-card:hover {
  border-color: rgba(21, 132, 255, 0.26);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.case-card:hover .client-logo {
  transform: scale(1.03);
}

.benefit-card h3,
.faq-item h3,
.case-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.18;
}

.benefit-card p,
.faq-item p,
.case-card p {
  color: var(--muted);
}

.testimonial {
  padding: 28px;
}

.stars {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 20px;
  letter-spacing: 2px;
}

.contact-box {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 42px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(21, 132, 255, 0.94), rgba(19, 216, 240, 0.9) 58%, rgba(255, 95, 126, 0.88)),
    var(--blue);
  box-shadow: var(--shadow);
}

.contact-box-image {
  width: 190px;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(31, 64, 122, 0.2);
}

.cta-split {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.92)),
    var(--panel);
  box-shadow: var(--shadow);
}

.contact-card {
  padding: 34px;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  font-weight: 800;
}

.contact-info-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-info-list div {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf7ff;
}

.contact-info-list strong {
  color: var(--ink);
}

.contact-info-list span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: rgba(20, 100, 255, 0.55);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(20, 100, 255, 0.12);
}

.contact-form input,
.contact-form select {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  resize: vertical;
  padding: 14px;
}

.contact-box p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.74);
}

.footer {
  padding: 52px 0;
  color: rgba(16, 19, 26, 0.7);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

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

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes rotateWords {
  0%,
  8% {
    opacity: 0;
    transform: translateY(0.35em);
  }
  13%,
  29% {
    opacity: 1;
    transform: translateY(0);
  }
  34%,
  100% {
    opacity: 0;
    transform: translateY(-0.35em);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes codePulse {
  0%,
  100% {
    opacity: 0.64;
    transform: scaleX(0.88);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-inner,
  .about-grid,
  .contact-box,
  .contact-grid,
  .footer-grid,
  .cta-split,
  .service-detail,
  .split-visual {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 22px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .service-grid,
  .testimonial-grid,
  .work-grid,
  .proof-band,
  .benefit-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-box-image {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 720px) {
  .nav-wrap,
  .section-inner,
  .hero-inner {
    width: min(100% - 28px, 1160px);
  }

  .brand img {
    height: 44px;
    max-width: 190px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(16, 19, 26, 0.12);
    border-radius: 8px;
    background: var(--white);
  }

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

  .nav-links a {
    padding: 15px 18px;
    border-bottom: 1px solid rgba(16, 19, 26, 0.08);
  }

  .hero {
    min-height: auto;
  }

  .hero-video iframe {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1.3);
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 0 72px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .screen-card.main {
    left: 0;
  }

  .screen-card.mobile {
    right: 0;
    width: 132px;
  }

  .screen-card.stats {
    width: 190px;
  }

  .section {
    padding: 68px 0;
  }

  .service-grid,
  .testimonial-grid,
  .work-grid,
  .proof-band,
  .benefit-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    padding: 30px;
  }

  .service-detail {
    padding: 28px;
  }

  .page-hero {
    padding: 78px 0 64px;
  }
}
