:root {
  --color-primary: #f57c00;
  --color-primary-dark: #d86600;
  --color-primary-soft: #ffeddc;
  --color-text: #2f2f2f;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-surface: #f5f5f5;
  --color-border: #e5e7eb;
  --max-width: 1120px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

@supports (padding: max(0px)) {
  .container {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section-title {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.section-intro {
  max-width: 760px;
  color: var(--color-muted);
  margin: 0 0 2rem;
}

.btn-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 10px 24px rgba(216, 102, 0, 0.34);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #fff;
}

.btn-secondary:hover {
  background: #fff3e8;
  box-shadow: 0 10px 24px rgba(216, 102, 0, 0.18);
  transform: translateY(-1px);
}

.topbar {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}

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

.menu-toggle {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  padding: 0.4rem 0.6rem;
  min-height: 44px;
  display: none;
}

.menu {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.menu a {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: #333;
  font-weight: 600;
  transition: all 0.2s ease;
}

.menu a:hover,
.menu a.active {
  background: #fff3e8;
  color: var(--color-primary-dark);
}

.hero {
  background:
    radial-gradient(circle at 82% 48%, rgba(245, 124, 0, 0.34) 0%, rgba(245, 124, 0, 0.12) 26%, rgba(245, 124, 0, 0) 52%),
    radial-gradient(circle at 16% 52%, rgba(107, 114, 128, 0.22) 0%, rgba(107, 114, 128, 0.08) 30%, rgba(107, 114, 128, 0) 58%),
    linear-gradient(110deg, #eceff3 0%, #f6f7f9 36%, #ffe4cb 66%, #ffc993 100%);
  padding: 5.2rem 0;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(75, 85, 99, 0.06) 0%, rgba(75, 85, 99, 0) 35%, rgba(217, 119, 6, 0.14) 100%);
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3.2rem);
  line-height: 1.15;
  max-width: 900px;
}

.hero p {
  color: #4b5563;
  max-width: 760px;
  margin: 0;
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: -60% -40%;
  background: radial-gradient(circle, rgba(245, 124, 0, 0.22) 0%, rgba(245, 124, 0, 0) 62%);
  opacity: 0;
  transform: translateY(22%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #ffc996;
  box-shadow: 0 18px 36px rgba(31, 41, 55, 0.1);
}

.card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.03rem;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.card-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff9f2 0%, #ffe8d2 55%, #ffdebf 100%);
  border: 1px solid #ffcf9f;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 6px 14px rgba(216, 102, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-icon-svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.card-icon-svg-agile-transform {
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(-0.7px);
}

.card-icon-svg-enterprise-transform {
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(-0.7px);
}

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

.surface {
  background: var(--color-surface);
}

.bullet-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.2rem;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.3rem;
}

.value-proposition-section {
  background:
    radial-gradient(circle at 14% 16%, rgba(245, 124, 0, 0.12) 0%, rgba(245, 124, 0, 0) 38%),
    radial-gradient(circle at 87% 24%, rgba(55, 65, 81, 0.09) 0%, rgba(55, 65, 81, 0) 44%),
    linear-gradient(150deg, #fafafa 0%, #ffffff 46%, #f6f7f9 100%);
}

.value-proposition-content {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.why-choose-section {
  background:
    radial-gradient(circle at 86% 18%, rgba(245, 124, 0, 0.11) 0%, rgba(245, 124, 0, 0) 40%),
    radial-gradient(circle at 12% 82%, rgba(55, 65, 81, 0.08) 0%, rgba(55, 65, 81, 0) 44%),
    linear-gradient(145deg, #f9fafb 0%, #ffffff 48%, #f6f7f8 100%);
}

.why-choose-content {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  position: relative;
}

.why-choose-icon-wrap {
  width: 200px;
  height: 200px;
  border-radius: 36px;
  background: linear-gradient(155deg, #f8f9fb 0%, #eceff4 58%, #dfe4ec 100%);
  border: 1px solid #d3d9e3;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 1.6rem;
  top: 1.6rem;
  box-shadow:
    0 14px 30px rgba(55, 65, 81, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease, color 0.28s ease;
}

.why-choose-icon {
  width: 114px;
  height: 114px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-choose-icon-link {
  text-decoration: none;
}

.why-choose-icon-link:hover {
  background: linear-gradient(155deg, #eef1f6 0%, #dfe5ee 58%, #cfd6e0 100%);
  border-color: #b8c0cc;
  color: #4b5563;
  box-shadow:
    0 18px 34px rgba(31, 41, 55, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  transform: translateY(-2px);
}

.why-choose-icon-link:focus-visible {
  outline: 3px solid #9ca3af;
  outline-offset: 4px;
}

.why-choose-content .section-title,
.why-choose-content .bullet-list {
  padding-right: 230px;
}

.cta-block {
  border: 1px solid #ffd7b0;
  background: #fff6ee;
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.cta-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(216, 102, 0, 0.16);
}

.services-list {
  display: grid;
  gap: 1rem;
}

.service-item {
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1rem 1rem 1rem 1.1rem;
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(245, 124, 0, 0.12), rgba(245, 124, 0, 0));
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.service-item:hover {
  transform: translateY(-3px);
  border-color: #ffd8b2;
  box-shadow: 0 15px 30px rgba(31, 41, 55, 0.08);
}

.service-item:hover::before {
  opacity: 1;
}

.service-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.contact-meta p {
  margin: 0 0 0.7rem;
}

form {
  border: 1px solid var(--color-border);
  padding: 1rem;
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

form:hover {
  border-color: #ffd8b2;
  box-shadow: 0 14px 28px rgba(31, 41, 55, 0.08);
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  font: inherit;
  min-height: 44px;
}

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

.field {
  margin-bottom: 0.9rem;
}

.footer {
  border-top: 1px solid var(--color-border);
  background: #fff;
  padding: 1.1rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: #4b5563;
}

.home-page {
  --home-kilonova-bg:
    radial-gradient(circle at 82% 48%, rgba(245, 124, 0, 0.34) 0%, rgba(245, 124, 0, 0.12) 26%, rgba(245, 124, 0, 0) 52%),
    radial-gradient(circle at 16% 52%, rgba(107, 114, 128, 0.22) 0%, rgba(107, 114, 128, 0.08) 30%, rgba(107, 114, 128, 0) 58%),
    linear-gradient(110deg, #eceff3 0%, #f6f7f9 36%, #ffe4cb 66%, #ffc993 100%);
}

.home-page .hero,
.home-page .section,
.home-page .section.surface,
.home-page .value-proposition-section,
.home-page .why-choose-section {
  background: var(--home-kilonova-bg);
}

.home-page .hero::after {
  background: none;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .card,
  .card::before,
  .service-item,
  .service-item::before,
  .cta-block,
  .btn {
    transition: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .value-proposition-content {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  }

  .value-proposition-section:hover .value-proposition-content {
    transform: translateY(-2px);
    border-color: #ffd4aa;
    box-shadow: 0 18px 36px rgba(31, 41, 55, 0.11), 0 0 0 1px rgba(245, 124, 0, 0.06) inset;
  }

  .why-choose-content {
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  }

  .why-choose-section:hover .why-choose-content {
    transform: translateY(-2px);
    border-color: #ffd4aa;
    box-shadow: 0 18px 36px rgba(31, 41, 55, 0.11), 0 0 0 1px rgba(245, 124, 0, 0.06) inset;
  }
}

@media (max-width: 900px) {
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 3rem 0;
  }

  .value-proposition-content {
    border-radius: 14px;
    padding: 1.1rem;
  }

  .why-choose-content {
    border-radius: 14px;
    padding: 1.1rem;
  }

  .why-choose-icon-wrap {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    position: static;
    margin-left: auto;
    margin-bottom: 0.85rem;
  }

  .why-choose-icon {
    width: 68px;
    height: 68px;
  }

  .why-choose-content .section-title,
  .why-choose-content .bullet-list {
    padding-right: 0;
  }

  .hero {
    padding: 3.5rem 0;
  }

  .hero p {
    font-size: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu {
    position: absolute;
    right: 1rem;
    top: 65px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.45rem;
    min-width: 200px;
    max-width: calc(100vw - 2rem);
    display: none;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--max-width));
  }

  .section-title {
    font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  }

  .card,
  .service-item,
  form,
  .cta-block {
    padding: 0.9rem;
  }
}
