/* ============================================================
   TARAK NOTES — style.css
   Dark · Teal-mint accent · Space Grotesk / Inter
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
   --bg: #0d1117;
   --bg-2: #161b22;
   --bg-3: #1c2128;
   --accent: #21d4a0;
   --accent-dim: rgba(33, 212, 160, 0.12);
   --accent-border: rgba(33, 212, 160, 0.3);
   --text: #c9d1d9;
   --text-muted: #8b949e;
   --text-dim: #484f58;
   --border: #21262d;
   --radius-sm: 8px;
   --radius: 12px;
   --radius-lg: 20px;
   --font-display: "Space Grotesk", sans-serif;
   --font-body: "Inter", sans-serif;
   --font-mono: "JetBrains Mono", monospace;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}
html {
   scroll-behavior: smooth;
}
body {
   background: var(--bg);
   color: var(--text);
   font-family: var(--font-body);
   font-size: 16px;
   line-height: 1.7;
   overflow-x: hidden;
}
a {
   text-decoration: none;
   color: inherit;
}
strong {
   color: var(--text);
   font-weight: 600;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
   width: 6px;
}
::-webkit-scrollbar-track {
   background: var(--bg);
}
::-webkit-scrollbar-thumb {
   background: var(--border);
   border-radius: 3px;
}

/* ===================== NAVBAR ===================== */
.navbar {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   z-index: 200;
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 6%;
   height: 64px;
   background: rgba(13, 17, 23, 0.88);
   backdrop-filter: blur(14px);
   border-bottom: 1px solid var(--border);
   transition: box-shadow 0.3s;
}
.navbar.scrolled {
   box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-brand {
   display: flex;
   align-items: center;
   gap: 10px;
   font-family: var(--font-display);
   font-weight: 700;
   font-size: 1.1rem;
}
.brand-icon {
   width: 34px;
   height: 34px;
   background: var(--accent-dim);
   border: 1px solid var(--accent-border);
   border-radius: var(--radius-sm);
   display: flex;
   align-items: center;
   justify-content: center;
}
.brand-badge {
   font-family: var(--font-mono);
   font-size: 0.65rem;
   font-weight: 500;
   color: var(--accent);
   background: var(--accent-dim);
   border: 1px solid var(--accent-border);
   padding: 2px 8px;
   border-radius: 50px;
   letter-spacing: 0.05em;
}

.nav-links {
   display: flex;
   align-items: center;
   list-style: none;
   gap: 4px;
}
.nav-link {
   display: flex;
   align-items: center;
   gap: 6px;
   padding: 6px 14px;
   border-radius: var(--radius-sm);
   font-size: 0.88rem;
   font-weight: 500;
   color: var(--text-muted);
   transition:
      color 0.2s,
      background 0.2s;
}
.nav-link:hover {
   color: var(--text);
   background: var(--bg-3);
}
.nav-cta-sm {
   color: var(--accent) !important;
   border: 1px solid var(--accent-border);
   border-radius: var(--radius-sm);
}
.nav-cta-sm:hover {
   background: var(--accent-dim) !important;
}

.hamburger {
   display: none;
   flex-direction: column;
   gap: 5px;
   background: none;
   border: none;
   cursor: pointer;
   padding: 6px;
}
.hamburger span {
   display: block;
   width: 22px;
   height: 2px;
   background: var(--text);
   border-radius: 2px;
   transition:
      transform 0.3s,
      opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
   transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
   opacity: 0;
}
.hamburger.open span:nth-child(3) {
   transform: translateY(-7px) rotate(-45deg);
}

.drawer {
   display: none;
   position: fixed;
   top: 64px;
   left: 0;
   right: 0;
   z-index: 199;
   background: rgba(13, 17, 23, 0.97);
   backdrop-filter: blur(14px);
   border-bottom: 1px solid var(--border);
   flex-direction: column;
   padding: 12px 6%;
}
.drawer.open {
   display: flex;
}
.drawer-link {
   padding: 13px 12px;
   border-radius: var(--radius-sm);
   color: var(--text-muted);
   font-size: 0.95rem;
   transition:
      color 0.2s,
      background 0.2s;
}
.drawer-link:hover {
   color: var(--text);
   background: var(--bg-3);
}

/* ===================== BUTTONS ===================== */
.btn-primary {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 12px 28px;
   border-radius: var(--radius-sm);
   background: var(--accent);
   color: #0d1117;
   font-family: var(--font-display);
   font-weight: 700;
   font-size: 0.95rem;
   transition:
      transform 0.2s,
      box-shadow 0.2s,
      background 0.2s;
   box-shadow: 0 0 20px rgba(33, 212, 160, 0.25);
}
.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 0 36px rgba(33, 212, 160, 0.4);
   background: #2ef5bb;
}
.btn-primary.btn-large {
   padding: 16px 40px;
   font-size: 1.05rem;
   border-radius: 10px;
}

