/* ═══════════════════════════════════════════
   IAflash.co — Global Stylesheet
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --ink: #08090d;
  --paper: #f5f3ef;
  --paper2: #ede9e1;
  --white: #ffffff;
  --electric: #c8ff00;
  --electric-dim: rgba(200,255,0,0.12);
  --warm: #ff6b35;
  --cool: #0066ff;
  --text: #1a1a2e;
  --muted: #6b6b7a;
  --border: rgba(0,0,0,0.07);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Outfit', sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.2rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
}
nav::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(245,243,239,0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: -1;
}
.logo {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 900;
  color: var(--ink); text-decoration: none; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 0.2rem;
}
.logo-dot {
  width: 8px; height: 8px; background: var(--electric);
  border-radius: 50%; display: inline-block; margin-left: 2px;
  box-shadow: 0 0 12px var(--electric); animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-btn {
  background: var(--ink); color: var(--electric);
  padding: 0.55rem 1.4rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 600; text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase; transition: all 0.25s;
}
.nav-btn:hover { background: var(--electric); color: var(--ink); }

/* ── BUTTONS ── */
.btn-ink {
  background: var(--ink); color: var(--white);
  padding: 0.9rem 2.2rem; border-radius: 100px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: all 0.25s; display: inline-block;
}
.btn-ink:hover {
  background: var(--electric); color: var(--ink);
  transform: translateY(-2px); box-shadow: 0 12px 32px rgba(200,255,0,0.35);
}
.btn-ghost {
  color: var(--ink); padding: 0.9rem 2rem; border-radius: 100px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  border: 1.5px solid rgba(0,0,0,0.15); transition: all 0.2s; display: inline-block;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(0,0,0,0.04); }

/* ── TICKER ── */
.ticker-wrap {
  background: var(--ink); color: var(--electric);
  padding: 0.85rem 0; overflow: hidden; white-space: nowrap;
}
.ticker-inner { display: inline-flex; animation: ticker 30s linear infinite; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item { padding: 0 2.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.ticker-sep { color: rgba(200,255,0,0.3); }

/* ── SECTIONS ── */
.section { padding: 6rem 3rem; }
.section-inner { max-width: 1400px; margin: 0 auto; }
.section-number {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-number::after { content: ''; display: block; width: 36px; height: 1px; background: currentColor; }
.section-h2 {
  font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900; letter-spacing: -0.03em; color: var(--ink);
  line-height: 1.1; margin-bottom: 0.4rem;
}
.section-h2 em { font-style: italic; color: var(--warm); }
.section-header {
  margin-bottom: 3rem; display: flex;
  align-items: flex-end; justify-content: space-between;
}
.section-link {
  font-size: 0.82rem; font-weight: 600; color: var(--cool);
  text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.section-link:hover { border-color: var(--cool); }

/* ── ARTICLE CARDS ── */
.article-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: all 0.35s cubic-bezier(.23,1,.32,1);
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.11);
  border-color: transparent;
}
.card-img { overflow: hidden; position: relative; }
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.55s ease;
}
.article-card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block; font-size: 0.63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.22rem 0.7rem; border-radius: 100px; margin-bottom: 0.9rem;
  background: var(--electric-dim); color: #5a6000;
  border: 1px solid rgba(200,255,0,0.25);
}
.card-tag.warm { background: rgba(255,107,53,0.09); color: var(--warm); border-color: rgba(255,107,53,0.2); }
.card-tag.cool { background: rgba(0,102,255,0.07); color: var(--cool); border-color: rgba(0,102,255,0.15); }
.card-title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  line-height: 1.25; color: var(--ink); margin-bottom: 0.7rem; flex: 1;
}
.card-excerpt { font-size: 0.85rem; color: var(--muted); font-weight: 300; line-height: 1.65; margin-bottom: 1.2rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.card-meta { font-size: 0.72rem; color: var(--muted); }
.card-read { font-size: 0.78rem; font-weight: 600; color: var(--ink); }

/* ── TOOL CARDS ── */
.tool-card {
  background: var(--white); border-radius: 18px; padding: 1.8rem;
  text-decoration: none; color: inherit; border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(.23,1,.32,1);
  display: flex; flex-direction: column; gap: 1rem;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.09);
  border-color: rgba(200,255,0,0.5);
}
.tool-top { display: flex; align-items: center; gap: 1rem; }
.tool-logo {
  width: 50px; height: 50px; border-radius: 13px;
  overflow: hidden; flex-shrink: 0; border: 1px solid var(--border);
  background: #f0f0ea; display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem;
}
.tool-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.tool-category { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tool-desc { font-size: 0.84rem; color: var(--muted); font-weight: 300; line-height: 1.65; }
.tool-verdict { font-size: 0.75rem; font-weight: 600; color: var(--cool); }
.tool-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.tool-badge { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.22rem 0.65rem; border-radius: 100px; }
.badge-free { background: rgba(0,200,83,0.1); color: #00a844; }
.badge-paid { background: rgba(255,107,53,0.1); color: var(--warm); }
.badge-freemium { background: var(--electric-dim); color: #6a7300; }
.tool-score { font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.star { color: #f59e0b; }

/* ── CATEGORIES ── */
.categories-section { background: var(--ink); }
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.05);
  border-radius: var(--radius); overflow: hidden;
}
.cat-item {
  background: rgba(255,255,255,0.02); padding: 2.2rem;
  text-decoration: none; color: inherit;
  transition: background 0.3s; display: flex; flex-direction: column; gap: 0.8rem;
}
.cat-item:hover { background: rgba(200,255,0,0.06); }
.cat-n { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.2); }
.cat-visual { width: 48px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(255,255,255,0.07); }
.cat-visual img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) brightness(0.8); }
.cat-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.cat-count { font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.cat-arrow { font-size: 0.75rem; font-weight: 600; color: var(--electric); margin-top: auto; }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--ink); padding: 7rem 3rem;
  text-align: center; position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(200,255,0,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.nl-inner { max-width: 580px; margin: 0 auto; position: relative; }
.nl-badge {
  display: inline-block; margin-bottom: 1.5rem;
  background: rgba(200,255,0,0.1); border: 1px solid rgba(200,255,0,0.2);
  color: var(--electric); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.32rem 1rem; border-radius: 100px;
}
.nl-title {
  font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; color: var(--white); letter-spacing: -0.03em;
  line-height: 1.08; margin-bottom: 1.2rem;
}
.nl-title em { font-style: italic; color: var(--electric); }
.nl-sub { color: rgba(255,255,255,0.4); font-size: 1rem; font-weight: 300; margin-bottom: 2.5rem; }
.nl-form { display: flex; gap: 0.75rem; max-width: 460px; margin: 0 auto; }
.nl-input {
  flex: 1; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 100px;
  padding: 0.9rem 1.5rem; color: var(--white); font-family: var(--sans);
  font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.nl-input:focus { border-color: rgba(200,255,0,0.4); }
.nl-input::placeholder { color: rgba(255,255,255,0.22); }
.nl-btn {
  background: var(--electric); color: var(--ink); border: none;
  border-radius: 100px; padding: 0.9rem 1.8rem; font-family: var(--sans);
  font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.nl-btn:hover { background: var(--white); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 5rem 3rem 2.5rem; border-top: 1px solid rgba(255,255,255,0.04); }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 4rem;
  padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 2rem;
}
.f-logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 900; color: var(--white); text-decoration: none; display: flex; align-items: center; margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.32); font-weight: 300; line-height: 1.8; max-width: 270px; margin-bottom: 1.8rem; }
.socials { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.social-pill {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45); font-size: 0.73rem; font-weight: 600;
  padding: 0.45rem 1rem; border-radius: 100px; text-decoration: none;
  transition: all 0.2s; letter-spacing: 0.04em;
}
.social-pill:hover { background: var(--electric); color: var(--ink); border-color: var(--electric); }
.footer-col h4 { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.22); margin-bottom: 1.4rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a { color: rgba(255,255,255,0.42); text-decoration: none; font-size: 0.875rem; font-weight: 300; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.18); }
.footer-bottom a { color: var(--electric); text-decoration: none; }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 6rem 3rem 0; max-width: 1400px; margin: 0 auto; }
.breadcrumb-inner { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--muted); }
.breadcrumb-inner a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--ink); }
.breadcrumb-sep { color: rgba(0,0,0,0.2); }

