:root {
  --bg: #060608;
  --border: #1c1c22;
  --border-hover: #2e2e37;
  --text: #f4f4f6;
  --text-2: #a0a0ab;
  --muted: #63636e;
  --grad: linear-gradient(135deg, #ff3d5a 0%, #ff7a4d 100%);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(720px 520px at 20% 42%, rgba(255, 61, 90, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

::selection { background: rgba(255, 61, 90, 0.35); }

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* One screen: header / main / footer share the viewport */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lang {
  display: flex;
  padding: 3px;
  background: #101015;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover { color: var(--text-2); }

.lang-btn.active {
  background: #232329;
  color: var(--text);
}

/* ---------- Main ---------- */

.main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 12fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

/* Left: brand block */

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.brand-mark-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-solid, #ff3d5a);
  flex-shrink: 0;
}

.brand-mark-text {
  color: #ff3d5a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.brand-mark-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 61, 90, 0.55), rgba(255, 61, 90, 0));
}

.hero-title {
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 42ch;
}

/* Right: service cards */

.hero-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.section-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 16px;
}

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

.card {
  display: flex;
  flex-direction: column;
  min-height: 216px;
  padding: 24px 26px;
  background: linear-gradient(180deg, #101015 0%, #0b0b0e 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease;
}

.card:hover { border-color: var(--border-hover); }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: auto;
}

.card-icon {
  width: 23px;
  height: 23px;
  color: #e6e6ec;
}

.card-arrow {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: color 0.25s ease, transform 0.25s ease;
}

.card:hover .card-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

.card-title {
  margin-top: 36px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.card-desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.card-handle {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Wide horizontal card (channel) */

.card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 20px 24px;
}

.card-wide .card-icon { flex-shrink: 0; }

.card-wide .wide-body { flex: 1; min-width: 0; }

.card-wide .card-title {
  margin-top: 0;
  font-size: 19px;
}

.card-wide .card-desc {
  margin-top: 3px;
  font-size: 14.5px;
}

.card-wide .card-handle {
  margin-top: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.card-wide .card-arrow { flex-shrink: 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 5px 12px;
  border-radius: 999px;
  background: #16161b;
  border: 1px solid #232329;
}

/* ---------- Footer ---------- */

.footer-inner {
  border-top: 1px solid #15151a;
  padding-top: 16px;
  padding-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.footer-link {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 36px 0 44px;
  }

  .card { min-height: 210px; }
}

@media (max-width: 600px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 22px; }
  .card-title { margin-top: 30px; }
  .card-wide { flex-wrap: wrap; padding: 20px; }
  .card-wide .card-handle { margin-left: 0; width: 100%; order: 5; }
  .hero-title { font-size: clamp(44px, 12vw, 60px); }
  .hero-sub { font-size: 16px; }
  .header { padding-top: 18px; padding-bottom: 18px; }
  .footer-inner { justify-content: center; text-align: center; }
}