.btn-ghost {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 12px 24px;
   border-radius: var(--radius-sm);
   border: 1px solid var(--border);
   color: var(--text-muted);
   font-family: var(--font-display);
   font-weight: 500;
   font-size: 0.95rem;
   transition:
      border-color 0.2s,
      color 0.2s,
      background 0.2s;
}
.btn-ghost:hover {
   border-color: var(--text-muted);
   color: var(--text);
   background: var(--bg-3);
}
.btn-star svg {
   color: #ffd166;
   fill: #ffd166;
}

/* ===================== HERO ===================== */
.hero {
   min-height: 100vh;
   padding: 100px 6% 80px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 60px;
}

/* LEFT */
.hero-left {
   flex: 1;
   max-width: 520px;
}

.hero-eyebrow {
   display: flex;
   align-items: center;
   gap: 8px;
   font-family: var(--font-mono);
   font-size: 0.76rem;
   color: var(--text-muted);
   margin-bottom: 24px;
   letter-spacing: 0.03em;
}
.dot {
   width: 7px;
   height: 7px;
   border-radius: 50%;
   background: var(--accent);
   box-shadow: 0 0 8px var(--accent);
   animation: blink-dot 2s ease-in-out infinite;
}
@keyframes blink-dot {
   0%,
   100% {
      opacity: 1;
   }
   50% {
      opacity: 0.3;
   }
}

.hero-title {
   font-family: var(--font-display);
   font-size: clamp(2.6rem, 5.5vw, 4.2rem);
   font-weight: 700;
   line-height: 1.08;
   letter-spacing: -0.03em;
   margin-bottom: 22px;
   color: #e6edf3;
}
.title-highlight {
   color: var(--accent);
}

.hero-desc {
   font-size: 1.05rem;
   color: var(--text-muted);
   line-height: 1.75;
   margin-bottom: 36px;
   max-width: 440px;
}

.hero-actions {
   display: flex;
   align-items: center;
   gap: 14px;
   flex-wrap: wrap;
   margin-bottom: 28px;
}

.hero-meta {
   display: flex;
   align-items: center;
   gap: 10px;
   font-size: 0.8rem;
   color: var(--text-dim);
}
.meta-item {
   display: flex;
   align-items: center;
   gap: 5px;
}
.meta-dot {
   color: var(--border);
}

/* RIGHT — NOTEPAD MOCK */
.hero-right {
   flex: 1;
   max-width: 520px;
}

.notepad-mock {
   background: var(--bg-2);
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   overflow: hidden;
   box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.5),
      0 0 0 1px var(--border);
   font-family: var(--font-mono);
}

.mock-titlebar {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 12px 18px;
   background: var(--bg-3);
   border-bottom: 1px solid var(--border);
}
.mock-dots {
   display: flex;
   gap: 6px;
}
.mock-dot {
   width: 12px;
   height: 12px;
   border-radius: 50%;
}
.mock-dot.red {
   background: #ff5f57;
}
.mock-dot.yellow {
   background: #ffbd2e;
}
.mock-dot.green {
   background: #28ca41;
}
.mock-filename {
   flex: 1;
   text-align: center;
   font-size: 0.78rem;
   color: var(--text-muted);
}
.mock-saved {
   font-size: 0.72rem;
   color: var(--accent);
   letter-spacing: 0.02em;
}

