/* ===========================
   Annoty – CSS
   Dark, Apple-inspired design
   =========================== */

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

:root {
  --bg:        #1c1c1e;
  --bg-2:      #2c2c2e;
  --bg-3:      #3a3a3c;
  --text:      #f2f2f7;
  --text-2:    #aeaeb2;
  --accent:    #0a84ff;
  --accent-h:  #409cff;
  --red:       #ff453a;
  --green:     #30d158;
  --yellow:    #ffd60a;
  --orange:    #ff9f0a;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 4px 24px rgba(0,0,0,0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--accent-h); text-decoration: underline; }

/* ==================
   NAV
   ================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(28,28,30,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.nav-logo .icon {
  font-size: 1.3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-h); color: white; text-decoration: none; }

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
}
.btn-secondary:hover { background: #48484a; color: var(--text); text-decoration: none; }

/* ==================
   SECTIONS / LAYOUT
   ================== */
section {
  padding: 5rem 2rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 560px;
}

/* ==================
   HERO
   ================== */
#hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
  text-align: center;
}

#hero .badge {
  display: inline-block;
  background: rgba(10,132,255,0.15);
  border: 1px solid rgba(10,132,255,0.3);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 980px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

#hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #f2f2f7 0%, #aeaeb2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero .tagline {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-actions .btn {
  padding: 0.65rem 1.6rem;
  font-size: 1rem;
}

.hero-image {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07), var(--shadow);
  overflow: hidden;
  display: block;
}

.hero-image img,
.hero-image svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================
   FEATURES
   ================== */
#features {
  background: linear-gradient(180deg, var(--bg) 0%, #111113 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(10,132,255,0.3);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ==================
   HOW IT WORKS
   ================== */
#how-it-works {
  background: #111113;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  counter-reset: step-counter;
}

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.07);
  counter-increment: step-counter;
}

.step::before {
  content: counter(step-counter);
  position: absolute;
  top: -14px;
  left: 1.5rem;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ==================
   COLORS SHOWCASE
   ================== */
.color-dots {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ==================
   SHORTCUTS TABLE
   ================== */
#shortcuts {
  background: var(--bg);
}

.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

.shortcuts-table th {
  text-align: left;
  padding: 0.6rem 1rem;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--bg-3);
}

.shortcuts-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.shortcuts-table tr:last-child td {
  border-bottom: none;
}

.shortcuts-table tr:hover td {
  background: var(--bg-2);
}

.shortcuts-table tbody tr:first-child td {
  padding-top: 1rem;
}

kbd {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  font-family: -apple-system, BlinkMacSystemFont, monospace;
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.shortcuts-section-divider td {
  padding-top: 1.5rem;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==================
   INSTALL
   ================== */
#install {
  background: #111113;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.install-card {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.install-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.install-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.install-card .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1.2rem;
}

pre {
  background: #0d0d0f;
  border: 1px solid var(--bg-3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.825rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

code {
  font-family: "SF Mono", SFMono-Regular, "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;
  color: #e5e5ea;
}

pre code {
  color: #e5e5ea;
}

.code-comment { color: #636366; }
.code-cmd     { color: #30d158; }

.req-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,159,10,0.12);
  border: 1px solid rgba(255,159,10,0.25);
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 980px;
  margin-bottom: 2rem;
}

/* ==================
   FOOTER
   ================== */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2rem;
  text-align: center;
  color: var(--text-2);
  font-size: 0.85rem;
}

footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }

/* ==================
   RESPONSIVE
   ================== */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  section { padding: 3.5rem 1.2rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .nav-links li:not(:last-child) { display: none; }
}
