:root {
  --ytg-bg: #f4f7fb;
  --ytg-surface: rgba(255, 255, 255, 0.96);
  --ytg-surface-strong: #ffffff;
  --ytg-border: rgba(82, 102, 130, 0.18);
  --ytg-ink: #0a1830;
  --ytg-muted: #5e6f88;
  --ytg-primary: #126dff;
  --ytg-primary-dark: #0a53c1;
  --ytg-primary-soft: rgba(18, 109, 255, 0.09);
  --ytg-success: #0a9155;
  --ytg-danger: #cc4d4d;
  --ytg-radius-lg: 22px;
  --ytg-radius-md: 16px;
  --ytg-radius-sm: 999px;
  --ytg-shadow-soft: 0 18px 40px rgba(20, 42, 72, 0.08);
  --ytg-font: "CircularStd", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ytg-ink);
  font-family: var(--ytg-font);
  background:
    radial-gradient(circle at top left, rgba(18, 109, 255, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(14, 168, 120, 0.08), transparent 18%),
    linear-gradient(180deg, #fbfdff 0%, var(--ytg-bg) 100%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.ytg-container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.ytg-hero,
.ytg-section,
.ytg-cta-section {
  padding: 40px 0;
}

.ytg-hero {
  padding-top: 56px;
}

.ytg-hero-grid,
.ytg-content-grid {
  display: grid;
  gap: 24px;
}

.ytg-hero-grid {
  grid-template-columns: 1fr;
}

.ytg-kicker {
  margin: 0 0 14px;
  color: var(--ytg-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ytg-kicker-icon {
  display: inline-block;
  margin-right: 8px;
}

.ytg-hero-copy h1,
.ytg-section-header h2,
.ytg-content-card h2,
 .ytg-cta-card h2,
.ytg-results-header h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.ytg-hero-copy {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.ytg-hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.ytg-lead,
.ytg-section-copy,
.ytg-feature-card p,
.ytg-step-card p,
.ytg-content-card p,
.ytg-faq-list p,
.ytg-results-subheading,
.ytg-form-message,
.ytg-hero-list li,
.ytg-result-reason,
.ytg-cta-card p:last-child {
  color: var(--ytg-muted);
  line-height: 1.75;
}

.ytg-lead {
  margin: 18px 0 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.08rem;
}

.ytg-results-shell,
.ytg-feature-card,
.ytg-step-card,
.ytg-content-card,
.ytg-faq-list details,
.ytg-cta-card {
  border: 1px solid var(--ytg-border);
  border-radius: var(--ytg-radius-lg);
  background: var(--ytg-surface);
  box-shadow: var(--ytg-shadow-soft);
}

.ytg-results-shell,
.ytg-content-card,
.ytg-cta-card {
  padding: 24px;
}

.ytg-form {
  margin-top: 28px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.ytg-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.ytg-input-row input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(82, 102, 130, 0.24);
  border-radius: 18px;
  background: #fff;
  color: var(--ytg-ink);
}

.ytg-input-row input:focus {
  outline: 2px solid rgba(18, 109, 255, 0.16);
  border-color: rgba(18, 109, 255, 0.35);
}

.ytg-input-row button,
.ytg-copy-all,
.ytg-copy-button,
.ytg-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--ytg-radius-sm);
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.ytg-input-row button,
.ytg-cta-button {
  color: #fff;
  background: linear-gradient(135deg, var(--ytg-primary) 0%, #4b9bff 100%);
  box-shadow: 0 16px 30px rgba(18, 109, 255, 0.22);
}

.ytg-input-row button:hover,
.ytg-copy-all:hover,
.ytg-copy-button:hover,
.ytg-cta-button:hover {
  transform: translateY(-1px);
}

.ytg-input-row button:disabled,
.ytg-copy-all:disabled,
.ytg-copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.ytg-form-message {
  margin: 0;
  min-height: 0;
  font-size: 0.95rem;
}

.ytg-form-message.error {
  color: var(--ytg-danger);
}

.ytg-form-message.success {
  color: var(--ytg-success);
}

.ytg-result-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--ytg-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

.ytg-results-section {
  padding-bottom: 20px;
}

.ytg-section-dark {
  margin: 0;
  padding: 40px 0;
  color: var(--ytg-ink);
}

.ytg-section-header-centered {
  margin: 0 auto;
  text-align: center;
}

.ytg-section-dark .ytg-kicker {
  color: var(--ytg-primary);
}

.ytg-section-dark .ytg-section-copy,
.ytg-section-dark .ytg-feature-card p,
.ytg-section-dark .ytg-step-card p,
.ytg-section-dark .ytg-content-card p,
.ytg-section-dark .ytg-faq-list p,
.ytg-section-dark .ytg-guidance-list li {
  color: var(--ytg-muted);
}

.ytg-results-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.ytg-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ytg-results-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.ytg-results-subheading {
  margin: 8px 0 0;
}

.ytg-copy-all,
.ytg-copy-button {
  min-height: 44px;
  color: var(--ytg-ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--ytg-border);
}

.ytg-button-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.ytg-loading,
.ytg-error {
  margin-top: 22px;
  border-radius: 18px;
  padding: 18px;
}

.ytg-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 109, 255, 0.05);
  color: var(--ytg-muted);
}

.ytg-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(18, 109, 255, 0.18);
  border-top-color: var(--ytg-primary);
  animation: ytg-spin 0.8s linear infinite;
}

.ytg-error {
  background: rgba(204, 77, 77, 0.08);
  color: #a73b3b;
}

.ytg-results-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.ytg-result-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(82, 102, 130, 0.14);
  border-radius: 20px;
  background: var(--ytg-surface-strong);
}

.ytg-result-score {
  min-width: 72px;
  background: linear-gradient(135deg, rgba(18, 109, 255, 0.1), rgba(72, 174, 255, 0.18));
  color: var(--ytg-primary-dark);
}

.ytg-result-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.ytg-result-reason {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.ytg-feature-grid,
.ytg-steps-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.ytg-feature-grid,
.ytg-steps-grid,
.ytg-content-grid,
.ytg-principles-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.ytg-steps-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ytg-content-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ytg-principles-grid {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

.ytg-feature-card,
.ytg-step-card {
  padding: 22px;
}

.ytg-section-dark .ytg-feature-card,
.ytg-section-dark .ytg-step-card,
.ytg-section-dark .ytg-content-card,
.ytg-section-dark .ytg-faq-list details {
  background: var(--ytg-surface);
  border-color: var(--ytg-border);
  box-shadow: var(--ytg-shadow-soft);
}

.ytg-feature-card h3,
.ytg-step-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.ytg-section-dark .ytg-feature-card h3,
.ytg-section-dark .ytg-step-card h3,
.ytg-section-dark .ytg-content-card h2,
.ytg-section-dark .ytg-faq-list summary {
  color: var(--ytg-ink);
}

.ytg-feature-card p,
.ytg-step-card p {
  margin: 10px 0 0;
}

.ytg-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(18, 109, 255, 0.14);
  font-size: 1.3rem;
}

.ytg-step-card {
  text-align: center;
}

.ytg-step-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(18, 109, 255, 0.12);
  color: var(--ytg-primary-dark);
  font-size: 1.45rem;
  border: 1px solid rgba(18, 109, 255, 0.22);
}

.ytg-step-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #176fff;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.ytg-step-number {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--ytg-primary-dark);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.ytg-content-card p:first-of-type {
  margin-top: 14px;
}