/* ── PAGE HEADER ── */
.page-header { padding: 3rem 3rem 4rem; max-width: 1400px; margin: 0 auto; }
.page-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.page-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--muted); display: block; }
.page-title-h1 { font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; letter-spacing: -0.03em; color: var(--ink); line-height: 1.05; margin-bottom: 1rem; }
.page-title-h1 em { font-style: italic; color: var(--warm); }
.page-desc { font-size: 1.05rem; color: var(--muted); font-weight: 300; max-width: 600px; line-height: 1.75; }

/* ── ARTICLE GRID ── */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.articles-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 4rem; }
.page-btn { width: 42px; height: 42px; border-radius: 100px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--border); transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--ink); color: var(--electric); border-color: var(--ink); }

/* ── SKELETON LOADING ── */
.skeleton { background: linear-gradient(90deg, #e8e5df 25%, #f0ede7 50%, #e8e5df 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.skeleton-img { height: 200px; border-radius: 0; }
.skeleton-line { height: 14px; margin: 1rem 1.5rem 0.5rem; border-radius: 4px; }
.skeleton-line-short { height: 14px; width: 55%; margin: 0 1.5rem 1.5rem; border-radius: 4px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fadeUp 0.6s both; }
.fade-up-1 { animation: fadeUp 0.6s 0.1s both; }
.fade-up-2 { animation: fadeUp 0.6s 0.2s both; }
.fade-up-3 { animation: fadeUp 0.6s 0.3s both; }

/* ── RESPONSIVE ── */
@media(max-width:1100px) {
  nav { padding: 1rem 2rem; }
  .section { padding: 5rem 2rem; }
  .cat-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .breadcrumb, .page-header { padding-left: 2rem; padding-right: 2rem; }
}
@media(max-width:768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .section { padding: 4rem 1.5rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .nl-form { flex-direction: column; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid-2 { grid-template-columns: 1fr; }
  .breadcrumb, .page-header { padding-left: 1.5rem; padding-right: 1.5rem; }
}
