/* ============================================
   Variables & Reset
   ============================================ */
:root {
  --green-50: #e8f5e9;
  --green-100: #c8e6c9;
  --green-400: #66bb6a;
  --green-500: #4caf50;
  --green-600: #43a047;
  --green-700: #388e3c;
  --green-800: #2e7d32;
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --bg-white: #ffffff;
  --bg-light: #f8faf8;
  --bg-dark: #1a1a2e;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

/* ============================================
   Utilities
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-green {
  color: var(--green-600);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--green-600);
  color: white;
  border-color: var(--green-600);
}

.btn--primary:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn--outline:hover {
  border-color: var(--green-600);
  color: var(--green-600);
}

.btn--white {
  background: white;
  color: var(--green-700);
  border-color: white;
}

.btn--white:hover {
  background: var(--green-50);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   Header
   ============================================ */
.header {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

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

.logo-text__goblin {
  color: var(--green-600);
}

.header__logo img {
  height: 38px;
  width: auto;
}

.header__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s;
}

.header__links a:hover {
  color: var(--green-600);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
}

.header__menu-btn svg {
  width: 28px;
  height: 28px;
}

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  padding: 24px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 80px 0 60px;
}

.hero__content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero__text {
  flex: 1;
  min-width: 0;
}

.hero__text h1 {
  font-size: 3.4rem;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__text h1 .text-green {
  font-style: italic;
}

.hero__text > p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero__social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-group {
  display: flex;
}

.avatar-group__item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
}

.avatar-group__item:first-child {
  margin-left: 0;
}

.hero__social-proof > span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero__trust-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  color: var(--green-600);
  flex-shrink: 0;
}

.hero__image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.hero__image-wrapper {
  width: 480px;
}

.hero__image-wrapper img {
  width: 100%;
}

/* ============================================
   Steps
   ============================================ */
.steps {
  padding: 80px 0;
  background: var(--bg-light);
}

