/* ═══════════════════════════════════════════════════════════════
   NoruCore – main.css  v3
   Home page. nc card tokens shared with blog.css.
═══════════════════════════════════════════════════════════════ */

:root {
  --nc-bg:       #FFFFFF;
  --nc-bg-warm:  #F7F4EF;
  --nc-bg-dark:  #181818;
  --nc-border:   rgba(0,0,0,0.08);
  --nc-red:      #C8352A;
  --nc-mid:      #999;
  --nc-text:     #0D0D0D;
  --nc-text-sec: #6B6B6B;
  --nc-r:        8px;
  --nc-gap:      10px;
}

/* ── NC CARD BASE (mirrors blog.css, needed on home) ─────────── */
.nc {
  display: flex; flex-direction: column;
  border-radius: var(--nc-r); overflow: hidden;
  background: var(--nc-bg); border: 1px solid var(--nc-border);
  text-decoration: none; cursor: pointer;
  transition: box-shadow .22s, border-color .22s, transform .22s;
}
.nc:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); border-color: rgba(0,0,0,.12); transform: translateY(-2px); }

.nc-eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: var(--nc-mid); margin-bottom: 8px; }
.nc-eyebrow-red { color: var(--nc-red); }
.nc-title { font-family: var(--ff-serif); font-weight: 400; color: var(--nc-text); line-height: 1.18; letter-spacing: -.01em; margin: 0; }
.nc-title-lg { font-size: clamp(19px, 1.8vw, 26px); }
.nc-title-md { font-size: clamp(15px, 1.4vw, 19px); }
.nc-title-sm { font-size: 14px; }
.nc-excerpt  { font-size: 13px; color: var(--nc-text-sec); line-height: 1.65; margin-top: 8px; }

.nc-meta   { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--nc-border); }
.nc-date   { font-size: 11px; color: var(--nc-mid); }
.nc-dot    { width: 3px; height: 3px; border-radius: 50%; background: rgba(0,0,0,.14); flex-shrink: 0; }
.nc-author { font-size: 11px; color: var(--nc-mid); }
.nc-arrow  { margin-left: auto; width: 24px; height: 24px; border: 1px solid var(--nc-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; color: var(--nc-text-sec); }
.nc:hover .nc-arrow { border-color: rgba(0,0,0,.22); color: var(--nc-text); }

.nc-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.nc-accent-line { width: 22px; height: 2px; background: var(--nc-red); margin-bottom: 12px; }
.nc-num { font-family: var(--ff-serif); font-size: 56px; font-weight: 400; color: rgba(0,0,0,.06); line-height: 1; margin-bottom: 0; letter-spacing: -.04em; user-select: none; }

/* featured */
.nc-featured { background: var(--nc-bg-warm); flex-direction: row; }
.nc-featured .nc-row-img { flex-shrink: 0; overflow: hidden; border-radius: var(--nc-r) 0 0 var(--nc-r); }
.nc-featured .nc-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.nc-featured:hover .nc-row-img img { transform: scale(1.04); }
.nc-featured .nc-row-body { flex: 1; padding: 24px 20px; display: flex; flex-direction: column; justify-content: space-between; }

/* img-full dark */
.nc-img-full { background: var(--nc-bg-dark); }
.nc-img-full .nc-img-wrap { width: 100%; overflow: hidden; flex-shrink: 0; border-radius: var(--nc-r) var(--nc-r) 0 0; }
.nc-img-full .nc-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.72); transition: transform .5s, filter .4s; }
.nc-img-full:hover .nc-img-wrap img { transform: scale(1.04); filter: brightness(.84); }
.nc-img-full .nc-body { background: var(--nc-bg-dark); flex: 1; }
.nc-img-full .nc-eyebrow { color: rgba(255,255,255,.38); }
.nc-img-full .nc-title   { color: #F2EDE6; }
.nc-img-full .nc-meta    { border-top-color: rgba(255,255,255,.07); }
.nc-img-full .nc-date, .nc-img-full .nc-author { color: rgba(255,255,255,.32); }
.nc-img-full .nc-dot     { background: rgba(255,255,255,.16); }
.nc-img-full .nc-arrow   { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.4); }
.nc-img-full:hover .nc-arrow { border-color: rgba(255,255,255,.38); color: #fff; }

/* img-top */
.nc-img-top { background: var(--nc-bg); }
.nc-img-top .nc-img-wrap { width: 100%; overflow: hidden; flex-shrink: 0; border-radius: var(--nc-r) var(--nc-r) 0 0; }
.nc-img-top .nc-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.88); transition: transform .5s; }
.nc-img-top:hover .nc-img-wrap img { transform: scale(1.04); }

