/* ============================================
   BLOCKIFY — AbdullahHamid.ca
   Design System — Matching Blockify Extension
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,400&display=swap');

:root {
  --bg:             #eeece9;
  --bg-warm:        #e8e5e1;
  --surface:        #fafaf9;
  --surface2:       #f4f3f1;
  --surface3:       #f0efed;
  --border:         #e2e0dc;
  --border-light:   #d4d1cc;
  --accent:         #e8321a;
  --accent-soft:    #f04428;
  --accent-dim:     rgba(232,50,26,0.08);
  --accent-border:  rgba(232,50,26,0.20);
  --accent-glow:    rgba(232,50,26,0.12);
  --text:           #1a1614;
  --text-sub:       #7a7470;
  --muted:          #b0ada8;
  --success:        #2d8a4e;
  --success-dim:    rgba(45,138,78,0.08);
  --shadow:         rgba(0,0,0,0.06);
  --shadow-md:      0 4px 40px rgba(0,0,0,0.07);
  --shadow-lg:      0 8px 50px rgba(0,0,0,0.09);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill: 100px;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--accent-soft); }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }

/* Noise Texture (from extension) */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Warm radial glow (subtle) */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 25% 0%, rgba(232,50,26,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(232,50,26,0.02) 0%, transparent 50%);
}

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
  background: transparent;
}
.topbar.scrolled {
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
}
.topbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.3px;
}
.topbar__logo:hover { color: var(--text); }
.topbar__logo-icon {
  width: 32px; height: 32px;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent-border);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.topbar__logo-icon img {
  width: 18px; height: 18px;
  object-fit: contain;
}
.topbar__nav { display: flex; gap: 4px; align-items: center; }
.topbar__link {
  padding: 7px 13px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.topbar__link:hover { color: var(--text); background: rgba(0,0,0,0.04); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.22s ease;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.btn--primary {
  padding: 12px 24px;
  font-size: 0.88rem;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(232,50,26,0.22);
}
.btn--primary:hover {
  background: var(--accent-soft);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(232,50,26,0.30);
}
.btn--primary:active { transform: translateY(0); }
.btn--secondary {
  padding: 12px 24px;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  border-color: var(--border-light);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  color: var(--text);
}
.btn--ghost {
  padding: 10px 18px;
  font-size: 0.82rem;
  background: transparent;
  color: var(--text-sub);
}
.btn--ghost:hover { color: var(--accent); }
.btn--small { padding: 9px 16px; font-size: 0.78rem; border-radius: 8px; }
.btn--large { padding: 15px 32px; font-size: 0.92rem; }

.chrome-icon {
  width: 18px; height: 18px;
  background: conic-gradient(from 135deg, #ea4335 0deg 90deg, #fbbc05 90deg 180deg, #34a853 180deg 270deg, #4285f4 270deg 360deg);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.chrome-icon::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}

/* ── Typography ── */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text);
}
.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--text);
}
.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--text);
}
.text-body { font-size: 1rem; color: var(--text-sub); line-height: 1.7; }
.text-small { font-size: 0.82rem; color: var(--muted); }
.text-accent { color: var(--accent); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
}
.badge__dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ── Video ── */
.video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--surface2);
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--font-display);
  font-weight: 500;
}
.video-placeholder__play {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.video-placeholder__play:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  transform: scale(1.05);
}
.video-placeholder__play svg {
  width: 22px; height: 22px;
  fill: var(--accent);
  margin-left: 3px;
}

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.08);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent-border);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 7px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.card__text {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
  border: none;
}

/* ── Footer ── */
.footer {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
}
.footer__links { display: flex; gap: 18px; }
.footer__link {
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s;
}
.footer__link:hover { color: var(--accent); }

/* ── Page Hero (sub-pages) ── */
.page-hero {
  padding: 140px 0 56px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero__icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent-border);
}
.page-hero__subtitle {
  max-width: 480px;
  margin: 12px auto 0;
}

/* ── Content Section (sub-pages) ── */
.content-section {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 28px 56px;
}
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.content-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.content-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 14px;
}
.content-card p:last-child { margin-bottom: 0; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  color: var(--text);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: all 0.2s ease;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-dim), inset 0 1px 2px rgba(0,0,0,0.04);
}
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; font-family: var(--font-body); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.fade-in--d1 { animation-delay: 0.1s; }
.fade-in--d2 { animation-delay: 0.2s; }
.fade-in--d3 { animation-delay: 0.35s; }
.fade-in--d4 { animation-delay: 0.5s; }
.fade-in--d5 { animation-delay: 0.6s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 52px 0; }
  .topbar__nav { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-card { padding: 28px 22px; }
  .page-hero { padding: 120px 0 44px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .heading-xl { font-size: 1.9rem; }
  .btn--large { padding: 13px 24px; font-size: 0.88rem; }
}
