/* PdfTogether - Official Website Stylesheet */
:root {
  --bg-primary: #0a0f18;
  --bg-surface: #101826;
  --bg-card: #152032;
  --bg-card-hover: #1c2b42;
  --border-subtle: #203047;
  --border-highlight: #3b82f6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --brand-blue: #0e74fa;
  --brand-blue-hover: #2563eb;
  --brand-red: #ea3943;
  --brand-green: #22c55e;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(14, 116, 250, 0.25);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 116, 250, 0.15), transparent),
    radial-gradient(circle at 80% 80%, rgba(234, 57, 67, 0.05), transparent);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #60a5fa;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
}

.brand-name {
  display: inline-flex;
  align-items: center;
}

.brand-name span.together {
  color: var(--brand-red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 116, 250, 0.35);
}

.btn-primary:hover {
  background: var(--brand-blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 116, 250, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 116, 250, 0.12);
  border: 1px solid rgba(14, 116, 250, 0.3);
  color: #60a5fa;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--brand-green);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight {
  color: var(--brand-blue);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

/* Hero Showcase Mockup */
.hero-mockup-wrap {
  position: relative;
  max-width: 1000px;
  margin: 20px auto 0;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(180deg, rgba(32, 48, 71, 0.6) 0%, rgba(16, 24, 38, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.mockup-window {
  background: #0d141f;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  border: 1px solid #1a2738;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #111a27;
  border-bottom: 1px solid #1a2738;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3c53;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #eab308; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.mockup-collab-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.mockup-content {
  padding: 30px;
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: 20px;
  background: #080c13;
  min-height: 380px;
}

.mockup-sidebar {
  background: #0e1622;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid #172435;
}

.mockup-sidebar-item {
  height: 14px;
  background: #1a293d;
  border-radius: 4px;
  margin-bottom: 12px;
}

.mockup-sidebar-item.active {
  background: var(--brand-blue);
  width: 80%;
}

.mockup-page {
  background: #ffffff;
  border-radius: 6px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-line {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 12px;
}

.page-line.header {
  height: 14px;
  width: 55%;
  background: #0f172a;
  margin-bottom: 18px;
}

.page-line.highlight-blue {
  background: rgba(14, 116, 250, 0.3);
  border-left: 3px solid var(--brand-blue);
  padding-left: 6px;
}

.page-line.highlight-red {
  background: rgba(234, 57, 67, 0.25);
  border-left: 3px solid var(--brand-red);
}

/* Collaborative Cursors */
.collab-cursor {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.cursor-alice {
  top: 90px;
  right: 40px;
  background: var(--brand-blue);
}

.cursor-bob {
  bottom: 80px;
  left: 60px;
  background: var(--brand-green);
}

.cursor-carol {
  top: 190px;
  left: 120px;
  background: var(--brand-red);
}

.mockup-collab-panel {
  background: #0e1622;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid #172435;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.collab-user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.avatar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.avatar-blue { background: var(--brand-blue); }
.avatar-green { background: var(--brand-green); }
.avatar-red { background: var(--brand-red); }

/* Quick Join Room Card Section */
.quick-join-section {
  padding: 40px 0;
}

.join-card {
  background: linear-gradient(135deg, #131d2c 0%, #17263b 100%);
  border: 1px solid #253954;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: var(--shadow-md);
}

.join-card-text h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.join-card-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
}

.join-card-form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
  max-width: 440px;
}

.input-field {
  flex: 1;
  background: #0b111a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(14, 116, 250, 0.2);
}

/* Feature Grid */
.section {
  padding: 90px 0;
}

.section-alt {
  background: #080c14;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-tag {
  color: var(--brand-blue);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.25s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: #2e4463;
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(14, 116, 250, 0.12);
  border: 1px solid rgba(14, 116, 250, 0.25);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How It Works Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
}

.step-number {
  position: absolute;
  top: -18px;
  left: 28px;
  background: var(--brand-blue);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(14, 116, 250, 0.4);
}

.step-card h4 {
  font-size: 1.25rem;
  margin: 12px 0 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Downloads Section */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
}

.download-card.primary {
  border-color: rgba(14, 116, 250, 0.4);
  box-shadow: 0 0 25px rgba(14, 116, 250, 0.15);
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
}

.download-header {
  margin-bottom: 24px;
}

.download-card h4 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.download-version {
  font-size: 0.85rem;
  color: var(--brand-green);
  font-weight: 600;
}

.download-details {
  list-style: none;
  margin: 20px 0 28px;
  text-align: left;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.download-details li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-details span.val {
  color: var(--text-main);
  font-weight: 500;
}

.checksum-box {
  margin-top: 40px;
  background: #090e16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.checksum-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.checksum-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-all;
  line-height: 1.8;
}

/* Join Portal Page (/join) Specific */
.join-portal-wrap {
  max-width: 620px;
  margin: 60px auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.room-display-badge {
  background: #090f17;
  border: 1px solid var(--border-subtle);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #60a5fa;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.portal-steps {
  text-align: left;
  margin: 30px 0;
  background: #0c1420;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.portal-steps ol {
  margin-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.portal-steps li {
  margin-bottom: 10px;
}

.portal-steps li strong {
  color: var(--text-main);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #06090f;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h5 {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  border-top: 1px solid #141f2e;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Notification Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.6rem; }
  .mockup-content { grid-template-columns: 1fr; }
  .mockup-sidebar, .mockup-collab-panel { display: none; }
  .join-card { flex-direction: column; text-align: center; }
  .join-card-text p { max-width: 100%; }
  .join-card-form { max-width: 100%; }
  .steps-container { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.1rem; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .btn-lg { width: 100%; }
}