/* text */
.nc-text { background: var(--nc-bg-warm); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 24px var(--page-pad) 100px; background: #0d0d0d; color: var(--clr-white); }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: .4; filter: saturate(.8); }
.hero-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.20) 0%, rgba(0,0,0,.60) 50%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.hero .nav-logo        { color: #fff !important; opacity: 1 !important; }
.hero .nav-link        { color: #fff !important; }
.hero .nav-link::after { background: #fff !important; }
.hero .nav-burger span { background: #fff !important; }
.hero .btn-download    { background: transparent !important; border: 1px solid rgba(255,255,255,.5) !important; color: #fff !important; }
.hero .btn-download:hover { background: #fff !important; color: #000 !important; border-color: #fff !important; }
#header-placeholder { position: relative; z-index: 10; }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-top: 100px; }
.hero-content::before { content: 'Open Beta — Free Download'; display: block; font-family: var(--ff-sans); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: -8px; }
.hero-title { font-family: var(--ff-serif); font-size: clamp(52px,9vw,112px); font-weight: 400; color: var(--clr-white); line-height: 1; letter-spacing: -.03em; }
.hero-subtitle { font-size: clamp(15px,1.4vw,18px); color: rgba(255,255,255,.65); line-height: 1.7; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.btn-hero-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--clr-white); color: #000; border: 1px solid var(--clr-white); border-radius: var(--nc-r); font-family: var(--ff-sans); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: background var(--ease), color var(--ease); }
.btn-hero-primary:hover { background: transparent; color: var(--clr-white); }
.btn-hero-outline { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: transparent; color: var(--clr-white); border: 1px solid rgba(255,255,255,.30); border-radius: var(--nc-r); font-family: var(--ff-sans); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: border-color var(--ease), background var(--ease); }
.btn-hero-outline:hover { border-color: rgba(255,255,255,.80); background: rgba(255,255,255,.06); }
.hero-screenshot { position: relative; z-index: 1; width: 100%; max-width: 820px; margin: 64px auto 0; border-radius: var(--nc-r); overflow: hidden; box-shadow: 0 60px 120px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.08); }
.mockup-img { width: 100%; height: auto; display: block; }

/* ── SLIDER ─────────────────────────────────────────────────── */
.slider-section { padding: var(--section-gap) 0; overflow: hidden; }
:root {
  --carousel-left: calc((100vw - 1440px) / 2 + var(--page-pad));
}
.slider-outer { margin-left: var(--carousel-left); padding-bottom: 60px; margin-bottom: -60px; }
@media (max-width: 1440px) { :root { --carousel-left: var(--page-pad); } }
@media (max-width: 900px)  { :root { --carousel-left: 20px; } }
.slider-track { display: flex; gap: 28px; transition: transform .5s cubic-bezier(.22,.68,0,1.1); }
.slider-item { flex-shrink: 0; width: 720px; aspect-ratio: 16/9; border-radius: var(--nc-r); overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.08); }
.slider-item img { width: 100%; height: 100%; object-fit: cover; }
.slider-footer { display: flex; justify-content: space-between; align-items: flex-end; padding: 56px 0 0; gap: 40px; }
.slider-info { max-width: 620px; display: flex; flex-direction: column; gap: 14px; text-align: left; min-height: 200px; }
.slider-arrows { display: flex; gap: 12px; margin-left: auto; flex-shrink: 0; align-self: flex-end; }
.slider-info .section-title { color: var(--clr-black); font-size: clamp(28px,4vw,52px); letter-spacing: -.03em; line-height: 1.05; }
.slider-info .section-body  { color: var(--clr-text-sec); font-size: 17px; line-height: 1.65; }
.arrow-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--clr-border); background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: 18px; color: transparent; font-size: 0; text-indent: -9999px; transition: background-color var(--ease), border-color var(--ease); cursor: pointer; }
#sliderPrev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E"); }
#sliderNext { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E"); }
.arrow-btn:hover { background-color: var(--clr-black); border-color: var(--clr-black); }
#sliderPrev:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E"); }
#sliderNext:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E"); }

/* ── FEATURE IMAGE ──────────────────────────────────────────── */
.feature-image-section { padding: var(--section-gap) 0; }
.section-header { display: flex; flex-direction: column; gap: 16px; margin-bottom: 52px; }
.section-header .eyebrow { font-family: var(--ff-sans); font-size: 11px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--clr-text-sec); }
.feature-img-wrap { width: 100%; border-radius: var(--nc-r); overflow: hidden; border: 1px solid rgba(0,0,0,.06); }
.feature-img-wrap img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }

