/* ===== Design Tokens ===== */
:root {
  --primary: #1DB954;
  --primary-dark: #17a348;
  --dark: #0D1117;
  --dark-light: #161B22;
  --accent: #F5A623;
  --bg: #F9FAFB;
  --text: #24292F;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
  --bg: #161B22;
  --text: #E6EDF3;
  --text-muted: #8B949E;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--dark);
}

.btn .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--dark);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

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

.navbar__logo img {
  height: 36px;
  width: auto;
}

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

.navbar__links a {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.navbar__links a:hover {
  opacity: 1;
}

.navbar__cta {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navbar actions (toggle + hamburger) */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.theme-toggle:hover {
  opacity: 1;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

/* Mobile nav */
@media (max-width: 768px) {
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    transition: right var(--transition);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(29, 185, 84, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero__badge {
  display: inline-block;
  background: rgba(29, 185, 84, 0.15);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ===== Section Shared ===== */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section__heading {
  text-align: center;
  margin-bottom: 60px;
}

.section__heading h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section__heading h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section--dark .section__heading h2::after {
  background: var(--primary);
}

.section__heading p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 20px auto 0;
}

.section--dark .section__heading p {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== What Is Assi ===== */
.value-prop {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.value-prop p {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.value-prop p + p {
  margin-top: 16px;
}

.value-prop strong {
  color: var(--text);
}

/* ===== How It Works ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--dark-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.step-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.step-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.step-card__icon svg {
  width: 100%;
  height: 100%;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ===== Benefits Sections (Freelancers / Companies) ===== */
.benefits-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.benefits-row--reverse {
  direction: rtl;
}

.benefits-row--reverse > * {
  direction: ltr;
}

.benefits__content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.benefits__content h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.benefits__list {
  margin: 24px 0 32px;
}

.benefits__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 1.05rem;
}

.benefits__list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-top: 8px;
}

/* Chat Mockup */
.chat-mockup {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  margin: 0 auto;
}

.chat-mockup__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.chat-mockup__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.chat-mockup__name {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-mockup__status {
  font-size: 0.75rem;
  color: var(--primary);
}

.chat-mockup__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 85%;
}

.chat-bubble--bot {
  background: var(--dark-light);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-bubble--user {
  background: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

@media (max-width: 768px) {
  .benefits-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefits-row--reverse {
    direction: ltr;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 32px;
  text-align: center;
}

.footer__logo {
  height: 32px;
  margin: 0 auto 12px;
}

.footer__tagline {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer__phone {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.footer__phone a {
  color: var(--primary);
  transition: opacity var(--transition);
}

.footer__phone a:hover {
  opacity: 0.8;
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ===== Scroll Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-30px);
}

[data-animate="fade-left"].is-visible {
  transform: translateX(0);
}

[data-animate="fade-right"] {
  transform: translateX(30px);
}

[data-animate="fade-right"].is-visible {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== Dark Mode Adjustments ===== */
[data-theme="dark"] .chat-mockup {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .btn-secondary {
  color: var(--accent);
  border-color: var(--accent);
}

[data-theme="dark"] .btn-secondary:hover {
  color: var(--dark);
}

/* ===== Focus Visible ===== */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