.mock-toolbar {
   display: flex;
   align-items: center;
   gap: 6px;
   padding: 8px 18px;
   border-bottom: 1px solid var(--border);
}
.tool-btn {
   padding: 4px 10px;
   border-radius: 4px;
   font-size: 0.75rem;
   font-family: var(--font-body);
   font-weight: 500;
   color: var(--text-muted);
   background: var(--bg-3);
   border: 1px solid var(--border);
   cursor: default;
}
.ai-btn {
   color: var(--accent) !important;
   border-color: var(--accent-border) !important;
   background: var(--accent-dim) !important;
}

.mock-body {
   padding: 20px 22px;
   min-height: 180px;
}
.mock-line {
   font-size: 0.85rem;
   color: var(--text-muted);
   line-height: 2;
   white-space: pre;
}
.mock-line.heading {
   color: #79c0ff;
   font-weight: 500;
}
.mock-line.dim {
   color: var(--text-dim);
}
.typed-line {
   color: var(--text);
}

.cursor-blink {
   display: inline-block;
   color: var(--accent);
   animation: blink 0.9s step-end infinite;
}
@keyframes blink {
   0%,
   100% {
      opacity: 1;
   }
   50% {
      opacity: 0;
   }
}

.mock-ai-bubble {
   display: none;
   margin-top: 12px;
   padding: 10px 14px;
   border-radius: var(--radius-sm);
   background: var(--accent-dim);
   border: 1px solid var(--accent-border);
   font-size: 0.8rem;
   font-family: var(--font-body);
   color: var(--text);
}
.mock-ai-bubble.visible {
   display: flex;
   gap: 8px;
   align-items: center;
}
.ai-label {
   color: var(--accent);
   font-weight: 600;
}

.mock-footer {
   display: flex;
   justify-content: space-between;
   padding: 10px 18px;
   border-top: 1px solid var(--border);
   font-size: 0.72rem;
   color: var(--text-dim);
}

/* ===================== SECTIONS SHARED ===================== */
.features,
.about-section,
.stars-section,
.support-section,
.contact-section {
   padding: 96px 6%;
}

.section-eyebrow {
   font-family: var(--font-mono);
   font-size: 0.72rem;
   font-weight: 500;
   color: var(--accent);
   letter-spacing: 0.15em;
   text-transform: uppercase;
   margin-bottom: 12px;
}
.section-title {
   font-family: var(--font-display);
   font-size: clamp(1.7rem, 3.5vw, 2.6rem);
   font-weight: 700;
   letter-spacing: -0.02em;
   color: #e6edf3;
   margin-bottom: 16px;
   line-height: 1.2;
}
.section-desc {
   color: var(--text-muted);
   max-width: 600px;
   font-size: 1rem;
   line-height: 1.8;
   margin-bottom: 40px;
}
.features .section-title,
.stars-section .section-title,
.contact-section .section-title {
   text-align: center;
}
.features .section-eyebrow,
.stars-section .section-eyebrow,
.contact-section .section-eyebrow {
   text-align: center;
   display: block;
}
.stars-section .section-desc,
.contact-section .section-desc {
   margin: 0 auto 40px;
   text-align: center;
}

/* ===================== FEATURES ===================== */
.features-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   grid-template-rows: auto auto;
   gap: 16px;
   max-width: 1100px;
   margin: 48px auto 0;
}

.feat-card {
   background: var(--bg-2);
   border: 1px solid var(--border);
   border-radius: var(--radius);
   padding: 28px 26px;
   transition:
      border-color 0.25s,
      transform 0.25s;
}
.feat-card:hover {
   border-color: rgba(33, 212, 160, 0.3);
   transform: translateY(-3px);
}
.feat-large {
   grid-column: span 2;
}

.feat-icon {
   font-size: 1.8rem;
   margin-bottom: 14px;
}
.feat-card h3 {
   font-family: var(--font-display);
   font-size: 1.05rem;
   font-weight: 600;
   color: #e6edf3;
   margin-bottom: 8px;
}
.feat-card p {
   font-size: 0.88rem;
   color: var(--text-muted);
   line-height: 1.7;
}