/* ── COMING SOON ────────────────────────────────────────────── */
.coming-soon-section { padding: var(--section-gap) 0; background: var(--clr-grey); }
.coming-soon-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: flex-start; }
.coming-label-col { padding-top: 8px; position: sticky; top: 40px; }
.coming-soon-label { font-family: var(--ff-serif); font-size: clamp(24px,3vw,40px); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.coming-soon-sub { font-size: 14px; color: var(--clr-text-sec); margin-top: 12px; line-height: 1.6; }
.feature-cards-col { display: flex; flex-direction: column; gap: 2px; }
.feature-card { display: flex; gap: 32px; padding: 28px 0; background: transparent; border-bottom: 1px solid rgba(0,0,0,.08); align-items: flex-start; }
.feature-card:first-child { border-top: 1px solid rgba(0,0,0,.08); }
.feature-num-col { flex-shrink: 0; width: 40px; }
.feature-num { font-family: var(--ff-sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--clr-text-sec); opacity: .6; margin-top: 4px; }
.feature-card-body { display: flex; flex-direction: column; gap: 8px; }
.feature-card-title { font-family: var(--ff-serif); font-size: 22px; font-weight: 400; letter-spacing: -.01em; }
.feature-card-text  { font-size: 15px; color: var(--clr-text-sec); line-height: 1.65; }

/* ── TOGETHER ───────────────────────────────────────────────── */
.together-section { padding: var(--section-gap) 0; }
.together-single-img { border-radius: var(--nc-r); overflow: hidden; width: 100%; aspect-ratio: 16/7; }
.together-single-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── HOME ARTICLES ──────────────────────────────────────────── */
.articles-section { padding: var(--section-gap) 0; }

/* .articles-outer: positioning and shadow space
   style.css already handles alignment via home-articles-grid padding-left.
   We ONLY need to allow shadow overflow here. */
.articles-outer {
  margin-left: var(--carousel-left);
  overflow-y: visible;
  overflow-x: visible;
}

/* Horizontal flex track — style.css handles padding-left alignment */
.home-articles-grid {
  display: flex;
  --home-articles-gap: 14px;
  gap: var(--home-articles-gap);
  padding-bottom: 44px; /* shadow breathing room (overrides style.css 32px) */
}

/* Each card (.hc) — dual-layer blur: sharp base + masked blur on text area
   Width/flex overrides to ensure 3 cards fit and the 4th is ALWAYS cut off */
.hc {
  position: relative;
  /* 3.5 cards in viewport from first-card start -> 4th card is half outside */
  flex: 0 0 clamp(
    280px,
    calc((100vw - var(--carousel-left) - (var(--home-articles-gap) * 3)) / 3.5),
    420px
  );
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,.14);
  transition: box-shadow .35s ease;
}
/* Override style.css translateY(-4px) hover */
.hc:hover {
  transform: none;
  box-shadow: 0 8px 36px rgba(0,0,0,.26);
}

/* Layer 1: sharp image (full card, no blur) */
.hc-bg-sharp {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hc-bg-sharp img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Layer 2: blurred image visible ONLY on the lower portion via mask */
.hc-bg-blur {
  position: absolute;
  inset: -16px; /* extra to hide blur edge artifacts */
  z-index: 1;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 28%,
    rgba(0,0,0,.55) 48%,
    black 65%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 28%,
    rgba(0,0,0,.55) 48%,
    black 65%
  );
}
.hc-bg-blur img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(20px) saturate(1.1);
  transform: scale(1.08);
  transition: filter .45s ease;
}
.hc:hover .hc-bg-blur img {
  filter: blur(13px) saturate(1.25);
}

/* Layer 3: dark gradient overlay (transparent top → very dark bottom) */
.hc-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.04) 35%,
    rgba(0,0,0,0.50) 58%,
    rgba(0,0,0,0.84) 100%
  );
}

/* Layer 4: text content — anchored to bottom */
.hc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hc-title {
  font-family: var(--ff-serif);
  font-size: clamp(17px, 1.4vw, 22px);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -.01em;
  margin: 0;
}
.hc-excerpt {
  font-size: 13px;
  color: rgba(255,255,255,.68);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.hc-date, .hc-author {
  font-size: 11px;
  color: rgba(255,255,255,.42);
  font-family: var(--ff-sans);
}
.hc-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  flex-shrink: 0;
}

.articles-more-row { display: flex; justify-content: flex-end; margin-top: 28px; }
.btn-read-more { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--clr-black); transition: gap var(--ease), opacity var(--ease); opacity: .50; }
.btn-read-more:hover { gap: 16px; opacity: 1; }
.btn-read-more svg { flex-shrink: 0; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) { .slider-item { width: calc((100% - 24px) / 2); } }
@media (max-width: 900px) {
  .hero { padding-bottom: 60px; }
  .slider-item { width: calc(100% - 40px); }
  .hc { width: 240px; }
  .coming-soon-inner { grid-template-columns: 1fr; gap: 40px; }
  .coming-label-col { position: static; }
  .together-single-img { aspect-ratio: 16/9; }
}
@media (max-width: 640px) {
  .hero-title { font-size: 40px !important; }
  .hero-subtitle { font-size: 15px !important; }
  .slider-item { width: calc(100% - 20px); }
  .hc { width: 220px; }
  .slider-footer { flex-direction: column; align-items: flex-start; gap: 28px; padding-top: 36px; }
  .slider-info .section-title { font-size: 28px !important; }
  .feature-card { gap: 20px; }
  .bento-row { flex-direction: column; height: auto !important; }
  .nc { width: 100% !important; height: auto !important; }
  .nc-featured { flex-direction: column; }
  .nc-featured .nc-row-img { width: 100% !important; height: 200px; border-radius: var(--nc-r) var(--nc-r) 0 0; }
  .nc-img-wrap { height: 180px !important; }
  .hero-content::before { font-size: 10px; }
}