.section-heading {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* Connector line between steps */
.steps__grid::before {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(12.5% + 18px);
  right: calc(12.5% + 18px);
  height: 2px;
  border-top: 2px dashed var(--green-400);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 38px;
  height: 38px;
  background: var(--green-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 auto 20px;
}

.step__icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.step__icon svg {
  width: 32px;
  height: 32px;
  color: var(--green-600);
}

.step__icon--orbit {
  position: relative;
  width: 88px;
  height: 88px;
  background: var(--green-50);
  border: none;
  border-radius: 50%;
  box-shadow: none;
}

.orbit-logo {
  position: absolute;
  width: 34px;
  height: 34px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.orbit-logo svg,
.orbit-logo img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.orbit-logo--top {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-logo--bottom-left {
  bottom: -4px;
  left: -2px;
}

.orbit-logo--bottom-right {
  bottom: -4px;
  right: -2px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Features
   ============================================ */
.features {
  padding: 80px 0;
}

.features__content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.features__text {
  flex: 1;
  min-width: 0;
}

.features__text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 36px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

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

.features__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  color: var(--green-700);
}

.features__list h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.features__list p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.features__visual {
  flex: 1.1;
  min-width: 0;
}

/* Code editor mockup */
.code-editor {
  background: #1e1e2e;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-editor__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #181825;
}

.code-editor__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-editor__dot--red {
  background: #ff5f57;
}

.code-editor__dot--yellow {
  background: #febc2e;
}

.code-editor__dot--green {
  background: #28c840;
}

.code-editor__tab {
  margin-left: 16px;
  font-size: 0.8rem;
  color: #a6adc8;
  background: #1e1e2e;
  padding: 4px 14px;
  border-radius: 6px 6px 0 0;
}

.code-editor__content {
  padding: 20px 24px;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  color: #cdd6f4;
  overflow-x: auto;
}

.code-editor__content code {
  font-family: inherit;
}

.code-line {
  display: block;
  padding: 0 4px;
}

.code-line--added {
  background: rgba(166, 227, 161, 0.08);
}

.code-line .line-num {
  color: #45475a;
  display: inline-block;
  width: 28px;
  text-align: right;
  margin-right: 16px;
  user-select: none;
}

.code-line .added-marker {
  color: #a6e3a1;
  margin-right: 4px;
}

.syn-keyword {
  color: #cba6f7;
}

.syn-function {
  color: #89b4fa;
}

.syn-string {
  color: #a6e3a1;
}

.syn-comment {
  color: #6c7086;
  font-style: italic;
}

.syn-type {
  color: #f9e2af;
}

.syn-param {
  color: #fab387;
}

.syn-operator {
  color: #89dceb;
}

.syn-property {
  color: #89b4fa;
}

.syn-number {
  color: #fab387;
}

/* ============================================
   Demo
   ============================================ */
.demo {
  padding: 80px 0;
  background: var(--bg-light);
}

.demo__window {
  max-width: 880px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.demo__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-color);
}

.demo__header-avatar {
  width: 36px;
  height: auto;
}

.demo__header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo__header-info span {
  font-weight: 700;
  font-size: 0.95rem;
}

.demo__badge {
  background: var(--green-50);
  color: var(--green-700);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.demo__chat {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo__message {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.demo__msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  min-width: 36px;
  overflow: hidden;
}

.demo__msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo__msg-avatar--user {
  background: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
}

.demo__bubble {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 620px;
}

.demo__bubble--user {
  background: #f3f4f6;
}

.demo__bubble--bot {
  background: var(--green-50);
  border: 1px solid var(--green-100);
}

.demo__bubble .sender {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: block;
}

.demo__bubble .sender--bot {
  color: var(--green-700);
}

.demo__code-block {
  background: #1e1e2e;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 10px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #cdd6f4;
  overflow-x: auto;
}

.demo__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--green-700);
  font-weight: 600;
}

.demo__status svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  padding: 80px 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s;
}

.testimonial:hover {
  box-shadow: var(--shadow-md);
}

.testimonial__quote-icon {
  color: var(--green-400);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

.testimonial__text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial__info h5 {
  font-size: 0.9rem;
  font-weight: 700;
}

.testimonial__info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-800) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  position: relative;
}

.cta__text {
  text-align: center;
  z-index: 1;
}

.cta__text h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.cta__mascot {
  width: 130px;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: #b0b0b0;
  padding: 60px 0 24px;
}

.footer__content {
  display: flex;
  gap: 80px;
  margin-bottom: 40px;
}

.footer__brand {
  flex: 1;
  max-width: 300px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__brand-logo img {
  height: 32px;
  width: auto;
}

.footer__brand-logo .logo-text {
  font-size: 1.2rem;
}

.footer__brand-logo .logo-text__task {
  color: white;
}

.footer__brand > p {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__column h4 {
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__column ul li {
  margin-bottom: 10px;
}

.footer__column ul a {
  font-size: 0.88rem;
  color: #888;
  transition: color 0.2s;
}

.footer__column ul a:hover {
  color: var(--green-400);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: #666;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  color: #666;
  transition: color 0.2s;
}

.footer__socials a:hover {
  color: var(--green-400);
}

.footer__socials svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero__text h1 {
    font-size: 2.6rem;
  }

  .hero__image-wrapper {
    width: 320px;
    height: 320px;
  }

  .section-heading,
  .features__text h2,
  .cta__text h2 {
    font-size: 1.9rem;
  }

  .steps__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
    gap: 40px 32px;
  }

  .steps__grid::before {
    display: none;
  }

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

  .footer__content {
    gap: 48px;
  }

  .footer__links {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header__links {
    display: none;
  }

  .header__actions .btn {
    display: none;
  }

  .header__menu-btn {
    display: block;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero__content {
    flex-direction: column;
    text-align: center;
  }

  .hero__text h1 {
    font-size: 2.2rem;
  }

  .hero__text > p {
    margin: 0 auto 28px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__social-proof {
    justify-content: center;
  }

  .hero__trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__image-wrapper {
    width: 280px;
    height: auto;
  }

  .section-heading,
  .features__text h2 {
    font-size: 1.6rem;
  }

  .steps__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .features__content {
    flex-direction: column;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .cta__mascot {
    display: none;
  }

  .cta__text h2 {
    font-size: 1.5rem;
  }

  .footer__content {
    flex-direction: column;
    gap: 36px;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__text h1 {
    font-size: 1.8rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .demo__chat {
    padding: 16px;
  }

  .demo__code-block {
    font-size: 0.7rem;
  }
}