
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

:root {
  --bg:        #07090f;
  --bg-2:      #0c0f1a;
  --bg-3:      #111422;
  --surface:   rgba(255,255,255,.04);
  --border:    rgba(255,255,255,.08);
  --border-hi: rgba(0,220,180,.25);
  --accent:    #00dcb4;
  --accent-2:  #00b8f5;
  --text:      #e8eaf0;
  --muted:     #8a90a4;
  --faint:     #3a3f54;
  --radius:    12px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,220,180,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,220,180,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,220,180,.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeUp .7s ease forwards;
}
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .34s; }
.delay-4 { animation-delay: .46s; }
.delay-5 { animation-delay: .58s; }

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .25rem 2rem;
  display: flex;
  
  align-items: center;
  justify-content: space-between;
  background: rgba(7,9,15,.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  list-style: none;
}
nav h5 {
  font-family: var(--font-head);
  margin: 0;
}
.nav-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -.01em;
}
.nav-brand-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: 7px;
  display: grid;
  place-items: center;
  border: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 0;
}
.nav-links a {
  font-size: .88rem;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.btn {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  padding: .55rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255);
  color: var(--text);
}
.btn-primary {
  background: var(--accent);
  color: #07090f;
  font-weight: 500;
}
.btn-primary:hover {
  background: #00f5c8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,220,180,.3);
}
.btn-primary-lg {
  padding: .8rem 2rem;
  font-size: .95rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 500;
  letter-spacing: -.01em;
}
.btn-primary-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,220,180,.35);
}
.btn-outline-lg {
  padding: .8rem 2rem;
  font-size: .95rem;
  border-radius: 10px;
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}
.btn-outline-lg:hover {
  border-color: rgba(255,255,255,.2);
  color: var(--text);
}

.nav__buttons-section {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

/* ── DASHBOARD LINK ── */
.nav-dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  padding: .4rem .85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
  text-decoration: none;
}
.nav-dashboard-btn .material-symbols-outlined {
  font-size: 1.1rem;
  line-height: 1;
}
.nav-dashboard-btn:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.nav__user-menu { position: relative; }

.nav__user-menu-details { position: relative; }

.nav__user-menu-details > summary { list-style: none; }
.nav__user-menu-details > summary::-webkit-details-marker { display: none; }

.nav__user-menu-summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .75rem .4rem .55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
  user-select: none;
  white-space: nowrap;
}
.nav__user-menu-summary .material-symbols-outlined:first-child {
  font-size: 1.15rem;
  line-height: 1;
  color: var(--faint);
  transition: color .2s;
}
.nav__username {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav__chevron {
  font-size: .9rem !important;
  color: var(--faint);
  transition: transform .2s, color .2s;
  margin-left: .05rem;
}

.nav__user-menu-details[open] .nav__user-menu-summary {
  color: var(--text);
  border-color: var(--border-hi);
  background: rgba(0,220,180,.06);
}
.nav__user-menu-details[open] .nav__user-menu-summary .material-symbols-outlined:first-child {
  color: var(--accent);
}
.nav__user-menu-details[open] .nav__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav__user-menu-details:not([open]) .nav__user-menu-summary:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
}

.nav__user-menu-sublist {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 175px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .35rem;
  list-style: none;
  margin: 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  z-index: 200;
  animation: fadeUp .15s ease both;
}

.nav__user-menu-sublist-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .65rem;
  border-radius: 8px;
  transition: background .15s;
}
.nav__user-menu-sublist-item .material-symbols-outlined {
  font-size: 1rem;
  color: var(--faint);
  flex-shrink: 0;
  transition: color .15s;
}
.nav__user-menu-sublist-item a,
.nav__logout-btn {
  font-size: .84rem;
  color: var(--muted);
  text-decoration: none;
  flex: 1;
  transition: color .15s;
}
.nav__user-menu-sublist-item .nav__logout-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.nav__user-menu-sublist-item:hover {
  background: rgba(0,220,180,.07);
}
.nav__user-menu-sublist-item:hover .material-symbols-outlined,
.nav__user-menu-sublist-item:hover a,
.nav__user-menu-sublist-item:hover .nav__logout-btn {
  color: var(--text);
}

.nav__logout-item:hover {
  background: rgba(255,95,87,.07);
}
.nav__logout-item:hover .material-symbols-outlined,
.nav__logout-item:hover a,
.nav__logout-item:hover .nav__logout-btn {
  color: #ff5f57;
}

.nav__board-switcher-details {
  position: relative;
}

.nav__board-switcher-details > summary { list-style: none; }
.nav__board-switcher-details > summary::-webkit-details-marker { display: none; }

.nav__board-switcher-summary {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .65rem .35rem .55rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: color .2s, border-color .2s, background .2s;
  user-select: none;
  white-space: nowrap;
}

.nav__board-switcher-icon {
  font-size: .95rem;
  color: var(--accent);
  flex-shrink: 0;
}

