/* =========================================
   OnlyScholar Research Community
   Design System — Exactly matches OnlyScholar website
   Primary:    #17324d  (deep navy)
   Secondary:  #2b6f77  (teal)
   Accent:     #b95c3d  (warm coral/orange)
   Background: #f7f4ef  (soft cream)
   White:      #ffffff
   Text:       #2d2d2d
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #17324d;
  --primary-dark: #0f2035;
  --secondary:    #2b6f77;
  --accent:       #b95c3d;
  --accent-light: #d4795c;
  --accent-dark:  #9e4a2e;
  --bg:           #f7f4ef;
  --bg-alt:       #ede9e2;
  --white:        #ffffff;
  --text:         #2d2d2d;
  --text-muted:   #666666;
  --text-light:   #999999;
  --border:       rgba(23,50,77,0.12);
  --shadow-sm:    0 2px 12px rgba(23,50,77,0.08);
  --shadow-md:    0 8px 32px rgba(23,50,77,0.14);
  --shadow-lg:    0 20px 60px rgba(23,50,77,0.18);
  --shadow-xl:    0 32px 80px rgba(23,50,77,0.22);
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --radius-pill:  50px;
  --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  line-height: 1.2;
  color: var(--primary);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========== LAYOUT ========== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== WORDMARK — "Only" white · "Scholar" coral italic ========== */
.wm-only {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-style: normal;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.wm-scholar {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-style: italic;
  color: var(--accent-light);   /* warm coral */
  letter-spacing: -0.02em;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navbar wordmark */
.nav-wordmark {
  font-size: 1.55rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
  transition: opacity var(--transition);
}
.nav-wordmark:hover { opacity: 0.88; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 30px;
  border-radius: var(--radius-pill);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

/* Primary accent button — coral/orange (matches OnlyScholar btn-primary) */
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(185,92,61,0.35);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(185,92,61,0.48);
}
.btn-accent:active { transform: translateY(0); }

/* White ghost (dark bg) */
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost-white:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm  { padding: 9px 22px; font-size: 0.87rem; }
.btn-lg  { padding: 17px 44px; font-size: 1.05rem; }

.btn-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}



/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;   /* top padding clears the 68px navbar */
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 42%, #09192e 100%);
  position: relative;
  overflow: hidden;
}

/* Ambient glow layers */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 65% at 78% 50%, rgba(43,111,119,0.26) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 82%, rgba(185,92,61,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 30% 25% at 88% 14%, rgba(43,111,119,0.13) 0%, transparent 55%);
  pointer-events: none;
}

/* Subtle grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

/* Single-column centered hero since right mockup was removed */
.hero-grid {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-left { 
  padding-right: 0; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-list {
  text-align: left;
  width: 100%;
  max-width: 600px;
}

/* ========== LEFT — Content ========== */
.hero-left { padding-right: 8px; }

/* Section eyebrow badge */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-pill);
  padding: 7px 18px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin-bottom: 28px;
  animation: fadeSlideUp 0.6s ease both;
}

.eyebrow-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 2s ease infinite;
  flex-shrink: 0;
}

/* Hero h1 — same scale as OnlyScholar */
.hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.16;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.6s ease 0.1s both;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-light);
}

/* Hero subheadline */
.hero-sub {
  font-size: 1.06rem;
  color: rgba(255,255,255,0.74);
  line-height: 1.85;
  margin-bottom: 36px;
  font-weight: 400;
  animation: fadeSlideUp 0.6s ease 0.2s both;
}

.hero-sub strong {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

/* ========== FEATURE BULLET CARDS ========== */
/* Exactly mirrors OnlyScholar problem-card / why-item style */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
  animation: fadeSlideUp 0.6s ease 0.3s both;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  transition: var(--transition);
  cursor: default;
}

.feature-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(43,111,119,0.5);
  transform: translateX(5px);
}

/* Check circle — teal gradient, exactly like OnlyScholar feature checks */
.feature-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #4aadb8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check svg {
  width: 12px; height: 12px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.86);
  font-weight: 500;
  line-height: 1.55;
}

/* ========== CTA AREA ========== */
.hero-cta-wrap {
  animation: fadeSlideUp 0.6s ease 0.45s both;
}

.btn-note {
  display: block;
  font-size: 0.77rem;
  color: rgba(255,255,255,0.42);
  margin-top: 11px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* New community intro line styling */
.community-intro-line {
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  color: var(--accent-light);
  font-style: italic;
  font-weight: 600;
  margin: 40px 0 20px;
  animation: fadeSlideUp 0.6s ease 0.5s both;
}

/* ========== RIGHT — Community Card Mockup ========== */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeSlideRight 0.8s ease 0.25s both;
}

.mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  animation: float-card 5s ease-in-out infinite;
}

/* Glassmorphism card — same style as OnlyScholar hero main card */
.community-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  z-index: 2;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

/* Card top divider */
.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* WhatsApp avatar */
.wa-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1da851);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37,211,102,0.45);
}
.wa-avatar svg {
  width: 24px; height: 24px;
  fill: white;
}

.card-header-info h4 {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.card-header-info span {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.5);
  font-family: 'Open Sans', sans-serif;
}

.online-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  margin-right: 5px;
  animation: pulse-green 2s ease infinite;
}

/* ========== DOMAIN TAGS ========== */
.domain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid;
  font-family: 'Open Sans', sans-serif;
  transition: var(--transition);
}

.tag:hover { transform: translateY(-2px); }

