/* =========================================
   GEarly
   PROFESSIONAL HOMEPAGE
========================================= */


/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    radial-gradient(
      circle at 50% -20%,
      #fff3ed 0%,
      transparent 35%
    ),
    #f7f8fa;

  color: #111827;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

button {
  font: inherit;
}


/* ---------- VARIABLES ---------- */

:root {

  --background: #f7f8fa;

  --card: #ffffff;

  --text: #111827;

  --muted: #6b7280;

  --line: #e5e7eb;

  --accent: #ff6b35;

  --accent-dark: #e85a25;

  --accent-soft: #fff0ea;

  --dark: #111827;

}


/* ---------- CONTAINER ---------- */

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.site-header {
  height: 78px;

  border-bottom: 1px solid rgba(229, 231, 235, .8);

  background: rgba(247, 248, 250, .88);

  backdrop-filter: blur(16px);

  position: sticky;

  top: 0;

  z-index: 100;
}


.nav {
  height: 100%;

  display: flex;

  align-items: center;

  justify-content: space-between;
}


/* Logo */

.logo {
  text-decoration: none;

  font-size: 27px;

  font-weight: 850;

  letter-spacing: -1.5px;
}

.logo span {
  color: var(--accent);
}


/* Navigation */

.nav nav {
  display: flex;

  align-items: center;

  gap: 8px;
}

.nav nav a {
  padding: 9px 13px;

  color: var(--muted);

  text-decoration: none;

  font-size: 14px;

  font-weight: 600;

  border-radius: 9px;

  transition:
    color .2s ease,
    background .2s ease;
}

.nav nav a:hover,
.nav nav a.active {
  color: var(--text);

  background: #ffffff;
}

.lang-switch {
  background: var(--accent-soft);

  color: var(--accent-dark) !important;

  margin-left: 5px;
}


/* Mobile menu */

.menu-button {
  display: none;

  width: 42px;

  height: 42px;

  border: 1px solid var(--line);

  background: white;

  border-radius: 10px;

  cursor: pointer;

  flex-direction: column;

  justify-content: center;

  gap: 5px;
}

.menu-button span {
  display: block;

  width: 18px;

  height: 2px;

  background: var(--text);

  margin: 0 auto;

  border-radius: 5px;
}


/* =========================================
   HERO
========================================= */

.hero {
  padding: 110px 0 95px;

  text-align: center;
}

.hero-content {
  max-width: 980px;
}


/* Badge */

.badge {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 8px 13px;

  margin-bottom: 28px;

  background: var(--accent-soft);

  color: var(--accent-dark);

  border-radius: 999px;

  font-size: 13px;

  font-weight: 750;
}

.badge-dot {
  width: 7px;

  height: 7px;

  border-radius: 50%;

  background: var(--accent);
}


/* Hero title */

.hero h1 {
  margin: 0 auto;

  max-width: 900px;

  font-size: clamp(55px, 8vw, 96px);

  line-height: .96;

  letter-spacing: -5px;

  font-weight: 850;
}

.hero h1 span {
  display: block;

  color: var(--accent);
}


/* Hero text */

.hero-text {
  max-width: 650px;

  margin: 30px auto 0;

  color: var(--muted);

  font-size: 18px;

  line-height: 1.7;
}


/* Hero buttons */

.hero-actions {
  display: flex;

  justify-content: center;

  gap: 12px;

  margin-top: 36px;
}

.button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 14px;

  min-height: 52px;

  padding: 0 20px;

  border-radius: 12px;

  text-decoration: none;

  font-size: 14px;

  font-weight: 750;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}


/* Primary */