.nav__board-switcher-name {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__board-switcher-details[open] .nav__board-switcher-summary {
  border-color: var(--border-hi);
  background: rgba(0,220,180,.06);
}

.nav__board-switcher-details[open] .nav__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav__board-switcher-details:not([open]) .nav__board-switcher-summary:hover {
  border-color: var(--border);
  background: rgba(255,255,255,.04);
}

.nav__board-switcher-list {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 200px;
  max-width: 280px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .35rem;
  list-style: none;
  margin: 0;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  z-index: 200;
  animation: fadeUp .15s ease both;
}

.nav__board-switcher-item a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .65rem;
  border-radius: 8px;
  font-size: .84rem;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.nav__board-switcher-item-icon {
  font-size: .9rem;
  color: var(--faint);
  flex-shrink: 0;
  transition: color .15s;
}

.nav__board-switcher-item a:hover {
  background: rgba(0,220,180,.07);
  color: var(--text);
}

.nav__board-switcher-item a:hover .nav__board-switcher-item-icon {
  color: var(--accent);
}

.nav__board-switcher-empty {
  padding: .45rem .65rem;
  font-size: .84rem;
  color: var(--faint);
  font-style: italic;
}

@media (max-width: 640px) {
  .nav__username { display: none; }
  .nav-dashboard-btn span:not(.material-symbols-outlined) { display: none; }
  .nav__chevron { display: none; }
  .nav__board-switcher-name { max-width: 100px; }
}

.wrap {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 2rem;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 7rem 2rem 5rem;
  max-width: 1140px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.035em;
  margin-bottom: 1.5rem;
  max-width: 860px;
  margin-inline: auto;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 1.75rem;
}
.hero-meta {
  font-size: .82rem;
  color: var(--faint);
}
.hero-meta strong { color: var(--muted); }

.hero-mockup {
  margin-top: 5rem;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.mockup-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,220,180,.12), transparent 70%);
  pointer-events: none;
}

.mockup-frame {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
}
.mockup-topbar {
  background: var(--bg-3);
  padding: .7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: .4rem;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.mockup-title-bar {
  flex: 1;
  text-align: center;
  font-size: .78rem;
  color: var(--faint);
  font-family: var(--font-head);
}

.mockup-body {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}

.mockup-col-head {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col-count {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: .6rem;
  color: var(--faint);
}

.mockup-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .55rem .7rem;
  margin-bottom: .45rem;
  font-size: .72rem;
  color: var(--text);
  transition: border-color .2s;
}

.mockup-card:hover { border-color: var(--border-hi); }
.mockup-card-tag {
  display: inline-block;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 1px 6px;
  margin-bottom: .3rem;
}

.tag-ai    { background: rgba(0,220,180,.15); color: var(--accent); }
.tag-bug   { background: rgba(255,95,87,.15);  color: #ff5f57; }
.tag-feat  { background: rgba(0,184,245,.15);  color: var(--accent-2); }
.tag-done  { background: rgba(40,200,64,.15);  color: #28c840; }
.mockup-card-label { color: var(--muted); font-size: .62rem; margin-top: .3rem; }
.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(0,220,180,.1);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  padding: .35rem .6rem;
  font-size: .65rem;
  color: var(--accent);
  margin-top: .4rem;
}

.logos-strip {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.5rem;
}

.logos-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
}

.logo-pill {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--faint);
  letter-spacing: -.01em;
  transition: color .2s;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: .4em;
}

.logo-pill::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask-image: var(--pill-icon);
  mask-image: var(--pill-icon);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  flex-shrink: 0;
}

.logo-pill:hover { color: var(--muted); }

section { position: relative; z-index: 1; }
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .8rem;
}

.features {
  padding: 6rem 0;
}

.features-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.features-tagline {
  font-size: .95rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
  font-weight: 300;
  align-self: end;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: background .25s;
}

.feature-card:hover { background: var(--bg-2); }
.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.feature-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.feature-text {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(0,220,180,.04), transparent);
  transition: opacity .25s;
  pointer-events: none;
}

.feature-card:hover::after { opacity: 1; }

.pricing {
  padding: 6rem 0;
}

.cta-banner {
  padding: 5rem 0 7rem;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(0,220,180,.08), rgba(0,184,245,.06));
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0,220,180,.2), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: .9rem;
}

.cta-sub {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 380px;
  margin-inline: auto;
}

.cta-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.badge {
  font-size: .75rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.badge::before {
  content: '✓';
  color: var(--accent);
  font-size: .7rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1140px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 700;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: .8rem;
  color: var(--faint);
  transition: color .2s;
}

.footer-links a:hover { color: var(--muted); }

@media (max-width: 900px) {
  .features-header { grid-template-columns: 1fr; }
  .features-tagline { text-align: left; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  nav { padding: .65rem 1.25rem; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .mockup-body { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 4.5rem 1.5rem 3.5rem; }
  .hero-title { font-size: 2.4rem; }
  .cta-inner { padding: 2.5rem 1.5rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary-lg, .btn-outline-lg { text-align: center; justify-content: center; }
}
