/* =============================================
   SHARINGAN AI — Global Stylesheet
   ============================================= */

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

:root {
  --brand:       #CC0000;
  --brand-dark:  #990000;
  --brand-light: #FFF0F0;
  --accent:      #FF4444;
  --text:        #0F0F1A;
  --muted:       #5A5870;
  --border:      #E8E6F0;
  --bg:          #FAFAFA;
  --white:       #FFFFFF;
  --radius:      12px;
  --shadow:      0 2px 16px rgba(204,0,0,.08);
  --shadow-lg:   0 8px 40px rgba(204,0,0,.13);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1120px;
  --post-w:      760px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { margin-bottom: 1.2rem; color: var(--muted); }

/* ---------- Layout ---------- */
.container      { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.post-container { max-width: var(--post-w); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.site-nav .container {
  display: flex; align-items: center;
  justify-content: space-between; height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.2rem;
  color: var(--text); letter-spacing: -.4px;
}
.nav-eye {
  width: 36px; height: 36px;
  background: var(--brand);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.nav-eye::before {
  content: '';
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
}
.nav-eye::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--brand-dark);
  border-radius: 50%;
  position: absolute;
  z-index: 1;
}
.nav-brand-text em { color: var(--brand); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }

/* ---------- HOME: Hero ---------- */
.home-hero {
  background: linear-gradient(135deg, #0F0F1A 0%, #1a0505 60%, #2d0000 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(204,0,0,.18) 0%, transparent 70%);
}
.home-hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(204,0,0,.2); border: 1px solid rgba(204,0,0,.4);
  border-radius: 999px; padding: .3rem 1rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: #ff8080; margin-bottom: 1.5rem;
}
.home-hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.home-hero h1 span { color: var(--accent); }
.home-hero .lead { color: rgba(255,255,255,.72); font-size: 1.1rem; line-height: 1.75; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--brand); color: #fff;
  padding: .85rem 1.75rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 20px rgba(204,0,0,.4);
  transition: background .2s, transform .15s;
}
.btn-hero-primary:hover { background: var(--brand-dark); transform: translateY(-2px); color: #fff; }
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.85);
  padding: .85rem 1.75rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid rgba(255,255,255,.15);
  transition: background .2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.15); color: #fff; }

/* Eye illustration */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.eye-ring {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, #3d0000 0%, #1a0000 50%, transparent 70%);
  border: 2px solid rgba(204,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 60px rgba(204,0,0,.25), inset 0 0 40px rgba(204,0,0,.1);
  animation: pulse-eye 4s ease-in-out infinite;
}
@keyframes pulse-eye {
  0%, 100% { box-shadow: 0 0 60px rgba(204,0,0,.25), inset 0 0 40px rgba(204,0,0,.1); }
  50%       { box-shadow: 0 0 100px rgba(204,0,0,.4), inset 0 0 60px rgba(204,0,0,.2); }
}
.eye-inner {
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, #cc0000 0%, #800000 60%, #3d0000 100%);
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255,100,100,.3);
}
.eye-pupil {
  width: 60px; height: 60px; border-radius: 50%;
  background: #050505;
  border: 2px solid rgba(255,255,255,.15);
  box-shadow: 0 0 20px rgba(0,0,0,.8);
}

/* ---------- HOME: Stats bar ---------- */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.stats-bar .container {
  display: flex; align-items: center; justify-content: space-around;
  flex-wrap: wrap; gap: 1.5rem;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.6rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 500; margin: .25rem 0 0; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- HOME: Focus Areas ---------- */
.focus-section { padding: 5rem 0; }
.section-label {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--brand-light); color: var(--brand);
  font-size: .75rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.section-heading { margin-bottom: .6rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 3rem; }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.focus-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.focus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.focus-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--brand-light); display: grid; place-items: center;
  margin-bottom: 1.25rem; font-size: 1.4rem;
}
.focus-card h3 { margin-bottom: .6rem; font-size: 1.1rem; }
.focus-card p  { font-size: .9rem; margin: 0; }

/* ---------- HOME: Why section ---------- */
.why-section {
  background: linear-gradient(135deg, #0F0F1A, #1a0505);
  padding: 5rem 0; color: var(--white);
}
.why-section .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-content .section-label { background: rgba(204,0,0,.2); color: #ff8080; }
.why-content h2 { color: var(--white); margin-bottom: 1rem; }
.why-content p { color: rgba(255,255,255,.68); }
.why-list { list-style: none; display: flex; flex-direction: column; gap: .85rem; margin-top: 1.5rem; }
.why-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  color: rgba(255,255,255,.75); font-size: .95rem;
}
.why-list li::before {
  content: '▸'; color: var(--accent);
  font-size: .85rem; margin-top: .18rem; flex-shrink: 0;
}
.why-visual { display: flex; flex-direction: column; gap: 1rem; }
.why-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.why-card-icon { font-size: 1.5rem; flex-shrink: 0; }
.why-card-text strong { color: #fff; display: block; font-size: .95rem; margin-bottom: .15rem; }
.why-card-text span  { color: rgba(255,255,255,.5); font-size: .82rem; }

/* ---------- HOME: Latest posts preview ---------- */
.latest-section { padding: 5rem 0; }
.section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.5rem; gap: 1rem; flex-wrap: wrap;
}
.view-all {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--brand); font-weight: 600; font-size: .9rem;
  transition: gap .2s;
}
.view-all:hover { gap: .6rem; }