.button-primary {
  background: var(--accent);

  color: white;

  box-shadow:
    0 12px 25px
    rgba(255, 107, 53, .22);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-arrow {
  font-size: 20px;
}


/* Secondary */

.button-secondary {
  background: white;

  color: var(--text);

  border: 1px solid var(--line);
}

.button-secondary:hover {
  box-shadow:
    0 8px 20px
    rgba(17, 24, 39, .08);
}


/* Hero stats */

.hero-stats {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 28px;

  margin-top: 70px;
}

.stat {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.stat strong {
  font-size: 20px;

  letter-spacing: -.5px;
}

.stat span {
  color: var(--muted);

  font-size: 12px;
}

.stat-line {
  width: 1px;

  height: 38px;

  background: var(--line);
}


/* =========================================
   FEATURED TOOL
========================================= */

.featured-section {
  padding: 0 0 110px;
}


.featured-tool {
  min-height: 470px;

  display: grid;

  grid-template-columns: 1.05fr .95fr;

  overflow: hidden;

  border-radius: 28px;

  background: var(--dark);

  color: white;

  text-decoration: none;

  position: relative;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.featured-tool:hover {
  transform: translateY(-5px);

  box-shadow:
    0 30px 70px
    rgba(17, 24, 39, .18);
}


.featured-tool-content {
  padding: 65px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  position: relative;

  z-index: 2;
}


.tool-label {
  width: fit-content;

  padding: 7px 11px;

  border: 1px solid rgba(255,255,255,.12);

  border-radius: 999px;

  color: #c4c9d2;

  font-size: 12px;

  font-weight: 700;

  margin-bottom: 25px;
}


.featured-tool h2 {
  margin: 0;

  font-size: clamp(38px, 4vw, 58px);

  line-height: 1;

  letter-spacing: -3px;
}

.featured-tool p {
  max-width: 470px;

  margin: 24px 0 0;

  color: #aeb5c0;

  line-height: 1.7;

  font-size: 15px;
}


.featured-link {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-top: 38px;

  color: #ffffff;

  font-size: 14px;

  font-weight: 750;
}

.featured-link span {
  color: var(--accent);

  font-size: 22px;

  transition: transform .2s ease;
}

.featured-tool:hover .featured-link span {
  transform: translateX(5px);
}


/* Featured visual */

.featured-visual {
  position: relative;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle,
      rgba(255,107,53,.20),
      transparent 55%
    );
}


.gear-icon-large {
  font-size: 260px;

  color: rgba(255,255,255,.06);

  transform: rotate(-15deg);

  user-select: none;
}


.floating-card {
  position: absolute;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 15px 17px;

  border: 1px solid rgba(255,255,255,.1);

  background: rgba(255,255,255,.08);

  backdrop-filter: blur(14px);

  border-radius: 15px;

  min-width: 190px;
}


.floating-card strong {
  display: block;

  font-size: 13px;
}

.floating-card small {
  display: block;

  margin-top: 4px;

  color: #aeb5c0;

  font-size: 11px;
}


.floating-card-top {
  top: 85px;

  right: 70px;
}

.floating-card-bottom {
  bottom: 80px;

  left: 55px;
}


.floating-icon {
  width: 32px;

  height: 32px;

  display: grid;

  place-items: center;

  border-radius: 9px;

  background: var(--accent);

  font-size: 20px;
}


.status-dot {
  width: 9px;

  height: 9px;

  border-radius: 50%;

  background: #4ade80;

  box-shadow:
    0 0 0 5px
    rgba(74,222,128,.1);
}


/* =========================================
   TOOLS
========================================= */

.tools-section {
  padding: 100px 0;

  background: white;

  border-top: 1px solid var(--line);

  border-bottom: 1px solid var(--line);
}


.section-heading {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 40px;

  margin-bottom: 45px;
}


.eyebrow {
  display: block;

  margin-bottom: 12px;

  color: var(--accent-dark);

  font-size: 12px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 1.3px;
}


.section-heading h2 {
  margin: 0;

  font-size: clamp(34px, 4vw, 52px);

  line-height: 1;

  letter-spacing: -2.5px;
}

.section-heading p {
  max-width: 350px;

  margin: 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.7;
}


/* Tools grid */

.tools-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 16px;
}


.tool-card {
  min-height: 330px;

  display: flex;

  flex-direction: column;

  padding: 25px;

  background: #fafafa;

  border: 1px solid var(--line);

  border-radius: 20px;

  text-decoration: none;

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.tool-card:hover {
  transform: translateY(-6px);

  background: white;

  border-color: #d8dbe0;

  box-shadow:
    0 20px 40px
    rgba(17,24,39,.08);
}


/* Main tool */

.tool-card.main-tool {
  background: var(--accent);

  border-color: var(--accent);

  color: white;
}

.tool-card.main-tool:hover {
  background: var(--accent-dark);

  box-shadow:
    0 20px 40px
    rgba(255,107,53,.22);
}

.tool-card.main-tool .tool-icon {
  background: rgba(255,255,255,.15);

  color: white;
}

.tool-card.main-tool p,
.tool-card.main-tool .tool-number {
  color: rgba(255,255,255,.75);
}

.tool-card.main-tool .arrow-circle {
  background: white;

  color: var(--accent);
}


/* Tool card */

.tool-card-top {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.tool-icon {
  width: 48px;

  height: 48px;

  display: grid;

  place-items: center;

  border-radius: 14px;

  background: var(--accent-soft);

  color: var(--accent-dark);

  font-size: 23px;

  font-weight: 800;
}

.tool-number {
  color: #a1a7b0;

  font-size: 12px;

  font-weight: 750;
}


.tool-card-content {
  margin-top: 55px;
}

.tool-card h3 {
  margin: 0;

  font-size: 19px;

  letter-spacing: -.5px;
}

.tool-card p {
  margin: 12px 0 0;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.7;
}


.tool-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-top: auto;

  padding-top: 30px;

  font-size: 13px;

  font-weight: 750;
}

.arrow-circle {
  width: 34px;

  height: 34px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background: #eeeeee;

  transition:
    transform .2s ease;
}

.tool-card:hover .arrow-circle {
  transform: translateX(4px);
}


/* =========================================
   CTA
========================================= */

.cta-section {
  padding: 110px 0;
}


.cta-box {
  min-height: 370px;

  position: relative;

  overflow: hidden;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 40px;

  padding: 65px;

  border-radius: 28px;

  background: var(--dark);

  color: white;
}


.cta-background {
  position: absolute;

  right: -20px;

  top: -100px;

  color: rgba(255,255,255,.035);

  font-size: 470px;

  transform: rotate(-15deg);

  pointer-events: none;
}


.cta-content {
  position: relative;

  z-index: 2;
}


.eyebrow.light {
  color: var(--accent);
}


.cta-box h2 {
  margin: 0;

  font-size: clamp(38px, 5vw, 60px);

  line-height: 1;

  letter-spacing: -3px;
}


.cta-box p {
  max-width: 510px;

  margin: 22px 0 0;

  color: #aeb5c0;

  font-size: 15px;

  line-height: 1.7;
}


.cta-button {
  position: relative;

  z-index: 2;

  display: inline-flex;

  align-items: center;

  gap: 14px;

  padding: 16px 19px;

  border-radius: 12px;

  background: white;

  color: var(--dark);

  text-decoration: none;

  font-size: 13px;

  font-weight: 800;

  white-space: nowrap;

  transition:
    transform .2s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
}

.cta-button span {
  color: var(--accent);

  font-size: 20px;
}


/* =========================================
   FOOTER
========================================= */

footer {
  padding: 30px 0;

  border-top: 1px solid var(--line);

  background: white;
}


.footer-content {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;
}


.footer-logo {
  font-size: 20px;

  font-weight: 850;

  letter-spacing: -1px;
}

.footer-logo span {
  color: var(--accent);
}


footer p {
  margin: 0;

  color: var(--muted);

  font-size: 12px;
}


footer a {
  color: var(--muted);

  text-decoration: none;

  font-size: 12px;

  font-weight: 700;
}


/* =========================================
   RTL SUPPORT
========================================= */

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .hero {
  text-align: center;
}

html[dir="rtl"] .hero h1 {
  letter-spacing: -2px;
}

html[dir="rtl"] .button-arrow,
html[dir="rtl"] .featured-link span,
html[dir="rtl"] .arrow-circle,
html[dir="rtl"] .cta-button span {
  transform: rotate(180deg);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

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

  .featured-tool {
    grid-template-columns: 1fr;
  }

  .featured-visual {
    min-height: 330px;
  }

  .section-heading {
    align-items: flex-start;

    flex-direction: column;
  }

  .cta-box {
    align-items: flex-start;

    flex-direction: column;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

  .container {
    width: min(100% - 32px, 1180px);
  }


  /* Header */

  .site-header {
    height: 68px;
  }

  .menu-button {
    display: flex;

    order: 3;
  }

  .nav {
    position: relative;
  }


  .nav nav {
    display: none;

    position: absolute;

    top: 60px;

    left: 0;

    right: 0;

    padding: 10px;

    flex-direction: column;

    align-items: stretch;

    background: white;

    border: 1px solid var(--line);

    border-radius: 16px;

    box-shadow:
      0 20px 40px
      rgba(17,24,39,.12);
  }

  .nav nav.open {
    display: flex;
  }

  .nav nav a {
    padding: 13px;
  }

  .lang-switch {
    text-align: center;
  }


  /* Hero */

  .hero {
    padding: 75px 0 70px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 70px);

    letter-spacing: -3px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;

    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    gap: 16px;

    margin-top: 55px;
  }

  .stat-line {
    height: 32px;
  }

  .stat strong {
    font-size: 17px;
  }

  .stat span {
    font-size: 10px;
  }


  /* Featured */

  .featured-section {
    padding-bottom: 75px;
  }

  .featured-tool-content {
    padding: 38px 28px 30px;
  }

  .featured-tool h2 {
    letter-spacing: -2px;
  }

  .featured-visual {
    min-height: 270px;
  }

  .gear-icon-large {
    font-size: 190px;
  }

  .floating-card-top {
    top: 35px;

    right: 20px;
  }

  .floating-card-bottom {
    bottom: 30px;

    left: 20px;
  }


  /* Tools */

  .tools-section {
    padding: 75px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    letter-spacing: -2px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 280px;
  }

  .tool-card-content {
    margin-top: 40px;
  }


  /* CTA */

  .cta-section {
    padding: 75px 0;
  }

  .cta-box {
    padding: 40px 28px;

    min-height: auto;
  }

  .cta-box h2 {
    letter-spacing: -2px;
  }

  .cta-button {
    width: 100%;

    justify-content: center;
  }


  /* Footer */

  .footer-content {
    align-items: flex-start;

    flex-direction: column;
  }

}