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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  background-color: #050816;
}

body {
  min-height: 100vh;
}

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

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

.global-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 15% 20%, rgba(0, 255, 170, 0.5), transparent 50%),
              radial-gradient(circle at 80% 0%, rgba(255, 0, 128, 0.6), transparent 55%),
              radial-gradient(circle at 20% 100%, rgba(0, 140, 255, 0.6), transparent 55%),
              radial-gradient(circle at 90% 80%, rgba(255, 184, 0, 0.5), transparent 55%);
  filter: blur(4px);
  transform: scale(1.1);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(8px);
}

.page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(5, 5, 20, 0.96), rgba(5, 5, 20, 0.8), transparent);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
}

.logo-text {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.logo-text span {
  font-weight: 500;
  font-size: 14px;
  margin-left: 4px;
  opacity: 0.7;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding-bottom: 3px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #00ffb0, #ff0080);
  transition: width 0.25s ease;
}

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

.main-nav .nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, #00ffb0, #00a2ff);
  color: #050816;
  font-weight: 600;
}

.main-nav .nav-cta::after {
  display: none;
}

/* Hero */
.main-content {
  flex: 1;
}

.hero-section {
  padding: 72px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 16px;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.86;
  margin: 0 0 24px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 8, 20, 0.65);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #00ffb0, #00a2ff);
  color: #050816;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(0, 255, 176, 0.3);
}

.btn.ghost {
  background: rgba(5, 8, 20, 0.7);
}

.btn.large {
  padding: 14px 32px;
  font-size: 15px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  background: linear-gradient(120deg, #00ffb0, #00a2ff);
  color: #050816;
  border-color: transparent;
}

.hero-image-wrap {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  padding: 10px;
  background: radial-gradient(circle at 0% 0%, rgba(0, 255, 160, 0.28), transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(255, 0, 160, 0.3), transparent 55%);
}

.hero-image-wrap img {
  border-radius: 24px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(5, 8, 20, 0.86);
  backdrop-filter: blur(8px);
  font-size: 11px;
  display: inline-flex;
  gap: 8px;
}

.hero-badge span:first-child {
  color: #00ffb0;
}

.hero-badge span:last-child {
  opacity: 0.78;
}

/* Sections */
.section-title {
  font-size: 26px;
  margin: 0 0 10px;
}

.section-lead {
  font-size: 14px;
  opacity: 0.86;
  margin: 0 0 28px;
}

.top-services-section {
  padding: 40px 0 32px;
}

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

.service-card {
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: radial-gradient(circle at 0% 0%, rgba(0, 255, 176, 0.1), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(255, 0, 144, 0.1), transparent 55%),
              rgba(5, 8, 20, 0.9);
}

.service-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.service-card p {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.86;
}

.top-flow-section {
  padding: 32px 0 40px;
}

.flow-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: center;
}

.flow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.flow-steps.large {
  grid-template-columns: 1fr;
}

.flow-step {
  border-radius: 18px;
  padding: 16px 18px 18px;
  background: rgba(5, 8, 20, 0.88);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(120deg, #00ffb0, #00a2ff);
  color: #050816;
  margin-bottom: 8px;
}

.flow-step h3,
.flow-step h2 {
  font-size: 15px;
  margin: 0 0 6px;
}

.flow-step p {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.88;
}

.top-cta-section {
  padding: 40px 0 60px;
}

.top-cta-inner {
  text-align: center;
  max-width: 640px;
}

.top-cta-inner .section-lead {
  margin-bottom: 24px;
}

/* Page hero */
.page-hero {
  padding: 64px 0 40px;
}

.page-hero.small {
  padding-top: 56px;
}

.page-title {
  font-size: 30px;
  margin: 0 0 8px;
}

.page-subtitle {
  font-size: 14px;
  opacity: 0.86;
  margin: 0;
}

/* Service detail page */
.service-detail-section {
  padding: 20px 0 60px;
}

.detail-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-block {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(5, 8, 20, 0.9);
}

.detail-block h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.detail-block p {
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.9;
}

/* Flow detail page */
.flow-detail-section {
  padding: 16px 0 60px;
}

/* Company page */
.company-section {
  padding: 20px 0 60px;
}

.company-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: flex-start;
}

.company-info,
.company-message {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(5, 8, 20, 0.9);
}

.company-info h2,
.company-message h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.company-table {
  margin: 0;
}

.company-table div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.company-table dt {
  font-size: 13px;
  opacity: 0.7;
}

.company-table dd {
  margin: 0;
  font-size: 14px;
}

.company-message p {
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.9;
  margin: 0 0 10px;
}

.company-message .signature {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.8;
}

/* Contact page */
.contact-section {
  padding: 20px 0 60px;
}

.contact-container {
  max-width: 640px;
}

.contact-form {
  padding: 20px 22px 24px;
  border-radius: 20px;
  background: rgba(5, 8, 20, 0.9);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-row label {
  font-size: 13px;
  opacity: 0.85;
}

.form-row input,
.form-row textarea {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  background: rgba(8, 12, 24, 0.95);
  color: #ffffff;
  outline: none;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-row input:focus,
.form-row textarea:focus {
  box-shadow: 0 0 0 1px rgba(0, 255, 176, 0.7);
}

.form-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.form-note {
  font-size: 11px;
  opacity: 0.7;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 24px 0 20px;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.8), transparent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.86;
}

.footer-logo {
  font-weight: 600;
  margin: 0 0 4px;
}

.footer-copy {
  align-self: flex-end;
}

/* Animations */
.animate-fadein,
.animate-slidein,
.animate-rise {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-slidein {
  transform: translateX(-18px);
}

.animate-rise {
  transform: translateY(18px);
}

.in-view {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

.delay-4 {
  transition-delay: 0.48s;
}

/* Responsive */
.sp-only {
  display: none;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-section {
    padding-top: 60px;
  }

  .hero-title {
    font-size: 30px;
  }

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

  .flow-inner {
    grid-template-columns: 1fr;
  }

  .company-container {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .site-header {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

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

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 48px;
  }

  .sp-only {
    display: inline;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