/* ---------- BLOG: Page Header ---------- */
.blog-hero {
  background: linear-gradient(135deg, #0F0F1A 0%, #2d0000 100%);
  padding: 4rem 0 3.5rem; color: var(--white);
}
.blog-hero .container { display: flex; flex-direction: column; }
.blog-hero h1 { color: var(--white); margin-bottom: .75rem; }
.blog-hero p  { color: rgba(255,255,255,.65); font-size: 1.05rem; max-width: 520px; margin: 0; }

/* ---------- BLOG: Filter bar ---------- */
.filter-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: .85rem 0; position: sticky; top: 68px; z-index: 90; }
.filter-bar .container { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filter-btn {
  background: none; border: 1.5px solid var(--border);
  border-radius: 999px; padding: .35rem .9rem;
  font-family: var(--font); font-size: .82rem; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

/* ---------- Post Grid (shared) ---------- */
.posts-section { padding: 3.5rem 0 5rem; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.75rem; }
.post-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.post-card-tag {
  display: inline-block;
  background: var(--brand-light); color: var(--brand);
  font-size: .7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: .2rem .65rem; border-radius: 999px; margin-bottom: .9rem;
  align-self: flex-start;
}
.post-card h3 { margin-bottom: .6rem; line-height: 1.3; }
.post-card h3 a { color: var(--text); transition: color .2s; }
.post-card h3 a:hover { color: var(--brand); }
.post-card .summary { font-size: .9rem; margin-bottom: 1.25rem; flex: 1; line-height: 1.65; }
.post-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 1rem; margin-top: auto;
}
.post-card-meta .date { display: flex; align-items: center; gap: .3rem; }
.read-more {
  color: var(--brand); font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; gap: .25rem; transition: gap .2s;
}
.read-more:hover { gap: .5rem; }

/* ---------- Individual Post ---------- */
.post-hero {
  background: linear-gradient(135deg, #0F0F1A 0%, #2d0000 100%);
  padding: 4.5rem 0 3.5rem; color: var(--white);
}
.post-hero-tag {
  display: inline-block;
  background: rgba(204,0,0,.25); border: 1px solid rgba(204,0,0,.4);
  color: #ff8080; font-size: .72rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  padding: .2rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.post-hero h1 { color: var(--white); margin-bottom: 1rem; }
.post-hero-meta {
  display: flex; align-items: center; gap: 1.5rem;
  font-size: .85rem; color: rgba(255,255,255,.6); flex-wrap: wrap;
}
.post-hero-meta span { display: flex; align-items: center; gap: .35rem; }

.post-body { padding: 3.5rem 0 5rem; }
.post-back {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--muted); font-size: .88rem; margin-bottom: 2rem;
  transition: color .2s;
}
.post-back:hover { color: var(--brand); }
.post-content {
  background: var(--white); border-radius: var(--radius);
  padding: 2.5rem; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.post-content h2 { margin: 2rem 0 .75rem; font-size: 1.4rem; }
.post-content h3 { margin: 1.5rem 0 .5rem; font-size: 1.15rem; }
.post-content p  { color: #4A4565; line-height: 1.85; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { color: #4A4565; margin-bottom: .45rem; line-height: 1.7; }
.post-content blockquote {
  border-left: 4px solid var(--brand);
  background: var(--brand-light);
  padding: 1rem 1.5rem; border-radius: 0 8px 8px 0; margin: 1.75rem 0;
}
.post-content blockquote p { color: var(--brand-dark); margin: 0; font-style: italic; }
.post-content strong { color: var(--text); }
.post-content code {
  font-family: monospace; background: #f5f4f8;
  padding: .15rem .4rem; border-radius: 4px; font-size: .88em; color: var(--brand-dark);
}

/* ---------- New Post Form ---------- */
.form-hero {
  background: linear-gradient(135deg, #0F0F1A, #2d0000);
  padding: 4rem 0 3rem; color: var(--white); text-align: center;
}
.form-hero h1 { color: var(--white); margin-bottom: .6rem; }
.form-hero p  { color: rgba(255,255,255,.65); margin: 0; }
.form-section { padding: 3rem 0 5rem; }
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem;
  box-shadow: var(--shadow); max-width: 800px; margin: 0 auto;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .45rem; color: var(--text); }
.form-group label span { color: var(--brand); }
.form-control {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: .95rem; color: var(--text);
  background: var(--bg); transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(204,0,0,.12); background: var(--white); }
.form-control::placeholder { color: #b0adc0; }
textarea.form-control { resize: vertical; min-height: 300px; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 2rem; border-radius: 10px; font-family: var(--font); font-size: .95rem; font-weight: 700; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 16px rgba(204,0,0,.3); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); color: #fff; }
.btn-secondary { background: var(--brand-light); color: var(--brand); }
.btn-secondary:hover { background: #ffd9d9; }
.form-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .4rem !important; margin-bottom: 0 !important; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: #16a34a; color: #fff;
  padding: 1rem 1.5rem; border-radius: 10px; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  display: flex; align-items: center; gap: .6rem; z-index: 999;
  transform: translateY(100px); opacity: 0;
  transition: transform .35s, opacity .35s; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #0F0F1A; color: rgba(255,255,255,.5); padding: 3rem 0; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { color: var(--white); font-weight: 800; font-size: 1.05rem; }
.footer-brand em { color: var(--accent); font-style: normal; }
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.35); margin-top: .25rem; }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { color: rgba(255,255,255,.45); font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .home-hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .why-section .container { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .focus-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .post-content { padding: 1.5rem; }
  .form-card { padding: 1.5rem; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
  .stats-bar .container { justify-content: center; gap: 2rem; }
}
