/* Yongi Software — design tokens from brand */
:root {
  --orange: #fe5c01;
  --orange-light: #ff7a3a;
  --orange-pale: #fff1e8;
  --orange-dark: #e05200;
  --black: #1a1a1a;
  --dark: #2c2c2c;
  --mid: #6b6b6b;
  --light: #f5f5f5;
  --white: #ffffff;
  --border: #e8e0d8;
  --max-width: 1140px;
  --header-h: 72px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange-dark);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--light);
}

.section-title {
  font-size: clamp(0.75rem, 1.5vw, 0.8125rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 1em;
  background: var(--orange);
  border-radius: 2px;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.0625rem;
  color: var(--mid);
  max-width: 42rem;
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange-pale);
  color: var(--orange-dark);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-dark:hover {
  background: var(--dark);
  color: var(--white);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 40px;
  width: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--dark);
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav-desktop a:hover {
  color: var(--orange);
}

.nav-cta {
  margin-left: 0.5rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--dark);
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 0.5rem 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.92) 0%, rgba(254, 92, 1, 0.35) 100%);
}

.hero-watermark {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(45vw, 380px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 0 5rem;
  max-width: 640px;
}

.hero-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: rgba(255, 255, 255, 0.55);
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
  max-width: 520px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-num {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.25rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--orange);
  transition: box-shadow var(--transition);
}

.section-alt .service-card {
  background: var(--white);
}

.service-card:hover {
  box-shadow: var(--shadow);
}

.service-icon {
  font-family: 'Material Icons Outlined';
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 1rem;
  font-weight: normal;
  font-style: normal;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.55;
}

/* USP grid */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.usp-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--orange);
}

.usp-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.usp-card p {
  font-size: 0.875rem;
  color: var(--mid);
  line-height: 1.5;
}

/* Case section */
.case-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.case-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.case-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.case-badge {
  display: inline-block;
  background: var(--orange-pale);
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.case-features {
  list-style: none;
  margin: 1.5rem 0 2rem;
}

.case-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  color: var(--dark);
}

.case-features li::before {
  content: 'check_circle';
  font-family: 'Material Icons Outlined';
  color: var(--orange);
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* Tech strip */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.tech-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.tech-item .material-icon {
  font-family: 'Material Icons Outlined';
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.tech-item strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.tech-item span {
  font-size: 0.8125rem;
  color: var(--mid);
}

/* Contact / form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-details {
  list-style: none;
  margin-bottom: 1.5rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  color: var(--dark);
}

.contact-details .material-icon {
  font-family: 'Material Icons Outlined';
  color: var(--orange);
  font-size: 1.25rem;
}

.form-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.section-alt .form-panel {
  background: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(254, 92, 1, 0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #c33;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: 0.75rem;
  color: #c33;
  min-height: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.checkbox-group input {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--orange);
}

.checkbox-group label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.45;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-status {
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.form-status.error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

/* Footer */
.site-footer {
  background: var(--black);
  color: #888;
  padding: 2.5rem 0 1.5rem;
  border-top: 4px solid var(--orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: #aaa;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Privacy page */
.page-legal {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
}

.page-legal h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-legal .updated {
  color: var(--mid);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.page-legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--dark);
}

.page-legal p,
.page-legal li {
  color: var(--mid);
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.page-legal ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .usp-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .case-section {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