/* Sync visual inside feat-large */
.feat-visual {
   margin-top: 20px;
}
.sync-visual {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 14px 18px;
   background: var(--bg-3);
   border-radius: var(--radius-sm);
   border: 1px solid var(--border);
}
.sync-node {
   font-size: 0.78rem;
   color: var(--text-muted);
   white-space: nowrap;
}
.sync-center {
   color: var(--text);
}
.sync-line {
   flex: 1;
   height: 2px;
   background: var(--border);
   border-radius: 2px;
   position: relative;
   overflow: hidden;
}
.sync-pulse {
   position: absolute;
   top: 0;
   left: -40%;
   width: 40%;
   height: 100%;
   background: var(--accent);
   border-radius: 2px;
   animation: slide-pulse 1.8s ease-in-out infinite;
}
@keyframes slide-pulse {
   0% {
      left: -40%;
   }
   100% {
      left: 140%;
   }
}

/* ===================== ABOUT ===================== */
.about-section {
   border-top: 1px solid var(--border);
}
.about-inner {
   display: flex;
   gap: 80px;
   align-items: flex-start;
   max-width: 1100px;
   margin: 0 auto;
}
.about-text {
   flex: 1.2;
}
.about-text p {
   color: var(--text-muted);
   margin-bottom: 16px;
   font-size: 0.97rem;
}
.about-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   margin-top: 24px;
}
.tag {
   font-family: var(--font-mono);
   font-size: 0.72rem;
   font-weight: 500;
   color: var(--text-muted);
   background: var(--bg-3);
   border: 1px solid var(--border);
   padding: 4px 12px;
   border-radius: 50px;
}

.about-stats {
   flex: 1;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 16px;
}
.stat-box {
   background: var(--bg-2);
   border: 1px solid var(--border);
   border-radius: var(--radius);
   padding: 24px 20px;
   display: flex;
   flex-direction: column;
   align-items: center;
   transition: border-color 0.2s;
}
.stat-box:hover {
   border-color: var(--accent-border);
}
.stat-val {
   font-family: var(--font-display);
   font-size: 2rem;
   font-weight: 700;
   color: var(--accent);
   line-height: 1.1;
}
.stat-lbl {
   font-size: 0.78rem;
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 0.08em;
   margin-top: 6px;
}

/* ===================== CTA STRIP ===================== */
.cta-strip {
   padding: 100px 6%;
   background: linear-gradient(135deg, #0d1f18 0%, #0d1117 50%, #0d1422 100%);
   border-top: 1px solid var(--border);
   border-bottom: 1px solid var(--border);
   text-align: center;
   position: relative;
   overflow: hidden;
}
.cta-strip::before {
   content: "";
   position: absolute;
   inset: 0;
   background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(33, 212, 160, 0.07) 0%, transparent 70%);
   pointer-events: none;
}
.cta-strip-inner {
   position: relative;
   z-index: 1;
}
.cta-strip-sub {
   font-family: var(--font-mono);
   font-size: 0.75rem;
   color: var(--accent);
   letter-spacing: 0.15em;
   text-transform: uppercase;
   margin-bottom: 16px;
}
.cta-strip-title {
   font-family: var(--font-display);
   font-size: clamp(2.4rem, 6vw, 4.5rem);
   font-weight: 700;
   letter-spacing: -0.03em;
   color: #e6edf3;
   margin-bottom: 36px;
   line-height: 1.05;
}
.cta-strip-note {
   margin-top: 20px;
   font-size: 0.82rem;
   color: var(--text-dim);
}

/* ===================== STARS ===================== */
.stars-section {
   text-align: center;
   border-top: 1px solid var(--border);
}

/* ===================== SUPPORT ===================== */
.support-section {
   border-top: 1px solid var(--border);
}
.support-inner {
   max-width: 900px;
   margin: 0 auto;
   text-align: center;
}
.support-options {
   display: flex;
   gap: 16px;
   justify-content: center;
   flex-wrap: wrap;
}
.support-card {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
   padding: 28px 32px;
   min-width: 220px;
   background: var(--bg-2);
   border: 1px solid var(--border);
   border-radius: var(--radius);
   transition:
      border-color 0.2s,
      transform 0.2s;
}
.support-card:hover {
   border-color: var(--accent-border);
   transform: translateY(-3px);
}
.s-icon {
   font-size: 2rem;
   margin-bottom: 4px;
}
.s-title {
   font-family: var(--font-display);
   font-weight: 600;
   font-size: 0.95rem;
   color: #e6edf3;
}
.s-desc {
   font-size: 0.8rem;
   color: var(--text-muted);
   text-align: center;
}