.ytg-guidance-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ytg-guidance-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.75;
}

.ytg-guidance-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #3f90ff;
  font-size: 1.1rem;
}

.ytg-section-dark .ytg-guidance-list strong {
  color: var(--ytg-ink);
}

.ytg-faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.ytg-faq-list details {
  padding: 18px 20px;
}

.ytg-faq-list summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  list-style: none;
}

.ytg-faq-list summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
}

.ytg-faq-list details[open] summary::after {
  content: "−";
}

.ytg-faq-list summary::-webkit-details-marker {
  display: none;
}

.ytg-faq-list p {
  margin: 12px 0 0;
}

.ytg-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

@keyframes ytg-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .ytg-hero-grid,
  .ytg-feature-grid,
  .ytg-steps-grid,
  .ytg-content-grid,
  .ytg-principles-grid,
  .ytg-feature-grid-2,
  .ytg-steps-grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ytg-hero,
  .ytg-section,
  .ytg-cta-section {
    padding: 28px 0;
  }

  .ytg-form,
  .ytg-results-shell,
  .ytg-content-card,
  .ytg-cta-card {
    padding: 20px;
  }

  .ytg-form {
    padding: 0;
  }

  .ytg-section-dark {
    padding: 28px 0;
  }

  .ytg-input-row,
  .ytg-result-item {
    grid-template-columns: 1fr;
  }

  .ytg-results-header,
  .ytg-cta-card {
    flex-direction: column;
    align-items: stretch;
  }

  .ytg-copy-all,
  .ytg-copy-button,
  .ytg-cta-button,
  .ytg-input-row button {
    width: 100%;
  }

  .ytg-result-score {
    min-width: 0;
    justify-self: start;
  }
}