.tag-teal   { background: rgba(43,111,119,0.25);  border-color: rgba(43,111,119,0.5);  color: #7dd3e8; }
.tag-blue   { background: rgba(59,130,246,0.2);   border-color: rgba(59,130,246,0.4);  color: #93c5fd; }
.tag-purple { background: rgba(139,92,246,0.2);   border-color: rgba(139,92,246,0.4);  color: #c4b5fd; }
.tag-orange { background: rgba(185,92,61,0.22);   border-color: rgba(185,92,61,0.45);  color: #fca68a; }
.tag-green  { background: rgba(34,197,94,0.17);   border-color: rgba(34,197,94,0.35);  color: #86efac; }
.tag-pink   { background: rgba(236,72,153,0.17);  border-color: rgba(236,72,153,0.35); color: #f9a8d4; }

/* ========== CHAT MESSAGES ========== */
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.chat-msg {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.chat-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Open Sans', sans-serif;
}

.av-blue   { background: linear-gradient(135deg, #3b82f6, #6366f1); }
.av-purple { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.av-teal   { background: linear-gradient(135deg, #10b981, #3b82f6); }
.av-accent { background: linear-gradient(135deg, var(--accent), var(--accent-light)); }

.chat-bubble {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px var(--radius-sm) var(--radius-sm) var(--radius-sm);
  padding: 9px 13px;
  flex: 1;
}

.chat-sender {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3px;
  font-family: 'Open Sans', sans-serif;
}

.chat-text {
  font-size: 0.77rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  font-family: 'Open Sans', sans-serif;
}

.chat-time {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.32);
  margin-top: 4px;
  display: block;
  text-align: right;
  font-family: 'Open Sans', sans-serif;
}

/* ========== PAPER LISTINGS ========== */
.papers-section {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 16px;
  margin-bottom: 18px;
}

.papers-label {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 10px;
  font-family: 'Open Sans', sans-serif;
}

.paper-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  background: rgba(255,255,255,0.045);
  border-radius: var(--radius-sm);
  margin-bottom: 7px;
  transition: var(--transition);
  cursor: pointer;
}

.paper-item:last-child { margin-bottom: 0; }

.paper-item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(3px);
}

.paper-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.paper-info { flex: 1; }

.paper-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255,255,255,0.84);
  line-height: 1.4;
  margin-bottom: 3px;
  font-family: 'Open Sans', sans-serif;
}

.paper-meta {
  font-size: 0.66rem;
  color: rgba(255,255,255,0.38);
  font-family: 'Open Sans', sans-serif;
}

/* ========== STATS ROW ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-box {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.stat-num {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
}

.stat-lbl {
  font-size: 0.63rem;
  color: rgba(255,255,255,0.46);
  margin-top: 2px;
  font-family: 'Open Sans', sans-serif;
}

/* ========== MICRO FLOATING CARDS ========== */
/* Exactly like OnlyScholar's hero-float-card */
.micro-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 13px 17px;
  box-shadow: var(--shadow-xl);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.mc-bottom {
  bottom: -24px;
  left: -24px;
  animation: floatA 3.5s ease-in-out infinite;
}

.mc-top {
  top: -20px;
  right: -18px;
  animation: floatB 3s ease-in-out infinite 1.5s;
}

.mc-icon { font-size: 1.3rem; flex-shrink: 0; }

.mc-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Open Sans', sans-serif;
}

.mc-sub {
  font-size: 0.67rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: 'Open Sans', sans-serif;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* Footer wordmark */
.footer-wordmark {
  font-size: 1.3rem;
  display: inline-flex;
  align-items: baseline;
  transition: opacity var(--transition);
}
.footer-wordmark:hover { opacity: 0.8; }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  font-family: 'Open Sans', sans-serif;
}

.footer-copy a {
  color: rgba(255,255,255,0.48);
  transition: var(--transition);
}
.footer-copy a:hover { color: var(--white); }

/* ========== ANIMATIONS ========== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-9px) rotate(0.5deg); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50%       { transform: translateY(-7px) rotate(-0.5deg); }
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.82); }
}

/* ========== MOBILE — perfectly responsive ========== */
@media (max-width: 1024px) {
  .hero-grid { gap: 48px; }
  .hero-title { font-size: clamp(2rem, 3.5vw, 2.9rem); }
}

@media (max-width: 860px) {
  .hero {
    padding: 104px 0 60px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-left { order: 1; padding-right: 0; }
  .hero-right { order: 2; }

  .hero-title { font-size: clamp(1.9rem, 5vw, 2.7rem); }

  .mockup-wrap {
    max-width: 480px;
    margin: 0 auto;
    animation: none;
  }

  .mc-bottom { bottom: -16px; left: 0; }
  .mc-top    { top: -14px; right: 0; }
}

@media (max-width: 600px) {
  .nav-cta { display: inline-flex; }


  .hero { padding: 92px 0 52px; }

  .container { padding: 0 18px; }

  .nav-inner { padding: 0 18px; }

  .section-eyebrow {
    font-size: 0.72rem;
    padding: 6px 14px;
  }

  .hero-title { font-size: clamp(1.7rem, 6.5vw, 2.2rem); }

  .hero-sub { font-size: 0.96rem; }

  .feature-item { padding: 11px 14px; }

  .feature-text { font-size: 0.86rem; }

  .btn-lg { padding: 15px 28px; font-size: 0.97rem; }

  .community-card { padding: 20px 16px; }

  .micro-card { display: none; }  /* hide on small mobile to avoid overlap */

  .stats-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 420px) {
  .domain-tags { gap: 5px; }
  .tag { font-size: 0.68rem; padding: 4px 10px; }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .stat-box:last-child { grid-column: 1 / -1; }
}
