/* CIRIACO Showcase Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --bg-dark: #080c14;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --border-color: rgba(255, 255, 255, 0.1);
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --accent-purple: #8a2be2;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Fira Code', monospace;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Animated Gradient Mesh */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(138, 43, 226, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(79, 172, 254, 0.06) 0%, transparent 50%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

.nav-links a:hover {
  color: var(--primary-cyan);
}

.btn-contact {
  background: linear-gradient(135deg, var(--primary-cyan), var(--accent-purple));
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

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

.hero-logo-wrapper {
  margin-bottom: 24px;
  display: inline-block;
}

.hero-logo {
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 0 35px rgba(0, 242, 254, 0.25));
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary-cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 24px;
  line-height: 1.25;
  background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto 36px;
}

.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.tag {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--primary-cyan);
}

/* Dedicated In Memoriam Section */
.dedication-section {
  padding: 40px 0;
}

.dedication-card {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.12), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.dedication-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(138, 43, 226, 0.25);
  color: #e9d5ff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.dedication-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #ffffff;
  margin-bottom: 14px;
}

.dedication-text {
  font-size: 1.05rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 18px;
}

.dedication-quote {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--primary-cyan);
  font-weight: 700;
}

/* Interactive DAG Section */
.dag-section {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.dag-interactive-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
}

.dag-visualizer {
  background: #050811;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  height: 450px;
  position: relative;
  overflow: hidden;
}

#dag-svg {
  width: 100%;
  height: 100%;
}

.node-info-panel {
  background: #0b1120;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary-cyan);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.info-item {
  margin-bottom: 14px;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.info-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #f1f5f9;
  word-break: break-all;
}

.hash-badge {
  background: rgba(0, 242, 254, 0.1);
  color: var(--primary-cyan);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* WYSIWYM Preview Section */
.wysiwym-section {
  padding: 60px 0;
}

.tab-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.tab-header {
  display: flex;
  background: #090e1a;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  padding: 16px 28px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--primary-cyan);
  border-bottom: 2px solid var(--primary-cyan);
  background: rgba(0, 242, 254, 0.05);
}

.tab-content {
  padding: 32px;
  min-height: 380px;
}

.editor-mock {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
}

.atmo-list {
  background: #070a14;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
}

.atmo-item {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  cursor: pointer;
  background: #0f172a;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.atmo-item.active {
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.1);
}

.editor-box {
  background: #070a14;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
}

.compiled-preview {
  background: #ffffff;
  color: #1e293b;
  padding: 36px;
  border-radius: 8px;
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.compiled-preview.ieee {
  column-count: 2;
  column-gap: 24px;
  font-size: 0.9rem;
}

.compiled-preview h2 {
  column-span: all;
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Metrics Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  transition: transform 0.2s;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-cyan);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-cyan);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .dag-interactive-container {
    grid-template-columns: 1fr;
  }
  .editor-mock {
    grid-template-columns: 1fr;
  }
  .compiled-preview.ieee {
    column-count: 1;
  }
}
