/* ═══════════════════════════════════════
   Home Page Styles
   ═══════════════════════════════════════ */

/* ── Hero ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 160px 48px 100px; max-width: var(--max-width); margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-dim); border: 1px solid var(--accent-mid);
  border-radius: 100px; padding: 8px 20px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--accent); width: fit-content; margin-bottom: 40px;
  letter-spacing: 0.5px; animation: fadeUp 0.8s ease both;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; background: var(--accent);
  border-radius: 50%; box-shadow: 0 0 8px var(--accent); animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-display); font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -3px;
  margin-bottom: 36px; animation: fadeUp 0.8s ease 0.1s both;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 40%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero h1 .edge-text { position: relative; display: inline-block; }
.hero h1 .edge-text::after {
  content: ''; position: absolute; bottom: 4px; left: 0; right: 0;
  height: 4px; background: var(--accent); opacity: 0.3; border-radius: 2px;
}

.hero-desc {
  font-size: 1.2rem; color: var(--text-secondary); max-width: 640px;
  line-height: 1.85; margin-bottom: 52px; font-weight: 400;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 16px; animation: fadeUp 0.8s ease 0.3s both; }

/* ── Key Values ── */
.key-values { padding: 0 48px 100px; max-width: var(--max-width); margin: 0 auto; }

.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border); border-radius: 20px; overflow: hidden;
}

.value-item {
  background: var(--surface); padding: 44px 36px;
  position: relative; transition: background 0.4s;
}
.value-item:hover { background: var(--surface-2); }

.value-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
  font-family: var(--font-mono); font-weight: 700;
}
.vi-green { background: #00f0a815; color: var(--accent); border: 1px solid #00f0a830; }
.vi-purple { background: #8b5cf615; color: var(--purple); border: 1px solid #8b5cf630; }
.vi-blue { background: #38bdf815; color: var(--blue); border: 1px solid #38bdf830; }

.value-item h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  margin-bottom: 10px; letter-spacing: -0.3px;
}
.value-item p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.65; font-weight: 400; }

/* ── EdgeFly OS ── */
.os-section { padding: var(--padding-section); max-width: var(--max-width); margin: 0 auto; }

.os-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 28px; padding: 72px; position: relative; overflow: hidden;
}
.os-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.os-card::after {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 200px; background: var(--accent);
  filter: blur(150px); opacity: 0.06; pointer-events: none;
}

.os-card h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -1px; margin-bottom: 16px;
}
.os-card h2 .mono { font-family: var(--font-mono); color: var(--accent); font-weight: 700; }

.os-subtitle {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--accent); letter-spacing: 0.5px; margin-bottom: 20px; opacity: 0.7;
}

.os-desc {
  font-size: 1.05rem; color: var(--text-secondary); max-width: 660px;
  line-height: 1.85; font-weight: 400; margin-bottom: 52px;
}

/* ── Stack Layers ── */
.stack { display: flex; flex-direction: column; gap: 6px; }

.stack-layer {
  display: flex; align-items: center; gap: 18px; padding: 20px 28px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--bg);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default; position: relative; overflow: hidden;
}
.stack-layer::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent); opacity: 0; transition: opacity 0.4s;
}
.stack-layer:hover {
  border-color: var(--accent-mid); background: var(--accent-dim); transform: translateX(6px);
}
.stack-layer:hover::before { opacity: 1; }

.layer-num {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  color: var(--accent); background: var(--accent-dim); border: 1px solid #00f0a820;
  padding: 5px 12px; border-radius: 8px; min-width: 32px; text-align: center;
}
.layer-name {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: -0.2px;
}
.layer-desc {
  color: var(--text-dim); font-size: 0.82rem; margin-left: auto; font-weight: 400; white-space: nowrap;
}

/* ── Devices ── */
.devices { padding: var(--padding-section); max-width: var(--max-width); margin: 0 auto; }

.devices h2 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; letter-spacing: -1.5px; margin-bottom: 20px; line-height: 1.1;
}

.devices-desc {
  font-size: 1.05rem; color: var(--text-dim); max-width: 560px; margin-bottom: 52px; line-height: 1.7;
}

.device-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.device-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 44px 36px; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative; overflow: hidden;
}
.device-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-dim) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.device-card:hover::before { opacity: 1; }
.device-card:hover {
  border-color: var(--accent-mid); transform: translateY(-6px);
  box-shadow: 0 24px 60px #00000050, var(--glow);
}

.device-icon-wrap {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; position: relative; z-index: 1;
}
.di-1 { background: linear-gradient(135deg, #00f0a820, #00f0a808); border: 1px solid #00f0a825; }
.di-2 { background: linear-gradient(135deg, #8b5cf620, #8b5cf608); border: 1px solid #8b5cf625; }
.di-3 { background: linear-gradient(135deg, #38bdf820, #38bdf808); border: 1px solid #38bdf825; }
.device-icon-wrap svg { width: 26px; height: 26px; }

.device-card h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.3px; position: relative; z-index: 1;
}
.device-card p {
  color: var(--text-dim); font-size: 0.9rem; line-height: 1.7;
  font-weight: 400; position: relative; z-index: 1;
}

/* ── About & Contact ── */
.contact {
  padding: 140px 48px; max-width: var(--max-width); margin: 0 auto; text-align: center;
}

.contact h2 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; line-height: 1.1;
}
.contact h2 .highlight-text {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.contact .about-text {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 760px;
  line-height: 1.85; font-weight: 400;
}
.contact .about-text strong { color: var(--text); font-weight: 600; }

.contact p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 44px; font-weight: 400; }

.contact-link {
  font-family: var(--font-mono); color: var(--accent);
  font-size: 1.15rem; font-weight: 600;
  padding: 14px 36px; border: 1px solid var(--accent-mid);
  border-radius: 14px; background: var(--accent-dim); transition: all 0.3s;
  display: inline-block;
}
.contact-link:hover {
  background: var(--accent); color: var(--bg); box-shadow: var(--glow-strong);
}