/* ===================== CONTACT ===================== */
.contact-section {
   border-top: 1px solid var(--border);
}
.contact-row {
   display: flex;
   gap: 16px;
   justify-content: center;
   flex-wrap: wrap;
}
.contact-item {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 4px;
   padding: 24px 32px;
   min-width: 180px;
   background: var(--bg-2);
   border: 1px solid var(--border);
   border-radius: var(--radius);
   transition:
      border-color 0.2s,
      transform 0.2s;
}
.contact-item:hover {
   border-color: var(--accent-border);
   transform: translateY(-3px);
}
.c-icon {
   font-size: 1.8rem;
   margin-bottom: 6px;
}
.c-lbl {
   font-size: 0.72rem;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: var(--text-dim);
}
.c-val {
   font-size: 0.88rem;
   font-weight: 500;
   color: var(--accent);
}

/* ===================== FOOTER ===================== */
.footer {
   border-top: 1px solid var(--border);
   padding: 56px 6% 36px;
}
.footer-top {
   display: flex;
   justify-content: space-between;
   gap: 48px;
   flex-wrap: wrap;
   margin-bottom: 48px;
}
.footer-brand {
   max-width: 240px;
}
.footer-logo {
   font-family: var(--font-display);
   font-size: 1.2rem;
   font-weight: 700;
   color: #e6edf3;
   display: block;
   margin-bottom: 10px;
}
.footer-brand p {
   font-size: 0.85rem;
   color: var(--text-muted);
   line-height: 1.7;
}

.footer-nav {
   display: flex;
   gap: 48px;
   flex-wrap: wrap;
}
.fnav-col {
   display: flex;
   flex-direction: column;
   gap: 10px;
}
.fnav-title {
   font-family: var(--font-display);
   font-size: 0.82rem;
   font-weight: 600;
   color: #e6edf3;
   text-transform: uppercase;
   letter-spacing: 0.08em;
}
.fnav-col a {
   font-size: 0.85rem;
   color: var(--text-muted);
   transition: color 0.2s;
}
.fnav-col a:hover {
   color: var(--accent);
}

.footer-bottom {
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 8px;
   padding-top: 28px;
   border-top: 1px solid var(--border);
   font-size: 0.78rem;
   color: var(--text-dim);
}

/* SCROLL REVEAL */
.reveal {
   opacity: 0;
   transform: translateY(20px);
   transition:
      opacity 0.55s ease,
      transform 0.55s ease;
}
.reveal.visible {
   opacity: 1;
   transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
   .hero {
      flex-direction: column;
      text-align: center;
      padding-top: 100px;
   }
   .hero-left {
      max-width: 100%;
   }
   .hero-right {
      max-width: 100%;
      width: 100%;
   }
   .hero-desc {
      margin: 0 auto 36px;
   }
   .hero-actions {
      justify-content: center;
   }
   .hero-meta {
      justify-content: center;
   }
   .features-grid {
      grid-template-columns: 1fr 1fr;
   }
   .feat-large {
      grid-column: span 2;
   }
   .about-inner {
      flex-direction: column;
      gap: 48px;
   }
   .nav-links {
      display: none;
   }
   .hamburger {
      display: flex;
   }
}

@media (max-width: 600px) {
   .features-grid {
      grid-template-columns: 1fr;
   }
   .feat-large {
      grid-column: span 1;
   }
   .about-stats {
      grid-template-columns: 1fr 1fr;
   }
   .footer-nav {
      gap: 28px;
   }
   .cta-strip-title {
      font-size: 2.2rem;
   }
   .support-options {
      flex-direction: column;
      align-items: center;
   }
   .support-card,
   .contact-item {
      width: 100%;
      max-width: 340px;
   }
}

@media (prefers-reduced-motion: reduce) {
   *,
   *::before,
   *::after {
      animation: none !important;
      transition: none !important;
   }
}
