/* ============================================================
   CLARTS HUB — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg:       #282828;
  --bg2:      #1e1e1e;
  --bg3:      #323232;
  --yellow:   #F1B930;
  --yellow2:  #e0a920;
  --white:    #ffffff;
  --gray:     #9a9a9a;
  --gray2:    #4a4a4a;
  --radius:   14px;
  --trans:    .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(28,28,28,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(241,185,48,.12);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-wrap img { height: 36px; width: auto; object-fit: contain; }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  transition: color var(--trans), background var(--trans);
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-link.active { color: var(--yellow); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav-dropdown > .nav-link::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--trans);
}
.nav-dropdown:hover > .nav-link::after { transform: rotate(-135deg) translateY(-2px); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #1e1e1e;
  border: 1px solid rgba(241,185,48,.15);
  border-radius: var(--radius);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--trans);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  transition: all var(--trans);
}
.dropdown-item:hover { background: rgba(241,185,48,.1); color: var(--yellow); }
.dropdown-item .di-icon { font-size: 1.1rem; }
.dropdown-item .di-badge {
  margin-left: auto;
  font-size: .68rem;
  background: rgba(241,185,48,.15);
  color: var(--yellow);
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 600;
}

/* CTA Button */
.btn-contact {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--bg);
  padding: 9px 22px;
  border-radius: 8px;
  font-family: 'Syne', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  flex-shrink: 0;
}
.btn-contact:hover {
  background: var(--yellow2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(241,185,48,.3);
}

/* Social icons */
.header-socials { display: flex; align-items: center; gap: 10px; }
.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans), transform var(--trans);
}
.social-btn:hover { background: rgba(241,185,48,.15); transform: translateY(-1px); }
.social-btn svg { width: 17px; height: 17px; fill: rgba(255,255,255,.75); transition: fill var(--trans); }
.social-btn:hover svg { fill: var(--yellow); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--trans);
}

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

.hero {
  position: relative;
  padding: 100px 32px 80px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(241,185,48,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(241,185,48,.1);
  border: 1px solid rgba(241,185,48,.25);
  color: var(--yellow);
  font-family: 'Syne', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
  animation: fadeUp .5s ease both;
}
.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 24px;
  animation: fadeUp .5s .1s ease both;
}
.hero h1 em { font-style: normal; color: var(--yellow); }

.hero-desc {
  max-width: 580px;
  margin: 0 auto 48px;
  color: rgba(255,255,255,.6);
  font-size: 1.05rem;
  line-height: 1.7;
  animation: fadeUp .5s .2s ease both;
}

.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp .5s .3s ease both;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  padding: 8px 18px;
  border-radius: 30px;
}
.hero-pill svg { width: 15px; height: 15px; fill: var(--yellow); flex-shrink: 0; }

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

.tools-section {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 100px;
}

.section-label {
  font-family: 'Syne', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Tool Card */
.tool-card {
  position: relative;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: all var(--trans);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(241,185,48,.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--trans);
}
.tool-card:hover {
  border-color: rgba(241,185,48,.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.tool-card:hover::before { opacity: 1; }

.tool-card.coming-soon {
  opacity: .65;
  cursor: default;
  pointer-events: none;
}
.tool-card.coming-soon:hover { transform: none; box-shadow: none; }

.tool-icon {
  width: 48px; height: 48px;
  background: rgba(241,185,48,.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: background var(--trans);
  flex-shrink: 0;
}
.tool-card:hover .tool-icon { background: rgba(241,185,48,.2); }

.tool-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: .68rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-live {
  background: rgba(34,197,94,.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,.25);
}
.badge-soon {
  background: rgba(241,185,48,.1);
  color: var(--yellow);
  border: 1px solid rgba(241,185,48,.2);
}

.tool-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.tool-desc {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  flex: 1;
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  color: var(--yellow);
  margin-top: 4px;
  transition: gap var(--trans);
}
.tool-card:hover .tool-cta { gap: 10px; }
.tool-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

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

.site-footer {
  background: var(--bg2);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

.footer-copy { flex: 1; min-width: 200px; }
.footer-copy strong { color: rgba(255,255,255,.65); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,.4);
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--yellow); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

/* Stagger cards */
.tool-card { animation: fadeUp .4s ease both; }
.tool-card:nth-child(1) { animation-delay: .05s; }
.tool-card:nth-child(2) { animation-delay: .10s; }
.tool-card:nth-child(3) { animation-delay: .15s; }
.tool-card:nth-child(4) { animation-delay: .20s; }
.tool-card:nth-child(5) { animation-delay: .25s; }
.tool-card:nth-child(6) { animation-delay: .30s; }
.tool-card:nth-child(7) { animation-delay: .35s; }
.tool-card:nth-child(8) { animation-delay: .40s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-socials { display: none; }
  .btn-contact { display: none; }
  .hamburger { display: flex; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--bg2);
    padding: 24px;
    gap: 8px;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,.04);
    margin-top: 4px;
    display: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 20px 50px; }
  .tools-section { padding: 0 20px 60px; }
  .tools-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
